/* Aszend Swimming Academy — shared styles
   Brand colours sampled from the logo ring + droplet */
:root {
  --pink: #ff3d9a;
  --yellow: #ffcf1a;
  --navy: #0a5fae;
  --teal: #00aecb;
  --drop: #1446ff;
  --ink: #0e1b2c;
  --muted: #55657a;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f3f8fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 27, 44, .08);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }

/* Stripe motif from the logo ring */
.stripe {
  height: 6px;
  background: linear-gradient(90deg,
    var(--pink) 0 25%, var(--yellow) 25% 50%, var(--navy) 50% 75%, var(--teal) 75% 100%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .78rem/1 "Montserrat", sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: ""; width: 26px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--teal));
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 700 .95rem/1 "Montserrat", sans-serif;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--drop); color: #fff; box-shadow: 0 8px 20px rgba(20, 70, 255, .3); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-outline { border-color: currentColor; }
.btn-light { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand span { font: 800 1rem/1.1 "Montserrat", sans-serif; letter-spacing: .06em; }
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .18em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 10px 14px; border-radius: 10px;
  font: 600 .9rem/1 "Montserrat", sans-serif; color: var(--muted); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg-soft); }
.nav-links .btn { padding: 12px 20px; color: #fff; margin-left: 8px; }
.nav-links .btn:hover { background: var(--drop); color: #fff; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 12px 14px; }
.dropdown-menu small { display: block; font: 500 .78rem "Inter", sans-serif; color: var(--muted); margin-top: 4px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 130px; color: #fff; }
.hero-home { background: linear-gradient(140deg, #062a55 0%, var(--navy) 45%, var(--teal) 100%); }
.hero-putrajaya { background: linear-gradient(140deg, #4a0b38 0%, #b0207a 45%, var(--pink) 100%); }
.hero-sentul { background: linear-gradient(140deg, #052f52 0%, var(--navy) 55%, #3fa9f5 100%); }
.hero-dpp { background: linear-gradient(140deg, #014a57 0%, #00879f 50%, var(--teal) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero .eyebrow { color: #fff; }
.hero h1 { margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: 1.15rem; opacity: .92; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-badges span {
  padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
}
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-logo {
  width: min(380px, 85%); aspect-ratio: 1;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .25));
  animation: float 6s ease-in-out infinite;
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-card {
  position: absolute; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.hero-card b { font: 800 1.3rem "Montserrat", sans-serif; color: var(--drop); }
.hero-card.c1 { top: 8%; left: 0; }
.hero-card.c2 { bottom: 6%; right: 0; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 90px; }
.bubble { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); animation: rise 14s linear infinite; z-index: 1; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(-700px); opacity: 0; } }

.breadcrumb { font-size: .85rem; opacity: .8; margin-bottom: 8px; }
.breadcrumb a:hover { text-decoration: underline; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -60px; position: relative; z-index: 3; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--c, var(--teal)); }
.stat b { display: block; font: 800 1.6rem "Montserrat", sans-serif; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); }
.icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--teal)) 14%, white);
  color: var(--c, var(--teal));
}
.icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.card li { padding-left: 26px; position: relative; color: var(--ink); font-size: .95rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c, var(--teal));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font: 700 .72rem "Montserrat", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--c, var(--teal)) 14%, white); color: var(--c, var(--teal));
}

/* Feature: private lessons */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-panel {
  border-radius: 28px; padding: 40px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--drop), var(--navy));
}
.feature-panel h3 { font-size: 1.5rem; margin-bottom: 20px; }
.feature-panel ol { list-style: none; counter-reset: s; display: grid; gap: 18px; position: relative; z-index: 1; }
.feature-panel li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature-panel li::before {
  content: counter(s); width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .16);
  font: 800 1.1rem "Montserrat", sans-serif;
}
.feature-panel li b { display: block; }
.feature-panel li span { opacity: .85; font-size: .93rem; }
.feature-panel::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -80px; border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, .08);
}
.checklist { list-style: none; display: grid; gap: 14px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li i {
  flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--teal)) 16%, white); color: var(--c, var(--teal)); font-style: normal; font-weight: 800;
}
.checklist li p { color: var(--muted); }
.checklist li b { color: var(--ink); display: block; }

/* Branch cards */
.branch-card {
  border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.branch-top { padding: 30px; color: #fff; min-height: 170px; position: relative; overflow: hidden; }
.branch-top h3 { font-size: 1.45rem; margin-top: 12px; }
.branch-top .tag { background: rgba(255, 255, 255, .2); color: #fff; }
.branch-top::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, .14);
}
.branch-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.branch-body p { color: var(--muted); }
.branch-body .more { margin-top: auto; font: 700 .92rem "Montserrat", sans-serif; color: var(--drop); }

/* Levels / pathway */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: lv; }
.level { padding: 28px 24px; border-top: 6px solid var(--c); background: #fff; }
.level + .level { border-left: 1px solid var(--line); }
.level small { font: 700 .72rem "Montserrat", sans-serif; letter-spacing: .12em; color: var(--c); text-transform: uppercase; }
.level h3 { margin: 8px 0; }
.level p { color: var(--muted); font-size: .93rem; }
.levels-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* Timetable */
.timetable { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.timetable th, .timetable td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.timetable th { background: var(--ink); color: #fff; font: 700 .85rem "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.timetable tr:last-child td { border-bottom: 0; }
.timetable td:first-child { font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.note { margin-top: 16px; color: var(--muted); font-size: .88rem; }

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.quote .stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.05rem; }
.quote p { color: var(--ink); }
.quote cite { font-style: normal; font-weight: 700; font-size: .92rem; margin-top: auto; display: flex; align-items: center; gap: 10px; }
.quote cite::before {
  content: attr(data-initial); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c, var(--teal)); color: #fff; font-size: .85rem;
}

/* Google reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.reviews-head .section-head { margin-bottom: 0; }
.g-summary {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .15s;
}
.g-summary:hover { transform: translateY(-2px); }
.g-logo svg { width: 40px; height: 40px; display: block; }
.g-rating { display: flex; align-items: center; gap: 10px; }
.g-rating b { font: 800 1.8rem/1 "Montserrat", sans-serif; }
.g-summary .stars, .g-review .stars { color: #fbbc04; letter-spacing: 2px; }
.g-summary small { color: var(--muted); font-size: .85rem; }
.reviews-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px;
  scrollbar-width: thin; outline: none;
}
.g-review {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.g-review header { display: flex; align-items: center; gap: 12px; }
.g-avatar { flex: 0 0 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 1rem "Montserrat", sans-serif; }
.g-who { flex: 1; min-width: 0; }
.g-who b { display: block; font-size: .95rem; text-transform: capitalize; }
.g-who small { color: var(--muted); font-size: .8rem; }
.g-mini svg { width: 20px; height: 20px; display: block; }
.g-review p { color: var(--ink); font-size: .95rem; }
.g-review p.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--drop); font: 600 .88rem "Inter", sans-serif; cursor: pointer; }
.reviews-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.scroll-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.1rem; cursor: pointer; transition: background .15s;
}
.scroll-btn:hover { background: var(--bg-soft); }
.reviews-actions .btn-outline { color: var(--ink); margin-left: auto; }
@media (max-width: 980px) { .reviews-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 620px) {
  .reviews-track { grid-auto-columns: 86%; gap: 14px; }
  .reviews-actions .btn-outline { margin-left: 0; }
  .reviews-actions .btn { width: 100%; }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 1rem "Montserrat", sans-serif; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--drop); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* Location */
.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.location-info { display: grid; gap: 18px; align-content: start; }
.info-row { display: flex; gap: 14px; }
.info-row .icon { flex: 0 0 48px; height: 48px; width: 48px; }
.info-row b { display: block; font-family: "Montserrat", sans-serif; }
.info-row span { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 340px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.location.no-map { grid-template-columns: 1fr; }
.no-map .location-info { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.no-map .location-info > .eyebrow { grid-column: 1 / -1; justify-self: start; }
.no-map .location-info > h2 { grid-column: 1 / -1; margin-bottom: 8px; }
@media (max-width: 860px) { .no-map .location-info { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }

/* CTA */
.cta {
  border-radius: 28px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(130deg, var(--ink), var(--navy));
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { opacity: .85; max-width: 560px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta::before {
  content: ""; position: absolute; inset: auto -60px -60px auto; width: 240px; height: 240px; border-radius: 50%;
  border: 30px solid transparent;
  background: conic-gradient(var(--pink) 0 25%, var(--yellow) 0 50%, var(--navy) 0 75%, var(--teal) 0) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  opacity: .55;
}

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 64px 0 24px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 72px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Reveal on scroll */
/* Only hide before reveal when JavaScript is running, so content is visible without it */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo, .bubble { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .feature, .location, .cta { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-3, .grid-4, .levels { grid-template-columns: repeat(2, 1fr); }
  .level:nth-child(3) { border-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 40px 28px; }
}
@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-links .btn { margin: 8px 0 0; }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .levels, .footer-grid { grid-template-columns: 1fr; }
  .level + .level { border-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .hero { padding: 64px 0 110px; }
  .brand span { font-size: .85rem; }
  .hero-actions .btn { width: 100%; }
}
