/* ===========================================================
   SHARM DIVERS DIVE CLUB — Design System
   Signature: the "Depth Rule" — a vertical gauge motif (literal
   dive-computer readout) used wherever a real depth/temperature
   number appears, instead of decorative numbering.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=Public+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* color tokens */
  --ink:        #07212E;   /* deep-water near-black */
  --deep:       #0E3C4D;   /* primary brand teal */
  --reef:       #1C7293;   /* mid reef blue */
  --reef-light: #4FA7C4;
  --surface:    #EAF4F1;   /* sunlit-surface off-white */
  --paper:      #F8FAF9;   /* page background */
  --coral:      #FF6B4A;   /* CTA / accent */
  --coral-dark: #E14F30;
  --sand:       #D9C8A0;   /* divider / neutral accent */
  --gauge:      #5FE0A6;   /* digital readout green */
  --line:       rgba(7,33,46,0.12);

  /* type */
  --font-display: 'Newsreader', serif;
  --font-body: 'Public Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1140px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
:focus-visible{
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--reef);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:'';
  width:14px; height:1px;
  background: var(--coral);
  display:inline-block;
}

/* ---------- header / nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(7,33,46,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin:0 auto;
}
.brand{
  font-family: var(--font-display);
  font-weight:600; font-size:1.25rem;
  color: var(--surface);
  display:flex; align-items:center; gap:10px;
  min-width:0; /* allow the text span to shrink/truncate instead of overflowing */
}
.brand span{
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.brand .brand-mark{
  width:30px;height:30px;border-radius:50%;
  background: conic-gradient(from 180deg, var(--reef), var(--gauge), var(--reef));
  display:inline-block;
}
.brand-logo{ height:42px; width:42px; min-width:42px; border-radius:50%; display:block; flex-shrink:0; object-fit:cover; }
.brand-logo.footer-logo{ height:56px; width:56px; min-width:56px; }
.main-nav{ display:flex; align-items:center; gap: 6px; flex-wrap:wrap; }
.main-nav a{
  color: rgba(234,244,241,0.82);
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible{ color:#fff; background: rgba(255,255,255,0.08); }
.main-nav a.active{ color: var(--gauge); }
.nav-right{ display:flex; align-items:center; gap:10px; flex-shrink:0; margin-left:auto; }
.lang-switch{ display:flex; gap:4px; font-family: var(--font-mono); font-size:0.78rem; }
.lang-switch a{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding: 6px 9px; border:1px solid rgba(255,255,255,0.18); border-radius:6px;
  color: rgba(234,244,241,0.7);
}
.lang-switch a.current{ color: var(--ink); background: var(--gauge); border-color: var(--gauge); font-weight:600; }
.lang-switch .lang-flag{ display:block; line-height:0; }
.lang-switch .lang-flag svg{ width:20px; height:13.3px; display:block; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,0.15); }
.cta-btn{
  background: var(--coral); color:#fff !important; font-weight:700;
  padding: 11px 18px; border-radius: 6px; font-size:0.92rem;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 6px 16px rgba(255,107,74,0.32);
  white-space:nowrap;
}
.cta-btn:hover, .cta-btn:focus-visible{ background: var(--coral-dark); }
.cta-btn.secondary{
  background: transparent; color: var(--surface) !important;
  border: 1.5px solid rgba(234,244,241,0.5); box-shadow:none;
}
.cta-btn.secondary:hover{ border-color: var(--gauge); color:var(--gauge) !important; }
.nav-toggle{ display:none; background:none; border:none; color:var(--surface); font-size:1.6rem; line-height:1; cursor:pointer; padding:4px 2px; flex-shrink:0; }
.mobile-extra{ display:none; } /* shown only inside the mobile dropdown — see breakpoint below */

/* ---------- mobile header: ONLY logo + hamburger ever sit in the top bar ---------- */
@media (max-width: 960px){
  .nav-wrap{ flex-wrap:nowrap; } /* never let the top row wrap — that's what breaks the layout */
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background: var(--ink); flex-direction:column; align-items:stretch;
    padding: 8px; gap:0; display:none; border-bottom:1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - 64px); overflow-y:auto;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding:14px 12px; border-radius:0; }
  .nav-toggle{ display:block; }
  .nav-right .lang-switch.desktop-only,
  .nav-right .cta-btn.desktop-only{ display:none; } /* moved into the dropdown instead */
  .mobile-extra{
    display:flex; flex-direction:column; gap:12px;
    padding:16px 12px 8px; margin-top:6px;
    border-top:1px solid rgba(255,255,255,0.12);
  }
  .mobile-extra .lang-switch{ justify-content:center; }
  .mobile-extra .cta-btn{ justify-content:center; }
  .brand{ font-size:1.05rem; }
  .brand span{ max-width: calc(100vw - 160px); }
  .brand-logo{ height:36px; width:36px; min-width:36px; }
}
@media (max-width: 420px){
  .nav-wrap{ padding:10px 14px; gap:8px; }
  .brand{ font-size:0.95rem; gap:8px; }
  .brand span{ max-width: calc(100vw - 130px); }
  .brand-logo{ height:32px; width:32px; min-width:32px; }
  .nav-toggle{ font-size:1.4rem; }
  .float-wa{ width:50px; height:50px; bottom:14px; right:14px; }
}

/* persistent floating WhatsApp button (mobile-first habit, shown all sizes) */
.float-wa{
  position:fixed; bottom:20px; right:20px; z-index:60;
  background: #25D366; color:#fff; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.float-wa svg{ width:28px; height:28px; fill:#fff; }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--deep) 55%, var(--reef) 100%);
  color: var(--surface);
  padding: 86px 0 70px;
}
.hero-grid{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items:center;
}
.hero h1{
  color:#fff; font-size: clamp(2.1rem, 4vw, 3.2rem); font-style:italic; font-weight:500;
}
.hero .lede{ font-size:1.08rem; max-width: 540px; color: rgba(234,244,241,0.86); }
.hero-ctas{ display:flex; gap:14px; margin-top: 28px; flex-wrap:wrap; }
.hero-art{ position:relative; }
.depth-tick-row{ display:flex; gap:18px; margin-top:36px; flex-wrap:wrap; }
.depth-tick{ font-family:var(--font-mono); font-size:0.78rem; color: rgba(234,244,241,0.65); }
.depth-tick b{ color: var(--gauge); display:block; font-size:1.05rem; }
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width:280px; margin:0 auto 8px; }
}

/* ---------- sections ---------- */
.section{ padding: 76px 0; }
.section.alt{ background: var(--surface); }
.section.dark{ background: var(--ink); color: var(--surface); }
.section.dark h2, .section.dark h3{ color:#fff; }
.section-head{ max-width: 680px; margin-bottom: 44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* generic 2/3 col grids */
.grid{ display:grid; gap: 28px; }
.grid.cols-2{ grid-template-columns: repeat(2,1fr); }
.grid.cols-3{ grid-template-columns: repeat(3,1fr); }
@media (max-width: 860px){
  .grid.cols-2, .grid.cols-3{ grid-template-columns: 1fr; }
}

/* ---------- cards ---------- */
.card{
  background:#fff; border:1px solid var(--line); border-radius: 10px;
  overflow:hidden; display:flex; flex-direction:column;
}
.card-body{ padding: 24px; flex:1; display:flex; flex-direction:column; }
.card h3{ font-size:1.25rem; }
.card .price{ font-family:var(--font-mono); font-weight:600; color:var(--reef); font-size:1.05rem; margin-top:auto; padding-top:12px; }

/* image placeholder block — honest stand-in for real photography */
.shot{
  aspect-ratio: 4/3; background:
    repeating-linear-gradient(135deg, rgba(28,114,147,0.10) 0 10px, rgba(28,114,147,0.04) 10px 20px),
    var(--surface);
  border: 1.5px dashed var(--reef-light);
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding: 18px;
}
.shot .shot-label{
  font-family: var(--font-mono); font-size:0.72rem; color: var(--reef);
  text-transform:uppercase; letter-spacing:.04em; line-height:1.5;
}
.shot .shot-label::before{ content:'📷 photo needed — '; opacity:.7; }
.shot.wide{ aspect-ratio: 16/9; }
.shot.tall{ aspect-ratio: 3/4; }

/* original-illustration boxes (replace photography placeholders) */
.illus-box{ aspect-ratio: 4/3; border-radius: 10px; overflow:hidden; line-height:0; background: var(--surface); position:relative; }
.illus-box.wide{ aspect-ratio: 16/9; }
.illus-box.tall{ aspect-ratio: 3/4; }
.illus-box.square{ aspect-ratio: 1/1; }
.illus-box svg{ width:100%; height:100%; display:block; }
.illus-box img{ width:100%; height:100%; object-fit:cover; display:block; }
.illus-box .illus-fallback{ width:100%; height:100%; }

/* ---------- depth gauge (signature component) ---------- */
.gauge{
  display:flex; align-items:center; gap:12px; font-family: var(--font-mono);
}
.gauge-rail{
  position:relative; width:10px; height:64px; border-radius:6px;
  background: var(--surface); border:1px solid var(--line); overflow:hidden;
}
.gauge-fill{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(180deg, var(--gauge), var(--reef));
}
.gauge-text{ font-size:0.82rem; color: var(--deep); line-height:1.3; }
.gauge-text b{ display:block; font-size:1rem; color:var(--ink); }

/* ---------- tables ---------- */
.price-table{ width:100%; border-collapse: collapse; background:#fff; border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.price-table th, .price-table td{ padding:16px 18px; text-align:left; border-bottom:1px solid var(--line); }
.price-table th{ background: var(--ink); color:#fff; font-family:var(--font-mono); font-size:0.78rem; text-transform:uppercase; letter-spacing:.04em; }
.price-table td.amount{ font-family:var(--font-mono); font-weight:700; color: var(--coral-dark); white-space:nowrap; }
.price-table tr:last-child td{ border-bottom:none; }
.table-wrap{ overflow-x:auto; }

/* ---------- trust strip / badges ---------- */
.badge-strip{ display:flex; gap:14px; flex-wrap:wrap; }
.badge{
  font-family: var(--font-mono); font-size:0.78rem; color: var(--deep);
  background: var(--surface); border:1px solid var(--line); border-radius:999px;
  padding:9px 16px; display:flex; align-items:center; gap:8px;
}
.badge.confirm{ border-color: var(--coral); color: var(--coral-dark); background:#fff; }

/* ---------- progression (course ladder) ---------- */
.ladder{ position:relative; padding-left: 28px; }
.ladder::before{
  content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(180deg, var(--gauge), var(--reef), var(--deep));
}
.ladder-step{ position:relative; padding-bottom: 36px; }
.ladder-step::before{
  content:''; position:absolute; left:-28px; top:4px; width:12px; height:12px; border-radius:50%;
  background: var(--gauge); border:3px solid var(--paper);
}
.ladder-step:last-child{ padding-bottom:0; }

/* ---------- quote / review ---------- */
.review-card{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px; }
.review-card .stars{ color: var(--coral); font-family: var(--font-mono); letter-spacing:2px; }

/* ---------- contact / map ---------- */
.map-shell{
  aspect-ratio: 16/9; border-radius:10px; border:1.5px dashed var(--reef-light);
  background: var(--surface); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:0.8rem; color:var(--reef); text-align:center; padding:20px;
}

/* ---------- footer ---------- */
.site-footer{ background: var(--ink); color: rgba(234,244,241,0.75); padding: 56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:32px; }
.footer-grid h4{ color:#fff; font-size:0.95rem; font-family:var(--font-body); font-weight:700; margin-bottom:14px; }
.footer-grid a{ display:block; padding:5px 0; color: rgba(234,244,241,0.72); font-size:0.92rem; }
.footer-grid a:hover{ color: var(--gauge); }
.footer-bottom{
  margin-top:40px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.1);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:0.8rem; color: rgba(234,244,241,0.5);
}
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- misc helpers ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.small{ font-size:0.85rem; color: rgba(7,33,46,0.65); }
.divider{ height:1px; background: var(--line); margin: 48px 0; }
