/* =========================================================
   Olivia Llave — Foundation v4 (Sunset on the Riverwalk)
   Sail cream, terracotta brick, amber gold, sienna ink
   ========================================================= */

:root {
  /* Color — Sunset on the Riverwalk
     Pulled from the Jacksonville hero: brick walkway, amber light
     reflections, soft sail-cream, peach horizon, deep sienna shadow. */
  --bg: #FAF1E1;            /* warm sail-cream */
  --surface: #FFFFFF;
  --surface-warm: #F5E8D2;  /* warmer card panel */
  --surface-tint: #EBDCBE;  /* deeper warm panel */

  --ink: #3A2620;           /* charred sienna — warm without going purple */
  --ink-soft: #5C4032;
  --muted: #8A7058;         /* warm taupe */
  --muted-soft: #B89E84;

  --border: #E8D6B6;        /* warm tan border */
  --border-strong: #D2BC95;

  --accent: #B85838;        /* terracotta brick — the walkway */
  --accent-deep: #963F22;   /* deeper brick on hover */
  --accent-soft: #FAD9C4;   /* peach blush */
  --accent-tint: #FCEADC;   /* pale peach */

  --gold: #D9A055;          /* amber city-light gold */
  --gold-deep: #A87830;
  --gold-soft: #F4E1BC;

  --rose: #C97A78;          /* dusty rose (cloud accent, used sparingly) */

  --highlight: #FCD8AB;     /* peach marker highlight */
  --highlight-warm: #F4DDB8; /* pale gold alternate */

  /* Type */
  --display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 120px;

  /* Radius */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-2xl: 44px;
  --r-pill: 999px;

  /* Warm-tinted shadows */
  --shadow-sm: 0 1px 2px rgba(58, 46, 34, 0.04), 0 1px 3px rgba(58, 46, 34, 0.06);
  --shadow-md: 0 6px 18px rgba(58, 46, 34, 0.06), 0 2px 4px rgba(58, 46, 34, 0.04);
  --shadow-lg: 0 20px 50px rgba(58, 46, 34, 0.10), 0 4px 12px rgba(58, 46, 34, 0.05);
  --shadow-card-hover: 0 16px 32px rgba(184, 88, 56, 0.14), 0 2px 6px rgba(58, 46, 34, 0.05);

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 11vw, 120px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 320ms;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.018em; line-height: 1.1; }
h3 { font-size: clamp(20px, 1.6vw, 22px); letter-spacing: -0.01em; }
h4 { font-size: 16px; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "✦";
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-1px);
}
.eyebrow--ink { color: var(--ink); }
.eyebrow--ink::before { color: var(--gold); }
.eyebrow--muted { color: var(--muted); }

.muted { color: var(--muted); }
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 400;
}

/* Marker highlight — soft pill behind a word */
.marker {
  background: var(--highlight);
  color: var(--accent-deep);
  padding: 0 0.18em;
  border-radius: 14px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.marker--warm {
  background: var(--highlight-warm);
  color: var(--gold-deep);
}

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section--tight { padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 72px); }
.section--surface { background: var(--surface); }
.section--warm { background: var(--surface-warm); }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
  width: 100%;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(58, 46, 34, 0.04), 0 6px 14px rgba(184, 88, 56, 0.18);
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(58, 46, 34, 0.04), 0 10px 20px rgba(184, 88, 56, 0.28);
}
.btn--ink {
  background: var(--ink);
  color: var(--bg);
}
.btn--ink:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-warm); transform: translateY(-1px); }
.btn--soft {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.btn--soft:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn--small { padding: 11px 18px; font-size: 14px; }

.btn .arrow { transition: transform 280ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: -0.005em;
  border-bottom: 1.5px solid var(--highlight);
  padding-bottom: 1px;
  transition: gap 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.text-link svg { transition: transform 220ms var(--ease); }
.text-link:hover { color: var(--accent); gap: 12px; border-color: var(--accent); }
.text-link:hover svg { transform: translateX(2px); }

/* =========================================================
   Wordmark — sage rounded square w/ tiny house
   ========================================================= */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wordmark__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--bg);
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}
.wordmark:hover .wordmark__mark { transform: rotate(-6deg); background: var(--accent-deep); }
.wordmark__mark svg { width: 16px; height: 16px; }
.wordmark__name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(250, 246, 239, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: background 320ms var(--ease), border-color 320ms var(--ease), padding 320ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header--solid {
  background: rgba(250, 246, 239, 0.94);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
}

/* Transparent-over-hero state (home page) */
.site-header[data-transparent="true"]:not(.site-header--solid) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header[data-transparent="true"]:not(.site-header--solid) .wordmark__name { color: var(--bg); }
.site-header[data-transparent="true"]:not(.site-header--solid) .nav__link { color: rgba(250, 246, 239, 0.92); }
.site-header[data-transparent="true"]:not(.site-header--solid) .nav__link:hover,
.site-header[data-transparent="true"]:not(.site-header--solid) .nav__link[aria-current="page"] {
  color: var(--bg);
  background: rgba(250, 246, 239, 0.16);
}
.site-header[data-transparent="true"]:not(.site-header--solid) .nav-toggle {
  color: var(--bg);
  background: rgba(250, 246, 239, 0.14);
  border: 1px solid rgba(250, 246, 239, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav__list {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  transition: color 220ms var(--ease), background 220ms var(--ease);
}
.nav__link:hover { color: var(--accent-deep); background: var(--accent-soft); }
.nav__link[aria-current="page"] {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--ink);
  background: var(--surface-tint);
  border: 1px solid var(--border);
}
.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 280ms var(--ease), top 280ms var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-7);
    transform: translateY(-100%);
    transition: transform 380ms var(--ease);
    pointer-events: none;
    z-index: 60;
  }
  .nav.is-open { transform: translateY(0); pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: center; gap: var(--space-3); }
  .nav__link { font-size: 22px; padding: 12px 26px; }
  .nav .btn { font-size: 15px; padding: 14px 26px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--surface-tint);
  color: var(--ink);
  padding: var(--space-12) 0 var(--space-7);
  border-top: 1px solid var(--border);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: var(--space-9);
  padding-bottom: var(--space-9);
}
.site-footer .wordmark__name { font-size: 20px; }
.site-footer__tagline {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: var(--space-5) 0 var(--space-3);
  color: var(--ink);
  max-width: 30ch;
  line-height: 1.4;
}
.site-footer__license {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.6;
}
.site-footer h4 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: var(--space-5);
}
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: 12px; }
.site-footer__links a {
  color: var(--ink);
  font-size: 14px;
  transition: color 220ms var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.site-footer__links a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }

.site-footer__contact { font-size: 14px; line-height: 1.7; color: var(--ink); }
.site-footer__contact a { transition: color 220ms var(--ease); }
.site-footer__contact a:hover { color: var(--accent-deep); }
.site-footer__contact-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.site-footer__contact-line svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.site-footer__contact-line span { color: var(--muted); }

.site-footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.site-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eho-mark {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-7); padding-bottom: var(--space-7); }
}

/* =========================================================
   Page header (sub-pages)
   ========================================================= */
.page-header {
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
.page-header h1 { max-width: 14ch; margin-bottom: var(--space-5); }
.page-header .lede { margin-top: var(--space-5); max-width: 56ch; }
.page-header .eyebrow { margin-bottom: var(--space-5); }

/* =========================================================
   Closing CTA — soft cream card with sage halo
   ========================================================= */
.cta-strip {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}
.cta-strip__card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-strip__card::before,
.cta-strip__card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.cta-strip__card::before {
  top: -100px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(184, 88, 56,0.18) 0%, transparent 65%);
}
.cta-strip__card::after {
  bottom: -120px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(217, 160, 85,0.12) 0%, transparent 65%);
}
.cta-strip__card > * { position: relative; z-index: 1; }
.cta-strip h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: var(--space-5);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip p {
  color: var(--muted);
  font-size: 17px;
  max-width: 50ch;
  margin: 0 auto var(--space-7);
}

/* =========================================================
   Forms
   ========================================================= */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.form__input,
.form__select,
.form__textarea {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--r-md);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
  appearance: none;
  font-family: var(--body);
}
.form__textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--muted-soft); }
.form__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%232E251C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form__submit-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-3); flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); max-width: 36ch; }
.form__success {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--space-7);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: clamp(56px, 7vw, 80px);
}
.form__success::before {
  content: "✦";
  position: absolute;
  left: 24px;
  top: 24px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.form__success strong { color: var(--accent-deep); font-weight: 600; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].is-visible { transition-delay: 70ms; }
.reveal[data-delay="2"].is-visible { transition-delay: 140ms; }
.reveal[data-delay="3"].is-visible { transition-delay: 210ms; }
.reveal[data-delay="4"].is-visible { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Portrait — real-photo container
   ========================================================= */
.portrait {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-warm);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-md);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(58, 38, 32, 0.08) 100%);
  pointer-events: none;
}

/* =========================================================
   Photo placeholder (fallback when no image yet)
   ========================================================= */
.photo-placeholder {
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(184, 88, 56, 0.10), transparent 70%),
    radial-gradient(50% 40% at 80% 90%, rgba(217, 160, 85, 0.14), transparent 70%),
    var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/5;
}
.photo-placeholder__label {
  position: relative;
  z-index: 1;
  font-family: var(--body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  text-align: center;
  font-weight: 500;
}
.photo-placeholder__label::before {
  content: "✦";
  display: block;
  color: var(--accent);
  font-size: 22px;
  margin: 0 auto var(--space-4);
  letter-spacing: 0;
}

/* =========================================================
   Utility
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
::selection { background: var(--accent); color: #fff; }
