/* Diving Pula - design surface. "The Descent": the homepage is a dive, from the
   sunlit surface down to the deep and back up. Diving Pula's own ocean-teal /
   deep-ink / ice-blue palette. Pure CSS - re-skin here, HTML never changes. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #eef5f9;
  --surface: #ffffff;
  --ink: #0d2230;             /* deep navy - dark sections & headings */
  --ink-2: #0a1b26;
  --abyss: #061219;           /* deepest - footer / deep section */
  --body: #33454f;
  --body-soft: #5d6f79;
  --line: #e0e9ef;
  --brand: #0070f8;           /* Finder blue (darker face of the macOS Finder icon) */
  --brand-dark: #0050c8;
  --accent: #e8743b;          /* coral - focus ring only */
  --ice: #8fd8f2;             /* ice blue */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 76px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --sp: clamp(1rem, 2.2vw, 2rem);
  --font: "Sora", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .9, .28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 1.02rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-inner { padding-top: var(--header-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.06; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
p { margin: 0 0 1rem; text-wrap: pretty; }
:focus-visible { outline: 3px solid #c85a1f; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255,255,255,.85); }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container-narrow { max-width: 820px; }
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* sections */
.section { padding-block: var(--sp); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto clamp(2rem, 4.5vw, 3.4rem); text-align: center; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { display: block; }
.section-cta { text-align: center; margin-top: clamp(2rem, 4.5vw, 3rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; color: var(--brand); margin: 0 0 .8rem; }

/* deep (dark) section - the bottom of the dive */
.section-deep { background: linear-gradient(180deg, var(--ink-2), var(--abyss)); }
.section-deep h2, .section-deep .section-head h2 { color: #fff; }
.section-deep .eyebrow { color: var(--ice); }
.section-deep .section-cta .btn-ghost { color: #dceef7; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; background: var(--brand); color: #fff;
  padding: .85em 1.8em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid var(--brand);
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-130%); transition: transform .6s var(--ease); }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,60,80,.3); color: #fff; }
.btn:hover::after { transform: translateX(130%); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.14); box-shadow: none; }
.btn-sm { padding: .55em 1.25em; font-size: .85rem; }
.btn-lg { padding: 1em 2.3em; font-size: 1.05rem; }

/* ---------- header (glass) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; min-height: var(--header-h);
  display: flex; align-items: center; background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line); transition: background .35s, box-shadow .35s, border-color .35s; }
.site-header .header-inner { display: flex; align-items: center; gap: 1.25rem; width: 100%; }
.brand { font-size: 1.28rem; font-weight: 800; color: var(--abyss); letter-spacing: -.03em; } /* "Pula" = footer dark blue on the white bar */
.brand strong { color: var(--ice); } /* "Diving" light blue */
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a { display: block; padding: .6rem .8rem; color: var(--ink); font-weight: 600; font-size: .94rem; border-radius: 9px; transition: color .2s, background .2s; }
.site-nav > ul > li > a:hover { color: var(--brand); }
/* Book now CTA: pushed to the right end, filled brand button in every header state */
.site-nav > ul > li.nav-cta { margin-left: .6rem; }
.site-nav > ul > li.nav-cta > a { background: var(--brand); color: #fff !important; padding: .5rem 1.25rem; border-radius: 999px; font-weight: 700; box-shadow: 0 5px 16px rgba(12,90,120,.34); }
.site-nav > ul > li.nav-cta > a:hover { background: var(--brand-dark); color: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(12,90,120,.42); }
.has-dropdown { position: relative; }
.has-dropdown > a::after, .has-mega > a::after { content: "▾"; font-size: .68em; margin-left: .35em; opacity: .65; }
.mega-toggle { display: none; } /* mobile-only submenu caret (see mobile block) */
.dropdown { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(10,40,55,.16);
  list-style: none; margin: .4rem 0 0; padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .55rem .8rem; border-radius: 7px; color: var(--ink); font-size: .92rem; }
.dropdown a:hover { background: var(--bg-alt); color: var(--brand); }

/* mega-menu - contained dropdown box (owner's sketch) */
.has-mega { position: relative; }
.mega { position: absolute; top: 100%; left: 0; width: 520px; max-width: calc(100vw - 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(10,40,55,.2); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; z-index: 60; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.1rem; }
.mega-group { min-width: 0; }
.mega-group + .mega-group { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.mega-title { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; color: var(--body-soft); margin: 0 0 .8rem; }
.mega-cards { display: grid; gap: .6rem; grid-template-columns: repeat(4, 1fr); }
.mega-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); transition: transform .18s var(--ease), box-shadow .18s; }
.mega-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10,40,55,.16); }
.mega-thumb { display: block; aspect-ratio: 4/3; background: #dceaf1 center/cover no-repeat; }
.mega-label { padding: .4rem .5rem; font-size: .78rem; font-weight: 600; color: var(--ink); line-height: 1.25; }

.header-right { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: flex; gap: .3rem; }
.lang-switch a { text-transform: uppercase; font-size: .7rem; font-weight: 700; color: var(--body-soft);
  border: 1px solid var(--line); border-radius: 6px; padding: .2rem .42rem; transition: color .2s, border-color .2s; }
.lang-switch a:hover { color: var(--brand); border-color: var(--brand); }
.lang-switch a.current { color: var(--brand); border-color: var(--brand); font-weight: 800; }
.nav-cta { white-space: nowrap; }
.nav-cta-m { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; justify-content: center;
  align-items: center; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }

/* transparent-over-hero (home, top) - dark scrim keeps white text legible */
.site-header.overlay { background: linear-gradient(180deg, rgba(7,24,32,.66) 0%, rgba(7,24,32,.26) 60%, rgba(7,24,32,0) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; }
.site-header.overlay .brand, .site-header.overlay .site-nav > ul > li > a { color: #fff; }
.site-header.overlay .brand strong { color: var(--ice); } /* "Diving" light blue, "Pula" white */
.site-header.overlay .nav-toggle span { background: #fff; }
.site-header.overlay .lang-switch a { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
.site-header.overlay .lang-switch a.current { color: #fff; border-color: #fff; }
.site-header.scrolled { background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--line); box-shadow: 0 6px 24px rgba(10,40,55,.09); }
.site-header.scrolled .site-nav > ul > li > a { color: var(--ink); }
.site-header.scrolled .brand { color: var(--abyss); } /* "Pula" = footer dark blue on the white bar */
.site-header.scrolled .brand strong { color: var(--ice); } /* "Diving" light blue */
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.site-header.scrolled .lang-switch a { color: var(--body-soft); border-color: var(--line); }
.site-header.scrolled .lang-switch a.current { color: var(--brand); border-color: var(--brand); }

/* ---------- hero - the surface ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { will-change: transform; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out;
  animation: kenburns 22s ease-in-out infinite alternate; }
.hero-slide.active { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13); } }
/* god rays - soft light shafts from the surface */
.hero-rays { position: absolute; inset: -20% -10%; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; opacity: .8;
  background:
    linear-gradient(112deg, transparent 38%, rgba(220,245,255,.5) 43%, transparent 50%),
    linear-gradient(100deg, transparent 55%, rgba(190,235,255,.4) 62%, transparent 70%),
    linear-gradient(120deg, transparent 68%, rgba(220,245,255,.35) 75%, transparent 84%);
  animation: rays 13s ease-in-out infinite alternate; }
@keyframes rays { from { transform: translateX(-3%) skewX(-1deg); opacity: .55; } to { transform: translateX(3%) skewX(1deg); opacity: .9; } }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(90deg, rgba(6,22,30,.62), rgba(6,22,30,.16) 65%),
  linear-gradient(180deg, rgba(8,26,36,.42), rgba(8,26,36,.34) 45%, rgba(8,26,36,.8)); }
.hero-inner { position: relative; z-index: 4; width: 100%; }
.hero-inner .eyebrow { color: #d8f2fc; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .4rem; text-shadow: 0 3px 34px rgba(0,0,0,.5); }
/* wordmark rule everywhere on dark: "Diving" light blue, "Pula" white */
.hero h1 span { color: #fff; }
.hero h1 span strong { color: var(--ice); font-weight: inherit; }
.hero-lede { font-size: clamp(1.05rem, 2.3vw, 1.45rem); max-width: 44ch; color: #fff; margin-bottom: 2rem;
  font-weight: 300; text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; border-radius: 999px; padding: .35em 1em; font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.2rem; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.hero-scroll { position: absolute; bottom: 4.6rem; left: 50%; transform: translateX(-50%); z-index: 4; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.75); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff;
  border-radius: 2px; animation: scrolldot 1.7s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }
/* animated wave divider at the hero's foot */
.wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 5; height: clamp(46px, 7vw, 96px); overflow: hidden; pointer-events: none; }
.wave svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; fill: var(--bg); }
.wave svg:nth-child(1) { opacity: .5; animation: waveDrift 11s ease-in-out infinite alternate; }
.wave svg:nth-child(2) { animation: waveDrift 17s ease-in-out infinite alternate-reverse; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-6%); } }

/* ---------- split feature cards ---------- */
.split-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-card { position: relative; display: block; min-height: 400px; border-radius: var(--radius); overflow: hidden;
  color: #fff; background-color: var(--brand-dark); background-image: var(--shot); background-size: cover; background-position: center;
  transition: transform .35s var(--ease), box-shadow .35s; }
.split-card:hover { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(10,40,55,.3); }
.split-card .split-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,36,.08), rgba(8,26,36,.82)); transition: background .35s; }
.split-card:hover .split-overlay { background: linear-gradient(180deg, rgba(10,80,102,.22), rgba(8,26,36,.86)); }
.split-card .split-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 2rem 2.1rem; display: flex; flex-direction: column; }
.split-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.split-sub { color: rgba(255,255,255,.9); margin-top: .3rem; font-weight: 300; }
.split-link { margin-top: 1.1rem; font-size: 1.6rem; transition: transform .3s var(--ease); }
.split-card:hover .split-link { transform: translateX(10px); }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(120deg, #052a54, var(--brand-dark) 55%, var(--brand)); color: #fff;
  padding-block: clamp(2.6rem, 6vw, 4.2rem); position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 130% at 85% 0%, rgba(143,216,242,.14), transparent 60%); pointer-events: none; }
.stats-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); position: relative; z-index: 1; }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: #fff; }
.stat-label { display: block; margin-top: .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  color: #fff; font-weight: 600; }

/* ---------- card grid ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s; will-change: transform; }
.card a:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(10,40,55,.18); }
.card-media { display: block; aspect-ratio: 16/11; background: #dceaf1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card a:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 1.05rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; }
.card-title { font-weight: 700; font-size: 1.08rem; color: var(--ink); letter-spacing: -.01em; }
.card-sub { font-size: .78rem; color: var(--body-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- about split ---------- */
.about-split { display: grid; gap: clamp(1.8rem, 4.5vw, 3.6rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .about-split { grid-template-columns: 1fr 1fr; } }
.about-media { position: relative; }
.about-media img,
.about-media video.about-video { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover;
  box-shadow: 0 24px 56px rgba(10,40,55,.22); display: block; }
.about-media video.about-video { background: var(--bg-alt); }
.about-media::after { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 2px solid var(--ice);
  border-radius: var(--radius); z-index: -1; opacity: .55; }
.about-text h2 { margin-top: .2rem; }
.prose { max-width: 65ch; }
.prose p { color: var(--body); }

/* ---------- marquee - ghost dive-site ticker ---------- */
.marquee { overflow: hidden; padding-block: clamp(1.4rem, 3vw, 2.2rem); border-block: 1px solid var(--line); background: var(--bg); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.6rem; width: max-content; white-space: nowrap;
  animation: marquee 46s linear infinite; }
.marquee-track span { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.01em;
  color: rgba(10,110,138,.28); }
@supports (-webkit-text-stroke: 1px black) {
  .marquee-track span { color: transparent; -webkit-text-stroke: 1.5px rgba(10,110,138,.34); }
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span.dot { -webkit-text-stroke: 0; color: var(--ice); font-size: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- team ---------- */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 920px; margin-inline: auto; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.team-photo { width: 184px; height: 184px; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--surface); box-shadow: 0 12px 30px rgba(10,40,55,.22); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s; }
.team-card:hover .team-photo { transform: scale(1.05) rotate(1.5deg); box-shadow: 0 18px 40px rgba(10,110,138,.32); }
.team-name { font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-top: .4rem; }
.team-certs { font-size: .84rem; color: var(--body-soft); max-width: 26ch; }
.team-certs .cert-line { display: block; }
.team-certs .cert-line + .cert-line { margin-top: .12rem; }
/* Our Diving Family: own white background so it doesn't merge into the FAQ below */
.section-family { background: var(--bg); }
.family-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 2.2rem 1.6rem; max-width: 1160px; margin-inline: auto; }
.family-grid .team-card { width: 168px; }
.family-grid .team-photo { width: 154px; height: 154px; }
@media (max-width: 560px){ .family-grid .team-card { width: 44%; } .family-grid .team-photo { width: 128px; height: 128px; } }
.team-photo-ph { display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--ice), var(--brand)); color: #fff; font-weight: 800; font-size: 2.6rem; letter-spacing: .02em; }

/* ---------- gallery ---------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .55s var(--ease), opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.08); }
.section-deep .gallery-grid a { box-shadow: 0 8px 26px rgba(0,0,0,.4); }

/* ---------- FAQ accordion ---------- */
.faq-search { margin: 0 0 1.4rem; }
.faq-q { width: 100%; box-sizing: border-box; padding: .85rem 1.1rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.faq-q::placeholder { color: var(--body-soft); }
.faq-q:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,112,248,.16); }
.faq-none { text-align: center; color: var(--body-soft); padding: 1.4rem 0; }
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow .25s; }
.faq-item[open] { box-shadow: 0 10px 26px rgba(10,40,55,.1); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--body); }
.faq-a p { margin: 0; }

/* ---------- CTA band - resurfacing ---------- */
.cta-band { position: relative; color: #fff; text-align: center; padding-block: clamp(4.5rem, 10vw, 8rem);
  background-color: var(--brand-dark); background-image: var(--cta); background-size: cover; background-position: center;
  background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .cta-band { background-attachment: scroll; } }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(7,50,66,.84), rgba(7,30,40,.9)); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); }
.cta-band p { color: rgba(255,255,255,.92); max-width: 46ch; margin: 0 auto 2rem; font-size: 1.12rem; font-weight: 300; }

/* ---------- logo band (light, before footer) ---------- */
.logo-band { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.band-title { text-align: center; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700;
  color: var(--body-soft); margin: 0 0 1.7rem; }
.logo-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; }
.logo-strip li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1.1rem;
  display: flex; align-items: center; transition: transform .25s var(--ease), box-shadow .25s; }
.logo-strip li:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(10,40,55,.14); }
.logo-strip img { height: 44px; width: auto; object-fit: contain; }

/* ---------- depth gauge (home only) ---------- */
.depth-gauge { position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: .6rem; pointer-events: none; }
.dg-track { display: block; width: 3px; height: 180px; background: rgba(10,110,138,.18); border-radius: 3px; position: relative; overflow: hidden; }
.dg-fill { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--p, 0) * 1%); background: linear-gradient(var(--ice), var(--brand)); border-radius: 3px; }
.dg-read { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 92px; height: 92px;
  background: url("../ui/bubble2.png") center/contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(6,40,55,.28)); }
.dg-read::before { content: none; }
/* strong white halo so the reading stays legible over dark photos, while the
   bubble itself remains see-through */
.dg-read b { position: relative; z-index: 2; color: var(--brand-dark); font-weight: 800; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 14px rgba(255,255,255,.95), 0 1px 2px rgba(255,255,255,.95); }
.dg-read small { position: relative; z-index: 2; margin-top: .1rem; color: var(--brand-dark); font-size: .66rem; font-weight: 800; line-height: 1; letter-spacing: .04em;
  text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 12px rgba(255,255,255,.95); }
/* keep the depth gauge on tablets too; only small phones are too narrow for it */
@media (max-width: 600px) { .depth-gauge { display: none; } }

/* ---------- detail / index pages ---------- */
.page-head { position: relative; padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.6rem); text-align: center;
  background: linear-gradient(160deg, var(--ink-2), var(--brand-dark) 130%); margin-bottom: clamp(1rem, 3vw, 2rem); }
.page-head h1 { margin: 0; color: #fff; }
.detail { padding-block: clamp(2rem, 5vw, 3.2rem); }
.breadcrumb { font-size: .85rem; color: var(--body-soft); margin-bottom: .8rem; }
.breadcrumb a { color: var(--body-soft); }
.detail-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.detail-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.detail-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(10,40,55,.16); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .75rem; margin: 1.6rem 0 0; }
.stat { background: var(--bg-alt); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.stat dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--body-soft); }
.stat dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 800; color: var(--brand-dark); }
.detail-gallery { margin-top: 2.5rem; }

/* prices */
.price-download { margin: 0 0 1.6rem; }
.price-image { margin: 0 0 2rem; }
.price-image img { width: 100%; max-width: 780px; border: 1px solid var(--line); border-radius: var(--radius); }

/* contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.contact-dl dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--body-soft); margin-top: .9rem; }
.contact-dl dd { margin: .1rem 0 0; font-size: 1.05rem; }
.contact-social { margin-top: 1.5rem; display: flex; gap: 1rem; }
.contact-map iframe { width: 100%; height: 440px; border: 0; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(10,40,55,.14); }

/* ---------- footer - the deepest point ---------- */
.site-footer { background: linear-gradient(180deg, var(--ink-2), var(--abyss)); color: #c9d6dd;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem; }
.footer-top { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start; }
.footer-social { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-footer a { color: #c9d6dd; transition: color .2s; }
.site-footer a:hover { color: var(--ice); }
.footer-col h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
/* "What we offer" splits into two columns */
.footer-col-wide { grid-column: span 2; }
.footer-col-wide ul { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.6rem; }
.footer-contact p { margin: 0 0 .5rem; }
.footer-addr span { display: block; white-space: nowrap; }
/* bottom bar: rights left, brand centered, social right, all one height */
.footer-bottom { margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.footer-bottom .copyright { margin: 0; font-size: .8rem; color: #7e919a; justify-self: start; }
.footer-brand-mid { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -.03em; justify-self: center; text-align: center; }
.footer-brand-mid strong { color: var(--ice); }
.footer-bottom .footer-social { justify-self: end; }
@media (max-width: 640px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .8rem; }
  .footer-bottom .copyright, .footer-bottom .footer-social { justify-self: center; }
  .footer-col-wide { grid-column: auto; }
}

/* ---------- scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }

/* ---------- lightbox (with prev/next) ---------- */
.lb-overlay { position: fixed; inset: 0; background: rgba(4,14,20,.94); display: grid; place-items: center; z-index: 200; padding: 1.5rem; }
.lb-overlay img { max-width: 90vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: .7rem; right: .8rem; font-size: 2.1rem; color: #fff; background: none; border: 0; cursor: pointer;
  width: 48px; height: 48px; display: grid; place-items: center; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.6rem; line-height: 1;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  width: 56px; height: 56px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75);
  font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
@media (max-width: 640px) { .lb-prev { left: .4rem; } .lb-next { right: .4rem; } .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 2rem; } }

/* ---------- bubbles - ice-blue cursor trail (above content, under lightbox) ---------- */
#bubble-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.bubble {
  position: fixed; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(150,222,245,.55) 45%, rgba(108,196,232,.12) 72%);
  box-shadow: inset 0 0 6px rgba(205,242,255,.75), 0 0 6px rgba(120,205,238,.4);
  border: 1px solid rgba(180,232,250,.5);
  animation: bubble-trail var(--dur, 1.6s) ease-out forwards;
}
@keyframes bubble-trail {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: .75; }
  100% { transform: translate(calc(-50% + var(--drift, 0px)), calc(-50% - var(--rise, 90px))) scale(1); opacity: 0; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta-m { display: block; }
  /* Book now stays available in the mobile menu (as a full-width button) */
  .site-nav > ul > li.nav-cta { margin: .9rem 0 0; }
  .site-nav > ul > li.nav-cta > a { text-align: center; padding: .85rem 1.2rem; border-bottom: 0; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(10,40,55,.12);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.2rem; }
  .site-nav > ul > li > a { padding: .85rem .2rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-header.overlay .site-nav > ul > li > a { color: var(--ink); }
  .has-dropdown > a::after, .has-mega > a::after { float: right; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 .3rem .8rem; margin: 0; min-width: 0; }
  .has-mega { position: relative; }
  .mega { position: static; width: auto; max-width: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; }
  /* submenus stay collapsed until their caret is tapped, so the mobile nav
     behaves like a menu instead of one long list */
  .has-mega > .mega { display: none; }
  .has-mega.open > .mega { display: block; }
  .has-mega > a::after { display: none; }
  .mega-toggle { display: block; position: absolute; right: 0; top: 0; width: 52px; height: 49px;
    border: 0; background: none; cursor: pointer; color: var(--ink); padding: 0; }
  .mega-toggle::after { content: "▾"; font-size: 1rem; line-height: 1; display: inline-block; transition: transform .2s; }
  .has-mega.open > .mega-toggle::after { transform: rotate(180deg); }
  .mega-inner { display: block; padding: .2rem 0 .7rem; }
  .mega-group + .mega-group { border-top: 0; padding-top: 0; margin-top: .7rem; }
  .mega-cards { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .mega-thumb { aspect-ratio: 16/10; }
  .mega-label { font-size: .72rem; padding: .35rem .45rem; }
  .nav-cta-m a { display: block; margin-top: .9rem; text-align: center; background: var(--brand); color: #fff;
    padding: .8rem; border-radius: 999px; font-weight: 600; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cta-band { background-attachment: scroll; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.02rem; }
  .header-inner { gap: .6rem; }
  .header-right { gap: .45rem; }
  .lang-switch a { padding: .16rem .3rem; font-size: .64rem; }
}

/* landscape phones: let the hero fit the real viewport */
@media (max-height: 560px) {
  .hero { min-height: 100svh; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto; }
  .hero-slide { animation: none !important; }
  .hero-slide.active { opacity: 1; }
  .hero-rays { animation: none; opacity: .5; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  /* keep the depth gauge (it is static); only the drifting bubble layer goes */
  #bubble-layer { display: none !important; }
}

/* ================= INNER PAGES - clean, warm, content-first ================= */

/* compact page header: modest title + one intro line, no banner, no photo */
.page-intro{ padding-top:clamp(.9rem,2vw,1.5rem); padding-bottom:clamp(.4rem,1.2vw,.8rem); text-align:center; }
.page-intro h1{ font-size:clamp(1.7rem,3vw,2.3rem); margin:0 0 .3rem; letter-spacing:-.02em; }
.page-intro .eyebrow{ margin-bottom:.3rem; }
.page-intro-lede{ color:var(--body-soft); font-size:clamp(1rem,1.5vw,1.14rem); max-width:60ch; margin:0 auto; font-weight:400; }

/* content sections */
.section-list{ padding-block:clamp(1.8rem,4vw,3rem); }
.section-list-tight{ padding-top:clamp(.6rem,1.5vw,1rem); }
.section-list + .section-list{ padding-top:0; }
.list-head{ margin-bottom:clamp(1.3rem,2.6vw,1.9rem); }
.list-head h2{ font-size:clamp(1.45rem,2.6vw,2rem); margin:0 0 .3rem; }
.list-sub{ color:var(--body-soft); margin:0; font-size:1.02rem; }

/* warm, soft cards (dive sites & courses) */
.card-grid{ gap:clamp(1rem,2vw,1.5rem); grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); }
.card a{ border-radius:16px; border-color:#e8eef3; box-shadow:0 2px 10px rgba(13,34,48,.05); }
.card a:hover{ transform:translateY(-4px); box-shadow:0 16px 34px rgba(13,34,48,.13); }
.card-media{ aspect-ratio:4/3; background:#e7eff4; }
.card-media-empty{ display:block; aspect-ratio:4/3; background:linear-gradient(135deg,#e2edf2,#eff6fa); }
.card-body{ padding:.85rem 1.05rem 1.05rem; gap:.4rem; }
.card-title{ font-size:1.05rem; font-weight:700; }
.card-meta{ display:flex; align-items:center; gap:.6rem; }
.card-kind{ font-size:.7rem; text-transform:uppercase; letter-spacing:.1em; color:var(--body-soft); font-weight:700; }
.card-depth{ font-size:.74rem; font-weight:700; color:var(--brand-dark); background:var(--bg-alt); padding:.12rem .55rem; border-radius:999px; }
.course-grid{ grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }

/* detail page (dive site / course) */
.detail-intro{ text-align:left; }
.detail-intro .breadcrumb{ margin-bottom:.55rem; font-size:.85rem; color:var(--body-soft); }
.detail-intro .breadcrumb a{ color:var(--body-soft); }
.detail-intro .breadcrumb a:hover{ color:var(--brand); }
.detail-intro h1{ font-size:clamp(1.8rem,3.2vw,2.5rem); }
.intro-chips{ margin:.7rem 0 0; }
.chip-fact{ display:inline-block; background:var(--bg-alt); border:1px solid var(--line); border-radius:999px; padding:.28rem .85rem; font-size:.85rem; color:var(--body); }
.chip-fact b{ color:var(--brand-dark); }
.detail{ padding-block:clamp(1.2rem,2.5vw,2rem) clamp(2.4rem,5vw,3.6rem); }
.detail-photo{ margin:0 0 clamp(1.6rem,3vw,2.4rem); }
.detail-photo img{ width:100%; max-height:440px; object-fit:cover; border-radius:18px; box-shadow:0 14px 36px rgba(13,34,48,.15); }
.detail-grid{ display:grid; gap:clamp(1.6rem,3.5vw,2.6rem); grid-template-columns:1fr; align-items:start; }
@media (min-width:820px){ .detail-grid{ grid-template-columns:1.7fr 1fr; } }
.detail-body.prose{ max-width:70ch; font-size:1.05rem; }
.detail-body.narrow{ margin-inline:auto; }
.detail-body .eyebrow{ margin-bottom:.4rem; }
.detail-facts{ background:var(--bg-alt); border:1px solid var(--line); border-radius:16px; padding:1.2rem 1.4rem; }
/* main photo at the top of the facts aside (top-right of the dive-site page).
   scale slightly + clip so the black frame baked into the location-map PNGs
   (and any stray edge border) is cropped off on all sides. */
.detail-hero{ margin:-1.2rem -1.4rem 1.1rem; border-radius:16px 16px 0 0; overflow:hidden; }
.detail-hero img{ width:100%; display:block; aspect-ratio:4/3; object-fit:cover; transform:scale(1.04); }
.facts-title{ font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; color:var(--body-soft); font-weight:700; margin:0 0 .5rem; }
.detail-facts .stats{ grid-template-columns:1fr; margin:0; gap:0; }
.detail-facts .stat{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem; background:transparent; border-radius:0; border-bottom:1px solid var(--line); padding:.62rem 0; }
.detail-facts .stat:last-child{ border-bottom:0; }
.detail-facts .stat dt{ margin:0; }
.detail-facts .stat dd{ margin:0; font-size:1.05rem; color:var(--brand-dark); }
.detail-gallery{ margin-top:clamp(2rem,4vw,3rem); }
.detail-gallery h2{ font-size:clamp(1.3rem,2.4vw,1.7rem); margin-bottom:1rem; }

/* previous / next */
.sibling-nav{ display:grid; gap:1rem; grid-template-columns:1fr 1fr; margin-top:clamp(2rem,4vw,3rem); }
.sib{ display:flex; flex-direction:column; gap:.2rem; padding:1rem 1.2rem; border:1px solid var(--line); border-radius:14px; background:var(--surface); transition:transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.sib:hover{ transform:translateY(-3px); box-shadow:0 12px 26px rgba(13,34,48,.1); border-color:var(--brand); }
.sib-next{ text-align:right; }
.sib-dir{ font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:var(--body-soft); font-weight:700; }
.sib-dir::before{ content:"\2190\00a0"; color:var(--brand); }
.sib-next .sib-dir::before{ content:""; }
.sib-next .sib-dir::after{ content:"\00a0\2192"; color:var(--brand); }
.sib-name{ font-weight:700; color:var(--ink); }
@media (max-width:520px){ .sibling-nav{ grid-template-columns:1fr; } .sib-next{ text-align:left; } }

/* gallery: clean filter + grid */
.gallery-filter{ padding:.2rem 0 1.4rem; }
.gallery-filter .container{ display:flex; flex-wrap:wrap; gap:.55rem; justify-content:center; }
.filter-chip{ border:1px solid var(--line); background:var(--surface); color:var(--body); border-radius:999px; padding:.5rem 1.1rem; font-size:.9rem; font-weight:600; cursor:pointer; font-family:inherit; display:inline-flex; align-items:center; gap:.45rem; transition:background .2s var(--ease), color .2s, border-color .2s; }
.filter-chip span{ font-size:.76rem; color:var(--body-soft); font-variant-numeric:tabular-nums; }
.filter-chip:hover{ border-color:var(--brand); color:var(--brand); }
.filter-chip.is-active{ background:var(--brand); border-color:var(--brand); color:#fff; }
.filter-chip.is-active span{ color:rgba(255,255,255,.82); }
.photo-grid{ grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
.photo-grid li[hidden]{ display:none; }

/* warm call-to-action (no photo) */
.cta-simple{ padding-block:clamp(2.4rem,5vw,3.6rem); }
.cta-inner{ background:linear-gradient(120deg,var(--brand),var(--brand-dark)); border-radius:22px; padding:clamp(1.8rem,4vw,2.8rem); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.4rem; }
.cta-copy h2{ color:#fff; margin:0 0 .3rem; font-size:clamp(1.4rem,2.6vw,2rem); }
.cta-copy p{ color:rgba(255,255,255,.92); margin:0; max-width:48ch; font-weight:300; }
.cta-simple .btn{ background:#fff; color:var(--brand-dark); border-color:#fff; }
.cta-simple .btn:hover{ background:var(--bg-alt); color:var(--brand-dark); box-shadow:0 12px 28px rgba(6,30,40,.28); }
/* two-button CTA (Book now + Contact) */
.cta-actions{ display:flex; flex-wrap:wrap; gap:.7rem; }
.cta-actions-center{ justify-content:center; margin-top:.4rem; }
.cta-simple .cta-actions .btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.75); }
.cta-simple .cta-actions .btn-ghost:hover{ background:rgba(255,255,255,.16); color:#fff; box-shadow:none; }

/* contact + prices */
.contact-actions{ display:flex; flex-wrap:wrap; gap:.7rem; margin:1.2rem 0 .3rem; }
.price-download{ text-align:center; margin:0 0 2rem; }
.price-image{ text-align:center; }

/* ================= courses text dropdown, contact widget, linkable map ================= */

/* text mega dropdown (no thumbnails) - used by Courses */
.mega--text{ width:auto; min-width:230px; }
.mega--text .mega-inner{ gap:.9rem; }
.mega-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.1rem; }
.mega-list a{ display:block; padding:.42rem .55rem; border-radius:7px; color:var(--ink); font-size:.9rem; font-weight:500; line-height:1.3; }
.mega-list a:hover{ background:var(--bg-alt); color:var(--brand); }

/* linkable map → tap opens Google Maps directions */
.map-link{ position:relative; display:block; border-radius:var(--radius); overflow:hidden; }
.map-link iframe{ pointer-events:none; display:block; }
.map-cta{ position:absolute; right:.8rem; bottom:.8rem; background:#fff; color:var(--brand-dark); font-weight:700;
  font-size:.85rem; padding:.5rem .95rem; border-radius:999px; box-shadow:0 6px 18px rgba(6,30,45,.22); pointer-events:none; }
.map-link:hover .map-cta{ background:var(--bg-alt); }

/* floating contact widget (every page) */
.contact-widget{ position:fixed; right:clamp(1rem,3vw,1.8rem); bottom:calc(26vh + clamp(1rem,3vw,1.8rem)); z-index:120;
  display:flex; flex-direction:column; align-items:flex-end; gap:.8rem; }
.cw-toggle{ display:inline-flex; align-items:center; gap:.6rem; background:var(--brand); color:#fff; border:0;
  border-radius:999px; padding:1rem 1.6rem; font-weight:700; font-size:1.08rem; font-family:inherit; cursor:pointer;
  box-shadow:0 14px 34px rgba(6,40,55,.34); transition:background .2s var(--ease), transform .2s var(--ease); }
.cw-toggle:hover{ background:var(--brand-dark); transform:translateY(-2px); }
.cw-ic{ width:24px; height:24px; }
.cw-ic-close{ display:none; }
.contact-widget[data-open="true"] .cw-ic-chat{ display:none; }
.contact-widget[data-open="true"] .cw-ic-close{ display:inline-block; }
.cw-panel{ background:var(--surface); border:1px solid var(--line); border-radius:18px;
  box-shadow:0 24px 60px rgba(6,30,45,.28); padding:1rem; width:min(320px,calc(100vw - 2rem));
  display:flex; flex-direction:column; gap:.45rem; }
.cw-panel[hidden]{ display:none; }
.cw-title{ font-weight:800; color:var(--ink); margin:.1rem .2rem .35rem; font-size:1.05rem; }
.cw-action{ display:flex; align-items:center; gap:.85rem; padding:.65rem .8rem; border-radius:12px;
  background:var(--bg-alt); color:var(--ink); transition:background .2s, color .2s; min-width:0; }
.cw-action:hover{ background:#e2edf3; color:var(--brand-dark); }
.cw-action svg{ width:22px; height:22px; flex:none; color:var(--brand); }
.cw-action span{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.cw-action b{ font-size:.92rem; font-weight:700; }
.cw-action small{ font-size:.8rem; color:var(--body-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (prefers-reduced-motion: reduce){ .cw-toggle{ transition:none; } }
@media (max-width:520px){ .cw-toggle-label{ display:none; } .cw-toggle{ padding:.85rem; } }

/* hero video carousel */
.hero-vids{ background-size:cover; background-position:center; }
.hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0;
  animation:none; transition:opacity 1.4s ease-in-out; }
.hero-video.active{ opacity:1; }
@media (prefers-reduced-motion: reduce){ .hero-video{ transition:none; } }

/* header logo */
.brand{ display:inline-flex; align-items:center; gap:.6rem; }
.brand-logo{ width:46px; height:46px; border-radius:12px; background:#fff; object-fit:contain; padding:3px;
  border:1px solid rgba(0,0,0,.06); flex:none; }
.site-header.overlay .brand-logo{ box-shadow:0 3px 12px rgba(0,0,0,.28); border-color:transparent; }
@media (max-width:520px){ .brand-logo{ width:40px; height:40px; } .brand-word{ font-size:1.1rem; } }

/* bubbly tagline font (self-hosted, GDPR-safe) */
/* the two logo faces: DIVING PULA (Ravie) + "Life is the bubbles" (Vivaldi) */
@font-face{ font-family:"Ravie"; src:url("../fonts/ravie.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face{ font-family:"Vivaldi"; src:url("../fonts/vivaldi.woff2") format("woff2"); font-weight:400; font-display:swap; }
.hero-bubbly{ font-family:"Vivaldi", cursive; font-weight:400; color:#3d90fb; line-height:1.12;
  font-size:clamp(2.6rem,6.2vw,5rem); margin:.1rem 0 .3rem; letter-spacing:.01em; text-shadow:0 3px 22px rgba(0,0,0,.5); }
/* the "Diving Pula" name uses Ravie everywhere: header, footer, hero welcome */
.brand-word, .footer-brand-mid, .hero h1 span{ font-family:"Ravie", var(--font); font-weight:400; letter-spacing:0; }
.brand-word{ font-size:1.05rem; }
.footer-brand-mid{ font-size:1.15rem; }
.hero h1 span{ font-size:.82em; display:inline-block; }

/* contact page: widget-style actions + hours; wreck requirement note */
.contact-actions-list{ display:flex; flex-direction:column; gap:.5rem; margin:.5rem 0 1.1rem; max-width:440px; }
.contact-hours{ color:var(--body-soft); font-size:.96rem; margin:0 0 .6rem; }
.facts-title-sub{ margin-top:1.1rem; }
.fact-note{ font-size:.9rem; color:var(--body); margin:.2rem 0 0; line-height:1.5; }

/* landing dive-site maps with hotspots (bigger, wider, no circles) */
.container-wide{ max-width:1480px; }
.maps-grid{ display:grid; gap:1.8rem; grid-template-columns:1fr; }
@media (min-width:860px){ .maps-grid{ grid-template-columns:1fr 1fr; } }
.map-head{ text-align:center; font-weight:800; font-size:1.25rem; color:var(--ink); margin:0 0 .8rem; }
.dive-map{ position:relative; margin:0; box-shadow:0 16px 44px rgba(10,40,55,.16); border-radius:var(--radius); }
.map-canvas{ display:block; }
.map-canvas img{ width:100%; display:block; border-radius:var(--radius); border:1px solid var(--line); }
.map-spots{ position:absolute; inset:0; pointer-events:none; }
/* invisible hover zone over each drawn X (no visible circle) */
.map-spot{ position:absolute; left:var(--x); top:var(--y); transform:translate(-50%,-50%);
  width:var(--w,4%); height:var(--h,4%); pointer-events:auto; cursor:pointer; }
.spot-hit{ position:absolute; inset:0; border-radius:7px; }
.map-spot:focus-visible .spot-hit{ box-shadow:0 0 0 3px var(--ice); }
/* photo preview escapes the map bounds and repositions near edges */
.spot-pop{ position:absolute; bottom:100%; left:50%; transform:translateX(-50%) translateY(-6px); width:154px;
  background:#fff; border-radius:12px; box-shadow:0 16px 38px rgba(6,30,45,.36); overflow:hidden;
  opacity:0; visibility:hidden; transition:opacity .18s, visibility .18s, transform .18s var(--ease); z-index:6; }
.map-spot:hover .spot-pop, .map-spot:focus-within .spot-pop{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(-10px); }
.spot-l .spot-pop{ left:0; transform:translateX(-8%) translateY(-6px); }
.spot-l:hover .spot-pop, .spot-l:focus-within .spot-pop{ transform:translateX(-8%) translateY(-10px); }
.spot-r .spot-pop{ left:auto; right:0; transform:translateX(8%) translateY(-6px); }
.spot-r:hover .spot-pop, .spot-r:focus-within .spot-pop{ transform:translateX(8%) translateY(-10px); }
.spot-top .spot-pop{ bottom:auto; top:100%; transform:translateX(-50%) translateY(6px); }
.spot-top:hover .spot-pop, .spot-top:focus-within .spot-pop{ transform:translateX(-50%) translateY(10px); }
.spot-pop img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.spot-pop span{ display:block; padding:.4rem .55rem; font-size:.78rem; font-weight:700; color:var(--ink); line-height:1.2; }

/* book-now iframe */
.booking-frame{ display:flex; justify-content:center; }
.booking-frame iframe{ width:100%; max-width:560px; height:820px; border:0; border-radius:var(--radius);
  box-shadow:0 14px 40px rgba(10,40,55,.14); background:var(--bg-alt); }
.booking-fallback{ text-align:center; margin-top:1.2rem; }
/* course card thumbnails: show the FULL image (SSI art has text + logo at edges) */
.course-grid .card-media{ aspect-ratio:16/10; background:#e7eff4; }
.course-grid .card-media img{ object-fit:cover; }

/* calculators */
.calc{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(1.1rem,3vw,1.6rem); }
.calc-tabs{ display:flex; gap:.5rem; margin-bottom:1.4rem; flex-wrap:wrap; }
.calc-tab{ border:1px solid var(--line); background:var(--surface); color:var(--body); border-radius:999px; padding:.5rem 1.1rem; font-weight:600; font-size:.9rem; cursor:pointer; font-family:inherit; }
.calc-tab.is-active{ background:var(--brand); border-color:var(--brand); color:#fff; }
.calc input{ width:100%; padding:.6rem .8rem; border:1px solid var(--line); border-radius:9px; font-family:inherit; font-size:1.05rem; background:#fff; }
.calc-row{ display:grid; gap:1rem; grid-template-columns:1fr 1fr; margin-bottom:1rem; }
.calc-row label, .calc-conv label{ display:flex; flex-direction:column; gap:.3rem; font-size:.78rem; font-weight:700; color:var(--body-soft); text-transform:uppercase; letter-spacing:.05em; }
.calc-out{ background:var(--bg-alt); border-radius:12px; padding:.6rem 1.2rem; margin:1.1rem 0; }
.calc-result{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem; padding:.55rem 0; border-bottom:1px solid var(--line); }
.calc-result:last-child{ border-bottom:0; }
.calc-result span{ color:var(--body-soft); font-size:.9rem; }
.calc-result b{ font-size:1.2rem; color:var(--brand-dark); font-variant-numeric:tabular-nums; }
.calc-inline{ font-size:1.15rem; color:var(--brand-dark); text-transform:none; letter-spacing:0; }
.calc-conv{ display:grid; grid-template-columns:1fr auto 1fr; gap:.8rem; align-items:end; margin-bottom:1rem; }
.calc-conv span{ padding-bottom:.6rem; color:var(--body-soft); font-size:1.2rem; }
@media (max-width:560px){ .calc-row{ grid-template-columns:1fr; } }

/* instagram card */
.insta-embed{ display:flex; justify-content:center; }
.insta-card{ display:flex; flex-direction:column; align-items:center; gap:.7rem; padding:clamp(2rem,5vw,3rem);
  border-radius:var(--radius); color:#fff; text-align:center; max-width:420px; width:100%;
  background:linear-gradient(135deg,#8a3ab9,#e95950 55%,#fccc63); box-shadow:0 16px 44px rgba(180,60,90,.3);
  transition:transform .25s var(--ease); }
.insta-card:hover{ transform:translateY(-4px); color:#fff; }
.insta-ic{ width:58px; height:58px; }
.insta-handle{ font-size:1.45rem; font-weight:800; }
.insta-cta{ background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.55); border-radius:999px; padding:.55rem 1.3rem; font-weight:700; }

/* site search */
.nav-search{ background:none; border:0; cursor:pointer; color:var(--ink); padding:.4rem; display:grid; place-items:center; }
.nav-search svg{ width:22px; height:22px; }
.site-header.overlay .nav-search{ color:#fff; }
/* the hidden attribute must always win over the display rules below */
[hidden]{ display:none !important; }
.search-overlay{ position:fixed; inset:0; z-index:210; background:rgba(6,18,25,.55);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); display:flex; align-items:flex-start; justify-content:center; padding-top:13vh; }
.search-overlay[hidden]{ display:none !important; }
.cookie-bar[hidden]{ display:none !important; }
.search-box{ width:min(580px,calc(100vw - 2rem)); background:#fff; border-radius:16px; box-shadow:0 30px 80px rgba(0,0,0,.42); overflow:hidden; }
.search-in{ display:flex; align-items:center; gap:.6rem; padding:1rem 1.2rem; border-bottom:1px solid var(--line); }
.search-in svg{ width:22px; height:22px; color:var(--body-soft); flex:none; }
.search-in input{ flex:1; border:0; font-size:1.15rem; font-family:inherit; outline:none; background:none; color:var(--ink); }
.search-results{ list-style:none; margin:0; padding:.4rem; max-height:54vh; overflow:auto; }
.search-results li a{ display:flex; align-items:center; gap:.8rem; padding:.6rem .8rem; border-radius:10px; color:var(--ink); }
.search-results li.active a, .search-results li a:hover{ background:var(--bg-alt); }
.sr-k{ font-size:.64rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700; color:#fff; background:var(--brand); border-radius:999px; padding:.16rem .55rem; flex:none; }
.sr-t{ font-weight:600; }
.sr-none{ padding:1.2rem; color:var(--body-soft); text-align:center; }

/* privacy / legal prose */
.prose.legal{ max-width:70ch; }
.prose.legal h2{ font-size:1.3rem; margin:2rem 0 .5rem; color:var(--ink); }
.prose.legal p{ margin:.5rem 0; line-height:1.7; color:var(--body); }
.prose.legal ul{ margin:.5rem 0 .5rem 1.1rem; line-height:1.7; }
.prose.legal a{ color:var(--brand); text-decoration:underline; }
.legal-updated{ margin-top:2rem; font-size:.9rem; }

/* cookie consent bar */
.cookie-bar{ position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:220; margin:0 auto; max-width:640px;
  background:var(--ink,#0f2530); color:#eaf3f6; border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,.35);
  padding:1rem 1.2rem; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.cookie-text{ margin:0; flex:1 1 260px; font-size:.9rem; line-height:1.5; }
.cookie-text a{ color:#8fd6ef; text-decoration:underline; }
.cookie-btns{ display:flex; gap:.6rem; flex:0 0 auto; }
.cookie-btns button{ border:0; border-radius:999px; padding:.55rem 1.2rem; font-weight:700; font-family:inherit; font-size:.9rem; cursor:pointer; }
.cookie-accept{ background:var(--brand); color:#fff; }
.cookie-decline{ background:rgba(255,255,255,.14); color:#eaf3f6; }
.cookie-decline:hover{ background:rgba(255,255,255,.24); }
@media (max-width:520px){ .cookie-bar{ flex-direction:column; align-items:stretch; } .cookie-btns{ justify-content:flex-end; } }

/* CMAS star ratings */
.cmas-stars{ display:inline-flex; align-items:center; gap:.06em; white-space:nowrap; vertical-align:-.14em; }
.star-ic{ width:1.05em; height:1.05em; fill:#f4a11e; filter:drop-shadow(0 1px 1px rgba(180,110,0,.28)); flex:none; }

/* useful links cards */
.links-group-title{ font-size:1.05rem; color:var(--body-soft,#5d6f79); margin:1.8rem 0 .7rem; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.links-group-title:first-child{ margin-top:.3rem; }
.links-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:.8rem; }
.link-card{ display:flex; align-items:center; gap:.8rem; padding:1rem 1.1rem; background:#fff; border:1px solid var(--line); border-radius:14px; transition:border-color .15s,box-shadow .15s,transform .15s; color:var(--ink); }
.link-card:hover{ border-color:var(--brand); box-shadow:0 10px 26px rgba(12,74,97,.1); transform:translateY(-2px); }
.link-card-main{ display:flex; flex-direction:column; gap:.15rem; min-width:0; flex:1; }
.link-label{ font-weight:700; }
.link-host{ font-size:.82rem; color:var(--body-soft,#5d6f79); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.link-arrow{ width:20px; height:20px; color:var(--brand); flex:none; }

/* courses: floating filter bar, all on ONE line (wraps only if it must) */
.course-filter{ position:sticky; top:var(--header-h); z-index:40; background:rgba(255,255,255,.96); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-bottom:1px solid var(--line); padding:.55rem 0; margin-bottom:.9rem; }
.course-filter .container{ display:flex; align-items:center; flex-wrap:wrap; gap:.35rem .9rem; }
.course-filter .cf-row{ display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; margin:0; }
.cf-label{ font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700; color:var(--body-soft,#5d6f79); }
.cf-chips{ display:flex; gap:.3rem; flex-wrap:wrap; }
.cf-chip{ border:1px solid var(--line); background:#fff; border-radius:999px; padding:.28rem .7rem; font-weight:600; font-size:.8rem; font-family:inherit; cursor:pointer; color:var(--body,#33454f); transition:all .15s; }
.cf-chip:hover{ border-color:var(--brand); }
.cf-chip.is-on{ background:var(--brand); border-color:var(--brand); color:#fff; }
.cf-search{ display:flex; align-items:center; gap:.4rem; margin-top:0; margin-left:auto; border:1px solid var(--line); border-radius:999px; padding:.3rem .8rem; width:230px; background:#fff; }
.cf-search svg{ width:18px; height:18px; color:var(--body-soft,#5d6f79); flex:none; }
.cf-search input{ border:0; outline:none; font-size:.95rem; font-family:inherit; width:100%; background:none; }
.cf-empty{ text-align:center; color:var(--body-soft,#5d6f79); padding:2rem 0; }

/* course cards: badges */
.card-badges{ display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:.4rem; }
.card-badge{ font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; border-radius:999px; padding:.15rem .55rem; }
.badge-agency{ background:#0c4a61; color:#fff; }
.badge-level{ background:#eef4f7; color:#33454f; }
.badge-beginner{ background:#e3f5e9; color:#1e6b3a; }
.badge-advanced{ background:#e3eefb; color:#1f5aa8; }
.badge-tech-pro{ background:#efe6fb; color:#6a35a8; }
.badge-adaptive{ background:#fdecdf; color:#a8571f; }

/* course detail: agency logo + facts */
.course-facts .agency-logo{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:1rem; display:grid; place-items:center; margin-bottom:1rem; }
.course-facts .agency-logo img{ max-width:100%; max-height:70px; object-fit:contain; }
.course-facts .agency-logo-text{ font-weight:800; font-size:1.6rem; letter-spacing:.02em; color:var(--brand); padding:1.4rem 1rem; }
/* the course's own artwork fills the panel instead of sitting in a logo box */
.course-facts .course-shot{ padding:0; border:0; background:none; overflow:hidden; border-radius:12px; }
.course-facts .course-shot img{ width:100%; max-width:none; max-height:none; height:auto; display:block; border-radius:12px; }
.facts-dl{ margin:0 0 .4rem; }
.facts-dl dt{ font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--body-soft,#5d6f79); font-weight:700; margin-top:.6rem; }
.facts-dl dd{ margin:.1rem 0 0; font-weight:600; }
.facts-dl .badge-level{ display:inline-block; font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; padding:.15rem .55rem; border-radius:999px; }
@media (max-width:640px){ .course-filter{ top:var(--header-h); } }

/* gallery video tiles */
.photo-grid .gal-video{ grid-column:span 2; }
.gal-vid{ width:100%; height:100%; min-height:220px; object-fit:cover; border-radius:14px; background:#06131a; display:block; }
@media (max-width:640px){ .photo-grid .gal-video{ grid-column:span 1; } }

/* hero: shift the welcome block left, giving the video more room on the right */
@media (min-width:900px){
  .hero-inner .container{ max-width:none; margin-inline:0; padding-left:clamp(2rem,6vw,6rem); padding-right:var(--pad); }
  .hero h1{ max-width:12ch; }
  .hero-lede{ max-width:38ch; }
}
/* courses dropdown now lists agency -> level groups: flow them into columns */
.mega--text.mega--cols{ min-width:min(560px,90vw); }
.mega--text.mega--cols .mega-inner{ display:grid; grid-template-columns:repeat(auto-fill,minmax(175px,1fr)); gap:.4rem 1.4rem; }
.mega--text.mega--cols .mega-group + .mega-group{ border-top:0; padding-top:0; }

/* 3-level cascading course menu (agency -> level -> courses) */
.mega--cascade{ width:auto; min-width:210px; overflow:visible; }
.casc{ list-style:none; margin:0; padding:.4rem; }
.casc-item{ position:relative; }
.casc-item > a{ display:flex; align-items:center; justify-content:space-between; gap:1.2rem; padding:.5rem .75rem; border-radius:9px; color:var(--ink); font-size:.92rem; font-weight:500; line-height:1.25; white-space:nowrap; }
.casc-item:hover > a, .casc-item > a:hover, .casc-item:focus-within > a{ background:var(--bg-alt); color:var(--brand); }
.casc-arrow{ color:var(--body-soft); font-weight:700; font-size:1.05em; }
.casc-3 .casc-arrow{ display:none; }
.casc-2, .casc-3{ position:absolute; top:-.45rem; left:100%; min-width:210px;
  background:var(--surface,#fff); border:1px solid var(--line); border-radius:12px; box-shadow:0 18px 44px rgba(13,40,55,.18);
  opacity:0; visibility:hidden; transform:translateX(6px); transition:opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; z-index:5; }
.casc-item:hover > .casc-2, .casc-item:focus-within > .casc-2,
.casc-item:hover > .casc-3, .casc-item:focus-within > .casc-3{ opacity:1; visibility:visible; transform:translateX(0); }
.casc-3 .casc-item > a{ font-weight:400; }
@media (max-width:900px){ /* on mobile the whole nav collapses; cascade shows stacked */
  .mega--cascade{ min-width:0; max-width:100%; }
  .casc{ padding:.4rem 0; }
  .casc-2, .casc-3{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; border-left:2px solid var(--line); border-radius:0; margin:.1rem 0 .1rem .6rem; min-width:0; }
  /* long UDI-CMAS names must wrap here, not stretch the menu across the page */
  .casc-item > a{ white-space:normal; gap:.6rem; }
}

/* individual courses list on a course page */
.course-list{ list-style:none; margin:.3rem 0 0; padding:0; }
.course-list li{ padding:.32rem 0; border-bottom:1px solid var(--line); font-size:.92rem; color:var(--body); }
.course-list li:last-child{ border-bottom:0; }

/* extra-wide gallery */
.container-gallery{ max-width:min(1820px, 95vw); }
/* decorative bubbles floating around the depth gauge */
.dg-bubble{ position:absolute; border-radius:50%; background:url("../ui/bubble2.png") center/contain no-repeat; pointer-events:none; opacity:.9; }
.dg-b1{ width:18px; height:18px; top:-16px; right:16px; animation:dgfloat 4.5s ease-in-out infinite; }
.dg-b2{ width:11px; height:11px; top:-30px; right:34px; animation:dgfloat 5.5s ease-in-out infinite .6s; }
.dg-b3{ width:14px; height:14px; bottom:-18px; right:12px; animation:dgfloat 5s ease-in-out infinite 1.1s; }
.dg-b4{ width:9px; height:9px; bottom:-30px; right:30px; animation:dgfloat 6s ease-in-out infinite .3s; }
@keyframes dgfloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-7px); } }
@media (prefers-reduced-motion:reduce){ .dg-bubble{ animation:none; } }

/* individual courses listed on each course card */
.card-course{ font-size:.74rem; background:var(--bg-alt); color:var(--body-soft,#5d6f79); border-radius:999px; padding:.16rem .6rem; font-weight:500; }
.card-courses{ display:flex; flex-wrap:wrap; gap:.3rem; margin-top:.55rem; }

/* visually hidden (kept for SEO/screen readers) */
.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; }

/* Equipment Service price table */
.service-list{max-width:660px;margin:1.6rem auto 0}
.price-table{width:100%;border-collapse:collapse;font-size:1.02rem}
.price-table td{padding:.9rem 1.1rem;border-bottom:1px solid var(--line)}
.price-table tr:first-child td{border-top:1px solid var(--line)}
.price-table .svc-name{color:var(--ink)}
.price-table .svc-price{text-align:right;font-weight:700;white-space:nowrap;color:var(--brand)}

/* Instagram tiles in the gallery */
.gal-ig a { display: block; position: relative; }
.ig-badge { position: absolute; top: .5rem; right: .5rem; width: 26px; height: 26px; color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); pointer-events: none; }
.ig-badge svg { width: 100%; height: 100%; fill: currentColor; }
.ig-play { top: 50%; left: 50%; right: auto; transform: translate(-50%,-50%); width: 54px; height: 54px; }
.ig-play svg { background: rgba(0,0,0,.45); border-radius: 50%; padding: 13px; box-sizing: border-box; }

/* brand logos (e.g. equipment service page) */
.brands-strip{ max-width:680px; margin:2.4rem auto 0; text-align:center; }
.brands-title{ font-size:.78rem; text-transform:uppercase; letter-spacing:.16em; color:var(--body-soft,#6b7c85); margin:0 0 1.1rem; }
.brands-logos{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:1.6rem 3.2rem; align-items:center; justify-content:center; }
.brands-logos img{ max-height:88px; max-width:210px; width:auto; height:auto; object-fit:contain; display:block; transition:transform .2s; }
/* the round Scubapro badge needs more size than a wordmark to read */
.brands-logos img[src*="scubapro"]{ max-height:124px; max-width:124px; }
.brands-logos a:hover img{ transform:translateY(-2px); }
