/* ==========================================================================
   Dragon Run Ornamentals — site stylesheet
   Palette sampled directly from the client's logo (oxblood/maroon script)
   and property photos (ivory sign board, wood posts, olive foliage).
   Type: Fraunces (echoes the logo's calligraphic script) / Work Sans
   ========================================================================== */

:root {
  --paper: #FAF6EA;      /* ivory — sampled from the sign board */
  --paper-dim: #F1E9D3;
  --ink: #241511;         /* warm near-black for body text */
  --maroon: #4B0000;      /* core brand color, sampled from the logo */
  --maroon-deep: #300000; /* darkest shade — footer, deep backgrounds */
  --maroon-bright: #7A1420; /* lighter interactive maroon — hover, accents */
  --wood: #8C7850;        /* sampled from the sign posts */
  --olive: #6E7832;       /* sampled from the tree/grass in the photos */
  --line: #E4DAC0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --content-width: 820px;
  --wide-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--maroon);
  text-decoration-color: var(--wood);
  text-underline-offset: 3px;
}
a:hover { color: var(--maroon-bright); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--maroon-bright);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--maroon);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.01em; }

/* Longer combined heading (thank-you page) — same display font/weight as
   a normal h1, just scaled down so the full line fits without wrapping
   on desktop widths. Still wraps gracefully on narrow phone screens. */
.thank-you-heading { font-size: clamp(1.3rem, 2.7vw, 2rem); }

p { margin: 0 0 1.1em; max-width: 62ch; }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header / Nav ----------
   Cream bar with a maroon rule, so the maroon logo reads clean against it
   (the real logo is dark maroon type — it disappears on a dark header). */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--maroon);
}
.nav-bar {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--maroon);
  color: var(--maroon);
}

.nav-phone {
  background: var(--maroon);
  color: var(--paper) !important;
  padding: 9.2px 18.4px !important;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none !important;
}
.nav-phone:hover { background: var(--maroon-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--maroon);
  color: var(--maroon);
  padding: 6px 10px;
  font-size: 1.1rem;
  border-radius: 3px;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    padding: 16px 24px 22px;
    background: var(--paper-dim);
  }
  .nav-links.is-open { display: flex; }
  .nav-bar { flex-wrap: wrap; }
  .nav-phone { order: 3; }
}

.hero-mobile-img {
  display: none;
  width: 100%;
  height: auto;
}

/* ---------- Hero (real property photo, one bold moment) ---------- */
.hero {
  position: relative;
  color: var(--paper);
  background-image:
    linear-gradient(100deg, rgba(48,0,0,0.86) 0%, rgba(48,0,0,0.26) 45%, rgba(48,0,0,0.15) 100%),
    url("images/Dragon-Run-Ornamentals2026.jpg");
  background-size: cover;
  background-position: center 60%;
}
.hero-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 88px 24px 88px;
  max-width: 78%;
}
.hero h1 { color: var(--paper); max-width: 60%; }
.hero .lede {
  color: #E9D9D4;
  font-size: 1.15rem;
  max-width: 60%;
}
@media (max-width: 820px) {
  .hero-mobile-img { display: block; }
  .hero-inner { padding: 40px 24px 56px; max-width: 100%; }
  .hero h1 { max-width: 100%; }
  .hero .lede { max-width: 100%; }

  /* Below the breakpoint the photo runs as its own full-width image
     above this section instead of as this section's background — so
     the section goes back to the site's plain light background, and
     text/buttons switch from photo-legible (light-on-dark) to the
     normal ink-on-paper treatment used everywhere else.
     NOTE: these .hero h1 / .hero .lede color overrides must stay
     BELOW the base rules above — same selector, same specificity,
     so source order decides the winner. Moving this block back above
     them silently breaks mobile text color again. */
  .hero {
    background-image: none;
    background-color: var(--paper);
    color: var(--ink);
  }
  .hero h1 { color: var(--maroon); }
  .hero .lede { color: var(--ink); opacity: 0.85; }
  .hero .btn-primary { background: var(--maroon); color: #fff; }
  .hero .btn-primary:hover { background: var(--maroon-bright); color: #fff; }
  .hero .btn-ghost { border-color: var(--maroon); color: var(--maroon); }
  .hero .btn-ghost:hover { border-color: var(--maroon-bright); color: var(--maroon-bright); }
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.97rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--paper); color: var(--maroon); }
.btn-primary:hover { background: #fff; color: var(--maroon-bright); }
.btn-ghost { border-color: #E9D9D4; color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-maroon { background: var(--maroon); color: #FFFFFF; }
.btn-maroon:hover { background: var(--maroon-bright); color: #FFFFFF; }

/* ---------- Fact strip ---------- */
.fact-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper-dim);
}
.fact-strip .container-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding-top: 18px;
  padding-bottom: 18px;
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.02rem;
}
.fact-strip span:not(.divider) { padding: 0 20px; }
.fact-strip .divider { color: var(--wood); }
@media (max-width: 640px) {
  .fact-strip .container-wide { flex-direction: column; gap: 6px; }
  .fact-strip span { padding: 0 !important; }
  .fact-strip .divider { display: none; }
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }
.section-label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--olive);
  margin-bottom: 10px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ---------- Photo + text split (Visit / About) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}
.split img {
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ---------- Category / plant list ---------- */
.plant-list {
  border-top: 1px solid var(--line);
}
.plant-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .plant-row { grid-template-columns: 1fr; gap: 6px; }
}
.plant-row h3 { margin: 0; color: var(--ink); }
.plant-row p { margin: 0; color: var(--ink); opacity: 0.85; }

/* ---------- Timeline (About page — genuinely chronological) ---------- */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--maroon);
}
.timeline-year {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.05rem;
  margin-bottom: 4px;
  display: block;
}

/* ---------- Terms blocks ---------- */
.terms-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.terms-block:last-child { border-bottom: none; }
.terms-block h3 { color: var(--maroon); margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-detail { margin-bottom: 18px; }
.contact-detail .label {
  font-size: 0.82rem;
  color: var(--olive);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.contact-detail .value { font-family: var(--font-display); font-size: 1.15rem; color: var(--maroon); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--maroon);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.87rem; color: var(--wood); margin-top: -6px; }
.form-note-spaced { margin-top: 18px; }

/* Keeps the reCAPTCHA widget's hidden response field validatable —
   display:none would silently block the native "required" prompt. */
#g-recaptcha-response {
  display: block !important;
  position: absolute;
  margin: -50px 0 0 0 !important;
  z-index: -999999;
  opacity: 0;
}
.req-mark { color: var(--maroon); }

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 560px) {
  .map-grid { grid-template-columns: 1fr; }
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 220px; border: 0; display: block; }
.map-caption {
  font-size: 0.82rem;
  color: var(--olive);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--maroon-deep);
  color: var(--paper);
}
.cta-band .container-wide {
  padding: 48px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper); margin: 0; }
.cta-band p { color: #E9D9D4; margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-deep);
  color: #E9D9D4;
  padding: 44px 0 30px;
  font-size: 0.92rem;
}
.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.footer-inner img { height: 40px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 10px; }
.site-footer a { color: var(--paper); }
.footer-copy {
  border-top: 1px solid #4A1414;
  margin-top: 28px;
  padding-top: 18px;
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  font-size: 0.85rem;
  opacity: 0.8;
}
