/* ==========================================================
   SMKN 5 BERAU - WEBSITE PUBLIK
   File    : assets/css/website_sekolah.css
   Versi   : 1.1.0
   ========================================================== */


/* ==========================================================
   ROOT / VARIABEL
   ========================================================== */

:root {
    --p: #159f86;
    --pd: #0e806c;

    --dark: #263d51;
    --dark2: #344f65;

    --text: #304456;
    --muted: #71818f;

    --soft: #f3f7f8;
    --border: #e2e9ed;
    --white: #fff;

    --shadow: 0 12px 32px rgba(35, 59, 78, .08);
}


/* ==========================================================
   RESET DASAR
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--border);

    transition: .2s;
}

.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(35, 59, 78, .08);
}

.nav-container {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* ==========================================================
   BRAND / LOGO
   ========================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}


/*
   Wadah logo dibuat tetap kecil supaya gambar logo
   tidak keluar dari area header maupun footer.
*/

.brand-logo {
    width: 52px !important;
    height: 52px !important;

    min-width: 52px !important;
    min-height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    flex-shrink: 0 !important;

    background: transparent !important;
}


/*
   Logo sekolah.
*/

.brand-logo img {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    max-width: 48px !important;
    max-height: 48px !important;

    object-fit: contain !important;

    display: block !important;

    position: static !important;
}


/*
   Aturan lama untuk logo berbentuk kotak SMK 5
   tetap disediakan jika ada bagian lain yang masih
   menggunakan small / b.
*/

.brand-logo small {
    font-size: 8px;
    font-weight: 700;
}

.brand-logo b {
    font-size: 23px;
}


/* ==========================================================
   NAMA SEKOLAH
   ========================================================== */

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.brand-text strong {
    font-size: 14px;
    color: var(--dark);
}

.brand-text span {
    font-size: 10px;
    color: var(--muted);

    margin-top: 3px;
}


/* ==========================================================
   NAVIGASI
   ========================================================== */

.main-nav {
    display: flex;
    align-items: center;

    gap: 3px;
}

.nav-link {
    padding: 9px 12px;

    border-radius: 7px;

    color: #586a79;

    font-size: 13px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--p);
    background: #edf8f5;
}

.nav-login {
    margin-left: 7px;

    padding: 10px 18px;

    border-radius: 8px;

    background: var(--p);
    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.nav-login:hover {
    background: var(--pd);
}


/* ==========================================================
   MENU MOBILE
   ========================================================== */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    background: #fff;

    border-radius: 8px;
}

.menu-toggle i {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--dark);

    margin: 4px auto;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    position: relative;
    overflow: hidden;

    min-height: 575px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            120deg,
            #263f52,
            #31566b 52%,
            #1d8574
        );
}

.hero-shape {
    position: absolute;

    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .045);
}

.shape-one {
    width: 520px;
    height: 520px;

    right: -190px;
    top: -220px;
}

.shape-two {
    width: 350px;
    height: 350px;

    left: -180px;
    bottom: -220px;
}

.hero-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: 1.6fr .7fr;

    gap: 70px;

    align-items: center;

    padding: 75px 0;
}

.hero-text {
    color: #fff;
}

.eyebrow {
    display: inline-block;

    color: #75e0c7;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.hero-text h1 {
    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    margin: 17px 0;
}

.hero-text h1 em {
    display: block;

    color: #70e2c9;

    font-style: normal;
}

.hero-text p {
    max-width: 650px;

    color: rgba(255, 255, 255, .78);

    font-size: 15px;
}


/* ==========================================================
   HERO BUTTON
   ========================================================== */

.hero-actions {
    display: flex;
    gap: 12px;

    margin-top: 28px;

    flex-wrap: wrap;
}

.btn {
    min-height: 46px;

    padding: 0 19px;

    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    font-size: 13px;
    font-weight: 700;
}

.btn-primary {
    background: var(--p);
    color: #fff;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, .32);

    color: #fff;

    background: rgba(255, 255, 255, .05);
}


/* ==========================================================
   HERO PANEL
   ========================================================== */

.hero-panel {
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, .15);

    border-radius: 18px;

    background: rgba(255, 255, 255, .09);

    backdrop-filter: blur(10px);

    color: #fff;
}

.hero-panel-icon {
    width: 64px;
    height: 64px;

    border-radius: 15px;

    background: rgba(255, 255, 255, .13);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 31px;

    margin-bottom: 20px;
}

.hero-panel span {
    color: #75e0c7;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.hero-panel h2 {
    font-size: 21px;

    margin: 7px 0;
}

.hero-panel p {
    font-size: 13px;

    color: rgba(255, 255, 255, .7);
}


/* ==========================================================
   QUICK INFO
   ========================================================== */

.quick-info {
    position: relative;

    z-index: 5;

    margin-top: -40px;
}

.quick-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    background: #fff;

    border-radius: 14px;

    box-shadow: var(--shadow);

    overflow: hidden;
}

.quick-grid > div {
    min-height: 100px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 13px;

    border-right: 1px solid var(--border);
}

.quick-grid > div:last-child {
    border: 0;
}

.quick-grid > div > span {
    width: 46px;
    height: 46px;

    border-radius: 11px;

    background: #edf8f5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}

.quick-grid section {
    display: flex;
    flex-direction: column;
}

.quick-grid b {
    font-size: 13px;
    color: var(--dark);
}

.quick-grid small {
    font-size: 11px;
    color: var(--muted);
}


/* ==========================================================
   SECTION
   ========================================================== */

.section {
    padding: 95px 0;
}

.soft {
    background: var(--soft);
}

.section-heading {
    max-width: 680px;

    margin-bottom: 42px;
}

.section-heading > span {
    color: var(--p);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.section-heading h2 {
    font-size: 36px;

    line-height: 1.2;

    color: var(--dark);

    margin: 8px 0;
}

.section-heading p {
    font-size: 14px;

    color: var(--muted);

    margin: 0;
}


/* ==========================================================
   PROFIL SEKOLAH
   ========================================================== */

.profile-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 65px;

    align-items: center;
}

.school-visual {
    min-height: 385px;

    position: relative;

    overflow: hidden;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #e7f4f1,
            #f7fafb
        );

    border: 1px solid var(--border);

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.building {
    position: relative;

    width: 75%;
    height: 215px;

    margin-bottom: 65px;
}

.roof {
    height: 44px;

    background: var(--dark);

    clip-path:
        polygon(
            50% 0,
            100% 100%,
            0 100%
        );
}

.building-body {
    height: 171px;

    padding: 23px 27px;

    background: #fff;

    border: 1px solid #d8e1e5;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.building-body i {
    border-radius: 5px;

    background: #d7e9e7;

    border: 5px solid #f2f7f7;
}

.door {
    position: absolute;

    bottom: 0;
    left: calc(50% - 25px);

    width: 50px;
    height: 72px;

    background: var(--p);

    border-radius: 5px 5px 0 0;
}

.ground {
    position: absolute;

    bottom: 0;

    width: 100%;
    height: 65px;

    background: #cfe4dc;
}

.visual-title {
    position: absolute;

    bottom: 14px;
    left: 20px;

    z-index: 2;

    display: flex;
    flex-direction: column;
}

.visual-title b {
    font-size: 14px;
    color: var(--dark);
}

.visual-title small {
    font-size: 10px;
    color: #607c79;
}

.green {
    color: var(--p);
}

.profile-content h3 {
    font-size: 29px;

    line-height: 1.3;

    color: var(--dark);

    margin: 10px 0 17px;
}

.profile-content > p {
    font-size: 14px;

    color: var(--muted);
}

.profile-content ul {
    padding: 0;

    margin: 23px 0 0;

    list-style: none;
}

.profile-content li {
    margin: 9px 0;

    font-size: 13px;

    color: #526574;
}

.profile-content li::first-letter {
    color: var(--p);
}


/* ==========================================================
   PROGRAM KEAHLIAN
   ========================================================== */

.program-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.program-grid article {
    position: relative;

    min-height: 275px;

    padding: 26px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: #fff;

    transition: .2s;
}

.program-grid article:hover,
.news-grid article:hover,
.service-grid > a:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow);
}

.program-grid .num {
    position: absolute;

    right: 19px;
    top: 17px;

    color: #b5c3ca;

    font-size: 12px;
}

.program-grid article > span {
    width: 55px;
    height: 55px;

    border-radius: 13px;

    background: #e9f7f3;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;

    margin-bottom: 20px;
}

.program-grid h3 {
    font-size: 17px;

    line-height: 1.35;

    color: var(--dark);

    margin: 0 0 10px;
}

.program-grid p {
    font-size: 12px;

    color: var(--muted);

    margin: 0;
}


/* ==========================================================
   LAYANAN
   ========================================================== */

.service-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.service-grid > a {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: #fff;

    transition: .2s;
}

.service-grid > a > span {
    width: 50px;
    height: 50px;

    border-radius: 12px;

    background: #edf8f5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
}

.service-grid h3 {
    font-size: 15px;

    color: var(--dark);

    margin: 0 0 4px;
}

.service-grid p {
    font-size: 11px;

    color: var(--muted);

    margin: 0;
}

.service-grid > a > b {
    color: var(--p);

    font-size: 19px;
}


/* ==========================================================
   BERITA
   ========================================================== */

.heading-row {
    max-width: none;

    display: flex;

    justify-content: space-between;
    align-items: end;
}

.heading-row > a {
    color: var(--p);

    font-size: 13px;

    font-weight: 700;
}

.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.news-grid article {
    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: #fff;

    transition: .2s;
}

.news-img {
    height: 185px;

    padding: 18px;

    display: flex;

    align-items: end;
}

.news-img b {
    font-size: 9px;

    padding: 6px 9px;

    border-radius: 5px;

    background: rgba(38, 61, 81, .88);

    color: #fff;
}

.news-img.one {
    background:
        linear-gradient(
            135deg,
            #77b8a8,
            #dceee9
        );
}

.news-img.two {
    background:
        linear-gradient(
            135deg,
            #5d86a2,
            #d9e7ef
        );
}

.news-img.three {
    background:
        linear-gradient(
            135deg,
            #d7a75d,
            #f4e2bd
        );
}

.news-body {
    padding: 21px;
}

.news-body small {
    color: var(--p);

    font-size: 10px;

    font-weight: 800;
}

.news-body h3 {
    font-size: 17px;

    line-height: 1.35;

    color: var(--dark);

    margin: 7px 0;
}

.news-body p {
    font-size: 12px;

    color: var(--muted);

    margin: 0;
}


/* ==========================================================
   CTA
   ========================================================== */

.cta {
    padding: 65px 0;

    background: var(--dark);

    color: #fff;
}

.cta-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.cta-inner span {
    color: #75e0c7;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;
}

.cta-inner h2 {
    font-size: 31px;

    margin: 7px 0 4px;
}

.cta-inner p {
    font-size: 13px;

    color: rgba(255, 255, 255, .65);

    margin: 0;
}

.cta-inner > a {
    padding: 13px 20px;

    border-radius: 8px;

    background: #fff;

    color: var(--dark);

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================================
   KONTAK
   ========================================================== */

.contact-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.contact-grid > div {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: 13px;
}

.contact-grid > div > span {
    width: 48px;
    height: 48px;

    border-radius: 11px;

    background: #edf8f5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}

.contact-grid b {
    font-size: 14px;

    color: var(--dark);
}

.contact-grid p {
    font-size: 12px;

    color: var(--muted);

    margin: 2px 0;
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    background: #21384b;

    color: #fff;
}

.footer-grid {
    padding: 52px 0;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 50px;
}


/*
   Logo footer mengikuti ukuran logo header.
*/

.footer-brand .brand-logo {
    width: 52px !important;
    height: 52px !important;

    min-width: 52px !important;
    min-height: 52px !important;
}

.footer-brand .brand-logo img {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    max-width: 48px !important;
    max-height: 48px !important;

    object-fit: contain !important;
}


.footer-brand .brand-text strong {
    color: #fff;
}

.footer-brand .brand-text span {
    color: rgba(255, 255, 255, .55);
}

.footer-grid > div > p {
    max-width: 350px;

    color: rgba(255, 255, 255, .6);

    font-size: 12px;
}

.footer-grid > div > h3 {
    font-size: 14px;

    margin: 0 0 10px;
}

.footer-grid > div > a:not(.brand) {
    display: block;

    color: rgba(255, 255, 255, .62);

    font-size: 12px;

    margin: 7px 0;
}

.footer-grid > div > a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);

    padding: 15px 0;

    color: rgba(255, 255, 255, .45);

    font-size: 10px;
}


/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .main-nav {
        gap: 0;
    }

    .nav-link {
        padding: 8px;
    }

    .hero-grid {
        gap: 40px;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 800px) {

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;

        top: 79px;
        left: 0;
        right: 0;

        padding: 12px 20px 20px;

        background: #fff;

        border-bottom: 1px solid var(--border);

        box-shadow: 0 10px 20px rgba(35, 59, 78, .08);

        display: none;

        flex-direction: column;

        align-items: stretch;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        text-align: center;

        padding: 11px;
    }

    .nav-login {
        text-align: center;

        margin: 5px 0 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        padding: 65px 0 80px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-grid > div:nth-child(2) {
        border-right: 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .service-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        align-items: flex-start;

        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

}


/* ==========================================================
   RESPONSIVE - HP KECIL
   ========================================================== */

@media (max-width: 560px) {

    .container {
        width: calc(100% - 30px);
    }

    .brand-text strong {
        font-size: 12px;
    }

    .hero-text h1 {
        font-size: 37px;
    }

    .hero-actions,
    .cta-inner {
        align-items: stretch;

        flex-direction: column;
    }

    .btn,
    .cta-inner > a {
        width: 100%;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid > div {
        border-right: 0;

        border-bottom: 1px solid var(--border);
    }

    .quick-grid > div:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .heading-row {
        align-items: flex-start;

        flex-direction: column;
    }

    .school-visual {
        min-height: 300px;
    }

    .building {
        width: 82%;

        height: 165px;

        margin-bottom: 52px;
    }

    .building-body {
        height: 121px;

        padding: 15px;

        gap: 8px;
    }

    .door {
        width: 40px;
        height: 54px;

        left: calc(50% - 20px);
    }

    .ground {
        height: 52px;
    }

    .visual-title {
        bottom: 11px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

}