/* BV Farms — mockup styles
   Brand: bright green + black, premium but plain-spoken */

:root {
  --green: #2ECC40;
  --green-dark: #22a832;
  --green-soft: #e8f9ea;
  --black: #111111;
  --ink: #1a1a1a;
  --muted: #555555;
  --border: #e2e2e2;
  --bg: #fafafa;
  --white: #ffffff;
  --max: 1080px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

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

/* —— Layout —— */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--green);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  overflow: visible;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  display: block;
  width: auto;
  height: 84px;
  max-width: none;
  aspect-ratio: 236 / 204;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 8px;
  padding: 3px 4px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  display: block;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--green);
  color: var(--black);
}

/* —— Announcement —— */
.announce {
  background: var(--green);
  color: var(--black);
  text-align: center;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.announce a {
  color: var(--black);
  font-weight: 800;
}

/* —— Hero —— */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 3.25rem;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--green);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.eyebrow {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  max-width: 18ch;
}

.hero .subhead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: #e8e8e8;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.3;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* —— Sections —— */
.section {
  padding: 2.75rem 0;
}

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

.section-green {
  background: var(--green-soft);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--black);
}

.section .lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 55ch;
}

/* —— Cards / pillars —— */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.card-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.card-dark h3 {
  color: var(--green);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
}

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

.card-dark p {
  color: #d0d0d0;
}

.card-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* —— Lists —— */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--green);
  border-radius: 2px;
}

/* —— Price table —— */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td strong {
  color: var(--black);
  font-size: 1.05rem;
}

.price-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* —— CTA band —— */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: #ccc;
}

.cta-band a:not(.btn) {
  color: var(--green);
  font-weight: 700;
}

/* —— Contact form (mock) —— */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--black);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bbb;
}

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

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

.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.contact-block p {
  margin: 0 0 0.5rem;
}

.contact-block a {
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
}

.contact-block a:hover {
  color: var(--green-dark);
}

/* —— Footer —— */
.site-footer {
  background: var(--black);
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
  border-top: 3px solid var(--green);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--green);
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer p,
.site-footer li {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* —— Page title (inner pages) —— */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 2.25rem 0 2.5rem;
  position: relative;
}

.page-hero::after {
  content: "";
  display: block;
  height: 5px;
  background: var(--green);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
}

.page-hero .subhead {
  margin: 0;
  color: #ddd;
  max-width: 50ch;
  font-size: 1.05rem;
}

/* —— Misc —— */
.tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--black);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--green);
}

.stack > * + * {
  margin-top: 1rem;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

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

@media (max-width: 640px) {
  .brand-mark {
    height: 72px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.75rem;
    font-size: 0.92rem;
  }
}


.specialty {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
}
.page-hero .specialty {
  color: #fff;
}

/* —— Farm photo utilities —— */
.hero-photo,
.page-hero-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-photo::before,
.page-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 0;
  pointer-events: none;
}

.hero-photo > .wrap,
.page-hero-photo > .wrap {
  position: relative;
  z-index: 1;
}

.section-photo-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.section-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 0;
  pointer-events: none;
}

.section-photo-bg > .wrap {
  position: relative;
  z-index: 1;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-strip.photo-strip-2 {
  grid-template-columns: repeat(2, 1fr);
}

.photo-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--border);
}

.photo-card figcaption,
.photo-card .photo-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.photo-feature {
  margin: 0;
}

.photo-feature img {
  width: 100%;
  max-height: 360px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 720px) {
  .photo-strip,
  .photo-strip.photo-strip-2 {
    grid-template-columns: 1fr;
  }

  .photo-card img {
    height: 200px;
  }

  .hero-photo,
  .page-hero-photo {
    min-height: 360px;
  }
}

/* Home hero: sunrise over the barn and round pen */
.hero-sunrise {
  background-position: center 45%;
}

.hero-sunrise::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.18) 100%);
}

@media (max-width: 720px) {
  .hero-sunrise {
    background-position: 70% center;
  }

  .hero-sunrise::before {
    background: rgba(0, 0, 0, 0.56);
  }
}

/* Long email addresses: wrap inside their column instead of overflowing */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-grid > *,
.grid > *,
.card {
  min-width: 0;
}
