/* CCA Emirates — shared styles */

:root {
  --navy: #14284b;
  --navy-dark: #0d1c37;
  --yellow: #f9db0f;
  --white: #ffffff;
  --off-white: #f5f6f8;
  --text: #1c1c1c;
  --max-width: 1200px;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Accessibility: skip link + focus visibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  z-index: 10000;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { color: var(--navy); font-weight: 700; margin: 0 0 16px; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
}

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { opacity: .85; transform: scale(1.03); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.btn:active { transform: scale(0.97); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 4px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: scale(1.03); }
.btn-outline:active { transform: scale(0.97); }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(249, 219, 15, .3);
  box-shadow: 0 2px 18px rgba(249, 219, 15, .1);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(249, 219, 15, .5);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 1px 14px rgba(249, 219, 15, .18);
}
.site-header.is-scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }
.site-header.is-scrolled .logo img { height: 46px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo img { height: 60px; transition: height .25s ease; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transition: right .2s ease;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {
  right: 0;
}
.main-nav a:hover { color: var(--yellow); }
.main-nav a.active { color: var(--yellow); }

.dropdown-chevron {
  display: inline-block;
  margin-left: 5px;
  font-size: .65em;
  transition: transform .2s ease;
}
.has-dropdown.open .dropdown-chevron { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-radius: 0 0 4px 4px;
  padding: 8px 0;
}
.has-dropdown.open .dropdown { display: block; }
.dropdown li a {
  color: var(--navy);
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  white-space: normal;
}
.dropdown li a:hover { background: var(--off-white); color: var(--navy); }

.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-icons a { color: var(--white); display: flex; align-items: center; }
.header-icons a:hover { color: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 85vw);
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 24px 24px;
    gap: 20px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    overflow-y: auto;
    z-index: 300;
  }
  .main-nav.open { transform: translateX(0); opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 16px; width: 100%; }
  .header-icons { flex-wrap: wrap; }
  .dropdown { position: static; box-shadow: none; background: var(--navy-dark); display: none; border-radius: 4px; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { color: var(--white); }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    /* Must stay below .site-header's own z-index (100) — .main-nav's
       z-index:300 only applies within .site-header's stacking context
       (since .site-header is itself a positioned, z-indexed element), so
       comparing against elements outside that header uses the header's
       z-index, not the drawer's. A higher value here silently sits on
       top of the whole open drawer and swallows every click. */
    z-index: 90;
  }
  .nav-backdrop.open { display: block; }
}

/* Cover banner */
.cover-banner {
  background: var(--navy);
  line-height: 0;
}
.cover-banner img { width: 100%; height: auto; display: block; }

/* Home landing experience */
.home-hero {
  overflow: hidden;
  padding: clamp(10px, 1.6vw, 22px);
}
.home-hero-frame {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  isolation: isolate;
}
.home-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(249, 219, 15, .28);
  border-radius: inherit;
  pointer-events: none;
  transform-origin: left center;
  animation: heroFrameDraw .9s .35s both cubic-bezier(.22, 1, .36, 1);
}
.home-hero-frame > img {
  opacity: 0;
  transform: scale(1.035);
  animation: heroImageEnter 1s .08s both cubic-bezier(.22, 1, .36, 1);
}
.ball-trajectory {
  position: absolute;
  z-index: 3;
  left: 3%;
  bottom: 2%;
  width: 46%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28));
}
.trajectory-line {
  fill: none;
  stroke: rgba(249, 219, 15, .78);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 13;
  stroke-dashoffset: 180;
  animation: trajectoryDraw 1.8s .45s both ease-out;
}
.trajectory-ball {
  fill: #b32025;
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  animation: trajectoryBallReveal .2s .5s both;
}
.home-facts {
  background: var(--navy-dark);
  color: var(--white);
  border-top: 1px solid rgba(249, 219, 15, .28);
  border-bottom: 1px solid rgba(249, 219, 15, .2);
}
.home-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 22px;
  padding-bottom: 22px;
}
.home-fact {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 4px clamp(12px, 2.5vw, 34px);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .18);
}
.home-fact:first-child { padding-left: 0; }
.home-fact:last-child { padding-right: 0; border-right: 0; }
.home-fact strong {
  color: var(--yellow);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1;
}
.home-fact span:last-child {
  font-size: clamp(.73rem, 1.25vw, .92rem);
  line-height: 1.35;
}
.home-intro-actions,
.home-closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.home-closing-cta {
  position: relative;
  min-height: clamp(430px, 47vw, 610px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
  isolation: isolate;
}
.home-closing-cta > img,
.home-closing-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-closing-cta > img {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: closingImageDrift 18s ease-in-out infinite alternate;
}
.home-closing-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 18, 36, .96) 0%, rgba(13, 28, 55, .86) 40%, rgba(13, 28, 55, .28) 76%, rgba(13, 28, 55, .08) 100%);
}
.home-closing-content {
  width: 100%;
  margin: auto;
}
.home-closing-content > * { max-width: 620px; }
.home-closing-content .eyebrow { color: var(--yellow); }
.home-closing-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.12;
}
.home-closing-content p:not(.eyebrow) { font-size: 1.05rem; }
.home-closing-actions { justify-content: flex-start; }
.btn-ghost {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 4px;
  color: var(--white);
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--white); color: var(--navy); transform: translateY(-2px); }

@keyframes heroImageEnter {
  from { opacity: 0; transform: scale(1.035) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroFrameDraw {
  from { opacity: 0; transform: scaleX(.35); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes trajectoryDraw { to { stroke-dashoffset: 0; } }
@keyframes trajectoryBallReveal { to { opacity: 1; } }
@keyframes closingImageDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 0, 0); }
}

@media (max-width: 700px) {
  .home-hero { padding: 0; }
  .home-hero-frame { border-radius: 0; }
  /* The hero is one wide composite (about 2.06:1), so full width alone makes
     it shallow on phones. The headline and copy start at about 9.25% of the
     artwork's width, so the crop is anchored left to keep them clear. 8:5 at
     35% keeps about 7.8-85.4%: it trims the decorative left border and the
     outer right edge of the top-right net photo, but both player figures, the
     Smriti photo and all text stay in view. aspect-ratio also reserves the
     height before the image loads, so there is no layout shift. */
  .home-hero-frame > img {
    aspect-ratio: 8 / 5;
    object-fit: cover;
    object-position: 35% 50%;
  }
  .ball-trajectory { left: 1%; bottom: -1%; width: 54%; }
  /* Compact stats on phones so the hero leads: tighter padding and a slightly
     smaller label. The base label rule (.home-fact span:last-child) also
     matches the number span inside <strong>, shrinking the numbers to label
     size; on phones the number takes the <strong> size it was designed for.
     Its line height is already reserved by <strong>, so this adds no height. */
  .home-facts-grid { grid-template-columns: repeat(2, 1fr); padding-top: 6px; padding-bottom: 6px; }
  .home-fact { padding: 6px 9px; }
  .home-fact strong { font-size: 1.3rem; font-weight: 600; }
  .home-fact > span:last-child { font-size: .7rem; line-height: 1.3; }
  .home-fact strong .fact-number { font-size: inherit; line-height: inherit; }
  /* Tighter hand-off from the stats into the intro section on phones only. */
  .home-facts + .section { padding-top: 44px; }
  .home-fact:nth-child(2) { border-right: 0; }
  .home-fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .home-fact:first-child,
  .home-fact:last-child { padding-left: 9px; padding-right: 9px; }
  .home-closing-cta { min-height: 540px; align-items: end; }
  .home-closing-cta > img { object-position: 68% center; }
  .home-closing-overlay { background: linear-gradient(0deg, rgba(7, 18, 36, .98) 0%, rgba(13, 28, 55, .88) 45%, rgba(13, 28, 55, .18) 100%); }
  .home-closing-content { padding-top: 190px; padding-bottom: 48px; }
  .home-closing-actions { align-items: stretch; flex-direction: column; }
  .home-closing-actions a { text-align: center; }
}

/* Section */
.section { padding: 70px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 40px; }

/* Two-column layout used across intro / coaching / coaches / rhino / newsletter */
.two-col {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.two-col.reverse { flex-direction: row-reverse; }
.two-col .col-main { flex: 1 1 0; min-width: 0; }
.two-col .col-side { flex: 1 1 0; min-width: 0; }
.two-col .col-side img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 8px;
}
.subtitle { font-weight: 600; color: var(--navy); }
.eyebrow { text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-size: .85rem; color: var(--navy); margin-bottom: 4px; }

@media (max-width: 860px) {
  .two-col, .two-col.reverse { flex-direction: column; }
  .two-col .col-side img { min-height: 220px; }
}

/* Events */
.events-placeholder {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  color: #777;
}
.section-navy .events-placeholder,
.col-side .events-placeholder { border-color: rgba(255,255,255,.3); color: #cfd4e0; }

/* Cards (horizontal scroll carousel style) */
.card-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.card-scroll .card {
  scroll-snap-align: start;
  flex: 0 0 300px;
}
.card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.card img { height: 180px; object-fit: cover; width: 100%; transition: transform .35s ease; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; color: #444; font-size: .95rem; }
.card-body a.read-more { color: var(--navy); font-weight: 700; }
.card-body a.read-more::after { content: " →"; display: inline-block; transition: transform .2s ease; }
.card-body a.read-more:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.card:hover .card-body a.read-more::after,
.card:focus-within .card-body a.read-more::after { transform: translateX(5px); }
.card:focus-within { border-color: var(--yellow); box-shadow: 0 8px 20px rgba(0,0,0,.12); }

/* Social banner */
.social-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding-top: 50px;
}
.social-banner h2 { color: var(--white); margin-bottom: 30px; }
.social-banner-img { width: 100%; height: auto; display: block; }

/* Forms */
form.site-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
form.site-form.newsletter { max-width: 700px; }
form.site-form .full { grid-column: 1 / -1; }
form.site-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .9rem;
}
form.site-form input,
form.site-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 1rem;
}
form.site-form textarea { resize: vertical; min-height: 120px; }
form.site-form .form-note {
  grid-column: 1 / -1;
  font-size: .8rem;
  color: #666;
}
form.site-form .form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9rem;
}
form.site-form .form-status.success { background: #e6f7ec; color: #1a7a3d; }
form.site-form .form-status.error { background: #fdecec; color: #b3261e; }
@media (max-width: 640px) {
  form.site-form { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cfd4e0;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h3 { color: var(--white); font-size: 1.05rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--yellow); }
.footer-icons { display: flex; gap: 14px; margin-top: 10px; }
.footer-icons a { color: var(--white); display: flex; align-items: center; }
.footer-icons a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
}
.footer-bottom a:hover { color: var(--yellow); }

/* Floating chat bubble — the only floating icon on the page now.
   WhatsApp and Instagram moved into the header nav (.header-icons). */
:root {
  --float-size: 56px;
  --float-gap: 14px;
  --float-offset: 24px;
}

.chat-launcher {
  position: fixed;
  right: var(--float-offset);
  bottom: var(--float-offset);
  width: var(--float-size);
  height: var(--float-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(13,28,55,.28), 0 0 0 4px rgba(249,219,15,.2);
  z-index: 200;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  background: var(--yellow);
  color: var(--navy);
}
.chat-launcher:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 34px rgba(13,28,55,.32), 0 0 0 5px rgba(249,219,15,.24);
  background: #ffe326;
}
.chat-launcher:active {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 3px 10px rgba(13,28,55,.18);
}

/* Sticky mobile "Book Now" bar */
.mobile-book-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--navy);
  padding: 10px 16px;
  gap: 12px;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.mobile-book-bar a[href^="tel:"] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-book-bar .btn { flex: 1; text-align: center; }

@media (max-width: 768px) {
  .mobile-book-bar { display: flex; }
  body { padding-bottom: 68px; }
  :root {
    --float-size: 44px;
    --float-gap: 8px;
    --float-offset: 84px;
  }
  /* Anchor the chat launcher to the sticky Enquire Now bar: keep its height
     (var(--float-offset), about 14px above the 70px bar) but tuck it into the
     right edge instead of 84px in, where it floated over the page content. */
  .chat-launcher { right: 16px; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .gallery-grid button { border-radius: 4px; }
}
.gallery-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-grid button:hover img { transform: scale(1.06); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(13,28,55,.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Map embed */
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.map-embed iframe { display: block; }

/* Simple inner page hero for subpages */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero.has-image {
  min-height: 300px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(13,28,55,.94), rgba(20,40,75,.72)),
    var(--page-hero-image);
  background-size: cover;
  background-position: center;
}
.page-hero.has-image h1 {
  max-width: 850px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

/* Service-page summaries and conversion panels */
.service-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 34px;
}
.service-fact {
  padding: 16px;
  border: 1px solid #e1e4ea;
  border-top: 3px solid var(--yellow);
  border-radius: 8px;
  background: var(--off-white);
}
.service-fact strong,
.service-fact span { display: block; }
.service-fact strong { color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .035em; }
.service-fact span { margin-top: 4px; font-size: .92rem; }
.service-cta {
  margin-top: 46px;
  padding: 28px;
  border-radius: 12px;
  background: var(--off-white);
  border-left: 5px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.service-cta h2 { font-size: 1.55rem; margin-bottom: 8px; }
.service-cta p { margin-bottom: 0; }
.service-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 42px;
}
.about-intro-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(13,28,55,.16);
}
.coach-card { border-top: 4px solid var(--yellow); }
.coach-card .coach-role { color: #596273; font-weight: 600; margin-top: -8px; }
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}
.gallery-filter {
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  padding: 9px 18px;
  font: 600 .9rem var(--font);
  cursor: pointer;
}
.gallery-filter:hover,
.gallery-filter.active { background: var(--navy); color: var(--white); }
.gallery-grid button[hidden] { display: none; }

@media (max-width: 760px) {
  .page-hero.has-image { min-height: 230px; }
  .service-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
  .service-cta-actions { width: 100%; }
  .service-cta-actions a { flex: 1; text-align: center; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 420px) {
  .service-facts { grid-template-columns: 1fr; }
}

/* Accordion (FAQ) */
.accordion { margin-top: 8px; border-top: 1px solid #e4e4e4; }
.accordion-item { border-bottom: 1px solid #e4e4e4; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 4px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.accordion-trigger .chevron {
  flex-shrink: 0;
  font-size: .8rem;
  color: var(--navy);
  transition: transform .25s ease;
}
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.accordion-panel p { margin: 0; padding: 0 4px 18px; color: #444; }

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease;
}
.preloader.is-hidden { opacity: 0; pointer-events: none; }
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.preloader-logo {
  width: 130px;
  height: auto;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--yellow);
  animation: preloaderSpin .8s linear infinite;
}
@keyframes preloaderSpin { to { transform: rotate(360deg); } }
@keyframes preloaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Carousel arrows + dots (service cards) */
.carousel-wrap { position: relative; }
.carousel-arrow {
  position: absolute;
  top: 90px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--navy);
  font-size: 1.1rem;
}
.carousel-arrow:hover { background: var(--yellow); border-color: var(--yellow); }
.carousel-arrow.prev { left: -8px; }
.carousel-arrow.next { right: -8px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #d6d6d6;
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--navy); }
@media (max-width: 700px) {
  .carousel-arrow { display: none; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-hero-frame::after,
  .home-hero-frame > img,
  .home-closing-cta > img { animation: none; opacity: 1; transform: none; }
  .ball-trajectory { display: none; }
  .card img,
  .card-body a.read-more::after,
  .btn,
  .btn-outline,
  .btn-ghost { transition: none; }
}

/* Staggered scroll-reveal for individual items within a section (cards,
   stat blocks, testimonials) — JS sets a per-item transition-delay based
   on its position before adding .in-view, so items fade in one after
   another rather than all at once. */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal-item.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-item { opacity: 1; transform: none; transition: none; }
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--off-white);
  padding: 14px 0;
  font-size: .85rem;
}
.breadcrumbs a { color: var(--navy); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.breadcrumbs .sep { margin: 0 8px; color: #999; }
.breadcrumbs .current { color: #666; }

/* ============================================================
   Chat widget — mobile-first. Base rules below are the phone
   experience (full-screen modal); the min-width:768px block at the
   bottom adapts it up to the desktop floating-panel treatment.
   (Launcher/bubble itself is styled with the other floats above.)
   ============================================================ */
.chat-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: #f7f8fb;
  border-radius: 0;
  box-shadow: none;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 400; /* above the sticky header (100) and mobile nav drawer (300) */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .26s ease, transform .26s ease;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.chat-panel.open { opacity: 1; transform: translateY(0); }

.chat-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), transparent 52%),
    var(--navy);
  color: var(--white);
  padding: 14px 12px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.chat-header::after {
  content: "";
  position: absolute;
  width: 116px;
  height: 116px;
  border: 18px solid rgba(249,219,15,.08);
  border-radius: 50%;
  right: 42px;
  top: -74px;
  pointer-events: none;
}
.chat-header h3 { color: var(--white); margin: 0; font-size: 1rem; font-weight: 700; }
.chat-header-info { display: flex; align-items: center; gap: 12px; min-width: 0; position: relative; z-index: 1; }
.chat-avatar {
  width: 58px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-status {
  margin: 2px 0 0;
  font-size: .78rem;
  color: #dfe5f0;
  white-space: nowrap;
}
/* 44x44 minimum touch target, always visible (header never scrolls away) */
.chat-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: background-color .2s ease, transform .2s ease;
}
.chat-close:hover { background: rgba(255,255,255,.12); transform: rotate(4deg); }

.chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(249,219,15,.09), transparent 180px),
    #f7f8fb;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.chat-messages::-webkit-scrollbar { display: none; }

.chat-msg {
  max-width: min(82%, 310px);
  padding: 12px 15px;
  border-radius: 17px;
  font-size: .92rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* AI replies: left-aligned, light gray/off-white bubble, navy text */
.chat-msg.bot {
  background: var(--white);
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  border: 1px solid rgba(20,40,75,.08);
  box-shadow: 0 5px 16px rgba(13,28,55,.07);
}
/* Visitor messages: right-aligned, yellow/light background */
.chat-msg.user {
  background: var(--yellow);
  color: var(--navy);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  box-shadow: 0 5px 14px rgba(154,132,0,.14);
}
.chat-msg-text p { margin: 0 0 8px; }
.chat-msg-text p:last-child { margin-bottom: 0; }
.chat-msg-text ul,
.chat-msg-text ol { margin: 6px 0 2px; padding-left: 20px; }
.chat-msg-text li + li { margin-top: 4px; }
.chat-msg-text strong { font-weight: 700; }
.chat-msg-text code {
  background: rgba(20,40,75,.08);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: .86em;
}
.chat-msg-text a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.chat-privacy {
  margin: 0;
  padding: 7px 12px 0;
  background: var(--white);
  color: #5f6672;
  font-size: .68rem;
  line-height: 1.35;
  text-align: center;
}
.chat-privacy a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Animated typing indicator */
.chat-msg.typing { background: var(--white); padding: 14px 17px; min-width: 58px; }
.chat-typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8adb8;
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(20,40,75,.09);
  flex-shrink: 0;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 -8px 22px rgba(13,28,55,.045);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dce1e9;
  border-radius: 12px;
  background: #f7f8fb;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem; /* 16px+ prevents iOS Safari auto-zoom on focus */
}
.chat-form input:focus {
  outline: 2px solid rgba(249,219,15,.75);
  outline-offset: 1px;
  border-color: #c6ad00;
  background: var(--white);
}
.chat-form button {
  background: var(--yellow);
  color: var(--navy);
  border: none;
  min-width: 52px;
  height: 46px;
  padding: 0 15px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color .2s ease, transform .2s ease;
}
.chat-form button:hover { background: #ffe326; transform: translateY(-1px); }
.chat-form button:disabled { opacity: .6; cursor: default; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop and tablet: adapt up to a compact floating panel instead of
   full-screen. Phones stay full-screen in either orientation: this is the
   complement of MOBILE_CHAT_QUERY in js/main.js, which is
   "(max-width: 767px), (max-height: 500px) and (pointer: coarse)", so a
   landscape phone (wide but short, touch) never gets the floating panel. */
@media (min-width: 768px) and (min-height: 501px),
       (min-width: 768px) and (pointer: fine),
       (min-width: 768px) and (pointer: none) {
  .chat-panel {
    inset: auto;
    bottom: calc(var(--float-offset) + var(--float-size) + var(--float-gap));
    right: var(--float-offset);
    width: min(390px, calc(100vw - 32px));
    /* Height must be capped relative to the bottom offset above, not just
       100vh, or the panel's top edge can land above y:0 on shorter
       windows and overlap the sticky header. The extra 100px keeps a
       safety margin below the header (~80px) regardless of viewport
       height. */
    height: min(570px, calc(100vh - var(--float-offset) - var(--float-size) - var(--float-gap) - 96px));
    min-height: 360px;
    border: 1px solid rgba(20,40,75,.1);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(13,28,55,.3), 0 8px 24px rgba(13,28,55,.14);
    transform: translateY(16px) scale(.97);
    padding-top: 0;
    padding-bottom: 0;
  }
  .chat-panel.open { transform: translateY(0) scale(1); }
}

/* Full-screen phone chat: same condition as MOBILE_CHAT_QUERY in js/main.js */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .chat-header { padding-top: max(14px, env(safe-area-inset-top)); }
  .chat-form { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .chat-form button span { display: none; }
  .chat-msg { max-width: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-panel,
  .chat-launcher,
  .chat-close,
  .chat-form button { transition: none; }
  .chat-typing-dots span { animation-duration: 2s; }
}
