/* SMK Darus Sa'adah - Redesigned */
:root {
  --forest-950: #02201c;
  --forest-900: #064e4a;
  --forest-800: #0b615a;
  --forest-700: #0f766e;
  --teal-600: #14a398;
  --gold: #f2c230;
  --gold-light: #f8d96b;
  --gold-strong: #b98a00;
  --cream: #fffbef;
  --sand: #fff4cc;
  --pale-teal: #e6f5f1;
  --text-primary: #102b28;
  --text-secondary: #3f5f5b;
  --muted: #5b6e6a;
  --line: rgba(15, 118, 110, 0.14);
  --white: #ffffff;
  --shadow: 0 40px 80px -50px rgba(2, 32, 28, 0.8);
  --shadow-soft: 0 30px 60px -40px rgba(15, 118, 110, 0.4);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--forest-950);
  border-radius: 999px;
  z-index: 999;
}

/* Topbar */
.topbar {
  background: linear-gradient(90deg, var(--forest-950) 0%, var(--forest-900) 100%);
  color: var(--cream);
  font-size: 0.88rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.topbar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 251, 239, 0.9);
}

.topbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 251, 239, 0.2);
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 251, 239, 0.8);
}

.topbar-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(242, 194, 48, 0.12);
}

.topbar-socials {
  display: flex;
  gap: 10px;
}

.topbar-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 251, 239, 0.18);
  color: rgba(255, 251, 239, 0.9);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 251, 239, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark svg {
  width: 54px;
  height: 54px;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav-list {
  display: flex !important;
  align-items: center;
  gap: 28px;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link.is-active {
  color: var(--forest-800);
  font-weight: 600;
}

.header-actions {
  display: flex;
}

.menu-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn .icon {
  width: 1rem;
  height: 1rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 0.98rem;
}

.btn-primary {
  background: linear-gradient(90deg, var(--forest-900) 0%, var(--forest-800) 100%);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.btn-gold {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--forest-950);
  box-shadow: 0 30px 60px -40px rgba(185, 138, 0, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 251, 239, 0.4);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 680px at 88% 6%, rgba(20, 163, 152, 0.48), transparent 64%),
    radial-gradient(900px 560px at 12% 96%, rgba(242, 194, 48, 0.22), transparent 62%),
    linear-gradient(150deg, rgba(2, 28, 26, 1) 0%, rgba(6, 78, 74, 0.98) 46%, rgba(13, 111, 104, 0.98) 100%);
  color: var(--cream);
  padding: clamp(80px, 12vw, 140px) 0 clamp(110px, 16vw, 160px);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23F2C230' stroke-width='0.7'%3E%3Cpath d='M60 0 120 60 60 120 0 60Z'/%3E%3Cpath d='M30 30h60v60H30z'/%3E%3Ccircle cx='60' cy='60' r='24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(48px, 8vw, 88px);
}

.hero-copy {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 18px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 194, 48, 0.4);
  background: rgba(242, 194, 48, 0.12);
  color: var(--gold-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--gold-light);
  font-style: italic;
}

.hero-lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  color: rgba(255, 251, 239, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 251, 239, 0.14);
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 251, 239, 0.88);
}

.hero-highlights .icon {
  width: 1rem;
  height: 1rem;
  padding: 3px;
  border-radius: 50%;
  background: rgba(242, 194, 48, 0.18);
  color: var(--gold-light);
  box-sizing: content-box;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
}

.photo-frame {
  position: relative;
  padding: 16px;
  border-radius: 30px;
  background: radial-gradient(130% 130% at 50% 0%, rgba(248, 217, 107, 0.3), transparent 64%),
    linear-gradient(165deg, rgba(242, 194, 48, 0.38), rgba(2, 28, 26, 0.6));
  box-shadow: 0 90px 140px -80px rgba(2, 18, 16, 0.98), 0 40px 70px -50px rgba(242, 194, 48, 0.28);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px dashed rgba(248, 217, 107, 0.4);
  pointer-events: none;
}

.photo-frame-border {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(242, 194, 48, 0.6);
  pointer-events: none;
}

.photo-frame-inner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 5.1;
  box-shadow: inset 0 0 0 1px rgba(255, 251, 239, 0.1);
}

.photo-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.photo-frame-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(2, 28, 26, 0.96) 0%, rgba(6, 78, 74, 0.88) 100%);
  color: var(--cream);
  font-size: 0.86rem;
  border: 1px solid rgba(242, 194, 48, 0.5);
  backdrop-filter: blur(8px);
}

.photo-frame-overlay .icon {
  color: var(--gold-light);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  background: radial-gradient(120% 120% at 50% 0%, #fffdf5, rgba(255, 247, 222, 0.98));
  color: var(--forest-950);
  box-shadow: 0 50px 80px -50px rgba(2, 18, 16, 0.95), 0 20px 40px -30px rgba(242, 194, 48, 0.4);
  border: 1px solid rgba(242, 194, 48, 0.42);
  animation: float-y 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-weight: 700;
}

.float-card small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  color: var(--forest-950);
}

.float-card--top {
  top: 12%;
  left: -14%;
}

.float-card--bottom {
  bottom: 14%;
  right: -16%;
  animation-delay: -3s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}

/* Stats */
.stats-wrap {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 26px;
  border-radius: calc(var(--radius-lg) + 6px);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pale-teal), rgba(230, 245, 241, 0.4));
  color: var(--forest-800);
}

.stat strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
}

/* Sections */
.section {
  padding: clamp(70px, 12vw, 120px) 0;
}

.section--sand {
  background: radial-gradient(1200px 600px at 50% 0%, rgba(255, 244, 204, 0.8), transparent 70%);
}

.section--teal {
  background: radial-gradient(1200px 600px at 50% 0%, rgba(230, 245, 241, 0.7), transparent 70%);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--forest-800);
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.section-title {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.05rem);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-inner {
    gap: clamp(36px, 6vw, 70px);
  }
  .float-card--top {
    left: -8%;
  }
  .float-card--bottom {
    right: -10%;
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    margin: 0 auto;
  }
  .hero-actions,
  .hero-highlights {
    justify-content: center;
  }
  .hero-visual {
    margin: 40px auto 0;
    justify-self: center;
  }
  .float-card--top {
    left: 0;
  }
  .float-card--bottom {
    right: 0;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .header-actions {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--forest-900);
  }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 95;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .primary-nav.is-open {
    transform: translateX(0);
  }
  .nav-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .nav-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .nav-foot {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
  }
}

@media (max-width: 720px) {
  .topbar-info {
    display: none;
  }
  .nav-list {
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .float-card {
    position: static;
    margin-top: 16px;
    justify-content: center;
  }
  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
}


/* Desktop fix */
@media (min-width: 1081px) {
  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px;
    flex-wrap: nowrap !important;
  }
  .brand {
    flex: 0 0 auto;
  }
  .primary-nav {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: static !important;
    transform: none !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
  }
  .nav-list {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .nav-list li {
    display: inline-flex !important;
    align-items: center !important;
  }
  .nav-head,
  .nav-foot {
    display: none !important;
  }
  .header-actions {
    display: flex !important;
    flex: 0 0 auto;
  }
  .menu-toggle {
    display: none !important;
  }
}
  .hero-inner {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: clamp(56px, 9vw, 96px);
  }
  .hero-visual {
    justify-self: end;
    width: min(100%, 540px);
  }
  .float-card--top {
    top: 10%;
    left: -14%;
  }
  .float-card--bottom {
    bottom: 12%;
    right: -16%;
  }
}


/* Navbar mobile/desktop fixes */
.nav-head,
.nav-foot {
  display: none !important;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 28, 26, 0.5);
  backdrop-filter: blur(4px);
  z-index: 85;
}

.nav-backdrop[hidden] {
  display: none;
}


.site-header.nav-open .primary-nav {
  transform: translateX(0);
}

body.is-locked {
  overflow: hidden;
}





header .primary-nav .nav-list {
  display: flex !important;
  flex-direction: row !important;
  gap: 28px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
header .primary-nav .nav-list li {
  display: inline-flex !important;
  align-items: center !important;
}
header .primary-nav {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
}


@media (min-width: 1024px) {
  .primary-nav {
    display: flex !important;
    position: static !important;
    transform: none !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 26px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .nav-head,
  .nav-foot {
    display: none !important;
  }
  .menu-toggle {
    display: none !important;
  }
}
