/* ========================================================================
   JWILS DIGITAL INSTITUTE — Design Tokens & Base Styles
   Palette: Deep Navy (primary) / Burgundy (secondary, program-2 accent)
            / Gold (accent, program-1 accent) / Off-white / Charcoal
   Type: Playfair Display (headings) + Manrope (body/UI)
   ======================================================================== */

:root {
  /* Core palette */
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --navy-mid: #12294a;
  --burgundy: #6e1423;
  --burgundy-deep: #4a0d18;
  --burgundy-soft: #a83e4c;
  --gold: #c6a15b;
  --gold-bright: #e0c07f;
  --gold-deep: #9c7c3f;
  --offwhite: #f8f4ec;
  --paper: #fbf9f4;
  --charcoal: #262420;
  --ink: #1c1b19;
  --line: rgba(11, 31, 58, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  /* Track colors (used to color-code the two programs everywhere) */
  --track-marketing: var(--gold-deep);
  --track-creative: var(--burgundy);

  /* Type */
  --font-display: 'Times New Roman', Times, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

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

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

/* ---------- Typography ---------- */

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--charcoal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.eyebrow.on-dark { color: var(--gold-bright); }
.eyebrow.on-dark::before { background: var(--gold-bright); }

.lede {
  font-size: 1.15rem;
  color: var(--charcoal);
  max-width: 640px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.main-nav .nav-cta-desktop {
  padding: 11px 23px;
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
}
.main-nav .nav-cta-desktop::after { display: none; }
.main-nav .nav-cta-desktop:hover { color: var(--navy-deep); box-shadow: 0 8px 18px rgba(0,0,0,0.24); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transform: translateY(0);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease), transform 0.4s var(--ease);
}

.site-header.nav-hidden { transform: translateY(-108%); }

.site-header.is-solid,
.site-header.is-solid-static {
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(7, 21, 39, 0.18);
  padding: 12px 0;
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold-bright); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.88);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer;
}

.nav-cta-mobile { display: none; }

@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .main-nav.nav-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 20px 24px 26px;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--gold-bright); }
}

/* Page hero band for interior pages (non-transparent header context) */
.page-hero {
  background: var(--navy);
  background-image: radial-gradient(circle at 15% 20%, rgba(198,161,91,0.14), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(110,20,35,0.35), transparent 55%);
  color: #fff;
  padding: 168px 0 76px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1.5px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lede { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 auto; }
.page-hero .eyebrow { justify-content: center; }

.breadcrumb-strip {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 10px 0;
}
.breadcrumb-strip a { color: rgba(255,255,255,0.55); }
.breadcrumb-strip a:hover { color: var(--gold-bright); }
.breadcrumb-strip span.current { color: var(--gold-bright); }

/* ---------- Info bar ---------- */

.info-bar {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.info-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.info-bar .info-item {
  flex: 1 1 180px;
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.info-bar .info-item:last-child { border-right: none; }
.info-bar .info-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.05rem;
  margin-bottom: 3px;
}
.info-bar .info-item span { color: rgba(255,255,255,0.72); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.78); }
.bg-offwhite { background: var(--offwhite); }
.bg-paper { background: var(--paper); }
.bg-burgundy { background: var(--burgundy); color: #fff; }
.bg-burgundy h2, .bg-burgundy h3 { color: #fff; }
.bg-burgundy p { color: rgba(255,255,255,0.82); }

.divider-gold {
  width: 64px; height: 3px;
  background: var(--gold);
  margin: 0 auto 22px;
  border-radius: 2px;
}
.section-head.left .divider-gold { margin-left: 0; }

/* ---------- Cards ---------- */

.card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(11,31,58,0.12); }

.icon-chip {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(198,161,91,0.14);
  color: var(--gold-deep);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Program track styling ---------- */

.track-card {
  border-radius: 22px;
  padding: 44px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.track-card.track-marketing { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.track-card.track-creative { background: linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-deep) 100%); }
.track-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 0%, rgba(255,255,255,0.08), transparent 55%);
  z-index: -1;
}
.track-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.track-marketing .track-tag { background: rgba(198,161,91,0.22); color: var(--gold-bright); }
.track-creative .track-tag { background: rgba(255,255,255,0.16); color: #fff; }
.track-card h3 { color: #fff; font-size: 1.6rem; }
.track-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  margin: 10px 0 4px;
}
.track-creative .track-price { color: #f2d9dd; }
.track-meta { font-size: 0.78rem; color: rgba(255,255,255,0.65); letter-spacing: 0.03em; margin-bottom: 22px; }
.track-list { list-style: none; padding: 0; margin: 0 0 26px; }
.track-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.track-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 9px;
  color: var(--gold-bright);
  font-weight: 700;
}
.track-creative .track-list li::before { color: #f2d9dd; }
.track-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.track-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.track-badge.marketing { background: rgba(156,124,63,0.14); color: var(--gold-deep); }
.track-badge.creative { background: rgba(110,20,35,0.1); color: var(--burgundy); }
.track-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Steps ---------- */

.step-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step-row:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-deep);
  width: 54px;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 700;
}
.faq-question .icon { color: var(--gold-deep); font-size: 1.1rem; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer p { padding: 0 4px 22px; color: var(--charcoal); max-width: 680px; }

/* ---------- Forms ---------- */

.form-panel {
  background: #fff;
  border-radius: 22px;
  padding: 44px;
  box-shadow: 0 30px 60px rgba(7,21,39,0.14);
}
.field-group { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: #fff;
}
textarea { resize: vertical; min-height: 96px; }

fieldset { border: none; padding: 0; margin: 0 0 20px; }
legend { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; padding: 0; }
.radio-row, .checkbox-row { display: flex; flex-wrap: wrap; gap: 14px; }
.radio-option, .checkbox-option {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  cursor: pointer;
}
.radio-option input, .checkbox-option input { accent-color: var(--gold-deep); width: 16px; height: 16px; }

.form-section-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 34px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-step[hidden] { display: none; }
.form-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-step-nav .form-step-count {
  color: #8a8578;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: rgba(11,31,58,0.08); transform: translateY(-2px); }

.declaration {
  background: var(--offwhite);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--charcoal);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 26px 0;
}
.declaration input { margin-top: 4px; accent-color: var(--gold-deep); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 70px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 800; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.1rem; }
.footer-tagline { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold-bright); text-transform: uppercase; margin: -12px 0 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: 0.8rem;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.legal-note { font-size: 0.74rem; color: rgba(255,255,255,0.4); max-width: 780px; margin-top: 18px; line-height: 1.6; }
.footer-credit { margin-top: 12px; font-size: 0.82rem; }
.footer-credit a { color: var(--gold-bright); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: #fff; }

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ========================================================================
   MEDIA SYSTEM — real photos + styled placeholders, varied shapes/sizes
   ======================================================================== */

.media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 30px 60px rgba(11,31,58,0.16);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flyer-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}
.flyer { flex: 1 1 320px; max-width: 380px; }
.flyer-one { flex-basis: 480px; max-width: 480px; }
.flyer img { width: 100%; height: auto; display: block; }

.media.ratio-wide { aspect-ratio: 4/3; }
.media.ratio-square { aspect-ratio: 1/1; }
.media.ratio-portrait { aspect-ratio: 3/4; }
.media.ratio-tall { aspect-ratio: 4/5; }
.media.ratio-panorama { aspect-ratio: 21/9; }
.media.ratio-poster { aspect-ratio: 3/4.2; }
.media.shape-circle { border-radius: 50%; aspect-ratio: 1/1; }
.media.shape-blob { border-radius: 42% 58% 53% 47% / 55% 44% 56% 45%; }
.media.no-shadow { box-shadow: none; }

/* Styled placeholder — a designed "drop photo here" block, not a broken image */
.media-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.media-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.16) 1.5px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
}
.media-ph i { font-size: 1.6rem; color: rgba(255,255,255,0.85); position: relative; }
.media-ph span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  max-width: 200px;
  position: relative;
}
.media-ph.tone-navy { background: linear-gradient(150deg, var(--navy-mid), var(--navy-deep)); }
.media-ph.tone-burgundy { background: linear-gradient(150deg, var(--burgundy-soft), var(--burgundy-deep)); }
.media-ph.tone-gold { background: linear-gradient(150deg, var(--gold), var(--gold-deep)); }
.media-ph.tone-gold i, .media-ph.tone-gold span { color: rgba(11,31,58,0.72); }
.media-ph.tone-charcoal { background: linear-gradient(150deg, #3a372f, var(--charcoal)); }

/* Offset photo composition: a primary image with a smaller accent tucked over a corner */
.photo-stack {
  position: relative;
  padding-bottom: 18%;
  padding-right: 16%;
}
.photo-stack .media.stack-primary { position: relative; z-index: 1; }
.photo-stack .media.stack-accent {
  position: absolute;
  width: 48%;
  right: 0; bottom: 0;
  z-index: 2;
  border: 6px solid var(--paper);
  box-shadow: 0 26px 46px rgba(11,31,58,0.28);
}
.photo-stack.flip { padding-right: 0; padding-left: 16%; }
.photo-stack.flip .media.stack-accent { right: auto; left: 0; }
.photo-stack.accent-top .media.stack-accent { bottom: auto; top: 0; }

/* Floating stat / info badge that overlaps imagery */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 24px 48px rgba(11,31,58,0.22);
  z-index: 3;
}
.floating-badge .fb-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(198,161,91,0.15);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.floating-badge .fb-num { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); line-height: 1; margin-bottom: 3px; }
.floating-badge .fb-label { font-size: 0.72rem; color: var(--charcoal); letter-spacing: 0.02em; white-space: nowrap; }

/* ---------- Decorative background texture ---------- */

.pattern-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1.5px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
}
.ring-decor {
  position: absolute;
  border: 1.5px solid rgba(198,161,91,0.35);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Stat band ---------- */

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-band .stat {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-band .stat:last-child { border-right: none; }
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .stat-label { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
@media (max-width: 800px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat-band .stat:nth-child(2) { border-right: none; }
}

/* ---------- Section shape dividers (non-destructive, decorative) ---------- */

.shape-divider { position: relative; height: 0; line-height: 0; overflow: hidden; }
.shape-divider svg { position: relative; display: block; width: 100%; height: 70px; }
.shape-divider.small svg { height: 40px; }

/* ---------- Gallery / masonry (CSS columns = natural varied heights) ---------- */

.gallery-grid {
  columns: 3 240px;
  column-gap: 20px;
}
.gallery-grid > * {
  break-inside: avoid;
  margin-bottom: 20px;
  width: 100%;
}
@media (max-width: 800px) {
  .gallery-grid { columns: 2 180px; }
}

/* ---------- Testimonial / avatar placeholder ---------- */

.avatar-ph {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Tilt-on-hover for cards with imagery ---------- */

.tilt-card { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tilt-card:hover { transform: translateY(-8px) rotate(-0.4deg); }

/* ========================================================================
   MODAL — used for Apply and Contact forms (WhatsApp submission)
   ======================================================================== */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7,21,39,0.72);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 40px;
  overflow-y: auto;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
  background: var(--paper);
  border-radius: 22px;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 130px);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.35);
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  padding: 30px 44px 0;
  flex: 0 0 auto;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.modal-body { padding: 10px 44px 40px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 10px 6px;
}
.modal-success.is-active { display: block; }
.modal-success .icon-chip { margin: 0 auto 18px; width: 62px; height: 62px; font-size: 1.6rem; }

.payment-card {
  background: var(--offwhite);
  border: 1.5px dashed var(--gold-deep);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
}
.payment-card .pc-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(198,161,91,0.18); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.payment-card .pc-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.payment-card .pc-name { font-size: 0.82rem; color: var(--charcoal); }

@media (max-width: 640px) {
  .modal-overlay { padding: 74px 12px 24px; }
  .modal-box { max-height: calc(100vh - 98px); }
  .modal-head { padding: 24px 24px 16px; }
  .modal-body { padding: 6px 24px 30px; }
}

body.modal-locked { overflow: hidden; }



.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.badge-list span {
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  background: var(--offwhite); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}

@media (max-width: 700px) {
  section { padding: 64px 0; }
  .page-hero { padding: 140px 0 56px; }
  .form-panel { padding: 28px 22px; }
}

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 3px;
}

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