/* ==========================================================================
   Ravenworth Cattle — Site Theme
   Built on Bootstrap 5. All custom styling lives here.
   ========================================================================== */

:root {
  /* --------------------------------------------------------------------
     SURFACES — ONE ramp, shared by every page.
       surface-1   page background, and light text on the dark bands
       surface-2   cards, sitting on either ground
       surface-3   the alternate band ground
     -------------------------------------------------------------------- */
  --rw-surface-1: #f7f1e3;
  --rw-surface-2: #ece1c9;
  --rw-surface-3: #d8c7a6;
  /* Channels for surface-1, so translucent text on the dark bands is always
     the same colour: rgba(var(--rw-cream-rgb), .7) */
  --rw-cream-rgb: 247, 241, 227;
  /* Channels for the near-black, for the hero / lightbox overlays */
  --rw-brown-900-rgb: 23, 17, 13;

  /* Light text — and light button fills — on the dark bands. The same value as
     surface-1, but named separately so "ink" and "surface" read differently. */
  --rw-cream:        var(--rw-surface-1);

  /* Dark bands — header, footer, hero, CTA strips */
  --rw-brown-900:    #17110d;
  --rw-brown-800:    #1e1710;
  --rw-brown-700:    #2b211a;
  --rw-brown-600:    #4a4038;   /* body copy */
  --rw-brown-500:    #6d635a;   /* muted copy */
  --rw-brown-400:    #8e8377;   /* faintest copy */
  --rw-heading:      #5c3a26;

  /* Accents */
  --rw-rust:         #b8541f;   /* links, eyebrows, rules, icons */
  --rw-rust-dark:    #96420f;
  --rw-copper:       #8b4a2b;   /* copper button fill + focus rings */
  --rw-copper-dark:  #74401f;
  --rw-copper-rgb:   139, 74, 43;
  --rw-amber:        #c9822f;
  /* The "Why Ravenworth?" icons are a DEEPER orange than --rw-amber in the
     reference — amber reads too yellow there. Measured ink in Home page.png:
     why-band icons peak at rgb(197,100,34) (hue 25°) where the icon-strip icons
     peak at rgb(210,128,51) (hue 29°, i.e. --rw-amber). Keep them separate. */
  --rw-orange:       #c86921;
  --rw-orange-rgb:   200, 105, 33;
  /* The rule across the top of the home page's shortcut strip. The design has
     it at full --rw-orange, which the client found too bright against the
     near-black bar; they then asked for it to read like the footer's rules, so
     it uses the same COPPER family as the footer — .6 here matches
     `.site-foot`'s top rule, and the strip's own tile dividers use the
     footer's .55. Retune these two alphas together, not the hue. */
  --rw-strip-rule:   rgba(var(--rw-copper-rgb), .6);
  --rw-ink:          #3b2a1c;   /* dark button fill (flat fallback) */
  --rw-tan:          #c8b89c;   /* social icons on the dark bands */
  /* The "Connect With Us" Facebook mark. The mockup uses Facebook's dark navy
     here (measured rgb(35,54,78)) — the one cool colour on the site, kept
     because it is a brand mark and so carries its own hue. */
  --rw-facebook:     #23364e;

  /* Button fills — each is a TWO-STOP vertical gradient from a lighter top to
     a darker bottom, as in the reference. Retune the button look here. */
  --rw-btn-grad:             linear-gradient(180deg, #66341a 0%, #2a1408 100%);
  --rw-btn-grad-hover:       linear-gradient(180deg, #4a2512 0%, #17110d 100%);
  /* The dark-ground ("light") button is the same shape of gradient in copper,
     because the brown one would vanish against the dark bands. */
  --rw-btn-grad-light:       linear-gradient(180deg, #9c5530 0%, #74401f 100%);
  --rw-btn-grad-light-hover: linear-gradient(180deg, #8b4a2b 0%, #5e3319 100%);

  /* Lines — dark and warm, so ONE value reads on the light surfaces and on the
     tan band alike. (The old pale #ddd2bd vanished against tan.) */
  --rw-line:         rgba(43, 33, 26, .3);
  --rw-panel-line:   rgba(43, 33, 26, .45);

  /* One gutter value used everywhere on the home-page band: between the cards,
     from the cards to the screen edge, above the top row, and around the
     "Connect With Us" card. Keeps the whole rhythm consistent. */
  --rw-gap:          8px;

  /* Type families. The mockups set ALL reading text — headings included — in
     ONE moderate-contrast serif, and use a condensed sans ONLY for the small
     uppercase UI text (nav, buttons, labels). Retune the whole site here. */
  --rw-font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --rw-font-ui:    'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  /* Hero page titles are a heavy SLAB serif in the reference designs — the text
     serif reads far too light and elegant next to them. */
  --rw-font-display: 'Bitter', 'Source Serif 4', Georgia, serif;
  /* The hero titles are also CONDENSED. Nothing loadable comes within ~35% of
     the reference's width-per-cap-height, so the heading is squeezed
     horizontally instead. ONE number retunes every hero title on the site. */
  --rw-hero-squeeze: .67;
  /* The tagline under a hero title is a copperplate SCRIPT in every reference
     (home, Our Story, Black Angus, Speckle Park), not a serif italic.
     NOTE: script faces differ a lot in cap-height ratio, so swapping the family
     usually needs the tagline font-sizes below retuned too. Measured cap-height
     ratios at 100px: Satisfy 0.74, Great Vibes 0.67, Mr Dafoe 0.62. */
  --rw-font-script: 'Satisfy', 'Source Serif 4', cursive;

  /* Subtle paper grain, generated inline so there is no image file to ship */
  --rw-paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.17'/%3E%3C/svg%3E");

  /* Burnt paper bg effect */
  --rw-paper-bg: url("../images/grunge-paper.jpg");
  --rw-paper-bg-dark: url("../images/grunge-paper-dark.jpg");

  /* Bootstrap overrides */
  --bs-body-bg: var(--rw-surface-1);
  --bs-body-color: var(--rw-brown-600);
  --bs-body-font-family: var(--rw-font-serif);
  --bs-border-color: var(--rw-line);
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-link-color: var(--rw-rust);
  --bs-link-hover-color: var(--rw-rust-dark);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

body {
  font-family: var(--rw-font-serif);
  background-color: var(--rw-surface-1);
  /* background-image: var(--rw-paper-tex); */
  background-image: var(--rw-paper-tex), var(--rw-paper-bg);
background-size: 180px 180px, cover;
background-position: left top, center;
background-repeat: repeat, no-repeat;
  color: var(--rw-brown-600);
  font-size: 1rem;
  /* line-height: 1.7; */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5,
.serif {
  font-family: var(--rw-font-serif);
  color: var(--rw-heading);
  letter-spacing: 0.01em;
}

/* Bootstrap's `g-lg-5` rows use 3rem gutters and a matching negative margin,
   which bleeds 12px past the container's border box. While the container is
   still narrower than its 960px max-width (992–1008px viewport) that pushes the
   row outside the viewport and a 4px horizontal scrollbar appears.
   BOTH elements are needed, and the order is not obvious:
     - `html` must be clipped, because while it is `visible` the BODY's overflow
       propagates to the viewport and gets dropped (clip is not a legal viewport
       value), so clipping body alone does nothing.
     - once html is clipped, body no longer propagates, so body's own clip is
       what actually removes the stray overflow from the viewport's scroll area.
   `clip` rather than `hidden` on both, so neither becomes a scroll container —
   verified that window.scrollX stays 0 and the sticky header still pins. */
html, body { overflow-x: clip; }

/* Section headings in the reference designs are uppercase serif */
h2, .h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
h3, .h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); font-weight: 700; }

/* Copperplate script tagline used under page titles. Scripts are already
   slanted, so `font-style: italic` is deliberately NOT set — it would apply a
   synthetic oblique on top of the script's own slant. */
.tagline {
  font-family: var(--rw-font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--rw-orange);
  line-height: 1.35;
}

/* Small uppercase nav / label text */
.ui,
.navbar-nav .nav-link,
.btn,
.eyebrow,
.event-date,
.card-trait {
  font-family: var(--rw-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.lead-copy { font-size: 1.05rem; color: var(--rw-brown-500); }

.eyebrow {
  /* font-size: 0.78rem; */
  font-size: 1.4rem;
  color: var(--rw-rust);
  display: block;
  margin-bottom: .6rem;
}

/* Thin rule under a section heading — spans the full width of its column,
   exactly as in the reference designs. */
.rule-rust {
  width: 100%;
  height: 1px;
  background: var(--rw-line);
  border: 0;
  opacity: 1;
  margin: 1.1rem 0 1.55rem;
}
.rule-rust.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */

.section    { padding-block: clamp(2rem, 4vw, 3rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3rem); }

/* TWO surface heights, and one rule about them:
     bg-cream-deep = a band (surface-3)
     bg-paper      = a card fill (surface-2)
   Never put bg-paper on a <section> — the band would come out a step light. */
.bg-paper { 
    background-color: var(--rw-surface-2); 
    /* background-image: var(--rw-paper-tex);  */
background-image: var(--rw-paper-tex), var(--rw-paper-bg);
background-size: 180px 180px, cover;
background-position: left top, center;
background-repeat: repeat, no-repeat;
  }
.bg-cream-deep { 
  background-color: var(--rw-surface-1); 
  background-image: var(--rw-paper-tex); 
  
}

/* Dark band — CTA strips and the events strip. Same near-black as the header,
   the footer and the home-page bands, so adjacent darks read as one block. */
.bg-dark-brown,
.events-strip { background-color: var(--rw-brown-900); color: var(--rw-cream); }

/* Headings on every dark band must be light */
.bg-dark-brown h1, .bg-dark-brown h2, .bg-dark-brown h3, .bg-dark-brown h4, .bg-dark-brown h5,
.events-strip h1, .events-strip h2, .events-strip h3, .events-strip h4, .events-strip h5 { color: #fff; }
.text-rust  { color: var(--rw-rust) !important; }
.text-amber { color: var(--rw-amber) !important; }
.text-muted-brown { 
  color: var(--rw-brown-800) !important; 
}

/* Vertical divider used in the "program" two-column block */
.divider-y { border-left: 1px solid var(--rw-line); }
@media (max-width: 767.98px) { .divider-y { border-left: 0; border-top: 1px solid var(--rw-line); padding-top: 2rem; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  border-radius: 0;
  font-size: 0.72rem;
  padding: 0.72rem 1.6rem;
  border-width: 1px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
/* The standard filled button. The reference design fills it with a two-stop
   vertical brown gradient (.btn-dark-brand was already the same button, so the
   two names share one rule — both are in use across the pages). */
.btn-brand,
.btn-dark-brand {
  background-color: var(--rw-ink) !important;   /* flat fallback if gradients fail */
  background-image: var(--rw-btn-grad) !important;
  border-color: var(--rw-ink);
  color: var(--rw-cream);
}
.btn-brand:hover, .btn-brand:focus,
.btn-dark-brand:hover, .btn-dark-brand:focus {
  background-color: var(--rw-brown-900) !important;
  background-image: var(--rw-btn-grad-hover) !important;
  border-color: var(--rw-brown-900);
  color: #fff;
}
/* The filled button for the DARK grounds — heroes and CTA strips. Same shading,
   copper stops: the brown gradient would vanish against them. */
.btn-light-brand {
  background-color: var(--rw-copper);
  background-image: var(--rw-btn-grad-light);
  border-color: var(--rw-copper);
  color: var(--rw-cream);
}
.btn-light-brand:hover, .btn-light-brand:focus {
  background-color: var(--rw-copper-dark);
  background-image: var(--rw-btn-grad-light-hover);
  border-color: var(--rw-copper-dark);
  color: #fff;
}
.btn-outline-brand {
  background-color: transparent;
  border-color: var(--rw-copper);
  color: var(--rw-copper);
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
  background-color: var(--rw-copper);
  border-color: var(--rw-copper);
  color: var(--rw-cream);
}
.btn-outline-light-brand {
  background-color: transparent;
  border-color: rgba(var(--rw-cream-rgb), .55);
  color: var(--rw-cream);
}
.btn-outline-light-brand:hover {
  background-color: var(--rw-cream);
  border-color: var(--rw-cream);
  color: var(--rw-brown-900);
}

/* --------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------
   Every text input on the site sits on a light surface, so one rule covers
   them all — the contact form and the home-page mailing list included.
   -------------------------------------------------------------------------- */

.form-control {
  background-color: var(--rw-surface-1);
  border: 1px solid var(--rw-line);
  border-radius: 0;
  padding: .78rem 1rem;
  font-size: .94rem;
  color: var(--rw-brown-600);
}
.form-control::placeholder { color: var(--rw-brown-400); }
.form-control:focus {
  background-color: var(--rw-surface-1);
  border-color: var(--rw-copper);
  color: var(--rw-brown-600);
  box-shadow: 0 0 0 3px rgba(var(--rw-copper-rgb), .12);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head { position: sticky; top: 0; z-index: 1030; }

/* The nav bar fades to transparent along its bottom edge, so it melts into the
   hero photo underneath — as in the reference designs. */
.site-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 58px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(var(--rw-brown-900-rgb), .80) 0%,
    rgba(var(--rw-brown-900-rgb), .46) 38%,
    rgba(var(--rw-brown-900-rgb), .16) 70%,
    rgba(var(--rw-brown-900-rgb), 0) 100%);
}

/* --- Header: one bar, logo left, menu right, socials far right --------------
   Dark is the default (matches the reference designs). -------------------- */

.rw-header-dark {
  background-color: var(--rw-brown-900);
}
.rw-header-light {
  background-color: var(--rw-surface-2);
  border-bottom: 1px solid var(--rw-brown-700);
}

.rw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .5rem;
}

.rw-header .brand-logo { height: 62px; width: auto; display: block; }
@media (max-width: 1199.98px) { .rw-header .brand-logo { height: 56px; } }
@media (max-width: 991.98px)  { .rw-header .brand-logo { height: 50px; } }
@media (max-width: 575.98px)  { .rw-header .brand-logo { height: 42px; } }

.rw-nav-wrap { align-items: center; }

.rw-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
/* Ten menu items (the homepage design) still fit on one line at 1200px with
   this spacing. */
.rw-nav .nav-link {
  display: block;
  white-space: nowrap;
  color: var(--rw-brown-700);
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
  font-size: .71rem;
  padding: .6rem .52rem;
  position: relative;
  transition: color .18s ease;
}
.rw-nav .nav-link:hover,
.rw-nav .nav-link:focus,
.rw-nav .nav-link.active { color: var(--rw-rust); }

.rw-social { display: flex; align-items: center; gap: .3rem; margin-left: .9rem; }
.rw-social a {
  color: var(--rw-brown-600);
  font-size: 1rem;
  line-height: 1;
  padding: .4rem;
  text-decoration: none;
  transition: color .18s ease;
}
.rw-social a:hover { color: var(--rw-rust); }

/* When the menu is switched off in js/data.js (`headerNav: false`) the social
   icons are the only thing on the right of the bar, so they get a little more
   room and a slightly larger glyph. */
.rw-social-bar { margin-left: auto; gap: .5rem; }
.rw-social-bar a { font-size: 1.2rem; padding: .5rem; }

/* Mobile menu button */
.rw-toggle {
  background: transparent;
  border: 1px solid var(--rw-line);
  color: var(--rw-brown-700);
  font-size: 1.4rem;
  line-height: 1;
  padding: .3rem .6rem;
}
.rw-toggle:hover { border-color: var(--rw-brown-600); color: var(--rw-rust); }

/* Mobile drop-down menu */
.rw-nav-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rw-line);
}
.rw-nav-mobile .nav-link {
  display: block;
  padding: .78rem .2rem;
  color: var(--rw-brown-700);
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: .78rem;
  border-bottom: 1px solid var(--rw-line);
}
.rw-nav-mobile .nav-link.active { color: var(--rw-rust); }
.rw-social-mobile { padding: .95rem .2rem 1.15rem; gap: .9rem; }

/* --- Dark header colourway ------------------------------------------------ */

.rw-header-dark .rw-nav .nav-link { color: var(--rw-cream); }
.rw-header-dark .rw-nav .nav-link:hover,
.rw-header-dark .rw-nav .nav-link:focus,
.rw-header-dark .rw-nav .nav-link.active { color: var(--rw-rust); }

.rw-header-dark .rw-social a { color: var(--rw-tan); }
.rw-header-dark .rw-social a:hover { color: var(--rw-cream); }

.rw-header-dark .rw-toggle {
  border-color: rgba(var(--rw-cream-rgb), .3);
  color: var(--rw-cream);
}
.rw-header-dark .rw-toggle:hover { border-color: var(--rw-rust); color: var(--rw-rust); }

.rw-header-dark .rw-nav-mobile { border-top-color: rgba(var(--rw-cream-rgb), .18); }
.rw-header-dark .rw-nav-mobile .nav-link {
  color: var(--rw-cream);
  border-bottom-color: rgba(var(--rw-cream-rgb), .14);
}
.rw-header-dark .rw-nav-mobile .nav-link.active { color: var(--rw-rust); }

/* --- Shared social link (the footer overrides it further down) ------------- */

.social-link { color: var(--rw-brown-700); text-decoration: none; transition: color .18s ease; }
.social-link:hover { color: var(--rw-rust); }
.connect-icon-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--rw-facebook);
  text-decoration: none;
  transition: color .18s ease;
}
.connect-icon-link .bi { font-size: 1.2rem; line-height: 1; }
.connect-icon-link:hover { color: var(--rw-rust); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(320px, 34vw, 500px);
  background-color: var(--rw-brown-900);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--rw-brown-900-rgb), .72) 0%,
    rgba(var(--rw-brown-900-rgb), .42) 45%,
    rgba(var(--rw-brown-900-rgb), .78) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 {
  /* Heavy slab display face, and warm cream ink — the reference measures
     rgb(232,227,215) on the letter cores, i.e. --rw-cream, not pure white. */
  font-family: var(--rw-font-display);
  color: var(--rw-cream);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  letter-spacing: .04em;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

/* --- The condensed hero title ---------------------------------------------
   One spec for the photo heroes that are meant to match the home page: the
   home hero itself, Our Story's split hero, and the Black Angus, Speckle Park,
   Show Ring and Frozen Genetics heroes (they carry `.hero-display`).
   CONDENSED: the reference face measures ~4.5 wide-per-cap-height where every
   slab we can actually load is 6.2 or wider (Kreon 6.22, Enriqueta 6.34,
   Bitter 6.43, Zilla Slab 6.93), so the heading is squeezed horizontally.
   Retune --rw-hero-squeeze in one place.
   breeding-philosophy.html deliberately does NOT carry `.hero-display` — it has
   no reference design, so it keeps the un-condensed slab from the rule above. */
.hero-display h1,
.hero-home h1,
.hero-story h1 {
  font-family: var(--rw-font-display);
  font-size: clamp(2.3rem, 6.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: .04em;
  transform: scaleX(var(--rw-hero-squeeze));
  transform-origin: left center;
}
/* A centred hero has to scale from its own middle, or the squeeze drags the
   title left of centre. */
.hero-display.text-center h1,
.hero-home.text-center h1 { transform-origin: center center; }

.hero .tagline {
  font-size: clamp(1.4rem, 3.3vw, 2.45rem);
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero-sub {
  color: rgba(255,255,255,.88);
  max-width: 44rem;
  margin-inline: auto;
}

/* Placeholder text block used where a hero photo is still pending */
.hero.hero-blank {
  background-image: linear-gradient(135deg,
    var(--rw-ink) 0%, var(--rw-brown-900) 55%, var(--rw-brown-700) 100%);
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.cow-name {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--rw-heading);
  font-size: .95rem;
  margin: 1rem 0 .3rem;
}
a .cow-name { color: var(--rw-heading); }
a:hover .cow-name { color: var(--rw-rust); }
.card-trait {
  font-size: .68rem;
  color: var(--rw-rust);
  letter-spacing: .1em;
  margin-bottom: .95rem;
}

/* Icon list (Why Ravenworth / traits) — thin rust circles like the designs */.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; gap: 1.15rem; align-items: center; padding: .78rem 0; }
.icon-list .icon-circle {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border: 1px solid var(--rw-rust);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--rw-rust);
  font-size: 1.2rem;
}
.icon-list .label {
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--rw-brown-600);
}

/* --------------------------------------------------------------------------
   Mailing list — the email / printed-copy choice (home page only)
   -------------------------------------------------------------------------- */

.mailing-choice {
  display: flex;
  justify-content: flex-start;
  gap: .4rem 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.mailing-choice .form-check { margin: 0; }
.mailing-choice .form-check-label {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: var(--rw-brown-700);
  cursor: pointer;
}
.mailing-choice .form-check-input { border-radius: 0; margin-top: .3em; }
.mailing-choice .form-check-input:checked {
  background-color: var(--rw-copper);
  border-color: var(--rw-copper);
}

/* --------------------------------------------------------------------------
   Events strip (upcoming events)
   -------------------------------------------------------------------------- */

.events-strip h2 { color: var(--rw-rust); }
.event-row {
  display: grid;
  grid-template-columns: 175px 1fr auto;
  gap: .5rem 1.25rem;
  align-items: baseline;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(var(--rw-cream-rgb), .12);
}
.event-row:last-child { border-bottom: 0; }
.event-date {
  color: var(--rw-rust);
  font-size: .82rem;
}
.event-name { color: var(--rw-cream); letter-spacing: .05em; font-weight: 500; }
.event-loc { color: var(--rw-rust); font-size: .85rem; text-align: right; }
@media (max-width: 767.98px) {
  .event-row { grid-template-columns: 1fr; gap: .15rem; }
  .event-loc { text-align: left; }
}

/* --------------------------------------------------------------------------
   Cow record / EPD tables
   -------------------------------------------------------------------------- */

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--rw-line);
  font-size: .92rem;
}
.spec-table th {
  text-align: left;
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  color: var(--rw-brown-500);
  font-weight: 600;
  width: 45%;
}
.spec-table td { color: var(--rw-brown-800); font-weight: 500; }
.epd-table { width: 100%; border-collapse: collapse; text-align: center; }
.epd-table th, .epd-table td { border: 1px solid var(--rw-line); padding: .55rem .4rem; font-size: .85rem; }
.epd-table thead th {
  background: var(--rw-brown-700); color: var(--rw-cream);
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 600;
}
.epd-table tbody th {
  background: var(--rw-surface-3); text-align: left; padding-left: .75rem;
  font-family: 'Barlow Semi Condensed', sans-serif; text-transform: uppercase;
  letter-spacing: .08em; font-size: .72rem; color: var(--rw-brown-600);
}
.epd-note { font-size: .78rem; color: var(--rw-brown-400); }

/* Breadcrumb trail on the animal record page */
.rw-breadcrumb a {
  color: var(--rw-brown-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.rw-breadcrumb a:hover { color: var(--rw-rust); border-bottom-color: var(--rw-rust); }
.rw-breadcrumb .ui { letter-spacing: .1em; font-size: .72rem; }

/* --------------------------------------------------------------------------
   Galleries
   -------------------------------------------------------------------------- */

.gallery-grid { display: grid; gap: 1rem; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767.98px) { .gallery-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .gallery-grid.cols-2, .gallery-grid.cols-3 { grid-template-columns: 1fr; } }

.gallery-grid a { display: block; position: relative; overflow: hidden; background: var(--rw-surface-3); }
.gallery-grid a img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .45s ease, opacity .3s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   Footer — three columns with thin dividers, rust column headings
   -------------------------------------------------------------------------- */

/* Footer — rebuilt from images/reference pics/Home page.png.
   Four columns (logo / contact / quick links / statement) split by two copper
   rules, over a herd photo that fades in from the right, with a full-bleed
   bottom bar. The two horizontal rules run edge to edge, so they sit on the
   full-width wrapper rather than inside the .container. */
.site-foot {
  background-color: var(--rw-brown-900);
  color: rgba(var(--rw-cream-rgb), .8);
  border-top: 2px solid rgba(var(--rw-copper-rgb), .6);
}

/* Photo layer. The reference shows a sunset herd shot across the right third,
   fading into the dark on the left. Drop images/footer-heritage.jpg in and it
   appears on its own; until then the warm radial underneath keeps the right
   side from reading as dead flat black. */
.foot-main {
  background-image:
    linear-gradient(90deg,
      rgba(var(--rw-brown-900-rgb), 1) 0%,
      rgba(var(--rw-brown-900-rgb), 1) 36%,
      rgba(var(--rw-brown-900-rgb), .84) 52%,
      rgba(var(--rw-brown-900-rgb), .5) 72%,
      rgba(var(--rw-brown-900-rgb), .34) 100%),
    radial-gradient(120% 150% at 88% 4%,
      rgba(var(--rw-orange-rgb), .3) 0%, rgba(var(--rw-orange-rgb), 0) 62%),
    url("../images/footer-heritage.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, right bottom;
  background-repeat: no-repeat;
  padding: 1.4rem 0 1.15rem;
}

/* Column widths taken from the reference. The two rules fall to the LEFT of
   the Quick Links and statement columns, so the logo and the contact block
   share one open block — there is no rule between them. Measured off the
   mockup (container content 12..1308): the rules sit at x 476.5 and 793.5, so
   the four columns run 176 / 288.5 / 317 / 514.5 == 1 : 1.64 : 1.80 : 2.92. */
.foot-grid {
  display: grid;
  grid-template-columns: .78fr 1.28fr 1.4fr 2.28fr;
  align-items: start;
}
.foot-grid > .foot-col-links,
.foot-grid > .foot-col-cta {
  border-left: 1px solid rgba(var(--rw-copper-rgb), .55);
  padding-left: 2rem;
}
.foot-grid > .foot-col { padding-right: 1.25rem; }

/* The wordmark is width:100%, so it fills its column and would sit hard
   against the contact block. The gap has to come from PADDING on the wrapper:
   a margin on the img would simply overflow the column and change nothing,
   because width:100% is resolved against the wrapper's content box. */
.foot-brand { padding-right: 1rem; }
.foot-brand .brand-logo { display: block; width: 100%; max-width: 178px; height: auto; }

/* Column headings: serif, uppercase, letterspaced, in the deeper orange the
   reference uses (measured rgb(206,105,25) == --rw-orange, NOT --rw-rust). */
.site-foot h4 {
  color: var(--rw-orange);
  font-family: var(--rw-font-serif);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .9rem;
}

.foot-line { font-size: .95rem; line-height: 1.5; margin-bottom: .3rem; }
.foot-line-gap { margin-top: .85rem; }

.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--rw-orange); }

/* The reference pairs a solid tan Facebook disc with an orange outline
   Instagram mark — they are deliberately two different colours. */
.foot-social { display: flex; gap: 1.25rem; margin-top: 1.1rem; }
.site-foot .social-link { font-size: 1.35rem; line-height: 1; }
.site-foot .social-link:first-child { color: var(--rw-tan); }
.site-foot .social-link:last-child { color: var(--rw-orange); }
.site-foot .social-link:hover { color: var(--rw-cream); }

.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.foot-links li { margin-bottom: .4rem; font-size: .95rem; line-height: 1.45; break-inside: avoid; }

/* The shared creed band, used on breeding-philosophy.html as a standalone CTA.
   That page has no mockup, so this base rule keeps its condensed-sans look.
   The footer overrides it below — do not delete this one. */
.foot-statement {
  font-family: var(--rw-font-ui);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rw-cream);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 700;
}
/* Footer version: the reference sets it in the text serif, uppercase and much
   lighter, spanning two lines. Scoped to .site-foot so the creed band above is
   left alone. */
.site-foot .foot-statement {
  font-family: var(--rw-font-serif);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rw-cream);
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: .55rem;
}
.foot-sub {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(var(--rw-cream-rgb), .62);
  margin: 0;
  max-width: 21ch;
}

.foot-bottom {
  background-color: var(--rw-brown-900);
  border-top: 1px solid rgba(var(--rw-copper-rgb), .45);
  padding: 1.15rem 0;
  font-size: .85rem;
  color: rgba(var(--rw-cream-rgb), .45);
}
.foot-bottom .foot-credit a { color: var(--rw-orange); }
.foot-bottom .foot-credit a:hover { color: var(--rw-cream); text-decoration: underline; }

@media (max-width: 991.98px) {
  .foot-grid { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .foot-grid > .foot-col-links,
  .foot-grid > .foot-col-cta { border-left: 0; padding-left: 0; }
  .foot-grid > .foot-col { padding-right: 0; }
  .foot-sub { max-width: none; }
}
@media (max-width: 575.98px) { .foot-links { columns: 1; } }

/* --------------------------------------------------------------------------
   PhotoSwipe skin overrides
   -------------------------------------------------------------------------- */

.pswp { --pswp-bg: rgba(var(--rw-brown-900-rgb), .96); }
.pswp__counter,
.pswp__button { font-family: 'Barlow Semi Condensed', sans-serif; letter-spacing: .1em; }
.pswp__caption__center {
  font-family: var(--rw-font-serif);
  font-size: .9rem;
  text-align: center;
  max-width: 40rem;
  padding: 1rem;
}
.pswp__top-bar { background: linear-gradient(180deg, rgba(0,0,0,.5), transparent); }

/* Cursor affordance on gallery items */
.pswp-cursor { cursor: zoom-in; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .42rem 0;
  font-size: .98rem;
  line-height: 1.5;
}
.contact-list .ic {
  flex: 0 0 auto;
  width: 24px;
  color: var(--rw-rust);
  font-size: 1.05rem;
  line-height: 1.5;
}
.contact-list a { color: var(--rw-brown-700); text-decoration: none; }
.contact-list a:hover { color: var(--rw-rust); text-decoration: underline; }

.contact-social { display: flex; align-items: center; gap: 1.15rem; margin-top: 1.6rem; }
.contact-social .social-link { color: var(--rw-brown-700); font-size: 1.45rem; }
.contact-social .social-link:hover { color: var(--rw-rust); }

.map-band {
  position: relative;
  background: var(--rw-surface-3);
  border-top: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
}
.map-band iframe { display: block; width: 100%; height: clamp(240px, 32vw, 380px); border: 0; filter: sepia(.35) saturate(.85) contrast(1.02); }

/* Photo band with a centred map pin (contact page) */
.contact-photo-band img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
  filter: sepia(.22) saturate(.92) contrast(1.02);
}
.contact-photo-band .photo-pin {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -100%);
  color: var(--rw-rust);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  filter: drop-shadow(0 3px 6px rgba(var(--rw-brown-900-rgb), .45));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Our Story page — split hero, horizontal timeline, photo band, creed band
   -------------------------------------------------------------------------- */

/* Split hero: dark plate with the copy on the left and the photo bleeding in
   from the right, as in the reference design. */
.hero-story {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(320px, 34vw, 460px);
  background-color: var(--rw-brown-900);
  color: var(--rw-cream);
  overflow: hidden;
}
.hero-story-media {
  position: absolute;
  inset: 0 0 0 42%;
  background-color: var(--rw-brown-800);
}
.hero-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  filter: sepia(.1) saturate(1) contrast(1.04);
}
/* The photo melts into the dark plate along its left edge */
.hero-story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--rw-brown-900) 0%,
      rgba(var(--rw-brown-900-rgb), .45) 20%,
      rgba(var(--rw-brown-900-rgb), .24) 48%,
      rgba(var(--rw-brown-900-rgb), .34) 100%);
}
.hero-story-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}
.hero-story-copy { max-width: 33rem; }
.hero-story .eyebrow { color: var(--rw-amber); margin-bottom: .9rem; }
.hero-story h1 {
  /* Same display title as the other heroes — the shared rule in the Hero block
     above supplies the face, the size, the line-height and the squeeze. */
  color: var(--rw-cream);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.hero-story .tagline {
  color: var(--rw-orange);
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 1.1rem;
}
.hero-story-lead {
  color: rgba(var(--rw-cream-rgb), .82);
  font-size: .98rem;
  line-height: 1.65;
  max-width: 28rem;
  margin-bottom: 1.7rem;
}
@media (max-width: 1099.98px) {
  /* Photo becomes a banner above the copy rather than a background behind it */
  .hero-story { display: block; min-height: 0; }
  .hero-story-media {
    position: relative;
    inset: auto;
    height: clamp(210px, 56vw, 320px);
  }
  .hero-story-media img {
    object-position: center bottom;
  }
  .hero-story-media::after {
    background: linear-gradient(180deg,
        rgba(var(--rw-brown-900-rgb), .32) 0%,
        rgba(var(--rw-brown-900-rgb), .10) 50%,
        rgba(var(--rw-brown-900-rgb), .88) 88%,
        var(--rw-brown-900) 100%);
  }
  .hero-story-inner { padding-block: 2.25rem 2.75rem; }
  .hero-story-lead { max-width: none; }
}

/* Horizontal timeline: year above a continuous rail, description below */
.timeline-band {
  background-color: var(--rw-surface-2);
  background-image: var(--rw-paper-tex);
  border-top: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.timeline-h {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-h li {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;   /* keep every rail on the same line when text wraps */
  justify-items: center;
  text-align: center;
  gap: .75rem;
}
.tlh-year {
  font-family: var(--rw-font-serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--rw-rust);
}
/* Full-width cell so the rail joins up with the neighbouring columns */
.tlh-node {
  display: block;
  position: relative;
  width: 100%;
  height: 12px;
}
.tlh-node::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--rw-line);
}
.tlh-node::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  background: var(--rw-surface-3);
  border: 1px solid var(--rw-rust);
  transform: translate(-50%, -50%) rotate(45deg);
}
.tlh-text {
  color: var(--rw-brown-700);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 14rem;
  padding-inline: .75rem;
}
@media (max-width: 767.98px) {
  .timeline-h { grid-template-columns: 1fr; }
  .timeline-h li {
    display: block;
    position: relative;
    justify-items: normal;   /* reset: Chrome also applies this to block children */
    text-align: left;
    padding: 0 0 1.6rem 1.7rem;
  }
  .timeline-h li:last-child { padding-bottom: 0; }
  .timeline-h li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px; top: 1.1rem; bottom: 0;
    width: 1px;
    background: var(--rw-line);
  }
  .tlh-year { display: block; }
  .tlh-node {
    position: absolute;
    left: 0; top: .4rem;
    width: 11px; height: 11px;
    margin: 0;
  }
  .tlh-node::before { display: none; }
  .tlh-node::after { width: 11px; height: 11px; }
  .tlh-text { display: block; max-width: none; padding-inline: 0; margin-top: .25rem; }
}

/* Full-bleed photo band: four sepia frames, edge to edge */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rw-brown-900);
}
.photo-band a { display: block; position: relative; overflow: hidden; }
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 400px);
  object-fit: cover;
  filter: sepia(.4) saturate(.72) contrast(1.04);
  transition: transform .5s ease, filter .45s ease;
}
.photo-band a:hover img,
.photo-band a:focus-visible img {
  transform: scale(1.04);
  filter: sepia(.12) saturate(.95) contrast(1.02);
}
@media (max-width: 767.98px) { .photo-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .photo-band { grid-template-columns: 1fr; } }

/* Creed band: the family motto, closed by the logo */
.creed-band {
  background-color: var(--rw-surface-1);
  /* background-image: var(--rw-paper-tex); */
background-image: var(--rw-paper-tex), var(--rw-paper-bg);
background-size: 180px 180px, cover;
background-position: left top, center;
background-repeat: repeat, no-repeat;
  border-top: 1px solid var(--rw-line);
  padding-block: clamp(1.75rem, 3.4vw, 2.75rem);
}
.creed-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}
.creed-text {
  margin: 0;
  font-family: var(--rw-font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rw-heading);
  font-size: clamp(1rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  text-align: center;
}
.creed-sub {
  margin: .4rem 0 0;
  color: var(--rw-brown-400);
  font-size: .82rem;
  text-align: center;
}
.creed-mark { width: clamp(130px, 15vw, 195px); height: auto; }

/* --------------------------------------------------------------------------
   Home page — shortcut strip, sale band, posts, why band
   -------------------------------------------------------------------------- */

/* --- Hero: copy sits on the left, two calls to action --------------------- */

/* The client asked for a shorter band, so the cap came down from 620px and the
   container's py-5 (3rem) became py-4 (1.5rem) in index.html. The copy block
   itself is ~430px at 1440px, so this leaves a small even margin around it
   instead of the ~145px of dead space the 620px floor produced. */
   
/* .hero-home { min-height: clamp(340px, 32vw, 460px); } */
.hero-home .hero-copy { max-width: 36rem; }
/* The face, the size and the squeeze come from the shared rule in the Hero
   block; only the page-local spacing lives here. The reference sets the two
   lines almost touching: 54px caps on a 75px line pitch, i.e. line-height 1. */
.hero-home h1 { margin-bottom: .55rem; }
.hero-home .tagline {
  font-size: clamp(1.55rem, 3.7vw, 2.7rem);
  margin-bottom: 1.2rem;
}
/* Overrides the centred hero, which centres this block with margin-inline:auto */
.hero-home .hero-sub { margin-inline: 0; max-width: 31rem; margin-bottom: 1.9rem; }



/* The client asked for a shorter band, so the cap came down from 620px and the
   container's py-5 (3rem) became py-4 (1.5rem) in index.html. The copy block
   itself is ~430px at 1440px, so this leaves a small even margin around it
   instead of the ~145px of dead space the 620px floor produced. */
.hero-home {
  min-height: clamp(340px, 32vw, 460px);
  background-image: url('../images/home/Home.png');
  background-size: cover;
}

@media (max-width: 767.98px) {
  .hero-home {
    background-image: url('../images/home/Home-2.png');
    background-size: cover;

  }
}

/* --- Shortcut icon strip -------------------------------------------------- */

/* Dark bar with burnt-orange line icons and rules, as in the design. The rule
   runs along the strip's very top edge. Measured in Home page.png that row
   integrates to the FULL ink of #c86921 over the brown-900 ground, but the
   client wanted it dimmer and reading like the footer's rules, so it is drawn
   in the footer's copper — see --rw-strip-rule in :root. */
.icon-strip {
  background-color: var(--rw-brown-900);
  border-top: 1px solid var(--rw-strip-rule);
  border-bottom: 1px solid rgba(var(--rw-cream-rgb), .12);
}
.icon-strip-inner { display: grid; grid-template-columns: repeat(8, 1fr); }
.icon-strip a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: 1.2rem .4rem 1.1rem;
  text-decoration: none;
  color: var(--rw-cream);
  transition: background-color .18s ease, color .18s ease;
}
/* Divider between the tiles. A pseudo-element, not a border, because the
   reference's divider is INSET: it spans the tile's content box, starting
   level with the icon and ending level with the label. The measurements from
   Home page.png are 24px / 22px inset on a 133px strip, which is that mockup's
   own tile padding — so mirror the padding here rather than hard-coding 24/22.
   Colour/weight now follows the footer's vertical column rules
   (rgba(--rw-copper-rgb, .55)) so the strip and the footer read as one set. */
.icon-strip a::after {
  content: '';
  position: absolute;
  top: 1.2rem;
  bottom: 1.1rem;
  right: 0;
  width: 1px;
  background-color: rgba(var(--rw-copper-rgb), .55);
}
.icon-strip a:last-child::after { display: none; }
.icon-strip a:hover,
.icon-strip a:focus-visible { background-color: rgba(var(--rw-cream-rgb), .07); color: var(--rw-orange); }
.icon-strip-icon {
  width: 2.5rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-strip-icon i { font-size: 1.8rem; line-height: 1; color: var(--rw-orange); }
.icon-strip-icon img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.icon-strip span {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: .72rem;
  text-align: center;
}
@media (max-width: 767.98px) {
  .icon-strip-inner { grid-template-columns: repeat(4, 1fr); }
  /* Seven tiles: 4 in the first row, 3 in the second, so the 4th and the 7th
     are the ones that end a row. */
  .icon-strip a:nth-child(4n)::after,
  .icon-strip a:nth-child(8)::after { display: none; }
  .icon-strip a:nth-child(-n+4) { border-bottom: 1px solid rgba(var(--rw-copper-rgb), .55); }
}

/* --- Sale / our cattle / mailing list band -------------------------------- */

/* The band and "Connect With Us" below it share one parchment ground, so the
   gap between them stays tight rather than reading as two separate sections. */
.home-band,
.connect-band {
  /* background-color: var(--rw-surface-1);
  background-image: var(--rw-paper-tex); */
  background-image: var(--rw-paper-bg-dark);
}
/* The cards run right to the screen edge, held off it by the same gap that
   separates them from each other; the same gap again above the top row and
   above/below the "Connect With Us" card. `.home-band` carries no bottom
   padding because the band below supplies the gap with its top padding. */
.home-band > .container,
.connect-band > .container {
  max-width: none;
  padding-inline: var(--rw-gap);
}
.home-band    { padding-block: var(--rw-gap) 0; }
.connect-band { padding-block: var(--rw-gap); }

/* The header / footer / contact-page Facebook mark links to this band
   (`index.html#connect` — see `facebookHref` in js/data.js). The sticky header
   is 78px tall, so without scroll-margin-top the panel would land underneath
   it when the anchor is followed. */
#connect { scroll-margin-top: 88px; }

/* --- Cards sitting on the parchment ----------------------------------------
   TWO cards now, with a hairline gap between them. The sale box on the left
   also carries "Join Our Mailing List" underneath it, so it needs roughly a
   third of the width; "Our Cattle" takes the rest and runs all the way to the
   right edge of the band. --------------------------------------------------- */

.band-cards {
  display: grid;
  grid-template-columns: 25fr 75fr;
  /* grid-template-columns: 20fr 65fr 15fr; */
  gap: var(--rw-gap);
}
.band-cards-cwa {
  display: grid;
  grid-template-columns: 77fr 23fr;
  /* grid-template-columns: 20fr 65fr 15fr; */
  gap: var(--rw-gap);
}
@media (max-width: 991.98px) {
  .band-cards { grid-template-columns: 1fr; }
  .band-cards-cwa { grid-template-columns: 1fr; }
}

.band-card{
  border: 1px solid var(--rw-panel-line);
  /* background-color: var(--rw-surface-2); */
background-image: var(--rw-paper-tex), var(--rw-paper-bg);
background-size: 180px 180px, cover;
background-position: left top, center;
background-repeat: repeat, no-repeat;
 
  padding: 1.4rem 1.3rem 1.6rem;
}

/* One big card for "Connect With Us" — the heading and the whole card grid live
   inside it. The inset is 2x the gutter so the inner cards sit off the panel
   edge in step with the gaps between them. */
.panel {
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-2);
  padding: calc(var(--rw-gap) * 2);
/* 
background-image: var(--rw-paper-tex), var(--rw-paper-bg);
background-size: 180px 180px, cover;
background-position: left top, center;
background-repeat: repeat, no-repeat; */
}

/* These are column headings here, not full-width section headings. Sized so the
   longest one ("Upcoming Sale") still fits on one line inside the narrow card. */
.home-band h2 { font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: .05em; }

/* Upcoming-sale box, nested inside the first card. The Momentum logo sits at
   the TOP of it, above the sale name. */
.sale-card {
  background-color: var(--rw-surface-1);
  background-image: var(--rw-paper-tex);
  border: 1px solid var(--rw-panel-line);
  padding: 1.15rem 1rem 1.35rem;
  text-align: center;
}
/* The Momentum logo fills the sale box, so its small "Speckle Park & Angus
   Bull & Female Sale" subtitle stays legible — that subtitle is why the sale
   name is NOT repeated as a text heading above it (see `showLabel` in
   js/data.js). The artwork is a transparent PNG at 2418x601 (4:1). */
.sale-card-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto .85rem;
}
.sale-card-title {
  font-family: var(--rw-font-serif);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  font-weight: 700;
  color: var(--rw-brown-800);
  margin-bottom: .95rem;
}
.sale-card-date {
  font-family: var(--rw-font-serif);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--rw-copper);
  margin-bottom: .3rem;
}
.sale-card-venue {
  color: var(--rw-brown-700);
  font-size: .9rem;
  margin-bottom: 1.15rem;
}

.card-bg {
  background-color: var(--rw-surface-2);

}

/* Two breed photos side by side in the "Our Cattle" card. No captions — the
   button under each photo already says which breed it is, so a caption would
   just repeat it.
   The sale box next to it is the taller card, so the photos GROW to fill the
   space rather than leaving a block of empty card underneath them; the buttons
   stay pinned to the bottom by `margin-top: auto`. */
.band-card-cattle { display: flex; flex-direction: column; }
.cattle-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
  flex: 1 1 auto;
  min-height: 0;
}
.cattle-duo-item { display: flex; flex-direction: column; min-height: 0; }
.cattle-duo-item img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 220px;
  object-fit: cover;
  margin-bottom: 1rem;
}
.cattle-duo-item .btn { margin-top: auto; }
@media (max-width: 479.98px) {
  .cattle-duo { grid-template-columns: 1fr; }
}

/* The mailing form now inherits the shared .form-control styling; only its
   status line is specific to this card. */
.mail-card [data-mailing-status] { color: var(--rw-brown-500) !important; }

/* --- Centred heading with a rule either side ------------------------------ */

.title-rule {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.75rem);
}
.title-rule::before,
.title-rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rw-line);
}
.title-rule h2 { margin: 0; white-space: nowrap; }
.title-rule-light::before,
.title-rule-light::after { background: rgba(var(--rw-cream-rgb), .3); }
.title-rule-light h2 { color: #fff; }

/* --- Connect With Us: two live Facebook feeds ----------------------------- */

/* "Connect With Us" is now TWO live Facebook feeds, split down the middle.
   Direction matters: the Speckle Park feed is on the left with its button on
   the outer (left) edge, the Black Angus feed on the right with its button on
   the outer (right) edge. The button sits on the outside because the markup
   order flips between the two columns (button first on the left, title first
   on the right) and `.feed-head` is a plain space-between row. */
.feed-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--rw-gap) * 3);
}
.feed-col { display: flex; flex-direction: column; }
/*.feed-col + .feed-col {
   border-left: 1px solid var(--rw-panel-line);
  padding-left: calc(var(--rw-gap) * 3); 
  padding-top: calc(var(--rw-gap) * 2);
}*/

.feed-head {
  /* display: flex;
  align-items: center;
  justify-content: space-between; */
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: calc(var(--rw-gap) * 1.5);
}

.cwa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: calc(var(--rw-gap) * 1.5);
}

.feed-title {
  font-family: var(--rw-font-ui);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: 1rem;
  color: var(--rw-brown-800);
  margin: 0;
}
.feed-btn { display: inline-flex; align-items: center; gap: .5rem; }

/* The embed slot. `flex: 1` makes whichever frame is tallest set the row height
   and the other one stretch to match, so the two columns stay level. */
.feed-frame {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  /* min-height: 620px; */
  min-height: 250px;
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-1);
  background-image: var(--rw-paper-tex);
  overflow: hidden;
}
.feed-embed {
  display: block;
  width: 100%;
  height: 100%;
}
.show-frame {
  place-items: center;
  flex: 1 1 auto;
  min-height: 620px;
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-1);
  background-image: var(--rw-paper-tex);
}

.feed-frame .show-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* The Common Ninja widget renders its own full-height document and never
   resizes itself, so the frame IS its viewport: the iframe is pinned to the
   frame. The embed snippet's scrolling="no" is deliberately dropped — the
   widget has NO inner scroll container, so with it the posts past the first row
   would be clipped with no way to reach them. */
.feed-frame .show-frame .feed-embed {
  align-self: stretch;
  justify-self: stretch;
}
.feed-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--rw-font-ui);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: .72rem;
  color: var(--rw-brown-400);
}
.feed-ph i { font-size: 2.4rem; line-height: 1; color: var(--rw-facebook); }

@media (max-width: 767.98px) {
  .feed-split { grid-template-columns: 1fr; gap: calc(var(--rw-gap) * 2); }
  .feed-col + .feed-col {
    border-left: 0;
    border-top: 1px solid var(--rw-panel-line);
    padding-left: 0;
    padding-top: calc(var(--rw-gap) * 2);
  }
  .show-frame { min-height: 420px; }
  .feed-frame { min-height: 320px; }
}

@media (max-width: 479.98px) {
  .feed-frame { min-height: 220px; }
}

/* --- Latest Facebook posts (DORMANT) --------------------------------------
   The Connect With Us band now shows two LIVE feeds instead of four sample
   posts, so nothing renders these any more. The rules are kept, along with
   RW.posts and RW.renderPosts, so the post grid can be dropped back in by
   re-adding a #homePosts host to the page. */
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-1);
  padding: .7rem .7rem .9rem;
  text-decoration: none;
}
.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: .7rem;
}
.post-title {
  font-family: var(--rw-font-serif);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  color: var(--rw-brown-800);
  margin-bottom: .35rem;
}
.post-card:hover .post-title { color: var(--rw-rust); }
.post-meta {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .66rem;
  color: var(--rw-brown-500);
  margin: 0 0 .2rem;
}
/* Like + comment counts. `margin-top: auto` pins them to the bottom of the card
   so the row lines up even when one title wraps to two lines. */
.post-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: auto 0 0;
  padding-top: .35rem;
  font-size: .68rem;
  color: var(--rw-brown-500);
}
.post-stats i { color: var(--rw-brown-400); margin-right: .3rem; }

/* --- Why Ravenworth? (dark band) ------------------------------------------ */

.why-band {
  background-color: var(--rw-brown-900);
  /* Warm glow on the LEFT half only — the right half of the band is covered by
     the herd photo, which is an <img> in index.html (so it gets a labelled
     placeholder until images/why-band.jpg is supplied). The brown overlay is
     what keeps the ground near-black like the reference: without it the copper
     radial washes the whole band a mid brown. */
  background-image:
    radial-gradient(120% 160% at 12% 18%, rgba(var(--rw-copper-rgb), .38) 0%, rgba(var(--rw-copper-rgb), 0) 62%),
    linear-gradient(180deg, rgba(var(--rw-brown-900-rgb), .62) 0%, rgba(var(--rw-brown-900-rgb), .78) 100%);
  color: rgba(var(--rw-cream-rgb), .78);
  /* Tighter than .section: the reference band is only ~232px tall, which is
     what makes the photo read as a wide banner rather than a portrait. */
  padding-block: 1.7rem 2.25rem;
}
.why-point { text-align: center; }
.why-point i {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto .95rem;
  font-size: 1.9rem;
  color: var(--rw-orange);
  border: 1px solid rgba(var(--rw-orange-rgb), .5);
  border-radius: 50%;
}
.why-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  /* letter-spacing: .12em; */
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.why-point p { font-size: .86rem; line-height: 1.6; color: rgba(var(--rw-cream-rgb), .7); margin: 0; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

/* `.object-aspect` was removed — nothing used it after the home-page rebuild.
   The "Our Cattle" photos now get their 4:3 shape from `.cattle-duo-item img`. */

/* ==========================================================================
   INTERIOR-PAGE COMPONENTS
   --------------------------------------------------------------------------
   The shared building blocks the reference designs use on every page that is
   not the home page: the light "page head", the two feature-list styles, the
   bordered herd card, the sale-resource rows, the trait checklist and the
   3-up photo carousel. Page markup composes these; nothing here is page
   specific, so retune a component once and every page follows.
   ========================================================================== */

/* --- Page head -------------------------------------------------------------
   Big serif page title, a SHORT rust rule under it (not a full-width one),
   then a two-line condensed statement and the intro copy. The reference uses
   this on Sale, Contact, Show Ring and Frozen Genetics.
   -------------------------------------------------------------------------- */

.page-head {
  background-color: var(--rw-surface-1);
  background-image: var(--rw-paper-tex);
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem);
}

.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.04;
  margin-bottom: .95rem;
}

.page-head p { color: var(--rw-brown-500); }

.page-head-bg {
  background-color: var(--rw-surface-1);
  background-image: var(--rw-paper-tex), var(--rw-paper-bg);
  background-size: 180px 180px, cover;
  background-position: left top, center;
  background-repeat: repeat, no-repeat;
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem);
}

.page-head-bg h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.04;
  margin-bottom: .95rem;
}

.page-head-bg p { color: var(--rw-brown-500); }

/* Short rust rule under a page title — about a third of a column wide. */
.rule-short {
  width: 4.5rem;
  height: 2px;
  background: var(--rw-rust);
  border: 0;
  opacity: 1;
  margin: 0 0 1.4rem;
}
.page-statement {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  line-height: 1.35;
  color: var(--rw-heading);
  margin-bottom: 1.15rem;
}

/* --- Section head ----------------------------------------------------------
   A centred heading closed by a full-width hairline ABOVE it, as the
   "Featured Angus" / "Featured Speckle Park" headings do in the reference.
   -------------------------------------------------------------------------- */

.section-head {
  text-align: center;
  /* border-top: 1px solid var(--rw-line); */
  /* padding-top: clamp(1.5rem, 3vw, 2.25rem); */
}
.section-head h2 { margin-bottom: 0; }
.section-head .rule-rust { margin: 1.1rem auto 1.55rem; }
.section-head .lead-copy { max-width: 44rem; margin-inline: auto; }

/* --- Feature list (open) ---------------------------------------------------
   Large rust glyph, a condensed uppercase title and an italic serif sub-line,
   divided by hairlines. The reference uses this on Show Ring and Frozen
   Genetics. `.icon-list` / `.icon-circle` stays for the boxed-circle variant
   used on Black Angus and Speckle Park.
   -------------------------------------------------------------------------- */

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rw-line);
}
.feature-list li:first-child { padding-top: 0; }
.feature-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-list .feature-icon {
  font-size: 2.1rem;
  line-height: 1;
  color: var(--rw-rust);
}
.feature-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--rw-brown-800);
  margin: 0 0 .2rem;
}
.feature-sub {
  font-family: var(--rw-font-serif);
  font-style: normal;
  color: var(--rw-brown-500);
  font-size: .92rem;
  margin: 0;
}

/* --- Herd card -------------------------------------------------------------
   Bordered card on the tan band, the photo set in its own cream frame, the
   name centred, the trait line in muted brown, and a centred button.
   -------------------------------------------------------------------------- */

.herd-card {
  height: 100%;
  text-align: center;
  border: 1px solid var(--rw-panel-line);
  /* background-color: var(--rw-surface-2); */
background-image: var(--rw-paper-tex), var(--rw-paper-bg);
background-size: 180px 180px, cover;
background-position: left top, center;
background-repeat: repeat, no-repeat;  
  padding: .85rem .85rem 1.2rem;
}
.herd-card .img-link {
  display: block;
  overflow: hidden;
  padding: .5rem;
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-1);
}
.herd-card .img-link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.96) contrast(1.02);
  transition: transform .5s ease;
}
.herd-card .img-link:hover img { transform: scale(1.04); }
.herd-card .cow-name { margin: 1rem 0 .4rem; }
/* Overrides the uppercase condensed rust `.card-trait` used elsewhere: the
   reference sets this line in muted brown, upright. */
.herd-card .card-trait {
  font-family: var(--rw-font-serif);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: .92rem;
  color: var(--rw-brown-500);
  margin-bottom: 1.05rem;
}
.herd-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 2rem;
}
.herd-coming-soon i {
  color: var(--rw-rust);
  font-size: 2.5rem;
  line-height: 1;
}
.herd-coming-soon h3 {
  color: var(--rw-heading);
  font-family: var(--rw-font-serif);
  font-size: 1.15rem;
  margin: 0;
}

/* --- Sale resources --------------------------------------------------------
   One bordered panel holding a stack of rows: a filled rust disc, the title
   and sub-line, then an outlined button on the right. The reference shows
   this on the Sale page.
   -------------------------------------------------------------------------- */

.sale-panel {
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-2);
  padding: clamp(1.1rem, 2.4vw, 2rem);
}
.sale-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rw-line);
}
.sale-row:first-child { padding-top: 0; }
.sale-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sale-row-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--rw-rust);
  color: var(--rw-cream);
  font-size: 1.35rem;
  line-height: 1;
}
.sale-row-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--rw-brown-800);
  margin: 0 0 .2rem;
}
.sale-row-sub { color: var(--rw-brown-500); font-size: .9rem; margin: 0; }
@media (max-width: 767.98px) {
  .sale-row { grid-template-columns: auto 1fr; gap: 1rem; }
  .sale-row .btn { grid-column: 2; justify-self: start; }
}

/* --- Trait checklist (animal record) --------------------------------------- */

.trait-check { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.trait-check li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .16rem 0;
  font-family: var(--rw-font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--rw-brown-700);
}
.trait-check i { color: var(--rw-rust); font-size: .95rem; }

/* --- Animal record: meta line and framed photo ----------------------------- */

.cow-meta {
  font-family: 'Barlow Semi Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: .78rem;
  color: var(--rw-brown-500);
  margin-bottom: 1.15rem;
}
/* Generic framed photo — no aspect constraint, so portrait artwork (the sale
   catalogue cover) keeps its own shape. */
.photo-frame {
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-2);
  padding: .75rem;
}
.photo-frame img { display: block; width: 100%; }

/* The animal record's hero photo sits in the same frame but is cropped to a
   wide landscape, as in the reference — so the record keeps the same shape
   whatever proportions the supplied photo has. */
.cow-photo {
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-2);
  padding: .75rem;
}
.cow-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* --- 3-up photo carousel ---------------------------------------------------
   Cream-framed photos in a scroll-snapped row, with working arrows and dots
   (wired up by RW.initCarousel in js/site.js).
   -------------------------------------------------------------------------- */

.carousel-3 { position: relative; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.5rem) / 3);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { scroll-snap-align: start; }
.carousel-slide > a {
  display: block;
  padding: .5rem;
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-1);
  overflow: hidden;
}
.carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}
.carousel-slide > a:hover img { transform: scale(1.04); }
@media (max-width: 991.98px) {
  .carousel-track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 575.98px) {
  .carousel-track { grid-auto-columns: 100%; }
}

.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1.15rem; margin-top: 1.5rem; }
.carousel-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--rw-panel-line);
  background: transparent;
  color: var(--rw-brown-700);
  font-size: 1.05rem;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.carousel-arrow:hover:not(:disabled) {
  background: var(--rw-copper);
  border-color: var(--rw-copper);
  color: var(--rw-cream);
}
.carousel-arrow:disabled { opacity: .35; cursor: default; }

.herd-carousel-track > .carousel-slide {
  width: 100%;
  padding: 0;
  flex: none;
}

/* --- Dark band with a photo on one side and a quote on the other ----------- */

.tank-band { background-color: var(--rw-brown-900); color: rgba(var(--rw-cream-rgb), .78); }
.tank-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tank-quote {
  font-family: var(--rw-font-serif);
  font-style: italic;
  color: var(--rw-cream);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin: 0;
}
@media (max-width: 767.98px) {
  .tank-band img { max-height: 260px; }
}

/* --- Events strip ---------------------------------------------------------- */

.events-strip .event-row:last-child { border-bottom: 0; }

/* --- Active menu item gets a short rust rule under it ---------------------- */

.rw-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .52rem;
  right: .52rem;
  bottom: .22rem;
  height: 1px;
  background: var(--rw-rust);
}

/* --- Why Ravenworth? band --------------------------------------------------
   Two columns: the heading and the four points on the left, TESTIMONIALS on
   the right with Learn More sitting on its bottom-left corner. Measured off
   the mockup (a 1320px container):
     - the four points run on a 170px pitch from x 12 to x 692  ->  a 680px
       block, NOT the full container width
     - the heading's rule stops at that same 680px
     - the right column picks up where the block ends and runs to the
       container's right edge, top to bottom of the band
     - Learn More is 56px in from the right column's left edge and 37px up from
       its bottom, and is the OUTLINE button (transparent, cream hairline)
   The right column was a herd photo until the client asked for a testimonials
   spot there instead — `.why-photo` is kept as the slot's name, so anything
   that reaches the band's right edge still works the same way.
*/

.why-band .title-rule-light h2 { color: var(--rw-amber); }

.why-split {
  display: grid;
  grid-template-columns: 680px 1fr;
  align-items: stretch;
}

/* The heading rule is deliberately no wider than the points block. */
.why-left .title-rule { max-width: 680px; }

/* `margin-left: 0` cancels Bootstrap's negative row margin, which would
   otherwise pull the block 12px left of the container edge. */
.why-points { max-width: 680px; margin-left: 0; }

/* The right-hand column. The negative right margin reaches past the
   container's 12px gutter so the block is flush with the band's edge instead
   of leaving a dark sliver beside it. */
.why-photo {
  position: relative;
  margin-right: -.75rem;
  min-height: 200px;
  overflow: hidden;
}
/* Still here for whenever this slot goes back to being a photo. */
.why-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-photo-btn { position: absolute; left: 3.5rem; bottom: 2.3rem; }

/* --- Testimonials, in the right-hand column of the same band ----------------
   This column used to hold the herd photo. The wording and icons on the left
   are unchanged and Learn More stays in the bottom-left corner, so this block
   only has to supply a ground, a quote and an attribution. */

.why-testimonials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.4rem 2.2rem 5.4rem 3.5rem;
  border: 1px solid rgba(var(--rw-cream-rgb), .16);
  background: rgba(var(--rw-brown-900-rgb), .35);
}
.tst-carousel { min-width: 0; }
.tst-carousel-track {
  width: 100%;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.tst-carousel-track::-webkit-scrollbar { display: none; }
.tst-slide {
  min-width: 0;
  white-space: normal;
  scroll-snap-align: start;
}
.tst-mark {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--rw-orange);
  margin-bottom: .6rem;
}
.tst-quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-family: var(--rw-font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: rgba(var(--rw-cream-rgb), .88);
  margin: 0 0 .9rem;
}
.tst-name {
  font-family: var(--rw-font-ui);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: .74rem;
  color: var(--rw-orange);
  margin: 0;
}
.tst-carousel-nav { margin-top: 1.2rem; }
.tst-carousel-nav .carousel-arrow {
  border-color: rgba(var(--rw-cream-rgb), .48);
  color: var(--rw-cream);
}
.tst-carousel-nav .carousel-arrow:hover:not(:disabled) {
  border-color: var(--rw-orange);
  background: var(--rw-orange);
  color: var(--rw-brown-900);
}
.tst-carousel-nav .carousel-arrow:disabled { opacity: .35; }

.testimonial-card {
  overflow: hidden;
  border: 1px solid var(--rw-panel-line);
  background-color: var(--rw-surface-2);
}
.testimonial-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.testimonial-card-body { padding: 1.2rem 1.25rem 1.4rem; }
.testimonial-card-mark {
  display: block;
  margin-bottom: .45rem;
  color: var(--rw-rust);
  font-size: 1.8rem;
  line-height: 1;
}
.testimonial-card-quote {
  margin: 0 0 1rem;
  font-family: var(--rw-font-serif);
  /* font-style: italic; */
  color: var(--rw-brown-700);
}
.testimonial-card-by {
  margin: 0;
  color: var(--rw-heading);
  font-family: var(--rw-font-ui);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Below xl the band stacks: heading + points, then the photo underneath. The
   fixed 680px left column would otherwise squeeze the photo into a sliver —
   at 1100px the container is only 960 wide, leaving 256px of photo. */
@media (max-width: 1199.98px) {
  .why-split { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .why-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .why-photo-btn { left: 1.5rem; bottom: 1.25rem; }
  /* The testimonials block is not a photo, so it must not inherit the photo
     slot's 16:9 letterbox when the band stacks. */
  .why-testimonials { aspect-ratio: auto; min-height: 0; padding: 1.75rem 1.5rem 5rem; }
}













/* /////////////////////////////////////////////////////////////// */
.connect-icon-link {
  color: #4a4038;
}

.connect-icon-link .bi {
  font-size: 3rem;
}

.connect-icon-link:hover {
  color: #4a4038;
}

.icon-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1rem;
}
