/*
Theme Name: SMK Madya School
Theme URI: https://example.com/smk-madya-school
Author: ChatGPT
Description: Tema WordPress custom untuk website profil sekolah, PPDB, jurusan, berita, galeri, dan kontak.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smk-madya
*/

:root {
  --primary: #0f5f9c;
  --primary-dark: #083d65;
  --accent: #f5b400;
  --text: #172033;
  --muted: #5d6778;
  --soft: #f3f7fb;
  --white: #ffffff;
  --border: #dfe7f1;
  --shadow: 0 16px 40px rgba(15, 95, 156, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.92);
  font-size: 14px;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--primary-dark); }
.logo-mark {
  width: 48px; height: 48px; border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), #1d93d1);
  color: white; display: grid; place-items: center; font-weight: 900;
  box-shadow: var(--shadow);
}
.brand small { display: block; font-weight: 600; color: var(--muted); margin-top: -3px; }
.main-nav ul { list-style: none; display: flex; gap: 20px; align-items: center; margin: 0; padding: 0; }
.main-nav a { font-weight: 700; color: var(--text); }
.main-nav a:hover { color: var(--primary); }
.menu-toggle { display: none; border: 0; background: var(--primary); color: white; padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #221900; padding: 13px 19px;
  border-radius: 999px; font-weight: 800; border: 0; cursor: pointer;
  box-shadow: 0 10px 24px rgba(245,180,0,.22);
}
.btn.secondary { background: white; color: var(--primary-dark); border: 1px solid var(--border); box-shadow: none; }
.hero {
  background:
    radial-gradient(circle at top right, rgba(245,180,0,.22), transparent 32%),
    linear-gradient(135deg, #eaf6ff 0%, #ffffff 62%);
  padding: 74px 0 54px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.badge { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: rgba(15,95,156,.1); color: var(--primary-dark); font-weight: 800; font-size: 14px; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 18px 0; letter-spacing: -1.6px; }
.hero p { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: white; border-radius: 34px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.hero-photo {
  aspect-ratio: 4/3; border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #58c4ff);
  display: grid; place-items: center; color: white; text-align: center; padding: 28px;
}
.hero-photo strong { font-size: 38px; line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: var(--soft); border-radius: 18px; padding: 16px; text-align: center; }
.stat strong { display: block; font-size: 24px; color: var(--primary-dark); }
.section { padding: 70px 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 740px; margin-bottom: 34px; }
.eyebrow { color: var(--primary); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.14; margin: 8px 0 12px; letter-spacing: -0.8px; }
.lead { color: var(--muted); font-size: 17px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 8px 24px rgba(23,32,51,.05);
}
.card .icon { width: 52px; height: 52px; border-radius: 16px; background: rgba(15,95,156,.1); color: var(--primary); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card p { color: var(--muted); margin: 0; }
.program { position: relative; overflow: hidden; }
.program:after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(245,180,0,.18); right: -45px; top: -45px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { overflow: hidden; padding: 0; }
.news-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #0f5f9c, #55b9ea); display: grid; place-items: center; color: white; font-weight: 900; }
.news-content { padding: 20px; }
.news-content time { font-size: 13px; color: var(--muted); font-weight: 700; }
.contact-box {
  background: var(--primary-dark); color: white; border-radius: 30px; padding: 34px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
.contact-box p { color: rgba(255,255,255,.78); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { background: rgba(255,255,255,.1); padding: 14px 16px; border-radius: 15px; }
.site-footer { background: #071f35; color: rgba(255,255,255,.86); padding: 42px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.footer-grid h3, .footer-grid h4 { color: white; margin-top: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; color: rgba(255,255,255,.58); font-size: 14px; }
.page-title { background: var(--soft); padding: 56px 0; }
.content-area { padding: 50px 0; }
.post-list { display: grid; gap: 18px; }
.post-list article { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.wp-block-image img { border-radius: 18px; }
.alignwide { max-width: 1120px; margin-inline: auto; }
.alignfull { max-width: none; }
.screen-reader-text { position: absolute; left: -9999px; }

@media (max-width: 860px) {
  .hero-grid, .grid-2, .contact-box, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .news-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; background: white; border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
}
