/* -------- CSS Variables & Reset -------- */
:root {
  --deep-teal: #0b3d3a;
  --forest: #146356;
  --leaf: #2e8b6e;
  --sky-deep: #0f4c75;
  --cream: #f4f7f2;
  --paper: #ffffff;
  --ink: #0d221f;
  --ink-soft: #3d554f;
  --gold: #e0a72e;
  --line: rgba(13, 34, 31, 0.12);
  --shadow: 0 15px 35px -10px rgba(11, 61, 58, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
  font-family: "Fraunces", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Header & Nav -------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text .brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-teal);
  line-height: 1.2;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0.1em;
}

nav.links {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 600;
}

nav.links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

nav.links a:hover {
  color: var(--forest);
}

nav.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

nav.links a:hover::after {
  width: 100%;
}

.btn-daftar {
  display: inline-block;
  background-color: var(--forest);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  transition:
    background 0.3s ease,
    transform 0.2s;
}

.btn-daftar:hover {
  background-color: var(--deep-teal);
  transform: translateY(-2px);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--deep-teal);
  border-radius: 3px;
  transition: 0.3s;
}

/* -------- Hero Section -------- */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(
      1000px 500px at 85% -10%,
      rgba(28, 111, 168, 0.12),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at -10% 110%,
      rgba(46, 139, 110, 0.15),
      transparent 60%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--deep-teal);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--forest);
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border-radius: 20px;
}

/* -------- Sections Shared -------- */
section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 8px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--deep-teal);
}

/* -------- Tentang Kami -------- */
.about {
  background: var(--paper);
}

.about-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.about-card p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: justify;
}

/* -------- Jenjang Pendidikan -------- */
.jenjang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.jenjang-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.jenjang-card:hover {
  transform: translateY(-5px);
}

.jenjang-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(46, 139, 110, 0.12);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.jenjang-card h3 {
  font-size: 1.35rem;
  color: var(--deep-teal);
  margin-bottom: 12px;
}

.jenjang-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  text-align: justify;
}

.jenjang-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* -------- Kegiatan & Fasilitas -------- */
.fac {
  background: var(--paper);
}

.fac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.fac-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.fac-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.fac-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--forest);
  color: #fff;
}

.fac-card h4 {
  font-size: 1.1rem;
  color: var(--deep-teal);
  margin-bottom: 8px;
}

.fac-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* -------- Profil Lulusan -------- */
.table-container {
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead th {
  background-color: var(--forest);
  color: #fff;
  padding: 16px 20px;
  font-size: 0.95rem;
}

tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}

tbody tr:nth-child(even) {
  background-color: var(--cream);
}

tbody tr:hover {
  background-color: rgba(46, 139, 110, 0.08);
}

td.nomor {
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-note {
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: right;
  background: var(--cream);
}

/* -------- CTA & Kontak -------- */
.cta {
  background: var(--forest);
  border-radius: 24px;
  padding: 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.cta p {
  color: #dcefe7;
  max-width: 500px;
}

.cta .btn-cta {
  background: #fff;
  color: var(--forest);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.cta .btn-cta:hover {
  background: var(--gold-light);
}

/* -------- Footer -------- */
footer {
  background: var(--deep-teal);
  color: #cfe9dd;
  padding: 60px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-brand h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

footer h5 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer a {
  color: #cfe9dd;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--gold);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  opacity: 0.8;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------- Responsif Mobile -------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--line);
  }

  nav.links.active {
    display: flex;
  }

  .burger-menu {
    display: flex;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}
