/* Southern Oak Equestrian Center — main stylesheet
   Palette from the facility photos: barn red, pasture green, show navy,
   fence white, arena sand (see notes). */

:root {
  /* REPLACEABLE IMAGES */
  /* (none: every picture is an <img src="assets/..."> so it can be swapped in the HTML) */

  --red: #8E2B26;
  --red-dark: #6E1F1B;
  --red-tint: #F6E9E6;
  --green: #4F6B3A;
  --green-dark: #3B5229;
  --green-tint: #EBF0E4;
  --navy: #1F2A44;
  --navy-soft: #3A4560;
  --fence: #F7F5EF;
  --sand: #D9C6A5;
  --sand-tint: #F1E9DA;
  --white: #FFFFFF;
  --line: #E2DCCD;

  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);

  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius: 6px;
  --wrap: 72rem;
}

@font-face {
  font-family: "Bitter";
  src: url("assets/fonts/bitter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("assets/fonts/bitter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-m); }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.cta-band :focus-visible, .site-footer :focus-visible, .banner :focus-visible { outline-color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Buttons (one CTA vocabulary: "Plan a visit" + "Call") ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid var(--red); background: var(--red); color: #fff;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--red); border-color: #fff; }
.btn--light:hover { background: var(--fence); border-color: var(--fence); color: var(--red-dark); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Announcement bar ---------- */
.banner { background: var(--navy); color: #fff; font-size: var(--step--1); text-align: center; }
.banner .wrap { padding-block: 0.5rem; }
.banner p { margin: 0; }
.banner a { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(31,42,68,0.03);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); padding-block: 0.5rem; }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--red); letter-spacing: 0.01em; }
.brand-sub { font-family: var(--font-head); font-weight: 500; font-size: 0.86rem; color: var(--navy); letter-spacing: 0.04em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.25rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.7rem; border-radius: var(--radius);
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.site-nav a:hover { background: var(--fence); color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }

.header-call { display: none; }
.nav-toggle { display: none; }
.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.call-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  background: var(--red); color: #fff;
}
.call-icon svg { width: 1.25rem; height: 1.25rem; }
.call-icon:hover { background: var(--red-dark); color: #fff; }

/* Without JS the nav simply wraps below the brand on phones. */
.site-nav { width: 100%; padding-bottom: 0.5rem; }

.js .nav-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0 0.85rem; border-radius: var(--radius);
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
  font: 600 0.95rem var(--font-body); cursor: pointer;
}
.js .nav-toggle:hover { background: var(--fence); }
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav.is-open ul { flex-direction: column; padding-block: 0.25rem 0.75rem; }
.js .site-nav.is-open a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.js .site-nav.is-open a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 0.9rem; }

@media (min-width: 64em) {
  .site-header .wrap { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: block; width: auto; padding: 0; }
  .js .nav-toggle, .call-icon { display: none; }
  .header-call { display: inline-flex; min-height: 2.75rem; padding: 0.5rem 1rem; }
  .header-tools { order: 3; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-xl); }
.section--fence { background: var(--fence); }
.section--sand { background: var(--sand-tint); }
.section--green { background: var(--green-dark); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green a:not(.btn) { color: #fff; }
.section-head { max-width: 44rem; margin-bottom: var(--space-l); }
.section-head p { font-size: var(--step-1); color: var(--navy-soft); }
.lead { font-size: var(--step-1); color: var(--navy-soft); max-width: 40rem; }
.prose { max-width: 42rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 var(--space-m); }
.prose li { margin-bottom: 0.35rem; }

/* White board fence: two thin rails, the site's one recurring motif */
.rails { border: 0; height: 9px; margin: 0; border-top: 2px solid var(--sand); border-bottom: 2px solid var(--sand); background: transparent; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--space-xl); background: var(--white); }
.hero-grid { display: grid; gap: var(--space-l); align-items: center; }
.hero h1 { margin-bottom: var(--space-m); }
.hero .lead { margin-bottom: var(--space-l); }
.badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem;
  margin: 0 0 var(--space-m); padding: 0.4rem 0.85rem;
  background: var(--green-tint); color: var(--green-dark);
  border-radius: 999px; font-weight: 600; font-size: 0.95rem;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero-facts { list-style: none; padding: 0; margin: var(--space-l) 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.97rem; color: var(--navy-soft); }
.hero-facts li { display: flex; align-items: center; gap: 0.45rem; }
.hero-facts svg { width: 1.1rem; height: 1.1rem; color: var(--green); flex: none; }

.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); }
.photo figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--navy-soft); }
.photo--framed img { box-shadow: 0 18px 40px -22px rgba(31,42,68,0.45); }
.photo--small { max-width: 28rem; }

@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); }
}

/* ---------- Family / anniversary ---------- */
.split { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .split--wide-left { grid-template-columns: 1.3fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.3fr; }
  .split--top { align-items: start; }
}
.anniversary {
  display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; align-items: center;
  padding: var(--space-l); background: #fff; border-radius: var(--radius);
  border-top: 5px solid var(--red);
  box-shadow: 0 12px 32px -24px rgba(31,42,68,0.5);
}
.anniversary .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: 0.9; color: var(--red); grid-row: span 2; }
.anniversary .label { font-family: var(--font-head); font-weight: 700; font-size: var(--step-2); line-height: 1.2; }
.anniversary .sub { color: var(--navy-soft); }
.family-names { list-style: none; padding: 0; margin: var(--space-m) 0 var(--space-l); display: grid; gap: 0.6rem; }
.family-names li { padding-left: 1rem; border-left: 3px solid var(--green); }
.family-names strong { font-family: var(--font-head); font-size: 1.1rem; }

/* ---------- Offer blocks ---------- */
.offers { display: grid; gap: var(--space-l); }
.offer { display: grid; grid-template-rows: auto 1fr; gap: var(--space-m); background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.offer img { width: 100%; aspect-ratio: 437 / 327; object-fit: cover; }
.offer img.pos-left { object-position: left center; }
.offer-body { padding: 0 var(--space-l) var(--space-l); display: flex; flex-direction: column; gap: 0.5rem; }
.offer-body p { color: var(--navy-soft); }
.offer-link { font-weight: 700; text-decoration: none; margin-top: auto; }
.offer-link:hover { text-decoration: underline; }
@media (min-width: 48em) { .offers { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Showing ---------- */
.showing-photos { display: grid; gap: var(--space-m); grid-template-columns: 1.3333fr 0.75fr; align-items: start; }
.showing-photos > div { grid-column: 1 / -1; }
.photo--436 { max-width: 437px; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-m); display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green) url("assets/icon-check.svg") center / 0.8rem no-repeat;
}
.ticks--cols { gap: 0.6rem 2rem; }
@media (min-width: 48em) { .ticks--cols { grid-template-columns: 1fr 1fr; } }

.items { display: grid; gap: var(--space-m); }
@media (min-width: 48em) { .items--2 { grid-template-columns: 1fr 1fr; } .items--3 { grid-template-columns: repeat(3, 1fr); } }
.item { padding: var(--space-l); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); }
.item h3 { margin-bottom: 0.4rem; }
.item p { color: var(--navy-soft); margin: 0; }

.people { display: grid; gap: var(--space-m); }
@media (min-width: 48em) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { padding: var(--space-l); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--green); }
.person h3 { margin-bottom: 0.25rem; }
.person p { color: var(--navy-soft); margin: 0; }

blockquote.owner {
  margin: 0; padding: var(--space-l); background: #fff; border-radius: var(--radius);
  border-left: 5px solid var(--red); font-family: var(--font-head); font-weight: 500;
  font-size: var(--step-1); line-height: 1.5; color: var(--navy);
}
blockquote.owner footer { margin-top: var(--space-m); font-family: var(--font-body); font-size: var(--step--1); color: var(--navy-soft); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); background: var(--fence); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: var(--space-l); }
.page-head-grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 56em) { .page-head-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-l); }
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { color: #fff; opacity: 0.95; margin: 0; font-size: var(--step-1); }
.cta-band .btn--ghost { color: #fff; border-color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-xl) var(--space-l); }
@media (min-width: 56em) { .contact-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.card-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-l); }
.details { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-m); }
.details li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; }
.details svg { width: 1.3rem; height: 1.3rem; color: var(--red); margin-top: 0.2rem; }
.details strong { display: block; font-family: var(--font-head); }
.hours { width: 100%; border-collapse: collapse; margin-top: 0.25rem; }
.hours td { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.hours td + td { text-align: right; }

form .field { display: grid; gap: 0.35rem; margin-bottom: var(--space-m); }
form label { font-weight: 600; }
form input, form select, form textarea {
  width: 100%; font: inherit; color: var(--navy);
  padding: 0.75rem 0.85rem; border: 1.5px solid #B9B09C; border-radius: var(--radius); background: #fff;
}
form textarea { min-height: 9rem; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field-row { display: grid; gap: 0 var(--space-m); }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--navy-soft); }
.form-status { margin-top: var(--space-m); padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status.ok { background: var(--green-tint); color: var(--green-dark); }
.form-status.err { background: var(--red-tint); color: var(--red-dark); }
.cf-turnstile { margin-bottom: var(--space-m); min-height: 65px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #E6E8EE; padding-block: var(--space-xl) var(--space-l); font-size: 0.97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; gap: var(--space-l); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-brand .brand { color: #fff; padding: 0 0 0.75rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--sand); }
.footer-mark { display: inline-block; margin-top: 0.5rem; padding: 0.3rem 0.75rem; border: 1px solid rgba(217,198,165,0.6); border-radius: 999px; color: var(--sand); font-size: 0.92rem; }
.fine { margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: #B9BFCC; display: grid; gap: 0.3rem; }
.fine p { margin: 0; }
.fine a { color: #D5D9E2; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: var(--space-xl); }
.notfound .actions { justify-content: center; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: var(--space-l); }

/* ---------- Phone hero: photo, promise and action in the first screen ---------- */
@media (max-width: 55.99em) {
  .hero { padding-top: 1.25rem; }
  .hero-grid { gap: 1.25rem; }
  .hero-grid .photo { order: -1; }
  .hero-text { display: flex; flex-direction: column; }
  .hero-text .badge { align-self: flex-start; font-size: 0.85rem; margin-bottom: 0.75rem; }
  .hero-text h1 { margin-bottom: 1rem; }
  .hero-text .actions { order: 3; margin-bottom: 1.25rem; }
  .hero-text .lead { order: 4; margin-bottom: 0; }
  .hero-text .hero-facts { order: 5; margin-top: 1.25rem; }
  .banner { font-size: 0.8rem; }
}
@media (max-width: 25.99em) { .hide-s { display: none; } }
