/* Abyssal Deep Dive — the company website. Pastel, quiet and easy to read: ivory paper, soft sea and sand
   tints, a serif for headings and Plus Jakarta Sans (the JARVIS App's font) for reading. One stylesheet for
   every page. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
             font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
             font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
             font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
             font-weight: 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbf8f4;
  --white: #ffffff;
  --ink: #1e2638;
  --muted: #5d6476;
  --line: #e9e2d7;
  --aqua: #dcefeb;
  --sky: #dfe9f6;
  --blush: #f6e4dc;
  --lilac: #e7e2f4;
  --sand: #f3ebdd;
  --sea: #2f5d62;          /* buttons and links */
  --sea-deep: #234a4e;
  --gold: #b99a62;         /* hairlines and small marks */
  --radius: 22px;
  --shadow: 0 1px 2px rgba(30, 38, 56, .04), 0 12px 32px rgba(30, 38, 56, .06);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 244, .88);
       backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
       border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 600 21px/1 var(--serif); letter-spacing: .04em; white-space: nowrap; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--aqua); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 370px) { .nav { gap: 0; } .nav a { padding: 8px 7px; font-size: 13.5px; } .top .wrap { gap: 6px; } }

/* ── type ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; margin: 0; }
h1 { font-size: clamp(42px, 7.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.8vw, 52px); line-height: 1.08; }
h3 { font-size: 27px; line-height: 1.2; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--sea); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12.5px;
           font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lead { font-size: clamp(18px, 2.1vw, 20px); color: var(--muted); max-width: 58ch; margin: 18px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

/* ── buttons ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
       font: 600 15.5px/1 var(--sans); text-decoration: none; border: 1px solid transparent; }
.btn.solid { background: var(--sea); color: #fff; }
.btn.solid:hover { background: var(--sea-deep); color: #fff; }
.btn.line { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn.line:hover { border-color: var(--gold); color: var(--ink); }

/* ── sections ── */
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.tint-aqua { background: linear-gradient(180deg, var(--paper), var(--aqua) 18%, var(--aqua) 82%, var(--paper)); }
.tint-blush { background: linear-gradient(180deg, var(--paper), var(--blush) 18%, var(--blush) 82%, var(--paper)); }
.tint-lilac { background: linear-gradient(180deg, var(--paper), var(--lilac) 18%, var(--lilac) 82%, var(--paper)); }
.head { max-width: 760px; margin-bottom: 44px; }

/* ── hero ── */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; } .hero { padding: 80px 0 96px; } }
.arch { position: relative; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
        aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--sky); }
.arch img, .arch video { display: block; width: 100%; height: 100%; object-fit: cover; }
.arch figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 14px;
                   background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
                   font-size: 13.5px; color: var(--ink); }
@media (max-width: 899px) { .arch { max-width: 420px; aspect-ratio: 5 / 6; } }

/* ── cards ── */
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
        box-shadow: var(--shadow); }
.card p { margin: 10px 0 0; color: var(--muted); }
.card .tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
             font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.side { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.side img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.side .body { padding: 28px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side .body .btn { align-self: flex-start; margin-top: 18px; }
.bg-aqua { background: var(--aqua); } .bg-blush { background: var(--blush); } .bg-lilac { background: var(--lilac); }
.bg-sand { background: var(--sand); } .bg-sky { background: var(--sky); }

/* ── facts strip ── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0;
         border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 22px 4px; }
.facts b { display: block; font: 600 30px/1.1 var(--serif); }
.facts span { font-size: 14.5px; color: var(--muted); }

/* ── courses ── */
.group + .group { margin-top: 48px; }
.group h3 { margin-bottom: 6px; }
.group > p { margin: 0 0 18px; color: var(--muted); }
.courses { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line);
           border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.courses li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 18px 24px; }
.courses li + li { border-top: 1px solid var(--line); }
.courses .name { font-weight: 600; font-size: 17.5px; }
.courses .price { font: 600 24px/1 var(--serif); white-space: nowrap; }
.courses .what { grid-column: 1 / -1; font-size: 14.5px; color: var(--muted); }
.note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* ── gallery ── */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--sky); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 16 / 9; height: 100%; }
@media (min-width: 900px) { .gallery .wide img { aspect-ratio: auto; } }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
                      background: rgba(255, 255, 255, .85); font-size: 12.5px; }

/* ── dive sites ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14.5px; }

/* ── product showcase ── */
.product { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; gap: 56px; } .product.flip > :first-child { order: 2; } }
.product + .product { margin-top: 96px; }
.features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 26px; }
.features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%;
                       background: var(--gold); opacity: .8; }
.features b { font-weight: 600; }
.phones { display: flex; gap: 14px; justify-content: center; }
.phone { flex: 1 1 0; min-width: 0; max-width: 230px; border-radius: 30px; padding: 8px; background: var(--ink);
         box-shadow: 0 24px 48px rgba(30, 38, 56, .18); }
.phone img { border-radius: 23px; width: 100%; aspect-ratio: 750 / 1624; object-fit: cover; object-position: top; }
.phone:nth-child(2) { transform: translateY(28px); }
@media (max-width: 480px) { .phones .phone:nth-child(3) { display: none; } }
.pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pages span { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.panel { border-radius: var(--radius); padding: 36px; min-height: 280px; display: flex; flex-direction: column;
         justify-content: flex-end; box-shadow: var(--shadow); }
.panel .big { font: 500 clamp(48px, 7vw, 80px)/1 var(--serif); }
.panel p { margin: 12px 0 0; color: var(--muted); }
.caption { margin-top: 44px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ── contact ── */
.contact { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact .card h3 { font-size: 23px; }
.contact a { font-weight: 600; }
address { font-style: normal; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 800px) { footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
