/* Legacy Life Productions — shared site styles
   Every page links this file so the whole site stays consistent.
   Change a colour or font here and it changes everywhere. */

:root {
  /* Palette (from the logo and the current website) */
  --forest: #1E3C31;      /* brand green: logo, buttons, hero bands */
  --forest-deep: #152C24; /* hover, footer */
  --linen: #FAF8F5;       /* page background */
  --oat: #E9E4DF;         /* header, quiet bands */
  --gold: #B08D58;        /* the line under "Legacy Life" in the logo */
  --sage: #6A8F71;        /* line art, accents */
  --sage-light: #A9C2AD;  /* line art on dark green */
  --sage-tint: #E2EBE3;   /* soft green bands and icon discs */
  --forest-mid: #2C5444;  /* lighter brand green for details */
  --ink: #1F211B;         /* body text */
  --ink-soft: #52554B;    /* secondary text */

  /* Type: same families as the current website */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.45rem;
  --step-2: 1.8rem;
  --step-3: clamp(2rem, 3.6vw, 2.6rem);
  --step-4: clamp(2.5rem, 5.2vw, 3.8rem);

  --measure: 62ch;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 5px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 600; }

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--forest); text-underline-offset: 0.18em; }
a:hover { color: var(--sage); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--linen);
  color: var(--forest);
  padding: 0.75rem 1rem;
  z-index: 20;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Icons from /assets/img/icons.svg */
.icon {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--sage);
}
.icon--sm { width: 26px; height: 26px; }

/* ---------- Header (matches the current site: oat bar, logo left, green button) ---------- */
.site-header {
  background: var(--oat);
  border-bottom: 1px solid rgba(176, 141, 88, 0.35);
  position: relative;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.logo { display: block; flex: none; }
.logo img { height: 64px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:not(.button):hover,
.site-nav a:not(.button)[aria-current="page"] { color: var(--forest); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(30, 60, 49, 0.35);
  border-radius: var(--radius);
  width: 48px;
  height: 44px;
  color: var(--forest);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; margin: 0 auto; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--forest);
  color: var(--linen);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.75em 1.6em;
  border-radius: var(--radius);
  border: 2px solid var(--forest);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { background: var(--forest-deep); color: var(--linen); }
.button .icon { width: 20px; height: 20px; color: currentColor; }
.button--light { background: var(--linen); color: var(--forest); border-color: var(--linen); }
.button--light:hover { background: var(--oat); color: var(--forest); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section--forest { background: var(--forest); color: var(--linen); }
.section--forest a { color: var(--linen); }
.section--oat { background: var(--oat); }
.section--sage { background: var(--sage-tint); }
.section-intro { margin-bottom: 2.75rem; }
.section-intro p { color: var(--ink-soft); }

/* The gold line from the logo, under section titles */
.flourish {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.flourish::before {
  content: "";
  width: 72px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

/* Large faint branch drawn behind a section */
.branch-art {
  position: absolute;
  pointer-events: none;
  color: var(--sage-light);
  opacity: 0.18;
}

/* Mount: a card for things worth looking at (the booking calendar, photos, video),
   framed by fine corner marks just outside its edge. */
.mount {
  position: relative;
  background: var(--linen);
  color: var(--ink);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(21, 44, 36, 0.55);
}
.mount::before,
.mount::after,
.mount > .mount-corners::before,
.mount > .mount-corners::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--sage-light);
  opacity: 0.75;
  pointer-events: none;
}
.mount::before { top: -11px; left: -11px; border-width: 1.5px 0 0 1.5px; }
.mount::after { top: -11px; right: -11px; border-width: 1.5px 1.5px 0 0; }
.mount > .mount-corners::before { bottom: -11px; left: -11px; border-width: 0 0 1.5px 1.5px; }
.mount > .mount-corners::after { bottom: -11px; right: -11px; border-width: 0 1.5px 1.5px 0; }

/* ---------- Steps: a real sequence, so it is numbered ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}
.steps li { counter-increment: step; position: relative; }
.step-mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}
.step-mark .icon-disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-tint);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.step-mark .icon-disc .icon { color: var(--forest); width: 36px; height: 36px; }
.step-mark .icon-disc { order: 1; flex: none; }
.step-mark::before {
  content: "Step " counter(step);
  order: 2;
  flex: none;
  font-size: var(--step--1);
  color: var(--forest-mid);
  font-weight: 600;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- Promises ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.promise {
  background: var(--linen);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.6rem;
}
.promise h3 { color: var(--forest); }
.promise .icon { color: var(--forest); width: 48px; height: 48px; margin-bottom: 1rem; }
.promise p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- Questions ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid rgba(31, 33, 27, 0.14); }
.faq details:first-of-type { border-top: 1px solid rgba(31, 33, 27, 0.14); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--forest);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.1rem; margin: 0; }

/* ---------- Lead form (shared: /assets/js/lead-form.js) ---------- */
.lead-form { display: grid; gap: 1.1rem; }
.lead-form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.lead-form label,
.lead-form legend { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; padding: 0; }
.lead-form .optional { font-weight: 400; color: var(--ink-soft); }
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(31, 33, 27, 0.25);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.lead-form textarea { min-height: 7rem; resize: vertical; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { outline: 3px solid var(--sage-light); outline-offset: 0; border-color: var(--sage); }
.lead-form fieldset { border: 0; margin: 0; padding: 0; }
.lead-form .choices { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.lead-form .choices label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; margin: 0; cursor: pointer; }
.lead-form .choices input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  background: #fff;
}
.lead-form .choices input:checked { border-color: var(--forest); background: radial-gradient(var(--forest) 0 45%, #fff 50%); }
.lead-form .choices input:focus-visible { outline: 3px solid var(--sage-light); outline-offset: 2px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .button { justify-self: start; }
.lead-form .button[disabled] { opacity: 0.6; cursor: wait; }
.lead-form [aria-invalid="true"] { border-color: #9B2C2C; }
.form-error { color: #9B2C2C; font-size: 0.95rem; margin: 0; }
.form-card a { color: var(--forest); text-decoration: underline; }
.form-thanks { text-align: left; }
.form-thanks .icon { color: var(--forest); width: 52px; height: 52px; margin-bottom: 0.75rem; }
.form-thanks h3 { color: var(--forest); }
.form-thanks p { color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--oat);
  padding: 3.25rem 0 2.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--oat); }
.site-footer a:hover { color: var(--sage-light); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(176, 141, 88, 0.4);
}
.footer-logo { display: block; }
.footer-logo img { height: 60px; width: auto; }
.site-footer .tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--linen);
  margin: 0;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer-row p { margin: 0; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .promises { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--oat);
    border-bottom: 1px solid rgba(176, 141, 88, 0.35);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(31, 33, 27, 0.1); }
  .site-nav .button { justify-content: center; margin-top: 1rem; }
  .logo img { height: 54px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
