/* Pastureline Dairy Consulting — site styles
   Palette: fresh grass greens + open-sky blue accent on a crisp, faintly green-biased white. */

:root {
  /* Palette sampled directly from the pasture photograph */
  --grass-vivid: #93bb22;   /* sunlit grass */
  --grass-mid:   #6b8f1c;   /* mid sward */
  --grass-deep:  #45541e;   /* shaded grass */
  --grass-dark:  #37471a;
  --grass-black: #26320f;   /* deepest pasture shadow */
  --grass-wash:  #eef3e0;
  --grass-pale:  #f6f9ee;

  --sky-cloud:   #b2c2d3;   /* storm cloud */
  --sky-pale:    #e9eff4;
  --sky-deep:    #5b7186;

  --holstein:    #1a2110;   /* near-black, green-biased */
  --paper:       #fbfcf7;
  --surface:     #ffffff;
  --ink-soft:    #56613f;
  --line:        #dde5cb;

  /* Roles */
  --bg: var(--paper);
  --bg-alt: var(--grass-wash);
  --text: var(--holstein);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --brand: var(--grass-mid);
  --brand-strong: var(--grass-deep);
  --brand-deep: var(--grass-black);
  --accent: var(--grass-vivid);
  --accent-strong: var(--grass-mid);
  --on-brand: #ffffff;
  --on-accent: var(--holstein);
  --focus: var(--grass-mid);

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--brand-deep);
  line-height: 1.15;
  margin-top: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }
h3 { font-size: 1.28rem; }

p { color: var(--text-soft); }

a { color: var(--brand); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

img, svg { max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brand-deep);
  text-decoration: none;
}

.logo svg { width: 30px; height: 30px; flex: none; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--grass-wash) 100%);
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

.hero h1 { margin-bottom: 18px; }

.hero p.lead {
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-art { width: 100%; height: auto; }

.btn {
  display: inline-block;
  background: var(--brand-strong);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid var(--brand-strong);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn:hover { background: var(--brand); border-color: var(--brand); }

.btn-outline { background: transparent; color: var(--brand-strong); }
.btn-outline:hover { background: var(--brand-strong); color: var(--on-brand); }

.hero-ctas { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections */
section { padding: 60px 0; }

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 20px 18px;
}
.fact .num {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  color: var(--brand-strong);
  font-weight: 600;
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 6px;
}
.fact .label { font-size: 0.88rem; color: var(--text-soft); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.card .icon { width: 38px; height: 38px; color: var(--brand); margin-bottom: 15px; }
.card h3 { margin-bottom: 9px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 18px; }
.stat-row .stat { min-width: 130px; }

.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 1.95rem;
  color: var(--brand-strong);
  font-weight: 600;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  font-size: 0.83rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Services detail blocks */
.service-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }
.service-block .icon { width: 44px; height: 44px; color: var(--brand); }
.service-block ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-soft); }
.service-block li { margin-bottom: 6px; }

/* Process steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.steps li { counter-increment: step; position: relative; padding-top: 44px; }

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-strong);
  color: var(--on-brand);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h4 { margin: 0 0 6px; color: var(--brand-strong); font-size: 1.02rem; font-family: 'Fraunces', serif; }
.steps p { margin: 0; font-size: 0.9rem; }

/* CTA band */
.cta-band { background: var(--brand-deep); color: var(--on-brand); text-align: center; }
.cta-band h2 { color: var(--on-brand); }
.cta-band p { color: var(--grass-wash); max-width: 520px; margin: 0 auto 24px; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cta-band .btn:hover { background: var(--grass-vivid); border-color: var(--grass-vivid); }

/* Forms */
form.contact-form { display: grid; gap: 16px; max-width: 560px; }

.form-row { display: grid; gap: 6px; }

label { font-weight: 700; font-size: 0.9rem; color: var(--brand-strong); }

input, textarea, select {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}

textarea { resize: vertical; min-height: 120px; }

.contact-info { display: grid; gap: 20px; }
.contact-info .item h4 { margin: 0 0 4px; color: var(--brand-strong); font-family: 'Fraunces', serif; }
.contact-info .item p { margin: 0; }

/* Footer */
footer.site-footer {
  background: var(--brand-deep);
  color: var(--grass-wash);
  padding: 42px 0 26px;
}

footer.site-footer a { color: #ecf7e8; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.footer-grid h4 { color: #fff; font-family: 'Fraunces', serif; margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.93rem; }
.footer-grid p { color: var(--grass-wash); font-size: 0.93rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.84rem;
  color: #9bb07a;
  text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 260px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 44px 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav ul { gap: 14px; }
  section { padding: 42px 0; }
}


/* Photography */
.hero-photo {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 10px 30px rgba(38, 50, 15, 0.18);
  object-fit: cover;
  object-position: center 42%;
  aspect-ratio: 4 / 5;
  max-height: 440px;
}

.photo-wide {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 24px rgba(38, 50, 15, 0.15);
  object-fit: cover;
}

figure.photo { margin: 0; }
figure.photo figcaption {
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-top: 10px;
  text-align: center;
}


/* Photo band */
.photo-band {
  position: relative;
  padding: 0;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 30%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,33,16,0.55), rgba(26,33,16,0.72));
}
.photo-band .container { position: relative; padding-top: 56px; padding-bottom: 56px; }
.photo-band h2 { color: #ffffff; }
.photo-band p { color: #dce8c4; max-width: 56ch; margin-left: auto; margin-right: auto; }
.photo-band .hero-eyebrow { color: var(--grass-vivid); }

.photo-square {
  width: 100%;
  height: auto;
  align-self: center;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 24px rgba(38, 50, 15, 0.15);
}
