/* ═══════════════════════════════════════
   INDEX.CSS - Home page
   Loaded after main.css. The homepage has its own section designs (picked
   from section-options/homepage-redesign), so every class here starts with
   "home-" and nothing in main.css's shared sections is changed.
   Order on the page: hero, trust strip (main.css), why, reviews, Ian and
   Clair, what we host, how it works, pricing, FAQ, schedule a tour.
═══════════════════════════════════════ */

/* ── SHARED HOMEPAGE PIECES ── */
.home-head {
  max-width: 760px;
  margin: 0 auto 3.25rem;
  text-align: center;
}
.home-head h2 { font-weight: 400; }
.home-head p { margin-top: 1rem; font-size: 1.15rem; text-align: center; }
.home-sprig { width: 120px; height: auto; margin: 0 auto 1rem; }
/* Italic gold words inside a title */
.home-guide h2 em,
.home-host h2 em,
.home-tour h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ── HERO ──
   The hero's look is the shared .photo-hero in main.css. The homepage's is
   taller and rotates five photos. */
.photo-hero { height: clamp(560px, 86vh, 820px); }

/* Five photos stacked on top of each other. Each one fades in, stays for
   5 seconds, then fades out as the next fades in, and the loop restarts
   after 25 seconds. No JavaScript: it is all the animation below.
   To add or remove a photo, change the 25s to (number of photos x 5s), the
   percentages in @keyframes to match, and give each photo a delay of
   (its place in line x 5s) minus 1s. */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 25s ease-in-out infinite;
}
/* The first photo starts already showing, so the page never opens blank. */
.slide-gate     { opacity: 1; animation-delay: -1s; object-position: center 18%; }
.slide-ceremony { animation-delay: 4s;  object-position: center 62%; }
.slide-field    { animation-delay: 9s;  object-position: center 32%; }
.slide-dance    { animation-delay: 14s; object-position: 60% 22%; }
.slide-drive    { animation-delay: 19s; object-position: center 70%; }

/* 1 second fade in, 4 seconds showing, 1 second fade out (overlapping the
   next photo's fade in). 4% of 25s = 1s. */
@keyframes hero-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Visitors who turn off motion in their device settings see the first photo only. */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
}

/* ── WHY COUPLES CHOOSE THE FARM ──
   Four arch-topped photos in thin gold frames, every other one set lower. */
.home-why { padding: 6rem 0; }
.home-arches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.home-arches article:nth-child(even) { margin-top: 3rem; }
.home-arch {
  aspect-ratio: 3 / 4;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}
.home-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.home-arches h3 { margin: 1.4rem 0 0.6rem; font-weight: 400; }
.home-arches p { font-size: 1rem; color: var(--muted); text-align: center; }

/* ── REVIEWS ──
   Stationery-style cards with a double gold border on dotted cream paper. */
.home-reviews {
  padding: 5.5rem 0;
  background: var(--cream) radial-gradient(rgba(184, 146, 74, 0.08) 1px, transparent 1px) 0 0 / 6px 6px;
}
.home-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.home-card {
  margin: 0;
  padding: 2rem;
  text-align: center;
  background: var(--cream-light);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -8px;
  box-shadow: 0 18px 40px -24px rgba(0, 51, 42, 0.35);
}
.home-card p { font: italic 400 1.08rem/1.75 var(--font-head); text-align: center; }
.home-card footer {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ── MEET IAN AND CLAIR ──
   The photo fills the section, with a dark green card on the right. */
.home-guide { position: relative; overflow: hidden; padding: 6rem 0; background: var(--green-dark); }
.home-guide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-guide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 25, 20, 0.1), rgba(0, 25, 20, 0.75) 60%);
}
.home-guide .container { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.home-guide-card {
  max-width: 540px;
  padding: 3rem;
  color: var(--cream);
  background: rgba(0, 40, 30, 0.78);
  border: 1px solid var(--gold);
  backdrop-filter: blur(6px);
}
.home-guide-card .eyebrow { color: var(--gold-light); }
.home-guide-card h2 { margin-bottom: 1.25rem; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--cream-light); }
.home-guide-card h2 em { color: var(--gold-light); }
.home-guide-card .btn { margin-top: 1.25rem; }

/* ── WHAT WE HOST ──
   Three tall photo panels on dark green, each with a thin gold inner frame. */
.home-host { padding: 6rem 0; background: var(--green-dark); border-top: 1px solid var(--gold); }
.home-host h2 { color: var(--cream-light); }
.home-host h2 em { color: var(--gold-light); }
.home-host-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home-panel { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; text-decoration: none; }
.home-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.home-panel:hover img,
.home-panel:focus-visible img { transform: scale(1.06); }
.home-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 25, 20, 0.85), transparent 55%);
}
.home-panel::after { content: ""; position: absolute; inset: 14px; z-index: 1; border: 1px solid rgba(226, 195, 135, 0.8); }
.home-panel-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.home-panel-body h3 { margin-bottom: 0.4rem; font-weight: 400; font-size: 1.7rem; letter-spacing: 0; text-transform: none; color: var(--cream-light); }

/* ── HOW IT WORKS ──
   Green numbered circles along a dashed gold path; steps 2 and 4 sit lower. */
.home-process { padding: 6rem 0; }
.home-process h2 { font-weight: 700; }
.home-path { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.home-path::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 60px;
  border-top: 3px dashed var(--gold);
  border-radius: 50%;
}
.home-path li { position: relative; text-align: center; }
.home-path li:nth-child(even) { margin-top: 3rem; }
.home-path-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font: 700 1.6rem var(--font-head);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--gold);
}
.home-path h3 { margin-bottom: 0.4rem; }
.home-path p { font-size: 1rem; color: var(--muted); text-align: center; }

/* ── PRICING ──
   An arch-topped cream card over a darkened photo of the deck. */
.home-pricing { position: relative; overflow: hidden; padding: 6rem 0; background: var(--green-dark); }
.home-pricing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-pricing::after { content: ""; position: absolute; inset: 0; background: rgba(0, 40, 30, 0.55); }
.home-pricing .container { position: relative; z-index: 1; }
.home-price-card {
  max-width: 660px;
  margin: 0 auto;
  padding: 6rem 3rem 3rem;
  text-align: center;
  background: var(--cream-light);
  border-radius: 999px 999px 8px 8px;
  outline: 1px solid var(--gold);
  outline-offset: -12px;
}
.home-price-card h2 { font-weight: 400; }
.home-price-card p { text-align: center; }
.home-prices { display: grid; grid-template-columns: 1fr 1fr; margin: 2rem 0 1.5rem; }
.home-prices div + div { border-left: 1px solid var(--gold); }
.home-prices strong { display: block; font: 400 2.6rem/1.1 var(--font-head); color: var(--green); }
.home-prices span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.home-price-note { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }
.home-price-card .btn-group { justify-content: center; margin-top: 1.75rem; }

/* ── FAQ ──
   Soft rounded cream rows with a plus that turns into a dash. */
.home-faq { padding: 6rem 0; }
.home-faq-list { display: grid; gap: 0.75rem; max-width: 820px; margin: 0 auto; }
.home-faq-list details { padding: 0 1.5rem; background: var(--cream-light); border-radius: 20px; }
.home-faq-list summary {
  list-style: none;
  position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--green);
}
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font: 400 1.6rem/1 var(--font-head);
  color: var(--gold-dark);
}
.home-faq-list details[open] summary::after { content: "\2013"; }
.home-faq-list details p { padding: 0 0 1.25rem; }

/* ── SCHEDULE A TOUR ──
   The photo is wider than the section and shifted left so the couple sits
   beside the framed form card. */
.home-tour { position: relative; overflow: hidden; padding: 6rem 0; background: var(--green-dark); }
.home-tour-bg { position: absolute; top: 0; left: -35%; width: 135%; max-width: none; height: 100%; object-fit: cover; }
.home-tour::after { content: ""; position: absolute; inset: 0; background: rgba(0, 25, 20, 0.45); }
.home-tour .container { position: relative; z-index: 1; }
.home-tour-card {
  max-width: 640px;
  margin-left: auto;
  padding: 2.75rem;
  color: var(--text);
  background: var(--cream-light);
  outline: 1px solid var(--gold);
  outline-offset: -12px;
}
.home-tour-card h2 { margin-bottom: 0.75rem; font-weight: 400; }
.home-tour-card h2 em { color: var(--gold-dark); }
.home-tour-card .lead { margin-bottom: 1.5rem; font-size: 1.1rem; }
/* The arched photo and script line are for phones only (see below). */
.home-tour-arch,
.home-tour-script { display: none; }

/* ══════════════════════
   TABLET (≤ 1000px)
══════════════════════ */
@media (max-width: 1000px) {
  .home-arches { grid-template-columns: 1fr 1fr; }
  .home-arches article:nth-child(even) { margin-top: 0; }
  .home-notes,
  .home-host-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .home-guide::after { background: rgba(0, 25, 20, 0.55); }
  .home-guide .container { justify-content: center; }
  .home-path { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .home-path::before { display: none; }
  .home-path li:nth-child(even) { margin-top: 0; }
}

/* ══════════════════════
   MOBILE (≤ 768px)
══════════════════════ */
@media (max-width: 768px) {
  .photo-hero { height: 640px; }
  .home-head p,
  .home-arches p,
  .home-card p,
  .home-path p,
  .home-price-card p { text-align: center; }
  .home-why,
  .home-guide,
  .home-host,
  .home-process,
  .home-pricing,
  .home-faq,
  .home-tour { padding: 4rem 0; }
  .home-reviews { padding: 3.75rem 0; }
  .home-arches { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin-inline: auto; }
  .home-guide-card { padding: 2rem 1.5rem; }
  .home-path { grid-template-columns: minmax(0, 1fr); }
  .home-price-card { padding: 4.5rem 1.5rem 2rem; }
  .home-prices strong { font-size: 2rem; }
  .home-faq-list details { padding: 0 1.1rem; }

  /* Phones: the tour section is cream, with an arched photo above the form
     and a script line in place of the eyebrow. The wide photo is hidden. */
  .home-tour { background: var(--cream); }
  .home-tour::after,
  .home-tour-bg,
  .home-tour-card .eyebrow { display: none; }
  .home-tour-arch {
    display: block;
    max-width: 420px;
    margin: 0 auto 2.5rem;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 0 0;
    overflow: hidden;
  }
  .home-tour-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 44% center; }
  .home-tour-card { max-width: none; padding: 0; background: none; outline: 0; }
  .home-tour-script {
    display: block;
    font-family: var(--font-script);
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--gold-dark);
  }
  .home-tour-card h2 { margin-top: 0.4rem; }
}
