/* =================================================================
   Riverside Farm — Stylesheet
   -----------------------------------------------------------------
   Palette (sampled from the reference image + your spec):
     --rf-header-bg    #000000  black          (header & footer)
     --rf-header-text  #BDE8F5  lightest blue  (header & footer words)
     --rf-body-bg      #BDE8F5  lightest blue  (page background)
     --rf-ink          #000000  black          (body text)

   The image's other two blues aren't assigned to a specific element
   in your brief, so I'm using them as supporting accents:
     --rf-accent       #1C4D8D  dark navy   — links, buttons
     --rf-accent-mid   #4988C4  medium blue — tags, dividers, borders
   Say the word if you'd rather reserve those for something specific.

   Type:
     Display — Petrona: a warm, unfussy serif — reads calmer/more
       pastoral than Dark Horse's heavier Fraunces, fitting a
       "riverside" farm rather than a moody ex-racing yard.
     Body    — Work Sans: kept consistent with the other stable sites.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@0,500;0,600;0,700;1,500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --rf-header-bg: #000000;
  --rf-header-text: #BDE8F5;
  --rf-body-bg: #BDE8F5;
  --rf-ink: #000000;
  --rf-ink-soft: #2B2B2B;
  --rf-accent: #1C4D8D;
  --rf-accent-mid: #4988C4;
  --rf-line: #9FCDE0;
  --rf-card-bg: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--rf-body-bg);
  color: var(--rf-ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Petrona', Georgia, serif;
  color: var(--rf-ink);
  font-weight: 700;
  letter-spacing: 0.005em;
}
h1 { font-size: 2.85rem; }
h2 { font-size: 2.05rem; margin-top: 0.25em; }
h3 { font-size: 1.5rem; }

a {
  color: var(--rf-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover, a:focus-visible {
  color: #123A6B;
  border-bottom-color: currentColor;
}

/* -----------------------------------------------------------------
   Header — sticky top, black bar
   ----------------------------------------------------------------- */
.rf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rf-header-bg);
  color: var(--rf-header-text);
}
.rf-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.rf-brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; border-bottom: none; }
.rf-brand-name {
  font-family: 'Petrona', Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--rf-header-text);
  letter-spacing: 0.02em;
}
.rf-brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rf-header-text);
  opacity: 0.85;
  margin-top: 0.1rem;
}
.rf-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.rf-nav a {
  color: var(--rf-header-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.rf-nav a:hover, .rf-nav a:focus-visible, .rf-nav a.active {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 720px) {
  .rf-header-inner { flex-wrap: wrap; }
  .rf-nav { width: 100%; gap: 1.1rem 1.4rem; }
}

/* -----------------------------------------------------------------
   Banner — sits directly below the header bar on the homepage
   ----------------------------------------------------------------- */
.rf-banner {
  width: 100%;
  line-height: 0;
  background: var(--rf-header-bg);
}
.rf-banner img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* -----------------------------------------------------------------
   Footer — black bar, sits at the bottom of short pages
   ----------------------------------------------------------------- */
.rf-footer {
  background: var(--rf-header-bg);
  color: var(--rf-header-text);
}
.rf-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.rf-footer a { color: var(--rf-header-text); }
.rf-footer a:hover, .rf-footer a:focus-visible { color: #fff; }

/* -----------------------------------------------------------------
   Layout helpers
   ----------------------------------------------------------------- */
.rf-wrap { max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem; }
.rf-wrap-narrow { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }

.rf-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.75rem 0;
}
.rf-divider::before, .rf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rf-line);
}
.rf-divider-mark {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--rf-accent);
  background: transparent;
}

.rf-hero { text-align: center; padding: 3.5rem 1.5rem 1rem; }
.rf-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--rf-accent);
  font-weight: 600;
}
.rf-hero p.lead {
  max-width: 620px;
  margin: 1rem auto 0;
  font-size: 1.15rem;
  color: var(--rf-ink-soft);
}

.rf-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.rf-card {
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-line);
  border-radius: 6px;
  padding: 1.75rem;
}

.rf-btn {
  display: inline-block;
  background: var(--rf-accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  font-weight: 500;
  border-bottom: none;
}
.rf-btn:hover, .rf-btn:focus-visible {
  background: #123A6B;
  color: #fff;
  border-bottom: none;
}

/* Landscape 8x10 portrait — aspect-ratio 10:8 */
.rf-portrait {
  width: 100%;
  aspect-ratio: 10 / 8;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--rf-line);
}
.rf-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rf-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.rf-fact { border-left: 3px solid var(--rf-accent-mid); padding-left: 0.75rem; }
.rf-fact-label {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--rf-ink-soft);
}
.rf-fact-value {
  font-family: 'Petrona', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

/* -----------------------------------------------------------------
   Horse roster
   ----------------------------------------------------------------- */
.rf-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--rf-accent-mid);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  width: fit-content;
}
.rf-horse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.rf-horse-card {
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rf-horse-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--rf-accent-mid);
}
.rf-horse-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--rf-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-header-text);
  font-family: 'Petrona', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.rf-horse-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rf-horse-body h3 { margin: 0 0 0.15rem; }
.rf-horse-meta {
  font-size: 0.82rem;
  color: var(--rf-ink-soft);
  margin-bottom: 0.6rem;
}
.rf-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--rf-ink-soft);
}

@media (max-width: 600px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.6rem; }
  .rf-wrap, .rf-wrap-narrow { padding: 2rem 1.25rem; }
}
