/* ============================================================
   Diving • Travel • MDS • USCA Creations — shared stylesheet
   ============================================================ */
:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #1c2b3a;
  --muted: #5c6c7c;
  --navy: #0e2a47;
  --navy-2: #143a63;
  --teal: #0f8f86;
  --teal-soft: #e0f2f0;
  --coral: #e2725b;
  --sand: #eadfc9;
  --line: #dcd5c8;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.12);
  --radius: 14px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 3rem 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  font-weight: 700; color: var(--teal); margin-bottom: .6rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0; gap: 1rem;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: .55rem;
  white-space: nowrap;
}
.brand .dot-logo {
  width: 34px; height: 40px; flex: none;
  background-image: url("../assets/freyer-crest.jpg");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.main-nav ul {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.main-nav a {
  display: block; padding: .45rem .8rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--teal-soft); color: var(--navy); }
.main-nav a.active { background: var(--navy); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; color: var(--navy);
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 4%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal) 130%);
  color: #f2f6f8; padding: 4.2rem 0 4.6rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -180px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.hero h1 { color: #fff; }
.hero p.lede { font-size: 1.12rem; max-width: 60ch; color: #d7e3ec; }
.hero .eyebrow { color: #8fd8d2; }
.hero-dark { background: linear-gradient(135deg, #0b2038, #123a55 60%, #0f8f86 140%); }

/* Astrophotography page: telescope banner */
.hero-astro {
  background-image:
    linear-gradient(90deg, rgba(5, 9, 20, .92) 0%, rgba(5, 9, 20, .72) 42%, rgba(5, 9, 20, .30) 72%, rgba(5, 9, 20, .05) 100%),
    url("../assets/astro-tile.jpg");
  background-size: auto, cover;
  background-position: left center, center right;
  background-repeat: no-repeat, no-repeat;
}
.hero-astro h1, .hero-astro p.lede {
  text-shadow: 0 1px 14px rgba(0, 0, 0, .7);
}
@media (max-width: 640px) {
  .hero-astro {
    background-image:
      linear-gradient(rgba(5, 9, 20, .82), rgba(5, 9, 20, .9)),
      url("../assets/astro-tile.jpg");
  }
}

/* Diving page: photo banner bar with readable text */
.hero-banner {
  background-image:
    linear-gradient(90deg, rgba(3, 16, 28, .93) 0%, rgba(3, 16, 28, .78) 40%, rgba(3, 16, 28, .30) 68%, rgba(3, 16, 28, 0) 100%),
    url("../assets/diving-banner.jpg");
  background-size: auto, cover;
  background-position: left center, center right;
  background-repeat: no-repeat, no-repeat;
}
.hero-banner h1, .hero-banner p.lede {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
@media (max-width: 640px) {
  .hero-banner {
    background-image:
      linear-gradient(rgba(3, 16, 28, .82), rgba(3, 16, 28, .88)),
      url("../assets/diving-banner.jpg");
  }
}

/* Hero with picture (home page) */
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 2.6rem; align-items: center;
}
.hero-figure { margin: 0; }
.hero-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
/* Home page hero: logo on a white card (logo contains black text) */
.hero-figure.hero-logo-card {
  background: #fff;
  padding: 1.5rem 1.8rem;
  max-width: 500px;
  width: 100%;
  justify-self: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.hero-figure.hero-logo-card img {
  width: 100%; height: auto;
  border: 0; border-radius: 0; box-shadow: none;
}

/* marathon hero: hanging pennant */
.hero-mds .pennant {
  position: absolute; top: 0; right: clamp(1.5rem, 9vw, 7rem); z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  animation: pennant-sway 5s ease-in-out infinite alternate;
}
.pennant .pennant-cord {
  width: 3px; height: 44px; border-radius: 2px;
  background: linear-gradient(#e9d9a0, #97783f);
}
.pennant img {
  width: clamp(140px, 15vw, 215px); height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5));
}
@keyframes pennant-sway {
  from { transform: rotate(2.4deg); }
  to { transform: rotate(-2.6deg); }
}
@media (max-width: 999px) {
  .hero-mds .pennant { position: static; margin: 0 0 1.8rem; }
  .pennant .pennant-cord { height: 30px; }
  .pennant img { width: 116px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mds .pennant { animation: none; }
}

/* main page: pennant on the marathon card */
.card-mds { position: relative; }
.card-pennant {
  position: absolute; top: 0; right: 1.5rem; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  animation: pennant-sway 6s ease-in-out infinite alternate;
}
.card-pennant .pennant-cord {
  width: 2px; height: 20px; border-radius: 2px;
  background: linear-gradient(#e9d9a0, #97783f);
}
.card-pennant img {
  width: 78px; height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35));
}
@media (prefers-reduced-motion: reduce) {
  .card-pennant { animation: none; }
}

/* main page: seal on the USCA Creations card */
.card-seal {
  display: flex; justify-content: center;
  margin: .5rem 0 1.1rem;
}
.card-seal img {
  display: block;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
  animation: seal-float-card 5s ease-in-out infinite alternate;
}
@keyframes seal-float-card {
  from { transform: translateY(0); }
  to { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .card-seal img { animation: none; }
}

/* shop hero: brand seal */
.hero-shop .shop-seal {
  position: absolute; top: 50%; right: clamp(1.5rem, 8vw, 6rem);
  transform: translateY(-50%); z-index: 1;
  animation: seal-float 5s ease-in-out 1s infinite alternate;
}
.shop-seal img {
  display: block;
  width: clamp(150px, 18vw, 240px); height: auto;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  animation: seal-stamp .8s ease-out both;
}
@keyframes seal-stamp {
  0% { opacity: 0; transform: scale(1.3) rotate(-5deg); }
  55% { opacity: 1; transform: scale(.95) rotate(1.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes seal-float {
  from { transform: translateY(-50%); }
  to { transform: translateY(calc(-50% + 6px)); }
}
@media (max-width: 999px) {
  .hero-shop .shop-seal { position: static; transform: none; margin: 0 auto 1.8rem; animation: none; }
  .shop-seal img { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shop .shop-seal, .shop-seal img { animation: none; }
}

/* ---------- Cards & grids ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem;
}
/* Main page only: photo background on the Diving card */
.card-diving {
  background-image:
    linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.35) 68%, rgba(255,255,255,.05) 100%),
    url("../assets/diving-card-bg.jpg");
  background-size: cover;
  background-position: center right;
}
/* Photo-background category tile (Astrophotography) */
.card-astro {
  position: relative; overflow: hidden; color: #f4f7fb; border-color: rgba(255,255,255,.25);
  background-image:
    linear-gradient(90deg, rgba(5, 9, 20, .88) 0%, rgba(5, 9, 20, .62) 45%, rgba(5, 9, 20, .18) 80%, rgba(5, 9, 20, .05) 100%),
    url("../assets/astro-tile.jpg");
  background-size: cover; background-position: center;
  padding: 2rem 2.2rem;
}
.card-astro h2 { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.card-astro p { color: #e4ebf3; max-width: 70ch; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.card-astro .tag {
  color: #dfe9ff; background: rgba(10, 22, 48, .65);
  border: 1px solid rgba(255,255,255,.35);
}
.card-astro .btn {
  background: #fff; color: var(--navy);
}
@media (max-width: 560px) {
  .card-astro {
    background-image:
      linear-gradient(rgba(5, 9, 20, .85), rgba(5, 9, 20, .92)),
      url("../assets/astro-tile.jpg");
  }
}
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .65rem 1.3rem; border-radius: 999px;
  background: var(--teal); color: #fff !important; text-decoration: none;
  font-weight: 600; border: none; cursor: pointer; font-size: .95rem;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #0c7a72; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: rgba(14, 42, 71, .08); }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: #c95f49; }
.btn.small { padding: .4rem .95rem; font-size: .85rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 1.1rem 0 0; font-size: .88rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--ink); }

/* ---------- World map ---------- */
.map-frame {
  background: linear-gradient(180deg, #eef4f8, #e4edf4);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem;
}
.map-frame svg { width: 100%; height: auto; display: block; }
.map-land { fill: #cfdde8; }
.map-dot { fill: #9db6c9; }
.map-marker circle {
  fill: var(--coral); stroke: #fff; stroke-width: 1.6; cursor: pointer;
  transition: r .12s ease, fill .12s ease;
}
.map-marker:hover circle, .map-marker:focus circle { fill: #b94f37; r: 8.5; }
.map-marker text {
  font-size: 9.5px; font-weight: 600; fill: var(--navy);
  text-anchor: middle; pointer-events: none; font-family: var(--font-body);
}
.map-legend { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; padding: .8rem .4rem .2rem; font-size: .88rem; color: var(--muted); }
.map-legend .key { display: inline-flex; align-items: center; gap: .45rem; }
.map-legend .key i { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); display: inline-block; }

/* ---------- Photo portfolio / slots ---------- */
.photo-grid { display: grid; gap: .9rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-slot, .photo {
  aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(15,143,134,.06) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #dfeaf0, #cfe0e8);
  border: 1.5px dashed #b3c6d2;
  display: flex; align-items: center; justify-content: center;
}
.photo-slot span {
  font-size: .8rem; color: var(--muted); background: rgba(255,255,255,.75);
  padding: .3rem .7rem; border-radius: 999px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carousel ---------- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .45s ease; }
.carousel-slide { min-width: 100%; aspect-ratio: 16 / 9; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide .slide-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .4rem; color: #cfe0ea;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.10), transparent 45%),
    linear-gradient(150deg, #123a5c, #0f8f86 135%);
  font-size: .95rem;
}
.carousel-slide .slide-ph .cam { font-size: 1.8rem; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--navy); font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; z-index: 5; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); padding: 0;
}
.carousel-dots button.active { background: #fff; }

/* ---------- Text blocks ---------- */
.text-block {
  background: #e7eef4; border: 1px solid #c9d8e4; border-radius: var(--radius);
  padding: 1.8rem 2rem; box-shadow: var(--shadow);
  font-family: Arial, Helvetica, sans-serif;
}
.text-block h2, .text-block h3 { color: var(--navy); }
/* Topic headings inside custom text (Best season, Typical depth, ...) */
.custom-text h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--navy);
  margin: 1.5rem 0 .5rem; padding-left: .65rem;
  border-left: 4px solid var(--teal);
}
.custom-text h3:first-child { margin-top: 0; }
.custom-text p {
  background: rgba(255, 255, 255, .78); border: 1px solid #c9d8e4; border-radius: 10px;
  padding: .7rem 1rem; margin: 0 0 .45rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem; font-weight: 400; font-style: italic; line-height: 1.55;
  color: #243b53;
}
.text-block .placeholder-note {
  display: block; margin-top: .6rem; font-size: .82rem; color: var(--muted); font-style: italic;
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.4rem;
}
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.fact {
  background: var(--teal-soft); border-radius: 10px; padding: .7rem .95rem; font-size: .9rem;
}
.fact strong { display: block; color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: .8rem; }
.product .thumb {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed #b3c6d2; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, rgba(15,143,134,.06) 0 12px, transparent 12px 24px), #e7eef2;
  color: var(--muted); font-size: .8rem; text-align: center; padding: .5rem;
}
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .name { font-weight: 600; color: var(--navy); }
.product .price { font-weight: 700; color: var(--teal); }
.product .row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: auto; }
.cart { position: sticky; top: 84px; }
.cart h3 { margin-top: 0; }
.cart-items { list-style: none; margin: 0 0 1rem; padding: 0; }
.cart-items li {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.cart-items .qty { display: flex; align-items: center; gap: .45rem; }
.cart-items .qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; line-height: 1;
}
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin: .6rem 0 1rem; }
.cart-empty { color: var(--muted); font-size: .92rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .25rem; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }

/* ---------- Lists of destinations ---------- */
.dest-link { text-decoration: none; color: inherit; display: block; }
.dest-link:hover { transform: translateY(-3px); transition: transform .15s ease; }
.dest-link h3 a { color: var(--navy); text-decoration: none; }
.dest-link h3 a:hover { color: var(--teal); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); background: var(--teal-soft);
  padding: .18rem .6rem; border-radius: 999px; margin-bottom: .5rem;
}
.tag.coral { color: #b44a32; background: #f8e4de; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem; background: var(--navy); color: #c9d6e2; padding: 2.4rem 0;
  font-size: .9rem;
}
.site-footer a { color: #8fd8d2; text-decoration: none; }
.site-footer .foot-grid { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Lightbox (real-size photo view) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(4, 8, 14, .95); overflow: auto;
}
.lightbox.open { display: block; }
.lightbox-inner {
  min-height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 1.2rem 2rem;
}
.lightbox img {
  width: auto; height: auto; max-width: none; max-height: none;
  display: block; margin: auto; flex: none;
  box-shadow: 0 12px 60px rgba(0, 0, 0, .65);
  background: #101418;
}
.lightbox-caption { color: #dfe8f2; margin-top: 1rem; font-size: .95rem; text-align: center; }
.lightbox-close {
  position: fixed; top: 1rem; right: 1.1rem; z-index: 1001;
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Misc ---------- */
.divider { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.soon-banner {
  background: #fff6e8; border: 1px solid #ecd9ae; color: #7a5b1e;
  border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: 1.4rem; font-size: .95rem;
}
.badge-soon {
  display: inline-block; background: var(--sand); color: #6b5a33; font-size: .75rem;
  font-weight: 700; padding: .15rem .6rem; border-radius: 999px; margin-left: .5rem;
  vertical-align: middle;
}
