:root {
  --sky-blue: #1cacce;
  --blue-grey: #3f4d61;
  --steel-teal: #5e7e82;
  --mariner-blue: #385b9c;
  --grandis-yellow: #ffcd66;

  --ink: #1b2430;
  --body-text: #4a5568;
  --bg-light: #f6f9fa;
  --bg-white: #ffffff;
  --border: #e3e9ec;
  --card-bg: #ffffff;
  --footer-bg: #12181f;

  --font-main: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(31, 55, 71, 0.08);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #eef2f6;
  --body-text: #b7c2cc;
  --bg-light: #141a21;
  --bg-white: #0e1318;
  --border: #262f3a;
  --card-bg: #171f28;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { transition: background-color 0.2s ease, color 0.2s ease; }

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--sky-blue);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg-white);
  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: var(--font-main);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

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

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--blue-grey); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.site-header .logo img { height: 28px; width: auto; }
.header-right { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 28px 14px; color: #fff; font-size: 0.92rem; font-weight: 500; font-family: var(--font-main); white-space: nowrap; }
.main-nav > ul > li:hover > a, .main-nav > ul > li > a.active { color: var(--sky-blue); }

.main-nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: var(--card-bg);
  min-width: 300px; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); padding: 10px 0; list-style: none; margin: 0;
}
.main-nav > ul > li:hover > .dropdown, .main-nav .dropdown li.has-children:hover > .dropdown { display: block; }
.main-nav .dropdown li a { display: block; padding: 10px 20px; color: var(--ink); font-size: 0.88rem; }
.main-nav .dropdown li a:hover { background: var(--bg-light); color: var(--sky-blue); }
.main-nav .dropdown li.has-children { position: relative; }
.main-nav .dropdown .dropdown { left: 100%; top: 0; }

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

/* ---------- Header icons ---------- */
.header-icons { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { border-color: var(--sky-blue); color: var(--sky-blue); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .icon-moon { display: none; }
:root[data-theme="dark"] .icon-btn .icon-sun { display: none; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: block; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab:hover { filter: brightness(1.08); }

/* ---------- Search page ---------- */
.search-box { position: relative; max-width: 640px; }
.search-box input[type="search"] { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg); color: var(--ink); }
.search-box input[type="search"]:focus { outline: 2px solid var(--sky-blue); outline-offset: 2px; }
.search-results { max-width: 760px; margin-top: 32px; }
.search-result-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.search-result-item:first-child { padding-top: 0; }
.search-result-item h3 { margin-bottom: 6px; }
.search-result-item h3 a:hover { color: var(--sky-blue); }
.search-result-item p { margin: 0; font-size: 0.92rem; }
.search-meta { color: var(--body-text); opacity: 0.75; font-size: 0.85rem; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--blue-grey) 0%, var(--steel-teal) 100%); color: #fff; padding: 90px 0 70px; }
.hero h1 { color: #fff; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--sky-blue); margin-bottom: 12px; display: block; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 640px; }
.hero.sm { padding: 60px 0; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-light); }
.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 600; color: var(--sky-blue); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky-blue); background: rgba(28,172,206,0.1); padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }
.card-meta { font-size: 0.82rem; color: var(--steel-teal); }

a.card-link { display: block; }
a.card-link .card { height: 100%; }

/* ---------- Quote / testimonial cards ---------- */
.quote-card { display: flex; flex-direction: column; gap: 10px; }
.quote-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-card .tag { align-self: flex-start; margin-bottom: 0; }
.quote-card .tag.score { color: #8a5a00; background: rgba(255,205,102,0.25); }
:root[data-theme="dark"] .quote-card .tag.score { color: var(--grandis-yellow); background: rgba(255,205,102,0.15); }
.quote-text { font-style: italic; font-size: 0.98rem; color: var(--ink); }
.quote-attr { font-size: 0.85rem; color: var(--steel-teal); margin: 0; }

/* ---------- Person / trainer cards ---------- */
.person-card { text-align: left; }
.person-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue-grey); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-main);
  font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}
.person-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center top; margin-bottom: 14px; border: 3px solid var(--sky-blue); background: #f7931e; }
.person-title { color: var(--sky-blue); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.person-bullets { font-size: 0.85rem; padding-left: 1.1em; margin-bottom: 10px; }
.person-bullets li { margin-bottom: 4px; }
.person-link { font-size: 0.82rem; font-weight: 600; color: var(--mariner-blue); }

/* ---------- Photo grid ---------- */
.photo-grid.cols-1 { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-grid.aspect-wide img { aspect-ratio: 16/9; }
.photo-grid.aspect-auto img { aspect-ratio: auto; object-fit: contain; background: var(--bg-light); }
.photo-grid figcaption { font-size: 0.82rem; color: var(--body-text); opacity: 0.75; margin-top: 8px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-main); font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--sky-blue); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding-top: 10px; font-size: 0.94rem; }

/* ---------- Pricing ---------- */
.pricing-card { text-align: center; }
.pricing-card.highlight { border-color: var(--sky-blue); box-shadow: var(--shadow); }
.pricing-card .price { font-family: var(--font-main); font-size: 1.8rem; font-weight: 700; color: var(--sky-blue); margin: 8px 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-main); font-weight: 600; font-size: 0.9rem; padding: 13px 28px; border-radius: 100px; background: var(--sky-blue); color: #fff; border: 2px solid var(--sky-blue); cursor: pointer; }
.btn:hover { background: #178aa5; border-color: #178aa5; }
.btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn.outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn.dark { background: var(--blue-grey); border-color: var(--blue-grey); }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.stat .num { font-family: var(--font-main); font-size: 2.4rem; font-weight: 700; color: var(--sky-blue); }
.stat .label { color: inherit; opacity: 0.75; font-size: 0.9rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--sky-blue); }

/* ---------- Timeline ---------- */
.timeline { border-left: 3px solid var(--sky-blue); padding-left: 28px; margin-top: 20px; }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--sky-blue); }
.timeline-item .year { font-family: var(--font-main); font-weight: 700; color: var(--ink); font-size: 1.1rem; }

/* ---------- Forms ---------- */
.contact-form { max-width: 640px; }
.contact-form .field { margin-bottom: 20px; }
.contact-form label { display: block; font-family: var(--font-main); font-weight: 600; font-size: 0.85rem; color: var(--ink); margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 13px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sky-blue); outline-offset: 2px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button[type="submit"] { border: 2px solid var(--sky-blue); cursor: pointer; }
.form-note { font-size: 0.85rem; color: var(--body-text); opacity: 0.75; margin-top: 12px; }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-main); color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a:hover { color: var(--sky-blue); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.social-links { display: flex; gap: 14px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.social-links a:hover { border-color: var(--sky-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--blue-grey); max-height: calc(100vh - 78px); overflow-y: auto; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 12px 0; }
  .main-nav > ul > li > a { padding: 14px 24px; }
  .main-nav .dropdown { position: static; display: none !important; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.15); }
  .main-nav > ul > li.nav-open > .dropdown { display: block !important; }
  .main-nav .dropdown li a { color: #fff; }
  .main-nav .dropdown li a:hover { background: rgba(255,255,255,0.08); color: var(--sky-blue); }
  .main-nav .dropdown .dropdown { left: 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
}

/* ---------- Footer trust row / disclaimer / language ---------- */
.footer-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }
.footer-trust img { height: 54px; width: auto; border-radius: 8px; }
.footer-disclaimer { font-size: 0.78rem; opacity: 0.75; max-width: 880px; margin: 16px 0 0; }
.footer-lang { font-size: 0.82rem; margin: 12px 0 0; }
.footer-lang a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Click-to-load video ---------- */
.video-facade { margin: 0 auto; max-width: 820px; }
.video-facade iframe, .video-play { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-play { position: relative; padding: 0; cursor: pointer; background: #000; overflow: hidden; box-shadow: var(--shadow); }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s; }
.video-play:hover img, .video-play:focus-visible img { opacity: 1; }
.video-play-icon { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--sky-blue); }
.video-play-icon::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-facade figcaption { font-size: .85rem; opacity: .75; margin-top: 10px; text-align: center; }

/* ---------- Content blocks used by guides and lessons ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.badge-row img { height: 84px; width: auto; }
.lms-shots img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff; }
.post-body h2 { margin-top: 1.6em; }
.post-body h3 { margin-top: 1.3em; }
.callout { border-left: 4px solid var(--sky-blue); background: var(--bg-light); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0; }
.callout p:last-child { margin-bottom: 0; }
.weight-bar { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr) auto; gap: 12px; align-items: center; margin: 8px 0; font-size: .92rem; }
.weight-bar .bar { height: 10px; border-radius: 6px; background: var(--border); overflow: hidden; }
.weight-bar .bar > span { display: block; height: 100%; background: var(--sky-blue); }
@media (max-width: 760px) { .weight-bar { grid-template-columns: 1fr auto; } .weight-bar .bar { grid-column: 1 / -1; } }

/* Study-guide navigation */
.guide-nav { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); font-weight: 600; }
.guide-nav a { text-decoration: none; }
.glossary dt { font-weight: 700; margin-top: 1.1em; color: var(--blue-grey); }
.glossary dd { margin: .2em 0 0; }
