/* ===================================================================
   The Southampton Hat Trick — vintage maritime / treasure-map theme
   =================================================================== */

:root {
  --parchment: #ecdfc0;
  --parchment-dark: #ddccA0;
  --ink: #2a2013;
  --ink-soft: #4a3a24;
  --navy: #16233a;
  --navy-deep: #0e1729;
  --brass: #c1963f;
  --brass-light: #e0b968;
  --brass-dark: #8a6a2a;
  --rust: #8c3a27;
  --cream: #f6efd9;

  --font-display: "Ultra", "Rockwell", serif;
  --font-heading: "Cinzel", serif;
  --font-body: "EB Garamond", Georgia, serif;

  --container-w: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at top left, rgba(255,255,255,0.25), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0,0,0,0.06), transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: 820px; }

.section { padding: 96px 0; position: relative; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  text-align: left;
}
h2.center, .center { text-align: center; margin-left: auto; margin-right: auto; }

.kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--rust);
  font-weight: 600;
  margin: 0 0 0.9em;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 700px;
}
.lede.center { margin-left: auto; margin-right: auto; }
.lede.signature { font-style: italic; color: var(--brass-dark); }
.lede.hook { font-weight: 600; color: var(--rust); }

/* ---------- decorative dotted trail dividers ---------- */
.trail-divider { width: 100%; height: 40px; overflow: hidden; }
.trail-divider svg { width: 100%; height: 100%; display: block; }
.trail-divider.flip { transform: scaleY(-1); }
.trail-path {
  fill: none;
  stroke: var(--brass-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 14;
  opacity: 0.55;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-brass {
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 55%, var(--brass-dark));
  color: var(--ink);
  box-shadow: 0 3px 0 var(--brass-dark), 0 10px 24px rgba(0,0,0,0.25);
}
.btn-brass::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-brass:hover::before { left: 130%; }
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--brass-dark), 0 14px 28px rgba(0,0,0,0.3); }
.btn-brass:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--brass-dark); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246,239,217,0.6);
}
.btn-ghost:hover { background: rgba(246,239,217,0.12); border-color: var(--cream); }

.btn-large { padding: 19px 40px; font-size: 0.95rem; }
.btn-small { padding: 10px 18px; font-size: 0.72rem; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 23, 41, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--brass);
  transition: box-shadow 0.3s ease;
}
.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.brand-anchor { width: 22px; height: 22px; color: var(--brass); flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--brass-light); }
.nav-links a.btn { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--brass); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.09) translate(-1%, -1%); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,23,41,0.2) 0%, rgba(14,23,41,0.42) 45%, rgba(14,23,41,0.78) 78%, rgba(14,23,41,0.95) 100%),
    radial-gradient(ellipse at center, transparent 35%, rgba(14,23,41,0.4) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px 90px;
}
.hero-content::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -10%;
  top: -20%;
  background: radial-gradient(ellipse 60% 90% at 20% 100%, rgba(9,14,25,0.55), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero .eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brass-light);
  margin: 0 0 18px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.85), 0 0 22px rgba(0,0,0,0.6);
}
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brass-light);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.85), 0 0 26px rgba(0,0,0,0.6);
  margin: 0 0 18px;
  letter-spacing: 0.12em;
}
.hero-sub {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  max-width: 560px;
  color: var(--cream);
  margin: 0 0 36px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.75);
}
.hero-sub strong {
  color: var(--brass-light);
  font-weight: 600;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brass-light);
  width: 30px; height: 30px;
  z-index: 2;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 100%; height: 100%; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- story ---------- */
.story { background: var(--parchment); }
.story h2 { max-width: 700px; }

/* ---------- how it works ---------- */
.how { background: var(--navy); background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: var(--cream); }
.how .kicker { color: var(--brass-light); }
.how h2 { color: var(--cream); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 56px;
}
.step-card {
  background: rgba(246,239,217,0.04);
  border: 1px solid rgba(193,150,63,0.35);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.step-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  border-color: var(--brass);
  background: rgba(246,239,217,0.07);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
  margin-bottom: 14px;
}
.step-card h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 10px; }
.step-card p { color: rgba(246,239,217,0.75); margin: 0; font-size: 1rem; }

/* ---------- features ---------- */
.features { background: var(--parchment); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature svg {
  width: 42px; height: 42px;
  color: var(--rust);
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- map teaser ---------- */
.map-teaser { background: var(--parchment); }
.map-frame {
  position: relative;
  max-width: 900px;
  margin: 56px auto 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(20,15,5,0.35), 0 0 0 10px var(--cream), 0 0 0 12px var(--brass-dark);
}
.map-frame img { width: 100%; display: block; filter: saturate(0.95); }
.map-fog {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(22,35,58,0.55) 75%, rgba(22,35,58,0.85) 100%);
}
.map-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--cream);
  text-align: center;
  padding: 20px;
}
.map-lock svg {
  width: 44px; height: 44px;
  color: var(--brass-light);
  animation: lockPulse 3s ease-in-out infinite;
}
@keyframes lockPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(224,185,104,0)); }
  50% { filter: drop-shadow(0 0 14px rgba(224,185,104,0.7)); }
}
.map-lock p {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  max-width: 320px;
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- pricing ---------- */
.pricing { background: var(--parchment); }
.price-card {
  margin-top: 50px;
  background: var(--cream);
  border: 2px solid var(--brass);
  border-radius: 8px;
  padding: 48px 44px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(60,40,10,0.15);
  position: relative;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(140,58,39,0.35);
  border-radius: 4px;
  pointer-events: none;
}
.price-card-top { margin-bottom: 28px; }
.price-tag {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--rust);
  display: block;
}
.price-note {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.price-list li {
  font-size: 1.05rem;
  color: var(--ink-soft);
  padding-left: 28px;
  position: relative;
}
.price-list li::before {
  content: "⚓";
  position: absolute;
  left: 0;
  color: var(--brass-dark);
  font-size: 0.9rem;
}
.price-fineprint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.75;
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq { background: var(--parchment); }
.faq-list { margin-top: 46px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  border-left: 4px solid var(--brass);
  border-radius: 4px;
  padding: 6px 24px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--brass-dark);
  transition: transform 0.25s ease;
  margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(246,239,217,0.75);
  padding: 56px 0 34px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); color: var(--cream); font-size: 1.1rem; font-weight: 600;
}
.footer-tagline { max-width: 420px; font-size: 0.95rem; margin: 4px 0; }
.footer-contact { color: var(--brass-light); text-decoration: none; font-size: 0.95rem; }
.footer-contact:hover { text-decoration: underline; }
.footer-copy { font-size: 0.8rem; opacity: 0.6; margin-top: 18px; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 2px solid var(--brass);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.btn { margin-top: 6px; }
  .section { padding: 64px 0; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .price-card { padding: 36px 24px; }

  .hero {
    min-height: auto;
    display: block;
  }
  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    width: 100%;
  }
  .hero-media img { object-position: center 40%; }
  .hero-vignette,
  .hero-grain,
  .scroll-cue {
    display: none;
  }
  .hero-content {
    padding: 34px 24px 44px;
    background: var(--navy-deep);
  }
  .hero-content::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .scroll-cue { animation: none; }
  .map-lock svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
