@import url("../assets/fonts/fonts.css");

/* ============================================================
   Little Smiles — Παιδοδοντιατρείο Καλαμαριά
   Design system + components + responsive
   ============================================================ */

:root {
  /* ocean palette */
  --deep: #0b3a5c;
  --sea: #1488c4;
  --sea-2: #2ba7dd;
  --teal: #27c4b8;
  --sky: #d9f1fb;
  --foam: #f3fbff;
  --sand: #fdeec2;

  /* brand accents (from logo) */
  --red: #e63b3b;
  --yellow: #f5b81e;
  --blue: #2b7fd4;
  --green: #4caf50;
  --purple: #8e44ad;
  --orange: #f08a24;

  --ink: #143246;
  --muted: #5b7588;
  --white: #ffffff;

  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 18px 40px -18px rgba(11, 58, 92, 0.35);
  --shadow-lg: 0 30px 70px -24px rgba(11, 58, 92, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 17px;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--deep);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.6em;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 12px 26px -10px rgba(20, 136, 196, 0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -12px rgba(20, 136, 196, 0.85); }
.btn-accent { background: var(--yellow); color: var(--deep); box-shadow: 0 12px 26px -10px rgba(245, 184, 30, 0.7); }
.btn-accent:hover { transform: translateY(-3px); }
.btn-ghost { background: rgba(255, 255, 255, 0.85); color: var(--deep); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--sea); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 14px 0;
}
.site-header.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -16px rgba(11, 58, 92, 0.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand .brand-text { display: none; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  color: var(--deep);
  transition: background 0.2s, color 0.2s;
}
.site-header:not(.solid) .nav-links a { color: var(--deep); }
.nav-links a:hover { background: var(--sky); }
.nav-links a.active { color: var(--sea); background: var(--sky); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: none; border-radius: 14px;
  background: var(--sky);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 2.6px; border-radius: 3px; background: var(--deep);
  transform: translate(-50%, -50%); transition: 0.3s var(--ease);
}
.nav-toggle span::before { transform: translate(-50%, -8px); }
.nav-toggle span::after { transform: translate(-50%, 6px); }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translate(-50%, 0) rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 16px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0; pointer-events: none;
    transition: 0.3s var(--ease);
  }
  body.menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.15rem; padding: 0.7em 1em; }
  .nav-cta { margin: 6px 0 0; }
  .nav-links .btn { justify-content: center; }
}

/* ============================================================
   HERO — underwater scene (pure CSS/SVG, no video credits)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
  background: #1276b5;
}
/* full-bleed background video (claynosaurz-style) */
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,40,64,0.62) 0%, rgba(6,40,64,0.30) 45%, rgba(6,40,64,0.12) 100%),
    linear-gradient(0deg, rgba(6,40,64,0.55) 0%, rgba(6,40,64,0) 45%);
}
.hero__rays {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.18) 42%, transparent 47%),
    linear-gradient(80deg, transparent 58%, rgba(255,255,255,0.13) 62%, transparent 68%);
  mix-blend-mode: screen;
  animation: rayShift 9s ease-in-out infinite alternate;
}
@keyframes rayShift { to { transform: translateX(40px) scaleY(1.05); } }

.hero__scene { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__content { max-width: 760px; margin: 0 auto; color: #fff; text-align: center; }
.hero__cta { justify-content: center; }
.hero__badges { justify-content: center; }
.hero__content .eyebrow { color: #eafff9; }
.hero h1 { color: #fff; text-shadow: 0 6px 24px rgba(7, 49, 78, 0.35); }
.hero h1 .accent { color: var(--yellow); }
.hero__lead { color: #f0fbff; font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0 auto 1.6em; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.hero__badge b { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1; }
.hero__badge span { font-size: 0.85rem; opacity: 0.9; font-weight: 600; }

/* swimming fish */
.swimmer { position: absolute; will-change: transform; opacity: 0.96; }
.swimmer img { filter: drop-shadow(0 10px 18px rgba(7, 49, 78, 0.25)); }
.fish-a { top: 18%; width: 120px; animation: swimRight 26s linear infinite; }
.fish-b { top: 52%; width: 90px; animation: swimLeft 32s linear infinite; }
.fish-c { top: 70%; width: 150px; animation: swimRight 38s linear infinite; animation-delay: -8s; }
.fish-d { top: 30%; width: 80px; animation: swimLeft 30s linear infinite; animation-delay: -14s; }
@keyframes swimRight {
  0% { transform: translateX(-25vw) translateY(0); }
  50% { transform: translateX(60vw) translateY(-22px); }
  100% { transform: translateX(125vw) translateY(0); }
}
@keyframes swimLeft {
  0% { transform: translateX(125vw) scaleX(-1) translateY(0); }
  50% { transform: translateX(40vw) scaleX(-1) translateY(20px); }
  100% { transform: translateX(-25vw) scaleX(-1) translateY(0); }
}

/* bubbles */
.bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bubble {
  position: absolute; bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.25) 60%, rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.4);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-112svh) translateX(30px); opacity: 0; }
}

/* seabed */
.hero__bed { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2; pointer-events: none; }
.hero__bed svg { width: 100%; height: auto; display: block; }
.seaweed { transform-origin: bottom center; animation: sway 5s ease-in-out infinite alternate; }
.seaweed.s2 { animation-duration: 6.5s; }
.seaweed.s3 { animation-duration: 4.2s; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* curved divider into next (light) section */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; pointer-events: none; }
.wave-divider svg { width: 100%; height: 90px; display: block; }
/* top-edge variant — a section's upper edge curves down from the section above */
.wave-top { top: -1px; bottom: auto; transform: rotate(180deg); }
/* keep section content above the wave dividers */
.section > .container { position: relative; z-index: 3; }

/* ============================================================
   GENERIC SECTION BG VARIANTS
   ============================================================ */
.bg-foam { background: var(--foam); }
.bg-sky { background: var(--sky); }
.bg-deep { background: var(--deep); color: #fff; }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep .lead { color: #c8e4f3; }

/* ============================================================
   INTRO / VALUE CARDS
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 136, 196, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card .ico {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--sky);
}
.value-card .ico svg { width: 38px; height: 38px; }
.value-card h3 { margin-bottom: 0.35em; }
.value-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ============================================================
   PARALLAX GALLERY (the scrollytelling centerpiece)
   ============================================================ */
.gallery { position: relative; overflow: hidden; background: var(--foam); }
.pgx { display: flex; gap: 18px; justify-content: center; align-items: flex-start; margin-top: 50px; }
.pgx-col { flex: 1; display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.pgx-tile {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pgx-tile img { width: 100%; height: 100%; object-fit: cover; }
.t-blue { background: #bfe6f7; }
.t-green { background: #cdeecb; }
.t-yellow { background: #fdeebb; }
.t-pink { background: #fbd6e2; }
.t-purple { background: #e6d4f2; }
.t-orange { background: #fde0c4; }
@media (max-width: 760px) {
  .pgx-col:nth-child(4), .pgx-col:nth-child(5) { display: none; }
}
@media (max-width: 480px) {
  .pgx-col:nth-child(3) { display: none; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--c, var(--sea));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card .ico {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 16px;
  display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--sea)) 16%, #fff);
}
.svc-card .ico svg { width: 34px; height: 34px; }
.svc-card h3 { color: var(--deep); }
.svc-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ============================================================
   STATS / TRUST
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 14px; background: rgba(255,255,255,0.08); border-radius: var(--radius); }
.bg-deep .stat { background: rgba(255,255,255,0.07); }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--yellow); display: block; line-height: 1; }
.stat span { font-size: 0.95rem; opacity: 0.9; }

/* ============================================================
   ABOUT / DOCTOR
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.doc-card {
  position: relative;
  background: linear-gradient(160deg, var(--sea-2), var(--sea));
  border-radius: 32px;
  padding: 48px 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.doc-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.doc-card .tooth { position: absolute; right: 18px; top: 18px; width: 86px; opacity: 0.9; }
.doc-card h3 { color: #fff; font-size: 1.9rem; }
.doc-card .role { font-weight: 700; color: #eafff9; margin-bottom: 1.2em; }
.doc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-card li { display: flex; gap: 10px; align-items: flex-start; }
.doc-card li svg { flex: none; margin-top: 3px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 2px solid rgba(20, 136, 196, 0.12); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--deep); padding: 22px 4px;
}
.faq-q .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; transition: 0.3s var(--ease); color: var(--sea); font-size: 1.3rem; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--sea); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 4px 22px; margin: 0; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--teal), var(--sea));
  border-radius: 34px;
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner .btn { margin-top: 10px; }
.cta-banner .bubble-deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.14); }

/* ---- CTA card: rounded banner with the coral-band clip running behind the buttons ---- */
.cta-banner > * { position: relative; z-index: 2; }              /* text + buttons on top */
.cta-banner > .cta-banner__video {                                /* dedicated coral clip fills the whole card */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 0;
}
.cta-banner > .cta-banner__scrim {                                /* light tint so reef shows behind text */
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,90,130,0.30), rgba(11,58,92,0.40));
}
.cta-banner h2, .cta-banner .lead, .cta-banner .eyebrow { text-shadow: 0 2px 14px rgba(7,49,78,0.6); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--sky); display: grid; place-items: center; }
.info-list b { display: block; font-family: var(--font-display); color: var(--deep); }
.info-list span, .info-list a { color: var(--muted); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(20,136,196,0.18); }
.hours li.closed span:last-child { color: var(--red); font-weight: 700; }
.hours li b { font-weight: 700; color: var(--deep); }

.card-pad { background: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--deep); margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 13px 16px;
  border: 2px solid rgba(20,136,196,0.2); border-radius: 14px; background: var(--foam);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sea); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 700; }

.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--deep); color: #cfe6f3; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand img { height: 54px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3)); }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 0.8em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; color: #9fc2d6; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.socials a:hover { background: var(--sea); transform: translateY(-3px); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
/* reveals only hide when JS is active (.js added by inline head script) —
   if JS fails/disabled, content is always visible (never stuck invisible) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* page hero (inner pages) — same reef world as the home hero */
.page-hero {
  padding: 160px 0 90px;
  background:
    linear-gradient(180deg, rgba(20,136,196,0.72), rgba(11,58,92,0.82)),
    url("../assets/img/hero-scene.webp") center 35% / cover no-repeat;
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; text-shadow: 0 4px 20px rgba(7,49,78,0.45); }
.page-hero .lead { color: #eafaff; margin-inline: auto; text-shadow: 0 2px 12px rgba(7,49,78,0.4); }
.page-hero .breadcrumb { text-shadow: 0 2px 10px rgba(7,49,78,0.4); }
.page-hero .container { position: relative; z-index: 3; }
.page-hero .wave-divider svg { height: 70px; }
.breadcrumb { font-size: 0.9rem; color: #d4f0fb; margin-bottom: 10px; }
.breadcrumb a:hover { color: #fff; }

/* accessibility */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--deep); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { left: 12px; }

/* ============================================================
   PRACTICE PHOTO SLOTS (real photos auto-show when added)
   ============================================================ */
.photo-grid { display: grid; gap: 22px; grid-template-columns: 0.85fr 1.4fr; margin-top: 46px; align-items: stretch; }
.photo-grid .photo-slot { min-height: 420px; }
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr; } .photo-grid .photo-slot { min-height: 300px; } }
.photo-slot {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
  box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--sea-2), var(--sea));
}
.photo-slot .ph-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(1.05); transition: transform 0.6s var(--ease); }
.photo-slot:hover .ph-art { transform: scale(1.06); }
.photo-slot .ph-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: transform 0.6s var(--ease); }
.photo-slot:hover .ph-real { transform: scale(1.06); }
.photo-slot .ph-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(11,58,92,0.55); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
}
.photo-slot .ph-badge svg { width: 16px; height: 16px; }

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  width: 46px; height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(20,136,196,0.25);
  background: #fff;
  color: var(--sea);
  transition: background 0.2s, transform 0.2s;
}
.lang-btn:hover { background: var(--sky); transform: translateY(-2px); }
.site-header:not(.solid) .lang-btn { background: rgba(255,255,255,0.85); }

/* ============================================================
   STORY HERO — the "fish steals the tooth" loop (CSS placeholder
   that already tells the story; swapped for rendered video later)
   ============================================================ */
.hero__stage {
  position: relative;
  z-index: 3;
  width: min(560px, 92vw);
  aspect-ratio: 16 / 10;
  margin: 18px auto 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 980px) { .hero__stage { margin: 0; width: 100%; } }

.hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 4;
  display: none; /* shown only when a real video file exists */
}
.hero__video[data-ready="1"] { display: block; }
.hero__video[data-ready="1"] ~ .hero__still { display: none; }

/* the pure-CSS animated loop */
.hero__loop { position: absolute; inset: 0; }
.hero__loop .clam {
  position: absolute; left: 50%; bottom: 6%;
  width: 56%; transform: translateX(-50%);
  z-index: 2;
  filter: drop-shadow(0 14px 22px rgba(7,49,78,0.3));
  animation: pearlPulse 4.5s ease-in-out infinite;
}
@keyframes pearlPulse {
  0%, 62%, 100% { filter: drop-shadow(0 14px 22px rgba(7,49,78,0.3)) brightness(1); }
  70% { filter: drop-shadow(0 0 26px #fff7c2) brightness(1.25); }   /* tooth flashes when thief is repelled */
}
.hero__loop .thief {
  position: absolute; top: 16%; left: 50%;
  width: 38%;
  z-index: 3;
  transform: translateX(120%) scaleX(-1);
  animation: thiefSteal 4.5s ease-in-out infinite;
}
@keyframes thiefSteal {
  0%   { transform: translate(120%, 10%) scaleX(-1) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  46%  { transform: translate(-6%, 78%) scaleX(-1) rotate(8deg); opacity: 1; }   /* sneaks down to the tooth */
  60%  { transform: translate(-2%, 70%) scaleX(-1) rotate(-6deg); }              /* recoil — repelled */
  78%  { transform: translate(118%, 18%) scaleX(-1) rotate(0deg); opacity: 1; }  /* darts away */
  82%, 100% { transform: translate(120%, 10%) scaleX(-1) rotate(0deg); opacity: 0; }
}
.hero__loop .guardian {
  position: absolute; bottom: 20%; left: 8%;
  width: 30%;
  z-index: 3;
  animation: guardFloat 5s ease-in-out infinite;
}
@keyframes guardFloat { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-14px) rotate(3deg)} }

/* ============================================================
   CHARACTER CARDS (with looping video) — "big character energy"
   ============================================================ */
.chars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 900px) { .chars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chars { grid-template-columns: 1fr; } }
.char-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--c, var(--sky));
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.char-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.char-media { position: absolute; inset: 0; }
.char-media video { width: 100%; height: 100%; object-fit: cover; display: none; }
.char-media video[data-ready="1"] { display: block; }
.char-media .poster { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.char-card:hover .char-media .poster { transform: scale(1.05); }
.char-media video[data-ready="1"] ~ .poster { display: none; }
.char-card .label {
  position: relative; z-index: 2;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(8,40,62,0.78));
  color: #fff;
}
.char-card .label b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.char-card .label span { font-size: 0.85rem; opacity: 0.9; }

/* ============================================================
   MISSION (services as "powers/quests")
   ============================================================ */
.quest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
@media (max-width: 900px) { .quest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quest { grid-template-columns: 1fr; } }
.quest-card {
  background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border: 1px solid rgba(20,136,196,0.08);
  transition: transform 0.35s var(--ease);
}
.quest-card:hover { transform: translateY(-6px); }
.quest-card .badge {
  width: 60px; height: 60px; border-radius: 18px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--sky); font-size: 1.7rem;
}
.quest-card h3 { color: var(--deep); margin-bottom: 0.3em; }
.quest-card .power { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.quest-card p { color: var(--muted); font-size: 0.96rem; margin: 0.4em 0 0; }

/* ---- mobile spacing & flatter waves ---- */
@media (max-width: 760px) {
  .wave-divider svg { height: 48px; }
  .cta-banner { margin-bottom: 30px; }            /* clear space above the footer wave */
  .cta-banner__video { object-position: center 60%; }
  .site-footer { padding-top: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__loop .thief { opacity: 1; transform: translate(-6%, 78%) scaleX(-1); }
  html { scroll-behavior: auto; }
}
