:root {
  --forest: #083613;
  --light-green: #80e09a;
  --jungle: #427a58;
  --hunter: #346945;
  --fern: #42804f;
  --ink: #102418;
  --muted: #617067;
  --line: #dce8df;
  --cream: #fffaf3;
  --mint: #f1f8f3;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(8, 54, 19, 0.08);
  --shadow-md: 0 18px 50px rgba(8, 54, 19, 0.13);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --container: 1180px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open { overflow: hidden; }

img { display: block; width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--mint); }
.section--cream { background: var(--cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(66, 122, 88, 0.2);
  border-radius: 999px;
  color: var(--hunter);
  background: rgba(128, 224, 154, 0.13);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fern);
  box-shadow: 0 0 0 5px rgba(128, 224, 154, 0.2);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 14px 0 14px;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(128, 224, 154, 0.55); outline-offset: 3px; }

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), var(--fern));
  box-shadow: 0 10px 24px rgba(8, 54, 19, 0.2);
}

.btn--primary:hover { box-shadow: 0 14px 30px rgba(8, 54, 19, 0.28); }

.btn--outline {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(8, 54, 19, 0.32);
}

.btn--outline:hover { background: var(--mint); border-color: var(--fern); }
.btn--sm { min-height: 42px; padding: 10px 15px; font-size: 0.88rem; border-radius: 10px; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(8, 54, 19, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(8, 54, 19, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-weight: 900;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-mark { width: 44px; height: 44px; }
.brand-text { font-size: 1.08rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: #31473a;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--fern);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--forest); }

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 4px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  color: var(--forest);
  background: var(--mint);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: 780px;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 76px) 0 72px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 54, 19, 0.96) 0%,
      rgba(8, 54, 19, 0.88) 34%,
      rgba(8, 54, 19, 0.54) 50%,
      rgba(8, 54, 19, 0.14) 70%,
      rgba(8, 54, 19, 0.04) 100%
    ),
    url("../images/kbihu-assunnah-hero.png") center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(circle, rgba(128, 224, 154, 0.32) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
}

.hero .eyebrow {
  color: #d8f7df;
  border-color: rgba(128, 224, 154, 0.35);
  background: rgba(128, 224, 154, 0.12);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  color: var(--white);
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.hero-tagline {
  max-width: 650px;
  margin: 0 0 18px;
  color: var(--light-green);
  font-size: clamp(1.42rem, 2.4vw, 2.12rem);
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.hero-copy > p:not(.hero-tagline) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero .btn--primary {
  color: var(--forest);
  background: var(--light-green);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.hero .btn--primary:hover {
  background: #9ae9ae;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.hero .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 54, 19, 0.18);
  backdrop-filter: blur(8px);
}

.hero .btn--outline:hover {
  color: var(--forest);
  border-color: var(--light-green);
  background: var(--light-green);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 750;
}

.scroll-cue span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(8, 54, 19, 0.22);
  animation: bob 2.4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

@keyframes bob { 50% { transform: translateY(5px); } }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  align-items: center;
}

.about-logo {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(128, 224, 154, 0.22), transparent 55%),
    var(--cream);
  border: 1px solid rgba(8, 54, 19, 0.08);
  overflow: hidden;
}

.about-logo::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(66, 122, 88, 0.14);
  transform: rotate(45deg);
  border-radius: 70px;
}

.about-logo-inner {
  position: relative;
  z-index: 1;
  width: min(78%, 285px);
  text-align: center;
  color: var(--forest);
}

.about-logo-inner svg { width: 100%; max-height: 255px; }
.about-logo-inner strong { display: block; margin-top: 6px; font-family: Georgia, serif; font-size: 1.75rem; letter-spacing: 0.08em; }

.about-content h2 {
  margin: 12px 0 16px;
  color: var(--forest);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.about-content > p { margin: 0; color: var(--muted); font-size: 1.04rem; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.value-card {
  padding: 22px;
  border: 1px solid rgba(8, 54, 19, 0.09);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(8, 54, 19, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }

.value-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  color: var(--fern);
  border-radius: 14px;
  background: rgba(128, 224, 154, 0.2);
}

.value-icon .icon { width: 25px; height: 25px; }
.value-card h3 { margin: 0 0 7px; color: var(--forest); font-size: 1rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.89rem; line-height: 1.55; }

/* Accreditation */
.accreditation-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(128, 224, 154, 0.16), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(128, 224, 154, 0.1), transparent 30%),
    var(--forest);
  overflow: hidden;
}

.accreditation-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(128, 224, 154, 0.6) 1px, transparent 1px);
  background-size: 26px 26px;
}

.accreditation-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

.certificate-frame {
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.certificate-frame a {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: var(--cream);
}

.certificate-frame img {
  aspect-ratio: 1220 / 867;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.certificate-frame a:hover img { transform: scale(1.015); }

.certificate-frame figcaption {
  padding: 12px 6px 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  text-align: center;
}

.accreditation-copy .eyebrow {
  color: #d8f7df;
  border-color: rgba(128, 224, 154, 0.35);
  background: rgba(128, 224, 154, 0.12);
}

.accreditation-copy h2 {
  margin: 14px 0 18px;
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.accreditation-copy > p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.accreditation-copy .btn { margin-top: 14px; }

.accreditation-section .btn--primary {
  color: var(--forest);
  background: var(--light-green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.accreditation-section .btn--primary:hover { background: #9ae9ae; }

/* Programs */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.program-grid.program-grid--single {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.program-grid--single .program-card:last-child {
  grid-column: auto;
  width: 100%;
}

.program-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(8, 54, 19, 0.09);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.program-card--manasik {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.program-image { position: relative; height: 220px; overflow: hidden; }
.program-image img { height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.program-card:hover .program-image img { transform: scale(1.045); }

.program-card--manasik .program-image {
  height: auto;
  min-height: 620px;
  background: var(--forest);
}

.program-card--manasik .program-image img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.program-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(52, 105, 69, 0.94);
  box-shadow: 0 5px 12px rgba(8, 54, 19, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.program-body { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.program-body h3 { margin: 0 0 5px; color: var(--forest); font-size: 1.35rem; line-height: 1.25; }
.program-body > p { min-height: 52px; margin: 0; color: var(--muted); font-size: 0.9rem; }

.program-card--manasik .program-body { padding: 38px; }
.program-card--manasik .program-body h3 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.program-card--manasik .program-body > p { min-height: 0; font-size: 1rem; }

.program-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item { display: flex; align-items: center; gap: 10px; color: #3d5546; font-size: 0.82rem; }
.meta-item .icon { color: var(--fern); }
.meta-item strong { display: block; color: var(--forest); font-size: 0.86rem; }
.meta-item--wide { grid-column: 1 / -1; align-items: flex-start; }

.program-contact {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: var(--radius-sm);
  color: #34513f;
  background: var(--mint);
}

.program-contact > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.program-contact strong { display: block; color: var(--forest); line-height: 1.55; }

.price-label { color: var(--muted); font-size: 0.79rem; }
.price { margin: 2px 0 18px; color: var(--fern); font-size: 1.72rem; font-weight: 900; line-height: 1.1; }

.program-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }

#programModal .modal-media { height: min(54vh, 520px); background: var(--forest); }
#programModal .modal-media img { object-fit: contain; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 170px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--mint);
  cursor: zoom-in;
  isolation: isolate;
}

.gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }

.gallery-item img { height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 54, 19, 0.72), transparent 55%);
  z-index: 0;
}

.gallery-caption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 15px;
  color: var(--white);
}

.gallery-caption strong { display: block; font-size: 1rem; }
.gallery-caption span { font-size: 0.78rem; opacity: 0.82; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.contact-copy h2 {
  margin: 14px 0 16px;
  color: var(--forest);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.contact-copy p { color: var(--muted); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.contact-line { display: flex; align-items: flex-start; gap: 13px; color: #34513f; }
.contact-line .value-icon { width: 42px; height: 42px; flex: 0 0 42px; margin: 0; border-radius: 12px; }
.contact-line small { display: block; color: var(--muted); }
.contact-line strong { color: var(--forest); }

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  color: var(--white);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--forest), var(--fern));
  box-shadow: var(--shadow-md);
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(128, 224, 154, 0.12);
}

.contact-card::before { width: 240px; height: 240px; right: -80px; top: -100px; }
.contact-card::after { width: 160px; height: 160px; left: -70px; bottom: -85px; }

.contact-card > * { position: relative; z-index: 1; }
.contact-card .wa-icon { width: 62px; height: 62px; padding: 14px; color: var(--forest); border-radius: 19px; background: var(--light-green); }
.contact-card h3 { margin: 22px 0 8px; font-size: 1.75rem; line-height: 1.15; }
.contact-card p { margin: 0 0 25px; color: rgba(255, 255, 255, 0.78); }
.contact-card .btn { width: 100%; color: var(--forest); background: var(--white); }

/* Footer */
.site-footer { color: rgba(255, 255, 255, 0.78); background: var(--forest); }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 72px;
  align-items: start;
  padding: 54px 0 30px;
}

.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 460px; margin: 16px 0 0; font-size: 0.9rem; }
.footer-nav { justify-self: end; }
.footer-title { margin: 4px 0 15px; color: var(--white); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: nowrap; gap: 28px; font-size: 0.88rem; white-space: nowrap; }
.footer-links a:hover { color: var(--light-green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, #1ea952, #128c3d);
  box-shadow: 0 12px 28px rgba(18, 140, 61, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-wa:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 34px rgba(18, 140, 61, 0.42); }
.floating-wa .icon { width: 29px; height: 29px; }

/* Modal / lightbox */
.modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 27, 11, 0.72);
  backdrop-filter: blur(8px);
}

.modal.open { display: flex; }

.modal-dialog {
  width: min(100%, 620px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  animation: modal-in 0.24s ease both;
}

@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

.modal-media { height: 270px; overflow: hidden; background: var(--mint); }
.modal-media img { height: 100%; object-fit: cover; }
.modal-content { padding: 28px; }
.modal-content h3 { margin: 0 0 10px; color: var(--forest); font-size: 1.75rem; }
.modal-content p { margin: 0 0 22px; color: var(--muted); }
.modal-close {
  position: fixed;
  z-index: 2;
  top: 24px;
  right: 24px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--forest);
  background: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.lightbox .modal-dialog { width: min(96vw, 980px); background: transparent; box-shadow: none; overflow: visible; }
.lightbox .modal-media { height: min(75vh, 720px); border-radius: var(--radius); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35); }

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .mobile-menu {
    position: fixed;
    z-index: 990;
    top: var(--header-h);
    left: 20px;
    right: 20px;
    padding: 18px;
    border: 1px solid rgba(8, 54, 19, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: 0.23s ease;
  }

  .mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu nav { display: grid; }
  .mobile-menu a { padding: 13px 10px; color: var(--forest); font-weight: 750; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: 0; }
  .mobile-menu .btn { margin-top: 14px; width: 100%; }

  .hero {
    min-height: 700px;
    padding-top: calc(var(--header-h) + 54px);
    background-position: 60% center;
  }
  .hero-copy { text-align: left; }
  .hero-copy > p, .hero-tagline { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .scroll-cue { justify-content: flex-start; }

  .about-grid, .accreditation-grid, .contact-wrap { grid-template-columns: 1fr; }
  .about-logo { min-height: 350px; }
  .accreditation-grid { gap: 40px; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-card:last-child { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
  .program-card--manasik { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); }
  .program-card--manasik .program-body { padding: 30px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
}

@media (min-width: 1061px) { .mobile-menu { display: none !important; } }

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 72px 0; }
  .brand-text { font-size: 0.98rem; }
  .brand-mark { width: 40px; height: 40px; }

  .hero {
    min-height: 690px;
    padding-bottom: 56px;
    background:
      linear-gradient(
        90deg,
        rgba(8, 54, 19, 0.96) 0%,
        rgba(8, 54, 19, 0.88) 52%,
        rgba(8, 54, 19, 0.42) 100%
      ),
      url("../images/kbihu-assunnah-hero.png") 82% center / cover no-repeat;
  }
  .hero-copy h1 { font-size: clamp(2rem, 10vw, 3.25rem); }
  .hero-tagline { font-size: clamp(1.22rem, 6.2vw, 1.72rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { margin-top: 26px; }

  .about-grid { gap: 35px; }
  .about-logo { min-height: 300px; }
  .about-logo-inner { width: 62%; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; align-items: start; }
  .value-card .value-icon { grid-row: span 2; margin: 0; }

  .certificate-frame { padding: 8px; }
  .accreditation-grid { gap: 32px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card:last-child { grid-column: auto; width: 100%; }
  .program-card--manasik { grid-template-columns: 1fr; }
  .program-card--manasik .program-image { min-height: 0; aspect-ratio: 1019 / 1543; }
  .program-card--manasik .program-body { padding: 26px 22px; }
  .program-image { height: 205px; }
  .program-actions { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 155px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }

  .contact-card { padding: 28px 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-nav { justify-self: start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .floating-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (max-width: 450px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { grid-column: 1; min-height: 210px; }
  .program-meta { grid-template-columns: 1fr; }
  .footer-links { gap: 10px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
