/* =============================================================
   HERO HAVEN — global.css
   Shared styles only. Page-specific styles live in each
   page template. Never add page-specific CSS here.
   Design system: Cormorant Garamond + Inter
   Palette: Navy / Offwhite / Bronze / Clay
============================================================= */

/* ── CSS CUSTOM PROPERTIES ───────────────────────────────── */
:root {
  --hh-navy:       #162235;
  --hh-navy-2:     #1B2940;
  --hh-navy-deep:  #0D1825;
  --hh-offwhite:   #F7F4EE;
  --hh-stone-bg:   #F0EBE1;
  --hh-stone-2:    #EAE3D5;
  --hh-body:       #3A4048;
  --hh-muted:      #6B7280;
  --hh-bronze:     #8D6E46;
  --hh-clay:       #7A4E32;
  --hh-error:      #B83232;

  --shadow-card:   0 2px 12px rgba(22,34,53,.06), 0 8px 28px rgba(22,34,53,.04);
  --shadow-lift:   0 10px 40px rgba(22,34,53,.12), 0 2px 10px rgba(22,34,53,.06);

  --nav-h:      76px;
  --container:  1200px;
  --reading:    760px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--hh-body);
  background: var(--hh-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--hh-navy);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw,   4.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1;  }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.22; }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.35rem); line-height: 1.28; }

p {
  line-height: 1.8;
}

.p-lead {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.76;
  color: #4A525C;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.reading {
  max-width: var(--reading);
  margin-inline: auto;
}

.section      { padding: 88px 0; }
.section-sm   { padding: 64px 0; }
.section-lg   { padding: 112px 0; }

/* Background helpers */
.bg-offwhite  { background: var(--hh-offwhite); }
.bg-stone     { background: var(--hh-stone-bg); }
.bg-stone-2   { background: var(--hh-stone-2); }
.bg-navy      { background: var(--hh-navy); }
.bg-deep      { background: var(--hh-navy-deep); }

/* ── EYEBROW & ORNAMENT ──────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--hh-bronze);
}

.eyebrow-dim {
  color: rgba(255,255,255,.4);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 24px;
}

.orn-line {
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: rgba(141,110,70,.28);
}

.orn-gem {
  width: 6px;
  height: 6px;
  background: var(--hh-bronze);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--hh-navy);
  color: #fff;
  border: 1.5px solid var(--hh-navy);
}
.btn-primary:hover { background: var(--hh-navy-2); }

.btn-secondary {
  background: transparent;
  color: var(--hh-navy);
  border: 1.5px solid rgba(22,34,53,.2);
}
.btn-secondary:hover {
  border-color: var(--hh-navy);
  background: rgba(22,34,53,.03);
}

.btn-bronze {
  background: var(--hh-bronze);
  color: #fff;
  border: 1.5px solid var(--hh-bronze);
}
.btn-bronze:hover { background: var(--hh-clay); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.32);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.55);
}

.btn-sm {
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.8rem;
  border-radius: 9px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
#header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}

#header.scrolled {
  background: rgba(247,244,238,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(22,34,53,.07);
  box-shadow: 0 1px 22px rgba(22,34,53,.08);
}

.nav-wrap {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  transition: color .3s;
}

#header.scrolled .nav-brand-name {
  color: var(--hh-navy);
}

.nav-brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color .3s;
}

#header.scrolled .nav-brand-sub {
  color: var(--hh-bronze);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.8);
  padding: 6px 11px;
  border-radius: 8px;
  transition: color .18s, background .18s;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-links a.active {
  color: #fff;
}

#header.scrolled .nav-links a {
  color: #3A4048;
}

#header.scrolled .nav-links a:hover {
  color: var(--hh-navy);
  background: rgba(22,34,53,.05);
}

#header.scrolled .nav-links a.active {
  color: var(--hh-navy);
  font-weight: 600;
}

/* Nav CTA */
.nav-action .btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.76rem;
  border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,.32);
  color: #fff;
  background: transparent;
}

.nav-action .btn:hover {
  background: rgba(255,255,255,.09);
}

#header.scrolled .nav-action .btn {
  border-color: var(--hh-navy);
  color: var(--hh-navy);
}

#header.scrolled .nav-action .btn:hover {
  background: var(--hh-navy);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: background .3s;
}

#header.scrolled .hamburger span {
  background: var(--hh-navy);
}

/* Mobile nav drawer */
#mobile-nav {
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: rgba(247,244,238,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22,34,53,.08);
  padding: 20px 24px 28px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .32s, opacity .32s;
  pointer-events: none;
}

#mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#mobile-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hh-navy);
  padding: 12px 14px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(22,34,53,.05);
  display: block;
  transition: background .14s;
  text-decoration: none;
}

#mobile-nav a:hover {
  background: rgba(22,34,53,.04);
}

#mobile-nav .mob-cta {
  margin-top: 12px;
  border: none !important;
}

/* Skip nav — accessibility */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 999;
}

.skip-nav:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--hh-navy);
  color: #fff;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
}

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
  background: #080F1A;
  color: rgba(255,255,255,.65);
  padding: 88px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  gap: 56px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.f-brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 5px;
}

.f-brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hh-bronze);
  margin-bottom: 16px;
}

.f-desc {
  font-size: 0.86rem;
  line-height: 1.74;
  color: rgba(255,255,255,.45);
  margin-bottom: 22px;
}

.f-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.f-nav-group h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.f-nav-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-nav-group a {
  font-size: 0.86rem;
  color: rgba(255,255,255,.55);
  transition: color .15s;
  text-decoration: none;
}

.f-nav-group a:hover {
  color: #fff;
}

.f-signup h4 {
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.f-signup p {
  font-size: 0.86rem;
  color: rgba(255,255,255,.45);
  line-height: 1.68;
  margin-bottom: 18px;
}

.f-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.f-field {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  font: inherit;
  font-size: 0.88rem;
  color: #fff;
  transition: border-color .15s;
}

.f-field::placeholder {
  color: rgba(255,255,255,.32);
}

.f-field:focus {
  outline: none;
  border-color: rgba(255,255,255,.28);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.f-legal {
  font-size: 0.73rem;
  color: rgba(255,255,255,.28);
  line-height: 1.72;
  max-width: 580px;
}

.f-legal p + p {
  margin-top: 5px;
}

.f-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.f-links a {
  font-size: 0.73rem;
  color: rgba(255,255,255,.32);
  transition: color .15s;
  text-decoration: none;
}

.f-links a:hover {
  color: rgba(255,255,255,.68);
}

/* ── FORM ELEMENTS (shared) ──────────────────────────────── */
label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hh-navy);
}

label .req {
  color: var(--hh-bronze);
  margin-left: 2px;
}

.field {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(22,34,53,.14);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  color: var(--hh-navy);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}

.field:focus {
  outline: none;
  border-color: var(--hh-navy);
  box-shadow: 0 0 0 3px rgba(22,34,53,.08);
}

.field::placeholder {
  color: rgba(22,34,53,.32);
}

textarea.field {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select.field {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23162235' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field-group:last-of-type {
  margin-bottom: 0;
}

.field-helper {
  font-size: 0.74rem;
  color: var(--hh-muted);
  line-height: 1.55;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ── WORDPRESS ADMIN BAR OFFSET ──────────────────────────── */
.admin-bar #header {
  top: 32px;
}

.admin-bar #mobile-nav {
  top: calc(var(--nav-h) + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar #header {
    top: 46px;
  }
  .admin-bar #mobile-nav {
    top: calc(var(--nav-h) + 46px);
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --nav-h: 68px; }

  .nav-links,
  .nav-action {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .f-nav-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  :root { --nav-h: 66px; }

  .f-nav-cols {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}