/* ============================================================
   EXCELLENT KIDDICARE CENTRE & ACADEMY — STYLESHEET
   Concept: building blocks. Flat, chunky colour blocks taken from
   the logo's ABC blocks, big rounded photos, confident left-aligned
   type. No shadows, no gradients: colour does the work.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --ink:    #1B1E4B;
  --gray:   #5B5F80;
  --line:   #E8EBF6;
  --paper:  #FFFFFF;
  --mist:   #F6F8FE;

  --pink:   #E03274;
  --pink-t: #FFE8F0;
  --blue:   #2E7FE6;
  --blue-t: #E5F0FF;
  --yellow: #FFD45E;
  --yellow-t:#FFF6D6;
  --green:  #46A94A;
  --green-t:#E6F6DF;
  --orange: #F5963A;
  --orange-t:#FFECD6;
  --purple: #8465DA;
  --purple-t:#EEE9FB;

  /* aliases used by inline styles and scripts */
  --red:    var(--pink);
  --dark:   var(--ink);
  --off:    var(--mist);

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Figtree', 'Segoe UI', system-ui, sans-serif;

  --r-lg: 40px;
  --r-md: 28px;
  --r-sm: 14px;

  --nav-h: 92px;
  --wrap: 1180px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: var(--nav-h); }

/* kept so scripts that add it are harmless */
.anim-fade-up { opacity: 1; }

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-outline, .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #C4245F; transform: translateY(-2px); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--yellow); transform: translateY(-2px); }

/* ---------- ABC BLOCKS (signature element) ---------- */
.blocks { display: inline-flex; gap: 10px; align-items: flex-end; }
.blk {
  display: grid;
  place-items: center;
  width: clamp(52px, 7vw, 76px);
  aspect-ratio: 1;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: #fff;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.14);
}
.blk-a { background: var(--purple); transform: rotate(-7deg); }
.blk-b { background: var(--green);  transform: rotate(3deg) translateY(-8px); }
.blk-c { background: var(--pink);   transform: rotate(-3deg); }

/* ---------- NAVBAR (floating pill) ---------- */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 28px));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 9px 16px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(27,30,75,.08);
  border-radius: 999px;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,.94);
  border-color: rgba(27,30,75,.1);
  box-shadow: 0 10px 34px rgba(27,30,75,.10);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav-brand-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.nav-brand-sub  { display: block; font-size: .74rem; font-weight: 700; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--gray);
  border-radius: 999px;
  transition: color .15s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 3px;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--pink);
  transform: scale(0);
  transition: transform .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scale(1); }
.nav-links a.nav-cta { background: var(--pink); color: #fff; margin-left: 8px; padding: 11px 22px; transition: background-color .15s ease, transform .15s ease; }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: #C4245F; color: #fff; transform: translateY(-1px); }

.hamburger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.hamburger span { width: 20px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 82px; left: 14px; right: 14px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(27,30,75,.1);
  box-shadow: 0 16px 40px rgba(27,30,75,.14);
  border-radius: var(--r-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 700; }
.mobile-menu a i { width: 22px; color: var(--blue); }
.mobile-menu a:hover { background: var(--mist); }
.mobile-menu a.mobile-cta { background: var(--pink); color: #fff; margin-top: 6px; justify-content: center; }
.mobile-menu a.mobile-cta i { color: #fff; }

/* ---------- HERO ---------- */
#hero { padding: calc(var(--nav-h) + 40px) 0 28px; }
.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-text .blocks { margin-bottom: 26px; }
.hero-h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-lead { font-size: 1.18rem; color: var(--gray); max-width: 34em; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 14px;
}
.hm-photo { position: relative; overflow: hidden; background: var(--blue-t); }
.hm-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-tall { grid-row: 1 / 3; border-radius: 150px 28px 28px 28px; }
.hm-wide { border-radius: 28px 28px 28px 110px; }
.hm-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: .8rem;
}
.hm-tag i { color: var(--pink); }
.hm-years {
  background: var(--yellow);
  border-radius: 28px 110px 28px 28px;
  padding: 26px 26px 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hm-years .stat-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 6vw, 5rem); line-height: .95; letter-spacing: -0.04em; }
.hm-years .stat-label { font-weight: 700; font-size: .98rem; line-height: 1.35; margin-top: 6px; }

/* info bar under hero */
.info-bar {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding: 0 24px;
}
.info-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.info-item { padding: 24px 28px; display: flex; flex-direction: column; gap: 2px; border-left: 1.5px solid rgba(255,255,255,.14); }
.info-item:first-child { border-left: 0; }
.info-item strong { font-family: var(--font-display); font-size: 1.28rem; font-weight: 800; letter-spacing: -0.01em; }
.info-item span { font-size: .92rem; color: rgba(255,255,255,.7); }

/* ---------- SECTIONS (shared) ---------- */
.sec { padding: 110px 0; }
.sec-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}
.sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; }
.sec-head p { color: var(--gray); font-size: 1.08rem; max-width: 34em; }

/* ---------- ABOUT ---------- */
#about { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; padding: 0 0 34px 34px; }
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 34px 34px 0 0;
  background: var(--blue);
  border-radius: var(--r-lg);
  transform: rotate(-3deg);
}
.about-img-main { position: relative; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--r-lg); }
.about-img-secondary {
  position: absolute;
  left: 0; bottom: 0;
  width: 38%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #fff;
}
.about-badge {
  position: absolute;
  right: -10px; top: 56px;
  background: var(--yellow);
  border-radius: 24px;
  padding: 16px 20px;
  transform: rotate(5deg);
  text-align: center;
}
.ab-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.ab-txt { display: block; font-size: .78rem; font-weight: 800; line-height: 1.25; margin-top: 4px; }
.about-text h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; margin-bottom: 22px; }
.about-text .lead { color: var(--gray); font-size: 1.1rem; margin-bottom: 16px; max-width: 36em; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 30px; }
.about-feat { display: flex; gap: 14px; align-items: flex-start; }
.feat-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.05rem; }
.feat-icon.red    { background: var(--pink-t);   color: var(--pink); }
.feat-icon.blue   { background: var(--blue-t);   color: var(--blue); }
.feat-icon.green  { background: var(--green-t);  color: var(--green); }
.feat-icon.orange { background: var(--orange-t); color: #B85F00; }
.feat-body strong { display: block; font-family: var(--font-display); font-size: 1.06rem; line-height: 1.2; margin-bottom: 4px; }
.feat-body span { display: block; font-size: .93rem; color: var(--gray); line-height: 1.5; }

/* ---------- SERVICES (bento) ---------- */
#services { background: var(--mist); }
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.service-card { border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.service-card h3 { font-size: 1.55rem; font-weight: 800; margin-top: auto; }
.service-card p { font-size: .98rem; line-height: 1.55; max-width: 36em; }
.svc-icon { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.sc1 { grid-column: span 7; background: var(--blue-t);   }
.sc1 .svc-icon { color: var(--blue); }
.sc2 { grid-column: span 5; background: var(--pink-t); }
.sc2 .svc-icon { color: var(--pink); }
.sc3 { grid-column: span 4; background: var(--yellow-t); }
.sc3 .svc-icon { color: #B88500; }
.sc4 { grid-column: span 4; background: var(--green-t); }
.sc4 .svc-icon { color: var(--green); }
.sc5 { grid-column: span 4; background: var(--orange-t); }
.sc5 .svc-icon { color: #B85F00; }
.sc6 { grid-column: span 12; background: var(--purple-t); min-height: 0; flex-direction: row; align-items: center; gap: 28px; }
.sc6 .svc-icon { color: var(--purple); flex: none; }
.sc6 h3 { margin: 0 0 6px; }

/* ---------- GALLERY ---------- */
.gallery-masonry { columns: 4; column-gap: 16px; }
.gallery-item { position: relative; break-inside: avoid; margin-bottom: 16px; overflow: hidden; border-radius: var(--r-md); background: var(--mist); }
.gallery-item img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay { position: absolute; left: 12px; bottom: 12px; }
.gallery-overlay span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  background: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.gallery-overlay i { color: var(--pink); }

/* ---------- WHY US ---------- */
#why-us { background: var(--ink); color: #fff; }
.why-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.why-intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.why-intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.why-intro p { color: rgba(255,255,255,.72); margin-bottom: 30px; max-width: 28em; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.why-card { padding: 28px 0; border-top: 1.5px solid rgba(255,255,255,.16); }
.why-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.05rem; color: var(--ink); }
.why-card:nth-child(1) .why-icon { background: var(--yellow); }
.why-card:nth-child(2) .why-icon { background: #8CC8FF; }
.why-card:nth-child(3) .why-icon { background: #9BE08A; }
.why-card:nth-child(4) .why-icon { background: #FFA9C6; }
.why-card:nth-child(5) .why-icon { background: #FFC17A; }
.why-card:nth-child(6) .why-icon { background: #CDBBFF; }
.why-card h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.7); font-size: .97rem; line-height: 1.6; }

/* ---------- FEES ---------- */
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fee-card { border-radius: var(--r-lg); padding: 34px 30px; display: flex; flex-direction: column; gap: 4px; background: var(--blue-t); }
.fee-card > i { font-size: 1.3rem; margin-bottom: 26px; }
.fee-card:nth-child(1) > i { color: var(--blue); }
.fee-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1; }
.fee-label { font-weight: 800; margin-top: 10px; }
.fee-note { font-size: .92rem; color: var(--gray); }
.fee-card--main { background: var(--yellow); }
.fee-card--main .fee-note { color: var(--ink); opacity: .75; }
.fee-card:nth-child(3) { background: var(--pink-t); }
.fee-card:nth-child(3) > i { color: var(--pink); }
.fees-foot { margin-top: 24px; color: var(--gray); font-size: .95rem; }
.fees-foot a { color: var(--pink); font-weight: 800; }

/* ---------- ENQUIRY ---------- */
#enquiry { padding-top: 0; }
.enquiry-shell { display: grid; grid-template-columns: .85fr 1.15fr; border-radius: var(--r-lg); overflow: hidden; border: 2px solid var(--ink); }
.enquiry-side { background: var(--blue); color: #fff; padding: 44px 38px; display: flex; flex-direction: column; gap: 18px; }
.enquiry-side h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; }
.enquiry-side p { color: rgba(255,255,255,.88); }
.enquiry-side .contact-pill { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: rgba(255,255,255,.14); border-radius: 999px; font-weight: 800; transition: background-color .15s ease; }
.enquiry-side .contact-pill:hover { background: rgba(255,255,255,.26); }
.enquiry-side .contact-pill i { width: 20px; text-align: center; }
.enquiry-card { background: #fff; padding: 44px 38px; }
.enquiry-alert { align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-sm); font-weight: 700; margin-bottom: 22px; }
.enquiry-alert--success { background: var(--green-t); color: #1D5A1A; }
.enquiry-alert--error   { background: var(--pink-t);  color: #8A0F3F; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.55; color: var(--gray); margin: 18px 0; }
.privacy-note i { color: var(--green); margin-top: 3px; }
.enquiry-alt { text-align: center; font-size: .9rem; color: var(--gray); margin-top: 16px; }
.enquiry-alt a { color: var(--blue); font-weight: 800; }

/* ---------- ENROL FORM ---------- */
#enrol { background: var(--mist); padding: 110px 0; }
.enrol-tabs { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; margin-bottom: 30px; }
.enrol-tab { border: 0; background: transparent; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: .95rem; display: inline-flex; align-items: center; gap: 9px; transition: background-color .15s ease, color .15s ease; }
.enrol-tab:hover { background: var(--mist); }
.enrol-tab.active { background: var(--ink); color: #fff; }
.enrol-panel > div { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
#panel-online > div { max-width: 820px !important; margin: 0 !important; }
#panel-download > div { max-width: 640px !important; margin: 0 !important; text-align: left !important; }

.enrol-section-block { display: flex; flex-direction: column; gap: 18px; }
.enrol-section-heading { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.enrol-section-heading i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-t); color: var(--blue); font-size: .95rem; }
.enrol-section-block:nth-of-type(3n+2) .enrol-section-heading i { background: var(--pink-t);   color: var(--pink); }
.enrol-section-block:nth-of-type(3n)   .enrol-section-heading i { background: var(--yellow-t); color: #B88500; }
.enrol-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enrol-field { display: flex; flex-direction: column; gap: 7px; }
.enrol-field label { font-weight: 800; font-size: .88rem; }
.req { color: var(--pink); }
.enrol-field input, .enrol-field select, .enrol-field textarea {
  width: 100%;
  font: inherit;
  font-size: .98rem;
  padding: 13px 16px;
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.enrol-field input::placeholder, .enrol-field textarea::placeholder { color: #8A8EAD; }
.enrol-field input:focus, .enrol-field select:focus, .enrol-field textarea:focus { outline: none; background: #fff; border-color: var(--blue); }
.enrol-field textarea { resize: vertical; min-height: 96px; }
.enrol-fees-notice { padding: 16px 20px; background: var(--yellow-t); border-radius: var(--r-sm); font-size: .92rem; line-height: 1.6; }
.enrol-checkbox-label { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.55; cursor: pointer; }
.enrol-checkbox-label input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--pink); }

.enrol-alert { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); margin-bottom: 26px; }
.enrol-alert--success { background: var(--green-t); }
.enrol-alert--error   { background: var(--pink-t); }
.enrol-alert__icon-wrap { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 1.15rem; }
.enrol-alert__icon-wrap--success { color: var(--green); }
.enrol-alert__icon-wrap--error   { color: var(--pink); }
.enrol-alert__body { flex: 1; }
.enrol-alert__title { font-weight: 800; }
.enrol-alert__msg { font-size: .93rem; }
.enrol-alert__close { border: 0; background: transparent; font-size: 1.2rem; line-height: 1; padding: 4px 8px; }

.pdf-download-card h3 { font-size: 1.7rem; font-weight: 800; margin: 14px 0 10px; }
.pdf-download-card p { color: var(--gray); }
.pdf-icon-wrap { width: 64px; height: 64px; border-radius: 20px; background: var(--pink-t); color: var(--pink); display: grid; place-items: center; font-size: 1.6rem; }
.pdf-checklist { display: grid; gap: 10px; margin: 22px 0 26px; }
.pdf-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.pdf-checklist i { color: var(--green); margin-top: 5px; }
.pdf-download-btn { width: 100%; }
.pdf-download-card .btn-outline { color: var(--ink) !important; border-color: var(--ink) !important; }
.pdf-download-card .btn-outline:hover { color: #fff !important; }

/* ---------- HOURS + CONTACT ---------- */
#hours { background: var(--ink); color: #fff; padding-bottom: 40px; }
#hours .sec-head p { color: rgba(255,255,255,.72); }
.hc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: stretch; }

.hc-hours { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 36px; }
.hc-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: var(--mist);
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 26px;
}
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray); flex: none; }
.hc-status.is-open { background: var(--green-t); }
.hc-status.is-open .hc-dot { background: var(--green); animation: pulse 2s ease-in-out infinite; }
.hc-status.is-closed { background: var(--pink-t); }
.hc-status.is-closed .hc-dot { background: var(--pink); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(70,169,74,.45); } 50% { box-shadow: 0 0 0 7px rgba(70,169,74,0); } }

.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 22px; }
.wk {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  transition: transform .2s ease;
}
.wk-1 { background: var(--purple); }
.wk-2 { background: var(--blue); }
.wk-3 { background: var(--green); }
.wk-4 { background: var(--orange); }
.wk-5 { background: var(--pink); }
.wk-off { background: var(--mist); color: #9A9EBA; }
.wk.is-today { transform: translateY(-6px); }

.hours-table td { padding: 13px 4px; border-bottom: 1.5px solid var(--line); font-weight: 700; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; }
.hours-table tr.is-today td { background: var(--yellow-t); }
.hours-table tr.is-today td:first-child { border-radius: 12px 0 0 12px; padding-left: 14px; }
.hours-table tr.is-today td:last-child  { border-radius: 0 12px 12px 0; padding-right: 14px; }
.td-open { color: #2F8A33; }
.td-closed { color: #9A9EBA; }

.hc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ct {
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px;
  border-radius: var(--r-lg);
  color: var(--ink);
  transition: transform .18s ease;
}
a.ct:hover { transform: translateY(-3px); }
.ct-icon { width: 48px; height: 48px; border-radius: 15px; background: #fff; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 22px; }
.ct-label { font-size: .88rem; font-weight: 700; opacity: .75; }
.ct-value { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.01em; word-break: break-word; }
a.ct-value:hover { text-decoration: underline; }
.ct-small { font-size: 1rem; }
.ct-call  { background: var(--pink-t); }
.ct-call .ct-icon { color: var(--pink); }
.ct-wa    { background: var(--green-t); }
.ct-wa .ct-icon { color: var(--green); }
.ct-mail  { grid-column: 1 / -1; background: var(--blue-t); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.ct-mail .ct-icon { margin: 0; color: var(--blue); }
.ct-mail .ct-label { flex-basis: 100%; order: 3; display: none; }
.ct-visit { grid-column: 1 / -1; background: var(--yellow); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.ct-visit .ct-icon { margin: 0; color: #B88500; }
.ct-visit .ct-label { display: none; }
.ct-mail .ct-value, .ct-visit .ct-value { flex: 1 1 200px; }

#location { background: var(--ink); padding: 0 0 110px !important; }
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.map-wrap iframe { width: 100%; height: 440px; border: 0; display: block; }
.map-card {
  position: absolute;
  left: 20px; bottom: 20px;
  max-width: 320px;
  display: flex; flex-direction: column; gap: 6px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px;
}
.map-card strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.map-card span { color: var(--gray); font-size: .95rem; margin-bottom: 10px; }
.map-card .btn-primary { padding: 12px 20px; font-size: .92rem; }

/* ---------- CTA ---------- */
.cta-banner { padding: 100px 24px; }
.cta-content {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--pink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 72px 56px;
  overflow: hidden;
}
.cta-content h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 800; max-width: 11em; margin-bottom: 18px; }
.cta-content p { max-width: 34em; margin-bottom: 32px; font-size: 1.1rem; color: rgba(255,255,255,.92); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-content .blocks { position: absolute; right: 48px; bottom: 44px; }

/* ---------- FOOTER ---------- */
footer { position: relative; isolation: isolate; background: var(--ink); color: #fff; padding: 80px 24px 0; }
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../images/footer-bg.webp') center / cover no-repeat;
  opacity: .14;
}
.footer-main { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.fb-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fb-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.fb-sub  { display: block; font-size: .78rem; font-weight: 700; color: var(--yellow); }
.footer-brand-col p { color: rgba(255,255,255,.68); font-size: .95rem; max-width: 30em; }
.footer-social { margin-top: 20px; }
.social-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1.15rem; transition: background-color .15s ease; }
.footer-social { display: flex; gap: 10px; }
.social-btn:hover { background: #25D366; }
.social-fb:hover { background: #1877F2; }
.footer-col h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .95rem; display: inline-flex; gap: 9px; align-items: baseline; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-col a i { font-size: .75rem; color: var(--yellow); width: 14px; flex: none; }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; border-top: 1.5px solid rgba(255,255,255,.14); padding: 26px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: rgba(255,255,255,.62); }
.fb-heart i { color: var(--pink); }
.footer-bottom .fb-credit { color: #fff; font-weight: 800; border-bottom: 2px solid var(--yellow); }
.footer-bottom .fb-credit:hover { color: var(--yellow); }

/* ---------- BACK TO TOP (styled over inline JS styles) ---------- */
#toTopBtn { background: var(--ink) !important; box-shadow: none !important; border: 2px solid #fff !important; }

/* ---------- ONE ORCHESTRATED MOMENT: hero load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-mosaic > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(1) { animation-delay: .05s; }
  .hero-text > :nth-child(2) { animation-delay: .15s; }
  .hero-text > :nth-child(3) { animation-delay: .25s; }
  .hero-text > :nth-child(4) { animation-delay: .35s; }
  .hero-mosaic > :nth-child(1) { animation-delay: .2s; }
  .hero-mosaic > :nth-child(2) { animation-delay: .32s; }
  .hero-mosaic > :nth-child(3) { animation-delay: .44s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .gallery-masonry { columns: 3; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .why-wrap { grid-template-columns: 1fr; gap: 40px; }
  .why-intro { position: static; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-mosaic { grid-template-rows: 220px 220px; }
  .info-bar-inner { grid-template-columns: 1fr 1fr; }
  .info-item:nth-child(3) { border-left: 0; }
  .info-item:nth-child(n+3) { border-top: 1.5px solid rgba(255,255,255,.14); }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-img-wrap { max-width: 520px; }
  .sc1, .sc2, .sc3, .sc4, .sc5 { grid-column: span 6; }
  .sc5 { grid-column: span 12; }
  .fees-grid { grid-template-columns: 1fr; }
  .enquiry-shell { grid-template-columns: 1fr; }
  .hc-grid { grid-template-columns: 1fr; }
  .cta-content .blocks { position: static; margin-top: 36px; display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .sec, #about, #enrol { padding: 72px 0; }
  .nav-brand-sub { display: none; }
  #hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero-mosaic { grid-template-rows: 190px 190px; gap: 10px; }
  .hm-tall { border-radius: 100px 22px 22px 22px; }
  .hm-wide { border-radius: 22px 22px 22px 70px; }
  .hm-years { border-radius: 22px 70px 22px 22px; padding: 16px; }
  .hm-years .stat-big { font-size: 2.8rem; }
  .hm-years .stat-label { font-size: .8rem; line-height: 1.3; }
  .hm-tag { font-size: .7rem; padding: 6px 10px; }
  .info-bar-inner { grid-template-columns: 1fr; }
  .info-item { border-left: 0 !important; }
  .info-item + .info-item { border-top: 1.5px solid rgba(255,255,255,.14); }
  .about-features { grid-template-columns: 1fr; }
  .sc1, .sc2, .sc3, .sc4, .sc5, .sc6 { grid-column: span 12; }
  .service-card { min-height: 0; padding: 26px; }
  .sc6 { flex-direction: column; align-items: flex-start; }
  .gallery-masonry { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .enquiry-side, .enquiry-card { padding: 30px 22px; }
  .enrol-panel > div { padding: 26px 18px; }
  .enrol-grid-2 { grid-template-columns: 1fr; }
  .enrol-tabs { display: flex; }
  .enrol-tab { flex: 1; justify-content: center; padding: 12px 6px; font-size: .84rem; white-space: nowrap; }
  .enrol-tab i { display: none; }
  .cta-content { padding: 48px 26px; border-radius: 32px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .hc-hours { padding: 26px 20px; }
  .hc-contact { grid-template-columns: 1fr; }
  .ct { padding: 22px; }
  .week-strip { gap: 5px; }
  .wk { border-radius: 12px; font-size: 1rem; }
  .map-wrap iframe { height: 340px; }
  .map-card { position: static; max-width: none; border-radius: 0; }
}

/* ---------- MOBILE SIZING (compact pass) ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 76px; --r-lg: 28px; --r-md: 22px; }
  body { font-size: .94rem; line-height: 1.55; }
  .container, .hero-inner, .info-bar { padding-left: 18px; padding-right: 18px; }

  /* nav */
  .navbar { top: 10px; padding: 7px 8px 7px 12px; width: calc(100% - 20px); }
  .nav-logo { gap: 9px; }
  .nav-logo-img { width: 36px; height: 36px; }
  .nav-brand-name { font-size: .98rem; }
  .hamburger { width: 40px; height: 40px; gap: 4px; }
  .hamburger span { width: 17px; }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mobile-menu { top: 66px; left: 10px; right: 10px; padding: 10px; }
  .mobile-menu a { padding: 12px 14px; font-size: .95rem; }

  /* type */
  .hero-h1 { font-size: 2.35rem; line-height: 1.02; margin-bottom: 16px; }
  .hero-lead { font-size: 1rem; margin-bottom: 22px; }
  .sec-head { margin-bottom: 28px; gap: 10px; }
  .sec-head h2, .about-text h2, .why-intro h2, .enquiry-side h2 { font-size: 1.8rem; }
  .sec-head p, .about-text .lead, .why-intro p { font-size: .96rem; }
  .cta-content h2 { font-size: 2rem; }
  .cta-content p { font-size: 1rem; margin-bottom: 22px; }

  /* spacing */
  .sec, #about, #enrol { padding: 52px 0; }
  #hero { padding-top: calc(var(--nav-h) + 14px); padding-bottom: 12px; }
  #location { padding-bottom: 52px !important; }
  #hours { padding-bottom: 28px; }
  #enquiry { padding-top: 0; }
  .cta-banner { padding: 52px 18px; }
  .cta-content { padding: 36px 22px; }
  footer { padding: 52px 18px 0; }
  .footer-main { gap: 28px; padding-bottom: 36px; }

  /* buttons */
  .btn-primary, .btn-outline, .btn-light { padding: 12px 22px; font-size: .92rem; }
  .hero-ctas { gap: 10px; }
  .hero-ctas > * { flex: 1 1 auto; }

  /* hero */
  .blk { width: 46px; border-radius: 14px; font-size: 1.5rem; }
  .hero-text .blocks { margin-bottom: 18px; }
  .hero-inner { gap: 28px; }
  .hero-mosaic { grid-template-rows: 170px 170px; }
  .info-bar { margin-top: 24px; }
  .info-item { padding: 15px 20px; }
  .info-item strong { font-size: 1.05rem; }
  .info-item span { font-size: .85rem; }

  /* about */
  .about-grid { gap: 40px; }
  .about-features { gap: 16px; margin-top: 22px; }
  .about-badge { padding: 10px 14px; top: 36px; right: -4px; }
  .ab-num { font-size: 1.5rem; }

  /* services, why, fees */
  .service-card { padding: 22px; gap: 8px; }
  .service-card h3 { font-size: 1.2rem; }
  .service-card p { font-size: .92rem; }
  .svc-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 13px; }
  .why-card { padding: 20px 0; }
  .why-card h3 { font-size: 1.1rem; }
  .why-card p { font-size: .92rem; }
  .fee-card { padding: 24px 22px; }
  .fee-card > i { margin-bottom: 14px; }
  .fee-amount { font-size: 2.4rem; }

  /* enquiry + enrol */
  .enquiry-side, .enquiry-card { padding: 24px 18px; }
  .enquiry-side .contact-pill { padding: 11px 16px; font-size: .92rem; }
  .enrol-panel > div { padding: 22px 16px; }
  .enrol-section-heading { font-size: 1.1rem; }
  .enrol-section-heading i { width: 34px; height: 34px; }
  .enrol-field input, .enrol-field select, .enrol-field textarea { padding: 11px 14px; font-size: .95rem; }
  .enrol-tab { padding: 10px 6px; font-size: .8rem; }

  /* hours + contact */
  .hc-hours { padding: 20px 16px; }
  .hc-status { font-size: .82rem; margin-bottom: 18px; }
  .hours-table td { padding: 10px 4px; font-size: .9rem; }
  .ct { padding: 18px; }
  .ct-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 14px; }
  .ct-value { font-size: 1.08rem; }
  .ct-small { font-size: .9rem; }
  .map-wrap iframe { height: 300px; }
  .map-card { padding: 16px; }
  .map-card strong { font-size: 1.05rem; }

  /* footer */
  .fb-name { font-size: 1.05rem; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-bottom { padding: 20px 0; font-size: .82rem; }
}

/* ============================================================
   FORMS REDESIGN
   ============================================================ */

/* Inputs: roomy, filled, soft focus ring */
.enrol-field label { font-size: .86rem; font-weight: 800; color: var(--ink); }
.enrol-field input, .enrol-field select, .enrol-field textarea {
  min-height: 52px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.enrol-field input:hover, .enrol-field select:hover, .enrol-field textarea:hover { border-color: #C9CEE6; }
.enrol-field input:focus, .enrol-field select:focus, .enrol-field textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46,127,230,.16);
}
.enrol-field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 46px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231B1E4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.enrol-field textarea { min-height: 112px; }

/* Enrolment: each section is its own soft card */
#panel-online > div { background: transparent !important; border: 0 !important; padding: 0 !important; max-width: 860px !important; }
#contactForm { gap: 18px !important; }
.enrol-section-block {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  gap: 22px;
}
.enrol-section-heading { border-bottom: 0; padding-bottom: 0; font-size: 1.25rem; }
.enrol-fees-notice { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-md); background: var(--yellow-t); }
.enrol-fees-notice > i { margin-top: 3px; color: #B88500; }
#contactForm > .enrol-field { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.enrol-checkbox-label { font-size: .93rem; }
.enrol-checkbox-label input { min-height: 0; width: 24px; height: 24px; padding: 0; border-radius: 8px; box-shadow: none; }
#submitBtn { min-height: 58px; font-size: 1.05rem !important; border-radius: 999px; }

/* Download tab */
#panel-download > div { background: #fff !important; border: 1.5px solid var(--line) !important; border-radius: var(--r-lg) !important; padding: 34px !important; }
.pdf-download-card .btn-outline { padding: 11px 20px !important; font-size: .9rem !important; }

/* Quick enquiry */
.enquiry-shell { border: 0; background: #fff; box-shadow: 0 0 0 1.5px var(--line) inset; }
.enquiry-side { background: var(--blue); padding: 40px 34px; gap: 14px; }
.enquiry-side .contact-pill { background: rgba(255,255,255,.16); padding: 14px 20px; }
.enquiry-card { padding: 40px 36px; }
.enquiry-card .btn-primary { min-height: 56px; }

/* Segmented tabs */
.enrol-tabs { box-shadow: none; }

/* ============================================================
   MOBILE: LANDING + FORMS
   ============================================================ */
@media (max-width: 640px) {

  /* --- landing: headline and actions first, one compact photo mosaic --- */
  #hero { padding-top: calc(var(--nav-h) + 8px); }
  .hero-inner { gap: 22px; }
  .hero-text .blocks { margin-bottom: 14px; gap: 7px; }
  .blk { width: 38px; border-radius: 12px; font-size: 1.25rem; box-shadow: inset 0 -5px 0 rgba(0,0,0,.14); }
  .hero-h1 { font-size: 2.15rem; letter-spacing: -0.03em; margin-bottom: 12px; }
  .hero-lead { font-size: .95rem; line-height: 1.55; margin-bottom: 18px; }
  .hero-ctas { flex-wrap: nowrap; gap: 8px; }
  .hero-ctas .btn-primary { flex: 1.5 1 0; padding: 13px 14px; font-size: .9rem; white-space: nowrap; }
  .hero-ctas .btn-outline { flex: 1 1 0; padding: 13px 12px; font-size: .88rem; white-space: nowrap; }
  .hero-ctas i { font-size: .85rem; }

  .hero-mosaic { grid-template-columns: 1.25fr 1fr; grid-template-rows: 150px 130px; gap: 8px; }
  .hm-tall { border-radius: 70px 20px 20px 20px; }
  .hm-wide { border-radius: 20px 20px 20px 50px; }
  .hm-years { border-radius: 20px 50px 20px 20px; padding: 14px 14px 12px; }
  .hm-years .stat-big { font-size: 2.3rem; }
  .hm-years .stat-label { font-size: .72rem; line-height: 1.25; margin-top: 3px; }

  .info-bar { margin-top: 18px; }
  .info-bar-inner { grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .info-item { padding: 12px 14px; border-top: 0 !important; border-left: 0 !important; }
  .info-item:nth-child(even) { border-left: 1.5px solid rgba(255,255,255,.14) !important; }
  .info-item:nth-child(n+3) { border-top: 1.5px solid rgba(255,255,255,.14) !important; }
  .info-item strong { font-size: .92rem; line-height: 1.2; }
  .info-item span { font-size: .74rem; }

  /* --- enquiry: icon-only contact row, short intro --- */
  .enquiry-shell { border-radius: 28px; }
  .enquiry-side { padding: 22px 18px; gap: 10px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .enquiry-side h2 { flex: 1 1 100%; font-size: 1.5rem; }
  .enquiry-side p { flex: 1 1 100%; font-size: .9rem; margin-bottom: 4px; }
  .enquiry-side .contact-pill { flex: 1 1 0; justify-content: center; padding: 12px 8px; }
  .enquiry-side .contact-pill span { display: none; }
  .enquiry-side .contact-pill i { width: auto; font-size: 1.1rem; }
  .enquiry-card { padding: 22px 18px; }

  /* --- forms --- */
  .enrol-field input, .enrol-field select, .enrol-field textarea { min-height: 48px; padding: 12px 15px; border-radius: 14px; font-size: 1rem; }
  .enrol-field select { padding-right: 42px; background-position: right 15px center; }
  .enrol-field label { font-size: .84rem; }
  .enrol-section-block { padding: 20px 16px; gap: 16px; border-radius: 24px; }
  .enrol-section-heading { font-size: 1.05rem; gap: 10px; }
  .enrol-grid-2 { gap: 14px; }
  #contactForm { gap: 12px !important; }
  #contactForm > .enrol-field { padding: 16px; }
  .enrol-fees-notice { padding: 16px; font-size: .86rem; }
  #panel-download > div { padding: 22px 16px !important; }
  #submitBtn { min-height: 54px; }
}


/* ============================================================
   MOTION: smooth scroll, reveals, parallax, progress, nav
   ============================================================ */

/* Lenis owns scrolling while it is active */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--green), var(--yellow), var(--pink));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Nav tucks away on scroll down, returns on scroll up */
.navbar { transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .25s ease, box-shadow .25s ease, border-color .25s ease; }
.navbar.nav-hidden { transform: translate(-50%, -150%); }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(34px) scale(.975);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
  }
  .js .reveal.in { opacity: 1; transform: none; will-change: auto; }
  .js .reveal.reveal-left  { transform: translateX(-40px); }
  .js .reveal.reveal-right { transform: translateX(40px); }
  .js .reveal.reveal-left.in, .js .reveal.reveal-right.in { transform: none; }

  /* hover lift on tiles */
  .service-card, .fee-card, .why-card, .about-feat { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .service-card:hover, .fee-card:hover,
  .js .service-card.reveal.in:hover, .js .fee-card.reveal.in:hover { transform: translateY(-6px) rotate(-.4deg); }
  .js a.ct.reveal.in:hover { transform: translateY(-4px); }
  .js .service-card.reveal.in, .js .fee-card.reveal.in { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1); }

  /* ABC blocks: playful float */
  .hero-text .blk { animation: bob 4.5s ease-in-out infinite; }
  .hero-text .blk-b { animation-delay: -1.5s; }
  .hero-text .blk-c { animation-delay: -3s; }
  @keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

  /* parallax targets are moved by script; hint the browser */
  [data-parallax] { will-change: transform; }
  .hm-photo img { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .navbar.nav-hidden { transform: translateX(-50%); }
}

/* Mobile gallery: fixed-ratio grid (no column reflow while photos load) */
@media (max-width: 640px) {
  .gallery-masonry { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-item { margin: 0; aspect-ratio: 3 / 4; border-radius: 22px; }
  .gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .gallery-item:nth-child(5) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .gallery-overlay { left: 8px; bottom: 8px; }
  .gallery-overlay span { padding: 5px 10px; font-size: .7rem; }
}


/* ============================================================
   SERVICE CARDS: tap to expand
   ============================================================ */
.service-card { position: relative; cursor: pointer; }
.services-grid.has-open { align-items: start; }
.svc-toggle {
  position: absolute;
  top: 22px; right: 22px;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  font-size: .95rem;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .2s ease, color .2s ease;
}
.service-card:hover .svc-toggle { background: var(--ink); color: #fff; }
.service-card.open .svc-toggle { transform: rotate(45deg); background: var(--ink); color: #fff; }

.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1); }
.service-card.open .svc-more { grid-template-rows: 1fr; }
.svc-more-inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .35s ease; }
.service-card.open .svc-more-inner { opacity: 1; transition-delay: .12s; }
.svc-long { margin: 6px 0 14px; padding-top: 18px; border-top: 1.5px solid rgba(27,30,75,.14); max-width: 40em; }
.svc-points { display: grid; gap: 9px; margin-bottom: 20px; }
.svc-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.svc-points i { margin-top: 5px; font-size: .75rem; color: var(--green); flex: none; }
.svc-cta { padding: 12px 22px; font-size: .92rem; }
.svc-body { flex: 1; min-width: 0; padding-right: 54px; }
.sc6 .svc-body h3 { margin-top: 0; }
.service-card.open { transform: none !important; }
.service-card:focus-within { outline: none; }
.svc-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 640px) {
  .svc-toggle { top: 16px; right: 16px; width: 38px; height: 38px; }
  .sc6 { flex-direction: column; }
  .svc-body { padding-right: 0; }
}
