/* =========================================================
   Ford Farm Design Tokens
   Warm farmhouse palette: cream backdrop, barn red accents,
   barn-wood browns, and a green used sparingly for
   hills/icons. Headings in Lilita One, body in Inter.
   ========================================================= */

:root {
  /* Color */
  --color-primary: #B54A31;
  --color-primary-hover: #A1402A;
  --color-primary-light: #D9785E;
  --color-cream: #F7F4ED;
  --color-text: #2A2623;
  --color-wood-1: #6E4B36;
  --color-wood-2: #8A654C;
  --color-green: #88A66A;
  --color-green-light: #DCE8D2;
  --color-charcoal: #2C2A29;
  --color-white: #FFFFFF;

  /* Type */
  --font-display: "Lilita One", cursive;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-credit: "Caveat", cursive; /* reserved for the momNpop.us credit only */

  /* Layout */
  --max-width: 1160px;
  --radius-sm: 10px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--color-primary);
}

/* Reusable hand-drawn underline squiggle, the green accent,
   used sparingly, under key headings. */
.hand-underline {
  position: relative;
  display: inline-block;
}
.hand-underline::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.14em;
  height: 0.26em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 40 4, 70 18, 110 10 S 180 2, 220 12 S 270 18, 298 8' fill='none' stroke='%2388A66A' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--color-cream);
  color: var(--color-text);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--color-wood-2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--color-primary);
}
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-call:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* =========================================================
   Hero: cream background, text left, mascot right
   ========================================================= */
.hero {
  position: relative;
  background: var(--color-cream);
  overflow: hidden;
  padding: 64px 0 48px;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0,140 C 200,80 400,170 620,120 C 860,65 1080,150 1300,100 L1440,90 L1440,220 L0,220 Z' fill='%2388A66A' fill-opacity='0.14'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
}
.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-green-light);
  border: 1px solid var(--color-green);
  color: #4c6b3a;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.04;
  color: var(--color-primary);
  margin: 0 0 14px;
}
.hero-copy .tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--color-wood-1);
  margin: 0 0 20px;
}
.hero-copy p.lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--color-text);
  opacity: 0.85;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.hero-facts .fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1.5px solid var(--color-wood-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-facts .fact i {
  color: var(--color-primary);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(181,74,49,0.28);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(181,74,49,0.34);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-wood-2);
}
.btn-outline:hover {
  border-color: var(--color-wood-1);
  background: var(--color-white);
  transform: translateY(-2px);
}
.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-figure::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  max-width: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--color-green-light) 0%, rgba(220,232,210,0) 72%);
  z-index: 0;
}
.hero-figure img {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 26px rgba(42,38,35,0.18));
}

/* =========================================================
   Colored feature strip
   ========================================================= */
.feature-strip {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px 0;
}
.feature-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
  text-align: center;
}
.feature-strip .strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-strip .strip-item i {
  font-size: 1.15rem;
  color: var(--color-primary-light);
  background: rgba(255,255,255,0.14);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-strip .strip-item span {
  font-weight: 500;
  font-size: 0.94rem;
}
.feature-strip .strip-item span strong {
  font-weight: 700;
}

/* =========================================================
   Section headings
   ========================================================= */
.board-section {
  padding: 76px 0;
}
.board-section.on-alt {
  background: var(--color-white);
}
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-heading .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--color-text);
  margin: 0 0 10px;
}
.section-heading p {
  color: var(--color-text);
  opacity: 0.72;
  font-size: 1.02rem;
  margin: 0;
}

/* =========================================================
   Products
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--color-cream);
  border: 2px solid var(--color-wood-2);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  color: var(--color-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(110,75,54,0.14);
}
.product-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: var(--color-green);
}
.product-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 10px;
}
.product-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  opacity: 0.82;
}
.product-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.94rem;
  line-height: 1.8;
  opacity: 0.82;
}
.product-card p a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-card p a:hover {
  color: var(--color-primary-hover);
}

/* =========================================================
   Farm photo gallery
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  overflow: hidden;
}
.gallery-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Find the farm: contact + map
   ========================================================= */
.find-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: stretch;
}
.contact-card {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-row i {
  color: var(--color-white);
  background: rgba(255,255,255,0.16);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-row a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}
.contact-row a:hover {
  text-decoration: underline;
}
.contact-row .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 3px;
}
.contact-note {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  border-top: 1px dashed rgba(255,255,255,0.3);
  padding-top: 18px;
  margin: auto 0 0;
}

.map-frame {
  border: 3px solid var(--color-wood-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247,244,237,0.14);
}
.footer-mascot {
  width: 200px;
  height: auto;
  margin-bottom: 14px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-primary-light);
  margin: 0 0 10px;
}
.footer-brand span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(247,244,237,0.6);
  font-size: 0.88rem;
  margin-top: 4px;
}
.footer-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(247,244,237,0.72);
}
.footer-col h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247,244,237,0.5);
  margin: 0 0 14px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.94rem;
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--color-primary-light);
}
.footer-col a i {
  color: var(--color-green);
  width: 16px;
  text-align: center;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 26px;
  font-size: 0.85rem;
  color: rgba(247,244,237,0.55);
}
.powered-by {
  font-family: var(--font-credit);
  font-size: 1.2rem;
}
.powered-by a {
  color: rgb(22, 163, 74);
  text-decoration: none;
  font-weight: 600;
}
.powered-by a:hover {
  text-decoration: underline;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy p.lede {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-facts,
  .hero-ctas {
    justify-content: center;
  }
  .hero-figure {
    order: -1;
  }
  .hero-figure img {
    max-width: 320px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .find-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-call span {
    display: none;
  }
  .feature-strip {
    padding: 12px 0;
  }
  .feature-strip .strip-item span {
    font-size: 0.86rem;
  }
  .product-card,
  .contact-card {
    padding: 24px 20px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .header-call,
  .product-card {
    transition: none;
  }
}
