/* ==========================================================================
   Blue Roan Farm — static site stylesheet
   Palette derived from the farm logo (#0F678A) + warm pasture tones.
   ========================================================================== */

:root {
  --teal-900: #062b3b;
  --teal-800: #0a4560;
  --teal-700: #0f678a;   /* brand — sampled from logo background */
  --teal-500: #2b8bad;
  --teal-200: #a8d8e8;
  --teal-050: #eaf4f8;

  --clay-600: #a9622c;   /* chestnut / tack leather accent */
  --clay-500: #c07a38;
  --clay-100: #f6ead9;

  --cream: #fbf8f3;
  --paper: #ffffff;
  --ink: #1b2a31;
  --ink-soft: #4a5c65;
  --rule: #e3ded5;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(6, 43, 59, .06), 0 2px 8px rgba(6, 43, 59, .05);
  --shadow-md: 0 12px 32px rgba(6, 43, 59, .12);

  --wrap: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--teal-900);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal-900);
  color: #fff; padding: .75rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--clay-500); outline-offset: 3px; border-radius: 4px; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .97rem; letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--clay-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-500); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--outline { border-color: var(--teal-700); color: var(--teal-700); background: transparent; }
.btn--outline:hover { background: var(--teal-700); color: #fff; }

/* --- header --------------------------------------------------------------- */
.site-header {
  background: var(--teal-900);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 96px;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: #fff; }
.brand img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.brand-tag { display: block; font-family: var(--font-body); font-size: .74rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--teal-200); margin-top: .25rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--radius-sm); padding: .5rem .8rem;
  font: inherit; font-size: .9rem; cursor: pointer;
}
.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: #dceaf1; text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--teal-700); color: #fff; }
.site-nav .nav-cta { margin-left: .5rem; }

@media (max-width: 960px) {
  .brand img { width: 58px; height: 58px; }
  .brand-name { font-size: 1.25rem; }
  .site-header .wrap { min-height: 82px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .site-nav.is-open { display: block; }
  .site-header .wrap { flex-wrap: wrap; padding-block: .8rem; min-height: 0; }
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .68rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a { padding: .7rem .9rem; border-radius: var(--radius-sm); }
  .site-nav .nav-cta { margin: .5rem 0 0; }
  .site-nav .btn { width: 100%; justify-content: center; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(74vh, 620px);
  display: grid; align-items: end;
  background: var(--teal-900) center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,43,59,.35) 0%, rgba(6,43,59,.55) 45%, rgba(6,43,59,.88) 100%);
}
.hero-inner { padding: 5rem 0 3.5rem; max-width: 44rem; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-200); margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: .6rem; text-wrap: balance; }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #e2eef3; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

/* --- page banner (interior pages) ---------------------------------------- */
.page-head { background: var(--teal-900); color: #fff; padding: 3.2rem 0 2.6rem; }
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p { color: #cfe3ec; max-width: 42rem; }
.crumbs { font-size: .85rem; color: var(--teal-200); margin-bottom: .9rem; }
.crumbs a { color: var(--teal-200); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .55; margin: 0 .4rem; }

/* --- sections ------------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--paper { background: var(--paper); }
.section--tint { background: var(--teal-050); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head .eyebrow { color: var(--clay-600); }
.lede { font-size: 1.1rem; color: var(--ink-soft); }

.prose { max-width: 42rem; font-size: 1.06rem; }
.prose h2 { margin-top: 2.2rem; }

/* --- split ---------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* --- cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--teal-050); color: var(--teal-700);
}
.card .icon svg { width: 21px; height: 21px; }

/* pricing / package cards */
.pkg { display: flex; flex-direction: column; }
.pkg .price {
  font-family: var(--font-display); font-size: 1.55rem; color: var(--teal-700);
  margin: .2rem 0 1rem;
}
.pkg .price small { font-family: var(--font-body); font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.pkg ul { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.pkg li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; font-size: .97rem; color: var(--ink-soft); }
.pkg li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-200);
}
.pkg .btn { margin-top: auto; align-self: flex-start; }
.pkg--featured { border-color: var(--teal-500); box-shadow: 0 0 0 1px var(--teal-500), var(--shadow-md); }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clay-600); background: var(--clay-100);
  padding: .28rem .6rem; border-radius: 999px; margin-bottom: .7rem;
}

/* --- callout / CTA band --------------------------------------------------- */
.cta-band {
  background: var(--teal-700); color: #fff;
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.5fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #d6ecf4; margin: 0; }

.notice {
  border-left: 4px solid var(--clay-500); background: var(--clay-100);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .96rem; color: #5c3d1c;
}

/* --- news ----------------------------------------------------------------- */
.post-meta { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.news-item {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); max-width: 42rem;
}
.news-item h3 { margin-bottom: .25rem; }
.news-item .post-meta { margin-bottom: .9rem; }

/* --- footer --------------------------------------------------------------- */
.site-footer { background: var(--teal-900); color: #b9d3de; padding: 3.2rem 0 1.8rem; margin-top: auto; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: #cfe3ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .95rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #8fb2c1;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
}
.footer-brand img { width: 100%; max-width: 240px; height: auto; margin-bottom: 1.1rem; }
@media (max-width: 820px) { .footer-brand img { max-width: 200px; } }

/* --- layout scaffolding --------------------------------------------------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
