/* =====================================================
   SeeU Dive — Top-level page consistency layer v1.0
   Loaded last on each top-level page so individual page
   styles remain intact while Hero and section rhythm match.
===================================================== */

:root{
  --page-hero-height:70vh;
  --page-hero-min:620px;
  --page-hero-max:760px;
  --page-hero-content:940px;
  --page-section-gap:96px;
}

/* ---------- Shared hero frame ---------- */
.about-hero,
.discover-hero,
.scuba-hero,
.freediving-hero,
.fundiving-hero,
.page-hero,
.gallery-hero{
  position:relative;
  isolation:isolate;
  width:100%;
  height:var(--page-hero-height);
  min-height:var(--page-hero-min);
  max-height:var(--page-hero-max);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:120px 22px 90px;
  color:#fff;
  text-align:center;
  background:#052b4f;
}

/* media layers */
.about-hero-media,
.discover-hero-media,
.scuba-hero-media,
.freediving-hero-media,
.fundiving-hero-media{
  position:absolute;
  inset:0;
  z-index:-3;
  width:100%;
  height:100%;
}

.about-hero-media img,
.discover-hero-media img,
.scuba-hero-media img,
.scuba-hero-media video,
.freediving-hero-media img,
.freediving-hero-media video,
.fundiving-hero-media img,
.fundiving-hero-media video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* same readability treatment on every photographic hero */
.about-hero-overlay,
.discover-hero-overlay,
.scuba-hero-overlay,
.freediving-hero-overlay,
.fundiving-hero-overlay{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(circle at 50% 42%,rgba(0,0,0,.02),rgba(0,18,32,.28) 58%,rgba(0,18,32,.66) 100%),
    linear-gradient(180deg,rgba(0,18,32,.14),rgba(0,18,32,.72));
}

/* contact/gallery do not use separate media wrappers */
.page-hero,
.gallery-hero{
  background:
    radial-gradient(circle at 50% 35%,rgba(16,133,187,.68),rgba(5,43,79,.72) 52%,rgba(3,29,53,.96) 100%),
    linear-gradient(135deg,#0b709f,#052b4f);
}

/* ---------- Shared hero content ---------- */
.about-hero-content,
.discover-hero-content,
.scuba-hero-content,
.freediving-hero-content,
.fundiving-hero-content,
.page-hero > div,
.gallery-hero-inner{
  position:relative;
  z-index:2;
  width:min(100%,var(--page-hero-content));
  max-width:var(--page-hero-content);
  margin:0 auto;
  padding-inline:6px;
}

.about-hero h1,
.discover-hero h1,
.scuba-hero h1,
.freediving-hero h1,
.fundiving-hero h1,
.page-hero h1,
.gallery-hero h1{
  margin:18px 0 20px;
  font-size:clamp(38px,5.25vw,72px);
  line-height:1.12;
  letter-spacing:-.055em;
  font-weight:900;
  color:#fff;
  text-shadow:0 14px 38px rgba(0,0,0,.34);
}

.about-hero p,
.discover-hero p,
.scuba-hero p,
.freediving-hero p,
.fundiving-hero p,
.page-hero p,
.gallery-hero p{
  max-width:760px;
  margin:0 auto;
  color:rgba(255,255,255,.91);
  font-size:clamp(16px,1.65vw,20px);
  line-height:1.8;
  text-shadow:0 8px 24px rgba(0,0,0,.24);
}

.about-hero .eyebrow,
.discover-hero .eyebrow,
.scuba-hero .eyebrow,
.freediving-hero .eyebrow,
.fundiving-hero .eyebrow,
.page-hero .eyebrow,
.gallery-hero .eyebrow{
  color:#d8fbff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.22em;
  text-shadow:0 7px 22px rgba(0,0,0,.3);
}

/* BREATHE remains a page-specific accent but follows common rhythm */
.freediving-hero-word{
  margin:0 0 10px;
}

/* ---------- Shared hero navigation tabs ---------- */
.about-hero .choice-tabs,
.discover-hero .choice-tabs,
.scuba-hero .choice-tabs,
.freediving-hero .choice-tabs,
.fundiving-hero .choice-tabs{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:30px auto 0;
}

.about-hero .choice-tabs a,
.discover-hero .choice-tabs a,
.scuba-hero .choice-tabs a,
.freediving-hero .choice-tabs a,
.fundiving-hero .choice-tabs a{
  min-width:150px;
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 22px;
  border:1px solid rgba(255,255,255,.58);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:16px;
  font-weight:850;
  line-height:1;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* ---------- Shared top-level section rhythm ---------- */
.about-main,
.discover-main,
.scuba-main,
.freediving-main,
.content.final-page,
.gallery-page{
  width:min(100%,1160px);
  margin-inline:auto;
  padding-left:22px;
  padding-right:22px;
}

.about-section-head,
.discover-section-head,
.scuba-section-head,
.freediving-section-head,
.final-section-head{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);
  align-items:center;
  gap:48px;
}

.about-section-head h2,
.discover-section-head h2,
.scuba-section-head h2,
.freediving-section-head h2,
.final-section-head h2{
  margin:8px 0 0;
  color:var(--navy,#052b4f);
  font-size:clamp(38px,3.2vw,54px);
  line-height:1.1;
  letter-spacing:-.045em;
}

.about-section-head > p,
.discover-section-head > p,
.scuba-section-head > p,
.freediving-section-head > p,
.final-section-head > p{
  max-width:540px;
  margin:0;
  color:var(--muted,#64748b);
  line-height:1.75;
}

@media(max-width:820px){
  :root{
    --page-hero-height:72vh;
    --page-hero-min:560px;
    --page-hero-max:680px;
  }

  .about-hero,
  .discover-hero,
  .scuba-hero,
  .freediving-hero,
  .fundiving-hero,
  .page-hero,
  .gallery-hero{
    padding:108px 18px 68px;
  }

  .about-hero h1,
  .discover-hero h1,
  .scuba-hero h1,
  .freediving-hero h1,
  .fundiving-hero h1,
  .page-hero h1,
  .gallery-hero h1{
    font-size:clamp(36px,11vw,54px);
    margin:14px 0 17px;
  }

  .about-hero p,
  .discover-hero p,
  .scuba-hero p,
  .freediving-hero p,
  .fundiving-hero p,
  .page-hero p,
  .gallery-hero p{
    font-size:15px;
    line-height:1.72;
  }

  .about-hero .choice-tabs,
  .discover-hero .choice-tabs,
  .scuba-hero .choice-tabs,
  .freediving-hero .choice-tabs,
  .fundiving-hero .choice-tabs{
    gap:8px;
    margin-top:24px;
  }

  .about-hero .choice-tabs a,
  .discover-hero .choice-tabs a,
  .scuba-hero .choice-tabs a,
  .freediving-hero .choice-tabs a,
  .fundiving-hero .choice-tabs a{
    min-width:0;
    min-height:48px;
    flex:1 1 calc(50% - 8px);
    padding:12px 14px;
    font-size:14px;
  }

  .about-section-head,
  .discover-section-head,
  .scuba-section-head,
  .freediving-section-head,
  .final-section-head{
    grid-template-columns:1fr;
    gap:16px;
  }
}

@media(max-width:480px){
  :root{
    --page-hero-min:520px;
    --page-hero-max:620px;
  }

  .about-hero,
  .discover-hero,
  .scuba-hero,
  .freediving-hero,
  .fundiving-hero,
  .page-hero,
  .gallery-hero{
    padding-inline:16px;
  }
}
