/* ============================================================
   FIRM FITNESS STUDIO — KOVILPATTI | Health is Luxury
   Sporty, energetic, welcoming & professional gym website
   Palette: Navy #142B45 | Electric Blue #2589E8 | White | Grey #EAF0F6 | Text #202A35
   ============================================================ */

:root {
  --navy: #142B45;
  --navy-2: #1B3A5F;
  --navy-3: #0E2035;
  --electric: #2589E8;
  --electric-2: #1D74C9;
  --electric-soft: rgba(37, 137, 232, 0.12);
  --white: #FFFFFF;
  --grey: #EAF0F6;
  --grey-2: #F6F9FC;
  --text: #202A35;
  --text-soft: #5A6B7D;
  --line: #DCE6EF;
  --shadow-sm: 0 2px 10px rgba(20, 43, 69, 0.08);
  --shadow-md: 0 10px 30px rgba(20, 43, 69, 0.12);
  --shadow-lg: 0 18px 50px rgba(20, 43, 69, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--electric); text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; line-height: 1.08; letter-spacing: 0.4px; color: var(--navy); }

h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p.lead { font-size: 1.13rem; color: var(--text-soft); }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.bg-grey { background: var(--grey); }
.bg-grey2 { background: var(--grey-2); }
.bg-navy { background: var(--navy); color: #EAF2FB; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-sm { padding: clamp(40px, 6vw, 64px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--electric);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--electric); border-radius: 2px; }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 12px; color: var(--text-soft); font-size: 1.08rem; }
.bg-navy .section-head p { color: #B9C9DA; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  min-height: 48px;
}
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-primary { background: var(--electric); color: var(--white); box-shadow: 0 8px 22px rgba(37, 137, 232, 0.35); }
.btn-primary:hover { background: var(--electric-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 137, 232, 0.45); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.75); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-ghost-light { background: var(--white); color: var(--navy); }
.btn-ghost-light:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.25); }
.btn-sm { padding: 11px 22px; font-size: 1rem; min-height: 42px; }
.btn-block { width: 100%; }

/* ---------- skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--navy); color: var(--white);
  padding: 12px 22px; border-radius: 0 0 12px 0;
  font-weight: 700; font-size: 0.95rem;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.topbar { background: var(--navy-3); color: #AFC3D8; font-size: 0.88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #DCE9F5; font-weight: 600; }
.topbar a:hover { color: var(--electric); }
.topbar .tb-group { display: flex; gap: 22px; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; }
.tb-item svg { width: 15px; height: 15px; color: var(--electric); }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.42rem; line-height: 1; color: var(--navy); text-transform: uppercase; letter-spacing: 0.8px; }
.brand-name span { color: var(--electric); }
.brand-tag { display: block; font-family: var(--body); font-weight: 600; font-size: 0.66rem; letter-spacing: 2.4px; color: var(--text-soft); text-transform: uppercase; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--head); font-weight: 700; font-size: 1.08rem; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--text); padding: 10px 14px; border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--electric); background: var(--electric-soft); }
.nav-link.active { color: var(--electric); }
.nav-link.active::after { content: ""; display: block; height: 3px; border-radius: 2px; background: var(--electric); margin-top: 2px; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  border-radius: 9px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--navy); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: center;
  background: var(--navy-3);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,32,53,0.94) 0%, rgba(20,43,69,0.82) 42%, rgba(20,43,69,0.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0; max-width: 640px; color: var(--white); }
.hero .eyebrow { color: #6FB4F2; }
.hero .eyebrow::before { background: var(--electric); }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 .accent { color: #4D9DEB; }
.hero p { font-size: 1.16rem; color: #D5E2EF; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  color: #EAF2FB; padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; backdrop-filter: blur(4px);
}
.hero-badge svg { width: 16px; height: 16px; color: #6FB4F2; }
.hero-badge strong { color: var(--white); }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.75); font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; font-family: var(--head); font-weight: 700;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-cue svg { width: 20px; height: 20px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* page hero (inner pages) */
.page-hero { position: relative; background: var(--navy-3); color: var(--white); overflow: hidden; }
.page-hero .hero-bg img { opacity: 0.42; }
.page-hero .hero-bg::after { background: linear-gradient(180deg, rgba(14,32,53,0.88), rgba(20,43,69,0.72)); }
.page-hero-content { position: relative; z-index: 2; padding: clamp(60px, 9vw, 110px) 0; max-width: 760px; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
.page-hero p { color: #CFDDEB; font-size: 1.1rem; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: #9FB7CE; margin-bottom: 16px; font-weight: 600; letter-spacing: 0.5px; }
.breadcrumb a { color: #CFDDEB; }
.breadcrumb a:hover { color: var(--electric); }
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.7; }

/* ---------- intro strip ---------- */
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }
.float-card {
  position: absolute; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; gap: 12px; align-items: center;
}
.float-card svg { width: 34px; height: 34px; color: var(--electric); flex: 0 0 auto; }
.float-card .fc-title { font-family: var(--head); font-weight: 800; text-transform: uppercase; color: var(--navy); font-size: 1.3rem; line-height: 1; }
.float-card .fc-sub { font-size: 0.82rem; color: var(--text-soft); }
.float-card.fc-rating { bottom: -22px; left: -18px; }
.float-card.fc-hours { top: -22px; right: -14px; }

/* ---------- feature cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--electric), #6FB4F2);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: var(--electric-soft); color: var(--electric); margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}
.feature-card:hover .feature-icon { background: var(--electric); color: var(--white); }
.feature-icon svg { width: 30px; height: 30px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: 0.98rem; }

.bg-navy .feature-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.bg-navy .feature-card h3 { color: var(--white); }
.bg-navy .feature-card p { color: #B9C9DA; }
.bg-navy .feature-icon { background: rgba(37,137,232,0.22); color: #6FB4F2; }
.bg-navy .feature-card:hover .feature-icon { background: var(--electric); color: var(--white); }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-family: var(--head); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.1rem); color: var(--white); line-height: 1; }
.stat-num span { color: #5CA4EE; }
.stat-label { margin-top: 8px; color: #AFC3D8; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.6px; }

/* ---------- program cards ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.program-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.program-card:hover .program-media img { transform: scale(1.07); }
.program-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.badge-verified { background: var(--electric); color: var(--white); }
.badge-enquire { background: rgba(20,43,69,0.85); color: #D8E7F5; border: 1px solid rgba(255,255,255,0.3); }
.program-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.program-body h3 { margin-bottom: 9px; }
.program-body > p { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 16px; }
.benefit-list { display: grid; gap: 8px; margin-bottom: 22px; }
.benefit-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.94rem; color: var(--text); font-weight: 500; }
.benefit-list svg { width: 17px; height: 17px; color: var(--electric); flex: 0 0 auto; margin-top: 3px; }
.program-body .btn { margin-top: auto; }
.note-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--electric-soft); color: var(--navy); border: 1px solid #CBE0F4; padding: 10px 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; }
.note-chip svg { width: 17px; height: 17px; color: var(--electric); }

/* ---------- facilities ---------- */
.facility-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.facility-media img { width: 100%; height: 100%; object-fit: cover; }
.facility-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.facility-item {
  display: flex; gap: 13px; align-items: flex-start; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13); padding: 16px 18px; border-radius: var(--radius);
}
.facility-item svg { width: 24px; height: 24px; color: #5CA4EE; flex: 0 0 auto; margin-top: 2px; }
.facility-item h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 2px; }
.facility-item p { color: #AFC3D8; font-size: 0.88rem; }

.bg-white .facility-item { background: var(--grey-2); border-color: var(--line); }
.bg-white .facility-item h4 { color: var(--navy); }
.bg-white .facility-item p { color: var(--text-soft); }
.bg-white .facility-item svg { color: var(--electric); }

/* ---------- motivational band ---------- */
.band {
  position: relative; color: var(--white); text-align: center; overflow: hidden;
  padding: clamp(70px, 10vw, 120px) 0;
}
.band .hero-bg img { object-position: center; }
.band .hero-bg::after { background: linear-gradient(90deg, rgba(14,32,53,0.9), rgba(37,89,143,0.68)); }
.band-content { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.band h2 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }
.band h2 .accent { color: #5CA4EE; }
.band p { color: #D5E2EF; font-size: 1.13rem; margin-bottom: 30px; }

/* ---------- enquiry / forms ---------- */
.enquiry-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.92rem; color: var(--navy); letter-spacing: 0.4px; }
.form-field label .req { color: var(--electric); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--text);
  padding: 13px 16px; border: 1.6px solid var(--line); border-radius: 11px;
  background: var(--grey-2); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--electric); background: var(--white); box-shadow: 0 0 0 4px var(--electric-soft);
}
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: #E05252; background: #FEF6F6; }
.field-error { display: none; color: #D43C3C; font-size: 0.83rem; font-weight: 600; }
.form-field.invalid .field-error { display: block; }
.form-note { font-size: 0.9rem; color: var(--text-soft); display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 17px; height: 17px; color: var(--electric); flex: 0 0 auto; margin-top: 2px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.form-success {
  display: none; grid-column: 1 / -1;
  background: #EAF7EF; border: 1.5px solid #BFE5CC; color: #1F7A3D;
  padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 0.97rem;
}
.form-success.show { display: flex; gap: 10px; align-items: flex-start; animation: fadeIn 0.4s ease; }
.form-success svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .cc-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--electric-soft);
  color: var(--electric); display: grid; place-items: center; flex: 0 0 auto;
}
.contact-card .cc-icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--text-soft); font-size: 0.97rem; line-height: 1.5; }
.contact-card a.cc-strong { color: var(--navy); font-weight: 700; font-size: 1.06rem; }
.contact-card a.cc-strong:hover { color: var(--electric); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 8px; }
.hours-table td { padding: 6px 0; color: var(--text-soft); }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.hours-table tr.today td { color: var(--electric); font-weight: 700; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1.6px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open { border-color: var(--electric); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 19px 22px; font-family: var(--head); font-weight: 700; font-size: 1.18rem;
  letter-spacing: 0.4px; color: var(--navy); text-transform: uppercase;
}
.faq-q:hover { color: var(--electric); }
.faq-q .faq-num { color: var(--electric); font-size: 1.05rem; min-width: 34px; }
.faq-q .faq-chev {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--electric-soft); color: var(--electric); transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-q .faq-chev svg { width: 16px; height: 16px; }
.faq-item.open .faq-chev { transform: rotate(180deg); background: var(--electric); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.38s ease; }
.faq-a-inner { padding: 0 22px 20px 68px; color: var(--text-soft); font-size: 1rem; }
.faq-a-inner a { font-weight: 700; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: var(--navy); border: 0; padding: 0; display: block; width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.4s ease; aspect-ratio: 4/3.4; }
.gallery-item.tall img { aspect-ratio: 4/4.8; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,32,53,0.85));
  opacity: 0; transition: opacity 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  color: var(--white); font-weight: 600; font-size: 0.95rem; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex; align-items: center; gap: 8px;
}
.gallery-caption svg { width: 17px; height: 17px; color: #5CA4EE; flex: 0 0 auto; }
.gallery-item:hover .gallery-caption { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(10, 22, 36, 0.93); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
.lb-figure { max-width: min(1080px, 92vw); position: relative; }
.lb-figure img {
  max-width: 100%; max-height: 76vh; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); margin-inline: auto;
}
.lb-caption { text-align: center; color: #CFDDEB; margin-top: 14px; font-weight: 600; font-size: 1rem; }
.lb-caption span { color: #7FA6CB; font-size: 0.88rem; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); color: var(--white); display: grid; place-items: center;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: var(--electric); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: -64px; }
.lb-next { right: -64px; }
.lb-close {
  position: fixed; top: 20px; right: 22px; width: 46px; height: 46px; border-radius: 999px;
  border: 0; cursor: pointer; background: rgba(255,255,255,0.12); color: var(--white);
  display: grid; place-items: center; transition: background 0.2s ease;
}
.lb-close:hover { background: var(--electric); }
.lb-close svg { width: 20px; height: 20px; }
@media (max-width: 1200px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy-3) 0%, var(--navy-2) 100%);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 999px;
  background: radial-gradient(circle, rgba(37,137,232,0.35), transparent 70%);
  top: -160px; right: -120px;
}
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.cta-inner p { color: #B9C9DA; font-size: 1.08rem; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-3); color: #A9BCD0; font-size: 0.97rem; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; padding: clamp(44px, 6vw, 70px) 0 40px; }
.footer-brand .brand-name { color: var(--white); font-size: 1.5rem; }
.footer-brand p { margin: 16px 0 18px; color: #8FA6BD; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: #CFDDEB; transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover { background: var(--electric); color: var(--white); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: var(--white); font-size: 1.16rem; letter-spacing: 1.4px; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #A9BCD0; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s ease, transform 0.2s ease; }
.footer-links a svg { width: 14px; height: 14px; color: var(--electric); flex: 0 0 auto; }
.footer-links a:hover { color: var(--white); transform: translateX(3px); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact .fc-line { display: flex; gap: 11px; align-items: flex-start; color: #A9BCD0; }
.footer-contact .fc-line svg { width: 18px; height: 18px; color: var(--electric); flex: 0 0 auto; margin-top: 3px; }
.footer-contact a { color: #D3E2F0; font-weight: 600; }
.footer-contact a:hover { color: var(--electric); }
.footer-hours { display: grid; gap: 4px; margin-top: 2px; font-size: 0.9rem; color: #8FA6BD; }
.footer-hours strong { color: #D3E2F0; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; color: #7E96AD;
}
.footer-bottom a { color: #AFC3D8; font-weight: 600; }
.footer-bottom a:hover { color: var(--electric); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; } .reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue svg { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 404 ---------- */
.nf-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.nf-code { font-family: var(--head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); color: var(--navy); line-height: 1; }
.nf-code span { color: var(--electric); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media img { aspect-ratio: 16/11; }
  .float-card.fc-hours { top: -18px; right: 8px; }
  .float-card.fc-rating { bottom: -18px; left: 8px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar .tb-group:last-child { display: none; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 20px 22px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-menu.open { display: flex; animation: mobileDrop 0.28s ease; }
  @keyframes mobileDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-link { padding: 13px 14px; border-radius: 10px; font-size: 1.15rem; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--electric-soft); }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .facility-list { grid-template-columns: 1fr; }
  .hero-content { padding: 72px 0; }
  .lb-figure { max-width: 94vw; }
  .faq-a-inner { padding-left: 22px; }
  .cta-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { aspect-ratio: 4/3; }
  .brand-tag { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 1.22rem; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { font-size: 0.84rem; padding: 8px 13px; }
  .float-card { padding: 12px 15px; }
  .float-card svg { width: 28px; height: 28px; }
  .float-card .fc-title { font-size: 1.12rem; }
  .topbar .container { justify-content: center; }
  .btn { padding: 13px 24px; }
}
