/* =========================================================================
   Ranch Watch — design tokens
   ========================================================================= */
:root {
  /* palette */
  --forest-950: #1b2819;
  --forest-900: #223225;
  --forest-800: #2c3f2a;
  --forest-700: #3c5439;
  --forest-500: #5a7654;
  --tan-800: #6f4a29;
  --tan-700: #8a5c34;
  --tan-600: #a9713f;
  --tan-500: #c08a52;
  --tan-300: #dcae7c;
  --cream-000: #fbf8f1;
  --cream-100: #f7f2e7;
  --cream-200: #efe6d3;
  --cream-300: #e5d8ba;
  --ink-900: #241f18;
  --ink-700: #3a3327;
  --stone-500: #7d7566;
  --stone-300: #b8ad98;
  --white: #ffffff;

  /* typography */
  --font-serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --container-w: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 50px -25px rgba(28, 24, 16, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(28, 24, 16, 0.28);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
}

/* =========================================================================
   Reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100dvh; }
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Base
   ========================================================================= */
body {
  font-family: var(--font-sans);
  background: var(--cream-000);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--forest-900);
  color: var(--cream-000);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--tan-600);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2.5rem; } }

.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan-700);
  margin-bottom: 0.9rem;
}

h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.35rem, 5.6vw, 4.2rem);
  letter-spacing: -0.01em;
  color: var(--forest-950);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  letter-spacing: -0.005em;
  color: var(--forest-950);
}

h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--forest-900);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-700);
  max-width: 42rem;
}

.body-text { color: var(--ink-700); }
.muted { color: var(--stone-500); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  min-height: 3.2rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  background: var(--tan-700);
  color: var(--cream-000);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--tan-800); box-shadow: var(--shadow-soft); }

.btn-secondary {
  background: transparent;
  color: var(--forest-950);
  border: 1.5px solid var(--forest-900);
}
.btn-secondary:hover { background: var(--forest-900); color: var(--cream-000); }

.btn-on-dark {
  background: transparent;
  color: var(--cream-100);
  border: 1.5px solid rgba(251, 248, 241, 0.55);
}
.btn-on-dark:hover { background: rgba(251, 248, 241, 0.12); border-color: var(--cream-000); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.cta-row.center { justify-content: center; }

/* Small caps rule/text/rule motif borrowed from the Ranch Watch mark.
   The side rules are fixed-width and the text is nowrap, which overflows
   a narrow phone screen — so below 420px the rules hide and the text is
   free to wrap, and both return once there is room for them. */
.tagline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
  max-width: 100%;
}
.tagline-divider .rule {
  display: none;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.tagline-divider .tagline-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: normal;
  max-width: 22rem;
  text-align: center;
}
@media (min-width: 420px) {
  .tagline-divider .rule { display: block; flex: 0 0 2.5rem; }
  .tagline-divider .tagline-text { letter-spacing: 0.18em; white-space: nowrap; }
}

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(34, 51, 37, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  height: 4.5rem;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}
.logo-lockup img { height: 2.75rem; width: auto; flex: none; }

.primary-nav {
  display: none;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--ink-700);
}
.primary-nav a:hover { color: var(--forest-950); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}
.header-actions .btn { padding: 0.75rem 1.15rem; min-height: 2.8rem; font-size: 0.92rem; }

/* Below this width, the logo + hamburger alone are tight against a pill
   button; the mobile sticky CTA bar already offers this same action. */
@media (max-width: 559px) {
  .header-actions .btn-primary { display: none; }
}
.header-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--forest-950);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .header-phone { display: inline-flex; }
}

.mobile-nav-panel {
  position: fixed;
  inset: 4.5rem 0 0 0;
  background: var(--cream-000);
  padding: 1.5rem 1.25rem 2rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  overflow-y: auto;
  z-index: 90;
}
.mobile-nav-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav-panel ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-panel a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  border-bottom: 1px solid var(--cream-300);
}
.mobile-nav-panel .cta-row { margin-top: 1.75rem; flex-direction: column; }

@media (min-width: 900px) {
  .mobile-nav-panel { display: none; }
}

/* =========================================================================
   Hero — a single centered "poster" composition, matching the Ranch Watch
   mailout layout: logo, headline, tan subhead, short body line, a row of
   short highlights, CTAs, tagline.
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-950);
  color: var(--cream-100);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/hero-bluebonnets-fence.jpg") center 40% / cover no-repeat;
  background-color: var(--forest-950);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* A vertical scrim to darken top-to-bottom, plus a radial vignette
     centered on the text column — needed because the photo itself is
     bright and busy (bluebonnets, wire fence) and white text was getting
     lost in it edge-to-edge with a flat gradient alone. */
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(10, 15, 9, 0.62) 0%, rgba(10, 15, 9, 0.28) 60%, rgba(10, 15, 9, 0) 100%),
    linear-gradient(180deg, rgba(10, 15, 9, 0.58) 0%, rgba(10, 15, 9, 0.5) 35%, rgba(10, 15, 9, 0.72) 70%, rgba(10, 15, 9, 0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 10vw, 6.5rem) clamp(3.5rem, 8vw, 5.5rem);
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: clamp(11rem, 24vw, 15.5rem);
  height: auto;
  margin-bottom: 1.75rem;
  /* The logo's own ink (forest green + tan) reads fine on cream, but
     disappears into a dark photo — so on the hero it's flattened to a
     solid white mark instead, plus a shadow so it still pops against
     lighter patches of the photo. */
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}
.hero h1 { color: var(--cream-000); }
.headline-swash {
  width: clamp(9rem, 18vw, 12rem);
  height: 16px;
  color: var(--tan-500);
  margin-top: 0.5rem;
}
.hero-subhead {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--tan-300);
  max-width: 32rem;
  margin-top: 1.25rem;
}
.hero .lede { color: var(--cream-200); margin-top: 1rem; margin-inline: auto; }

.highlight-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 0.5rem;
  margin: 2.25rem auto 0;
  max-width: 26rem;
  width: 100%;
}
@media (min-width: 560px) {
  .highlight-row { grid-template-columns: repeat(4, 1fr); max-width: 40rem; gap: 0; }
  .highlight:not(:first-child) { border-left: 1px solid rgba(251, 248, 241, 0.22); }
}
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 0.75rem;
  text-align: center;
}
.highlight-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--tan-700);
  color: var(--cream-000);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.highlight-icon svg { width: 1.55rem; height: 1.55rem; }
.highlight-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cream-100);
}

.hero .cta-row { justify-content: center; margin-top: 2.5rem; }
.hero .tagline-divider { color: var(--cream-200); }

/* =========================================================================
   Free checklist lead magnet
   ========================================================================= */
.checklist-section {
  background: var(--cream-200);
}
.checklist-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
}
@media (min-width: 900px) {
  .checklist-panel { grid-template-columns: 1.05fr 0.95fr; }
}

.checklist-copy {
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--forest-900);
  color: var(--cream-100);
}
.checklist-copy h2 { color: var(--cream-000); }
.checklist-copy .lede { color: var(--cream-200); margin-top: 0.85rem; }
.checklist-includes {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.6rem;
}
.checklist-includes li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--cream-200);
  font-size: 0.95rem;
}
.checklist-includes svg { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; color: var(--tan-300); flex: none; }

.checklist-form-wrap {
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-field {
  margin-bottom: 1rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-700);
}
.form-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cream-300);
  background: var(--cream-000);
  font-size: 1rem;
  min-height: 3rem;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.form-field input:focus {
  border-color: var(--tan-600);
  box-shadow: 0 0 0 4px rgba(160, 110, 60, 0.15);
}

.form-status {
  min-height: 1.4rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.form-status[data-tone="error"] { color: #a53d3d; }
.form-status[data-tone="pending"] { color: var(--stone-500); }

.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--stone-500);
}

.btn.is-loading { opacity: 0.75; pointer-events: none; }

/* Reused on thank-you.html as the confirmation badge above the heading. */
.icon-check {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--forest-900);
  color: var(--cream-000);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.icon-check svg { width: 1.6rem; height: 1.6rem; }

/* =========================================================================
   About founders
   ========================================================================= */
.about-section { background: var(--cream-100); }
.about-intro { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.founders-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
}

.founder-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--tan-600);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.founder-photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: var(--cream-200);
  color: var(--stone-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  border: 2px solid var(--cream-300);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo svg { width: 2.1rem; height: 2.1rem; }
.founder-name { margin-bottom: 0.35rem; }
.founder-bio { color: var(--ink-700); font-size: 0.97rem; }

/* =========================================================================
   Final CTA
   ========================================================================= */
.final-cta {
  position: relative;
  background: url("../assets/driveway-fence.jpg") center 62% / cover no-repeat;
  color: var(--cream-000);
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 12, 0.72) 0%, rgba(14, 20, 12, 0.6) 50%, rgba(14, 20, 12, 0.8) 100%);
}
.final-cta .container { position: relative; }
.final-cta h2 { color: var(--cream-000); }
.final-cta .tagline-divider { color: var(--tan-300); margin-top: 1.5rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--forest-950);
  color: var(--cream-200);
  padding-block: 3.5rem 2rem;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(251, 248, 241, 0.14);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand .logo-lockup { margin-bottom: 0.85rem; }
.footer-brand p { color: var(--cream-300); max-width: 26rem; font-size: 0.95rem; }

.footer-heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan-300);
  margin-bottom: 0.9rem;
}
.footer-list { display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-list a:hover { color: var(--cream-000); }

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--stone-300);
}
.footer-bottom a:hover { color: var(--cream-000); }
.footer-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--stone-300);
  max-width: 60rem;
}

/* =========================================================================
   Mobile sticky CTA bar
   ========================================================================= */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(34, 51, 37, 0.12);
  box-shadow: 0 -10px 25px -15px rgba(28, 24, 16, 0.35);
}
.mobile-cta-bar .btn { min-height: 3rem; padding: 0.8rem 1rem; font-size: 0.92rem; }
@media (min-width: 900px) {
  .mobile-cta-bar { display: none; }
}
body { padding-bottom: 4.6rem; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

/* =========================================================================
   Reveal animation
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Utilities
   ========================================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
