/*
Theme Name: TEFA
Theme URI: https://smksyarifhidayatullah.djarot.my.id
Author: SMK Syarif Hidayatullah
Author URI: https://smksyarifhidayatullah.djarot.my.id
Description: Tema resmi Teaching Factory (TEFA) SMK Syarif Hidayatullah. Desain modern, responsif, dan menampilkan profil teaching factory, program keahlian, serta informasi sekolah.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tefa
Tags: education, teaching-factory, responsive
*/

:root {
    --green-900: #0b3d2e;
    --green-800: #0d4a37;
    --green-700: #0e6e50;
    --green-600: #12875f;
    --green-500: #18a06f;
    --green-100: #e6f4ee;
    --amber-500: #f2a03d;
    --amber-600: #e08a1c;
    --dark: #10231c;
    --ink: #1f2d26;
    --muted: #5c6f66;
    --line: #e4ece7;
    --bg: #f6faf8;
    --white: #ffffff;
    --radius: 18px;
    --shadow: 0 18px 45px -20px rgba(11, 61, 46, 0.35);
    --shadow-sm: 0 6px 20px -10px rgba(11, 61, 46, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-500); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--dark);
    line-height: 1.25;
    margin: 0 0 .5em;
}

h2.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-tint { background: var(--bg); }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-600);
    background: var(--green-100);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.btn-amber { background: var(--amber-500); color: #fff; }
.btn-amber:hover { background: var(--amber-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 24px;
    max-width: 1240px;
    margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    display: grid; place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
}
.brand-name { font-weight: 800; color: var(--dark); font-size: 1.15rem; line-height: 1.1; }
.brand-tag { font-size: .72rem; color: var(--muted); font-weight: 600; }

.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
}
.main-nav a:hover, .main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a { background: var(--green-100); color: var(--green-700); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 74px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
        display: none;
        box-shadow: var(--shadow-sm);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { padding: 12px 14px; }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(24,160,111,.55), transparent 60%),
                linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    padding: 90px 0 100px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 .accent { color: var(--amber-500); }
.hero-sub { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.75); }

.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.hero-card .hc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-card .hc-ico {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--amber-500); color: #fff;
    display: grid; place-items: center; font-size: 1.3rem;
}
.hero-card .hc-title { color: #fff; font-weight: 800; margin: 0; }
.hero-card .hc-sub { color: rgba(255,255,255,.75); font-size: .8rem; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-list li {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
}
.hc-list .tick {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--green-500); display: grid; place-items: center;
    font-size: .7rem; flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; padding: 60px 0 70px; }
}

/* ============ FEATURE CARDS ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
    width: 54px; height: 54px; border-radius: 14px;
    background: var(--green-100); color: var(--green-700);
    display: grid; place-items: center; font-size: 1.5rem;
    margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ============ PROGRAMS GRID ============ */
.cards-4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-4 { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }

.program-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green-600);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.program-card .pc-ico {
    font-size: 2rem; margin-bottom: 14px; display: block;
}
.program-card h3 { font-size: 1.08rem; }
.program-card p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.program-card .tag {
    display: inline-block; font-size: .72rem; font-weight: 700;
    color: var(--green-700); background: var(--green-100);
    padding: 4px 10px; border-radius: 999px;
}

/* ============ SPLIT / INFO ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-visual { position: relative; }
.split-panel {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    border-radius: 22px;
    padding: 40px 34px;
    min-height: 320px;
    display: flex; flex-direction: column; justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.split-panel::after {
    content: "";
    position: absolute; right: -60px; bottom: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.split-panel .sp-num { font-size: 3rem; font-weight: 800; color: var(--amber-500); line-height: 1; margin-bottom: 8px; }
.split-panel h3 { color: #fff; margin-bottom: 8px; }
.split-panel p { color: rgba(255,255,255,.85); margin: 0; font-size: .95rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick {
    width: 26px; height: 26px; flex-shrink: 0;
    background: var(--green-100); color: var(--green-700);
    border-radius: 50%; display: grid; place-items: center; font-size: .75rem;
    margin-top: 2px;
}
.check-list b { color: var(--dark); }
.check-list p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 44px; }
.step-num {
    position: absolute; top: 0; left: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--amber-500); color: #fff;
    font-weight: 800; display: grid; place-items: center;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ============ VISION MISSION ============ */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-box {
    border-radius: var(--radius);
    padding: 34px 30px;
    border: 1px solid var(--line);
}
.vm-box.vision { background: var(--green-100); }
.vm-box.mission { background: #fff7ec; }
.vm-box h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vm-box.mission ul { margin: 0; display: grid; gap: 10px; }
.vm-box.mission li { color: var(--ink); font-size: .95rem; }

/* ============ NEWS ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16/9; background: var(--green-100); display: grid; place-items: center; color: var(--green-600); font-size: 2.4rem; }
.news-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-date { font-size: .78rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.news-body h3 { font-size: 1.05rem; margin: 0; }
.news-body h3 a { color: var(--dark); }
.news-body h3 a:hover { color: var(--green-700); }
.news-body p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.news-more { font-weight: 700; font-size: .85rem; color: var(--green-700); }

/* ============ CTA BAND ============ */
.cta-band {
    border-radius: 24px;
    background: linear-gradient(120deg, var(--green-900), var(--green-600));
    color: #fff;
    padding: 54px 48px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
    box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; right: -70px; top: -70px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ============ CONTACT ============ */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { text-align: center; padding: 30px 18px; }
.contact-card .card-icon { margin: 0 auto 16px; }
.contact-card h3 { font-size: 1rem; }
.contact-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(120deg, var(--green-900), var(--green-600));
    padding: 78px 0;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 24px 24px; opacity: .45;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0; font-size: 1.02rem; }
.crumbs { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 14px; font-weight: 600; }
.crumbs a { color: rgba(255,255,255,.9); }

/* ============ CONTENT ============ */
.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { border-radius: 14px; }

/* ============ POST LIST ============ */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.8); margin-top: 40px; }
.footer-top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px; padding: 64px 0 40px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-logo { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand .brand-tag { color: rgba(255,255,255,.65); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--amber-500); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.footer-contact .fi { flex-shrink: 0; color: var(--amber-500); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0;
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
}
.footer-bottom b { color: rgba(255,255,255,.9); }

/* ============ SIDEBAR / WP ============ */
.wp-caption { max-width: 100%; }
.aligncenter { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ SCROLL UP ============ */
.scroll-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--green-700); color: #fff; border: 0;
    font-size: 1.1rem; cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: all .25s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--amber-500); }
