/* Outskirts Pineywoods Farm — first-draft site styles */

:root {
  --forest: #2c3a2b;
  --forest-dark: #1c261c;
  --forest-mid: #3d4f3c;
  --sage: #6a7d61;
  --moss: #8b9a74;
  --cream: #f6f1e6;
  --cream-dark: #efe6d4;
  --parchment: #e8dcc6;
  --paper: #fbf8f1;
  --tan: #c4a574;
  --gold: #b8894a;
  --bark: #6a4e36;
  --rust: #9c5434;
  --rust-soft: #c47a55;
  --ink: #2a241c;
  --muted: #5e574c;
  --line: rgba(42, 36, 28, 0.12);
  --shadow: 0 10px 30px rgba(28, 38, 28, 0.08);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --header-h: 4.5rem;
  --radius: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.1em; }

p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--forest);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.4rem 0.4rem;
}

.skip-link:focus {
  top: 0;
  color: var(--cream);
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(calc(100% - 2.5rem), 44rem);
  margin-inline: auto;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest-dark);
}

.logo:hover { color: var(--forest-dark); }

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  cursor: pointer;
  border-radius: 0.4rem;
}

.nav-toggle-label .bars {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--forest);
  position: relative;
}

.nav-toggle-label .bars::before,
.nav-toggle-label .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.35rem;
  height: 2px;
  background: var(--forest);
}

.nav-toggle-label .bars::before { top: -6px; }
.nav-toggle-label .bars::after { top: 6px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--rust);
}

.btn-nav {
  display: inline-block;
  background: var(--forest);
  color: var(--cream) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
  margin-left: 0.25rem;
}

.btn-nav:hover,
.btn-nav:focus-visible {
  background: var(--rust);
  color: var(--cream) !important;
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: end start;
  color: var(--cream);
  overflow: hidden;
  background: var(--forest-dark);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 0.85rem;
}

.hero .eyebrow { color: var(--tan); }

.hero h1 {
  color: var(--cream);
  margin-bottom: 0.15em;
  max-width: 14ch;
}

.hero-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  max-width: 34rem;
  color: #f0e6d2;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--tan);
  color: var(--forest-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d4b88a;
  color: var(--forest-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 230, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(246, 241, 230, 0.1);
  color: var(--cream);
}

.btn-solid {
  background: var(--forest);
  color: var(--cream);
  border: 0;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--rust);
  color: var(--cream);
}

/* Sections
   ------------------------------------------------------------------ */
.section {
  padding: 5rem 0;
}

.section-forest {
  background: var(--forest);
  color: #efe8d8;
}

.section-forest h2,
.section-forest h3 {
  color: var(--cream);
}

.section-forest .eyebrow { color: var(--tan); }

.section-forest a { color: var(--tan); }
.section-forest a:hover { color: #e4c792; }

.section-alt {
  background: var(--cream-dark);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--sage);
  margin: 0 auto 1.5rem;
}

.divider span {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--tan);
}

.source-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 0;
}

.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.fact h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.fact p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* Herd cards
   ------------------------------------------------------------------ */
.herd-intro {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.herd-group {
  margin-bottom: 2.75rem;
}

.herd-group:last-of-type {
  margin-bottom: 0;
}

.herd-group h3 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.group-note {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.one {
  grid-template-columns: minmax(0, 22rem);
}

.animal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.animal-photo {
  position: relative;
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.animal-photo.conway {
  background: linear-gradient(160deg, #7a3a2a 0%, #c17a4a 48%, #e8d2b0 100%);
}

.animal-photo.holt {
  background: linear-gradient(160deg, #2a2c28 0%, #4a5244 45%, #b9a078 100%);
}

.animal-photo.bull {
  background: linear-gradient(160deg, #1e241c 0%, #3e4a38 42%, #8a6a48 100%);
}

.animal-photo svg {
  width: 72%;
  height: auto;
  opacity: 0.88;
}

.placeholder-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 38, 28, 0.72);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 0.5rem;
}

.animal-body {
  padding: 1rem 1rem 1.15rem;
}

.strain-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.3rem;
}

.animal-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.placeholder-name {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

/* Goals
   ------------------------------------------------------------------ */
.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.goal-card {
  background: rgba(251, 248, 241, 0.08);
  border: 1px solid rgba(246, 241, 230, 0.16);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
}

.goal-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--tan);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.goals-cta {
  margin-top: 2.25rem;
}

/* Form
   ------------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.75rem 1.6rem 1.85rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--rust);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #d4cbb8;
  border-radius: 0.45rem;
  padding: 0.65rem 0.75rem;
  min-height: 2.75rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  border-color: var(--forest);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.45rem;
  background: var(--cream-dark);
  border: 1px solid var(--tan);
  color: var(--forest-dark);
}

.form-status.is-visible {
  display: block;
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--forest-dark);
  color: #cfc6b4;
  padding: 2.25rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer a {
  color: var(--tan);
}

/* Focus
   ------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Responsive
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .facts,
  .card-grid,
  .card-grid.three,
  .goal-grid,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid.one {
    grid-template-columns: minmax(0, 22rem);
  }
}

@media (max-width: 720px) {
  .wrap,
  .wrap-narrow,
  .hero-inner {
    width: min(calc(100% - 1.75rem), var(--wrap));
  }

  .nav-toggle-label {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 24rem;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.15rem;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.25rem;
  }

  .btn-nav {
    margin: 0.4rem 0 0;
    text-align: center;
  }

  .section { padding: 3.5rem 0; }

  .facts,
  .card-grid,
  .card-grid.three,
  .goal-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 34rem;
    place-items: end start;
  }

  .hero-inner { padding: 4rem 0 3rem; }

  .header-inner { min-height: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.section-forest a.btn-primary {
  color: var(--forest-dark);
}
.section-forest a.btn-primary:hover,
.section-forest a.btn-primary:focus-visible {
  background: #d4b88a;
  color: var(--forest-dark);
}

.goal-num {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(16, 22, 16, 0.55) 0%, rgba(16, 22, 16, 0.18) 48%, rgba(16, 22, 16, 0.12) 100%),
    linear-gradient(to top, rgba(16, 22, 16, 0.78) 0%, rgba(16, 22, 16, 0.28) 42%, rgba(16, 22, 16, 0.12) 70%, rgba(16, 22, 16, 0.18) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.prose { max-width: 44rem; }


/* Photo-based herd, available, and gallery
   ------------------------------------------------------------------ */
.hero-art {
  object-fit: cover;
  object-position: center 45%;
}

.herd-photos {
  grid-template-columns: repeat(4, 1fr);
}

.animal-card .animal-photo {
  aspect-ratio: 4 / 5;
  background: var(--forest-dark);
}

.animal-card .animal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.available-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.available-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.available-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.available-copy .btn {
  margin-top: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: calc(var(--radius) - 0.15rem);
  overflow: hidden;
  background: var(--forest-dark);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

.gallery-grid .wide {
  grid-column: span 2;
}

.gallery-grid .wide img {
  aspect-ratio: 16 / 10;
}

@media (max-width: 960px) {
  .herd-photos,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .available-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .available-photo img {
    aspect-ratio: 4 / 5;
    max-height: 32rem;
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 720px) {
  .gallery-grid .wide {
    grid-column: span 2;
  }
  .hero {
    min-height: calc(100svh - 4rem);
  }
}

/* Herd captions and Previously Sold
   ------------------------------------------------------------------ */
.animal-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sold-photos {
  grid-template-columns: repeat(2, minmax(0, 18rem));
  gap: 1.25rem;
}

.sold-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  background: var(--rust);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

@media (max-width: 960px) {
  .sold-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 28rem;
  }
}

@media (max-width: 720px) {
  .sold-photos {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
}
