/* ============================================================================
   Black Sea Wreck Diving Center — stylesheet
   ----------------------------------------------------------------------------
   Mobile-first, vanilla CSS. All colors live in :root as custom properties
   (CSS variables) so the whole palette can be re-themed in one place.
   Current palette: "Aegean" (bright teal-cyan + sunny yellow accent).
   To change the look, just edit the values under :root below.
   ========================================================================== */

:root {
  /* ---- Brand palette (Aegean) ---------------------------------------- */
  --c-ink:        #06384F;  /* darkest — deep sections, headings        */
  --c-primary:    #0892A5;  /* bright teal-cyan — primary brand color   */
  --c-teal:       #19C3C3;  /* lighter teal — highlights / hovers       */
  --c-accent:     #FFC247;  /* sunny yellow — call-to-action buttons    */
  --c-accent-ink: #4A3500;  /* readable dark text to sit on the accent  */
  --c-bg:         #F2FAFB;  /* cool off-white — page background         */
  --c-surface:    #FFFFFF;  /* cards / panels                           */

  /* Derived / supporting colors */
  --c-text:       #123642;  /* body text (high contrast on bg)          */
  --c-muted:      #5A6E76;  /* secondary text                           */
  --c-link:       #07788A;  /* inline links on light bg (WCAG-AA safe)  */
  --c-border:     #d8e6e9;  /* hairline borders                         */
  --c-ink-2:      #0A4A63;  /* mid tone for gradients                   */

  /* ---- Typography ----------------------------------------------------- */
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
               Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  --font-head: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;

  /* ---- Spacing / shape ------------------------------------------------ */
  --maxw: 1140px;
  --radius:   14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --shadow:    0 6px 22px rgba(6, 56, 79, .10);
  --shadow-lg: 0 16px 44px rgba(6, 56, 79, .18);
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(48px, 8vw, 96px);
}

/* ============================ Base / reset ============================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden; /* belt-and-braces: never allow horizontal scroll */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .25em 0; }

/* Accessibility: visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Skip-to-content link (revealed on focus) */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--c-accent); color: var(--c-accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ============================ Layout helpers =========================== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-surface); }
.section--ink  { background: linear-gradient(160deg, var(--c-ink), var(--c-ink-2)); color: #dff3f6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--c-muted); max-width: 62ch; }
.section--ink .lead { color: #b9e6ec; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 800; color: var(--c-primary); margin: 0 0 .6em;
}
.section--ink .eyebrow { color: var(--c-teal); }

/* ============================ Buttons ================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-family: var(--font-head);
  padding: 13px 24px; border-radius: var(--radius-pill);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================ Header / nav ============================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex; align-items: center; gap: 16px;
  min-height: 66px; padding-block: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--c-ink); margin-right: auto; padding: 6px 10px; margin-left: -10px; border-radius: var(--radius-sm); }
.brand:hover { background: var(--c-bg); }
.brand:hover .brand__name { color: var(--c-primary); }
.brand__logo { width: 44px; height: 44px; flex: none; }
.brand__name { font-family: var(--font-sans); font-weight: 600; line-height: 1.05; font-size: 1.02rem; color: var(--c-ink); white-space: nowrap; }
.brand__name span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }

/* nav links */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; text-decoration: none; color: var(--c-ink); font-weight: 600;
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: .96rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--c-bg); color: var(--c-primary); }
.nav-links a[aria-current="page"] { color: var(--c-primary); box-shadow: inset 0 -3px 0 var(--c-accent); }

/* language switcher */
.langs { display: flex; gap: 2px; align-items: center; margin-left: 4px; }
.langs a {
  text-decoration: none; font-weight: 700; font-size: .82rem; color: var(--c-muted);
  padding: 6px 7px; border-radius: 7px; line-height: 1;
}
.langs a:hover { background: var(--c-bg); color: var(--c-primary); }
.langs a[aria-current="true"] { background: var(--c-primary); color: #fff; }

/* desktop: nav links and language switcher stack on the right, with the
   language row right-aligned under the last nav link (Contact) */
@media (min-width: 981px) {
  /* top-align the row, and start the brand from the top, so the wordmark
     lines up with the nav-link text (the stacked langs row no longer pulls
     the centered brand text downward) */
  .nav { align-items: flex-start; }
  .brand { align-items: center; padding-top: 10px; }
  .nav-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .langs { margin-left: 0; }
}

/* hamburger (mobile) */
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; color: var(--c-ink);
}
.nav-toggle:hover { background: var(--c-bg); }
.nav-toggle svg { width: 26px; height: 26px; display: block; margin: auto; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 66px 0 auto 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 22px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--c-accent); }
  .langs { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--c-border); justify-content: flex-start; gap: 4px; }
  .langs a { padding: 9px 12px; font-size: .95rem; }
}

/* ============================ Hero ===================================== */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* readability scrim */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,56,79,.55) 0%, rgba(6,56,79,.78) 100%);
}
.hero__inner { padding-block: clamp(70px, 16vw, 150px); }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 760px; }
.hero .lead { color: #eaf8fa; text-shadow: 0 1px 10px rgba(0,0,0,.3); margin-bottom: 1.6em; max-width: 760px; }
/* compact hero for interior pages */
.pagehero { background: linear-gradient(160deg, var(--c-ink), var(--c-primary)); color: #fff; }
.pagehero__inner { padding-block: clamp(46px, 9vw, 84px); }
.pagehero h1 { color: #fff; }
.pagehero .lead { color: #cdeef2; max-width: 720px; }
/* page hero with a background image */
.pagehero--media { position: relative; isolation: isolate; }
.pagehero--media__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pagehero--media__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero--media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(6,56,79,.72) 0%, rgba(6,56,79,.6) 100%);
}
.pagehero--media h1 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.pagehero--media .lead { color: #eaf8fa; text-shadow: 0 1px 10px rgba(0,0,0,.3); }

/* ============================ Cards / grids ============================ */
.grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #cfe4e8; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 24px; flex: 1; }
.card__body h3 { margin-bottom: .35em; }
.card__icon { width: 46px; height: 46px; color: var(--c-primary); margin-bottom: 12px; }

/* Feature row: image + text side by side, alternating */
.feature { display: grid; gap: clamp(22px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--rev .feature__media { order: 2; }
}
.feature__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature + .feature { margin-top: var(--section-y); }

/* ============================ Packages ================================= */
.pkg { position: relative; }
.pkg--feat { border-color: var(--c-primary); box-shadow: var(--shadow-lg); }
.pkg__tag {
  display: inline-block; align-self: flex-start; background: var(--c-accent); color: var(--c-accent-ink);
  font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--radius-pill); margin-bottom: 10px;
}
.pkg__head { background: linear-gradient(150deg, var(--c-primary), var(--c-ink)); color: #fff; padding: 22px 22px 18px; }
.pkg__head h3 { color: #fff; margin-bottom: 2px; }
.pkg__dur { font-weight: 600; color: #cdeff3; font-size: .95rem; }
.pkg__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.pkg__list { list-style: none; padding: 0; margin: 0 0 18px; }
.pkg__list li { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.pkg__list li::before { content: "✓"; color: var(--c-primary); font-weight: 900; flex: none; }
.price-tba { font-weight: 800; color: var(--c-ink); font-size: 1.05rem; }
.price-tba small { display: block; font-weight: 600; color: var(--c-muted); font-size: .8rem; }

/* day-by-day program timeline */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: day; }
.timeline li {
  position: relative; padding: 0 0 22px 56px; counter-increment: day;
}
.timeline li::before {
  content: "" counter(day); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-weight: 800; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.timeline li::after {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: var(--c-border);
}
.timeline li:last-child::after { display: none; }
.timeline h4 { margin: 6px 0 4px; color: var(--c-ink); }

/* ============================ Wreck list =============================== */
.wreck-group { margin-bottom: 26px; }
.wreck-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wreck-list li {
  background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-teal);
  border-radius: var(--radius-sm); padding: 13px 16px;
}
.wreck-list .depth {
  display: inline-block; background: var(--c-bg); color: var(--c-primary); font-weight: 700;
  font-size: .8rem; padding: 2px 9px; border-radius: var(--radius-pill); margin-left: 6px;
}
.wreck-list strong { color: var(--c-ink); }
.wreck-list .place {
  display: inline-block; margin-top: 8px; color: var(--c-primary);
  font-size: .82rem; font-weight: 600;
}
.wreck-list .place::before { content: "▸ "; }

/* ============================ Team ===================================== */
.team-card { text-align: center; }
.team-card .card__media { aspect-ratio: 1; border-radius: 50%; width: 150px; margin: 24px auto 0; }
.team-card .role { color: var(--c-primary); font-weight: 700; }

/* ============================ Gallery ================================== */
.gallery-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 620px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a {
  display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm);
  background: #cfe4e8; position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img, .gallery-grid a:focus-visible img { transform: scale(1.08); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(4, 24, 33, .92); align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 18px; right: 18px; }
.lb-prev  { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { left: 18px; } .lb-next { right: 18px; } }

/* ============================ Map ====================================== */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-border); background: var(--c-surface); }
.map-wrap img { width: 100%; }
.map-embed {
  aspect-ratio: 16 / 9; width: 100%; border: 0; display: block;
  background: repeating-linear-gradient(45deg, #e6f3f5, #e6f3f5 14px, #def0f3 14px, #def0f3 28px);
}
.placeholder-note {
  background: #fff8e6; border: 1px dashed var(--c-accent); color: #6b5200;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-top: 14px;
}

/* short film player */
.film-video {
  display: block; width: 100%; max-width: 680px; margin: 18px auto 0;
  aspect-ratio: 4 / 3; object-fit: contain; background: #04141b;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ============================ Contact form ============================= */
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--c-text);
  padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-surface);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-primary); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.contact-info svg { width: 24px; height: 24px; color: var(--c-primary); flex: none; margin-top: 2px; }
.contact-info a { color: var(--c-link); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ============================ Footer =================================== */
.site-footer { background: var(--c-ink); color: #bfe2e8; padding-block: clamp(40px, 7vw, 64px) 28px; }
.site-footer a { color: #bfe2e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: inline-flex; gap: 11px; align-items: center; margin-bottom: 14px; }
.footer-brand .brand__logo { width: 64px; height: 64px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #8fc3cd; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ============================ Misc ===================================== */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px); }
.stat { }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--c-accent); line-height: 1; }
.section--ink .stat span { color: #b9e6ec; font-size: .95rem; }
.note-todo { /* visible-but-subtle marker for owner placeholders */
  background: #fff8e6; border-left: 4px solid var(--c-accent); color: #6b5200;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin: 14px 0;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.tags li { background: var(--c-bg); border: 1px solid var(--c-border); color: var(--c-primary); font-weight: 600; font-size: .85rem; padding: 5px 12px; border-radius: var(--radius-pill); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
