/* ============================================================
   Highland Orchard — shared stylesheet  (v2: editorial, unboxed)
   Palette: deep orchard green, warm cream, slate, apple red
   Type: Fraunces (display) + Inter (text)
   ============================================================ */

:root {
  --green-900: #14351F;
  --green-700: #1E4A2B;
  --green-600: #2A5E38;
  --green-100: #E4EEE4;
  --cream: #FAF7F1;
  --cream-2: #F1EBDF;
  --slate: #2A322C;
  --slate-soft: #5A665C;
  --red: #B5382E;
  --gold: #C9A227;
  --line: #E4DECF;
  --radius: 18px;
  --maxw: 1120px;
  --display: 'Fraunces', Georgia, serif;
  --text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--text);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--red); }

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

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
header.scrolled { box-shadow: 0 6px 24px rgba(20, 53, 31, 0.10); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; letter-spacing: 0.12em; font-size: 15px;
  color: var(--green-900);
}
.brand:hover { color: var(--green-900); }
.brand-logo { height: 48px; width: auto; flex-shrink: 0; }

nav.menu { display: flex; gap: 30px; align-items: center; }
nav.menu a {
  font-size: 14.5px; font-weight: 600; color: var(--slate);
  padding: 6px 2px; position: relative;
}
nav.menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red); transition: right 0.25s ease;
}
nav.menu a:hover::after, nav.menu a.active::after { right: 0; }
nav.menu a:hover { color: var(--green-700); }
nav.menu a.active { color: var(--green-700); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--green-900); }

/* ---------- Typography ---------- */
.kicker {
  color: var(--red); font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 14px;
}
h1, h2, .display { font-family: var(--display); font-weight: 600; color: var(--green-900); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin-bottom: 20px; }
h3 { font-size: 21px; font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
p + p { margin-top: 15px; }
.muted { color: var(--slate-soft); }
.measure { max-width: 680px; }
.lead { font-size: 20px; line-height: 1.65; color: var(--slate-soft); }

section { padding: 84px 0; }
section.tight { padding: 52px 0; }
section.alt { background: var(--cream-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,53,31,0.18); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #9C2F26; color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }

/* ---------- Page heroes (interior): full-bleed photo bands ---------- */
.page-hero {
  position: relative; color: #fff;
  padding: 130px 0 110px;
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,26,16,0.62), rgba(12,26,16,0.44) 55%, rgba(250,247,241,0) 130%),
              linear-gradient(0deg, rgba(12,26,16,0.35), rgba(12,26,16,0.35));
}
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero .kicker { color: #E8C9C5; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.08; color: #fff; max-width: 780px; }
.page-hero p.lede { margin-top: 18px; max-width: 640px; color: #E4ECE4; font-size: 19px; }
.hero-story   { background-image: url('img/survey-team.jpg'); }
.hero-orchard { background-image: url('img/terraces.jpg'); }
.hero-journey { background-image: url('img/earthworks-machines.jpg'); }
.hero-contact { background-image: url('img/green-hillside.jpg'); }

/* ---------- Full-bleed photo band with fixed feel ---------- */
.band {
  position: relative; color: #fff;
  padding: 130px 0;
  background-size: cover; background-position: center;
}
@media (min-width: 900px) { .band { background-attachment: fixed; } }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(12, 26, 16, 0.55); }
.band > .wrap { position: relative; z-index: 2; }
.band h2 { color: #fff; }
.band p { color: #E4ECE4; }

/* ---------- Stats strip (unboxed, editorial) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat { padding: 8px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600; color: var(--green-900); line-height: 1.1;
}
.stat .num em { font-style: normal; color: var(--red); }
.stat .lbl { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--slate-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.stats-dark .stat { border-color: rgba(255,255,255,0.25); }
.stats-dark .stat .num { color: #fff; }
.stats-dark .stat .num em { color: #F0B9B3; }
.stats-dark .stat .lbl { color: #B9CBB9; }

/* ---------- Cards → soft panels (no hard borders) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 2px 10px rgba(20,53,31,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,53,31,0.13); }
.card h3 { margin-bottom: 0; }
.card .go { margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--red); }

/* ---------- Timeline (vertical) ---------- */
.timeline { list-style: none; margin-top: 26px; }
.timeline li { position: relative; padding: 0 0 32px 36px; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--slate-soft);
}
.timeline li.done::before { background: var(--green-700); border-color: var(--green-700); }
.timeline li.now::before { background: var(--red); border-color: var(--red); }
.timeline .t-title { font-weight: 700; color: var(--green-900); }
.timeline .t-note { font-size: 15px; color: var(--slate-soft); margin-top: 2px; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 2px;
}
.tag.done { background: var(--green-100); color: var(--green-700); }
.tag.now { background: #F6DEDC; color: var(--red); }
.tag.next { background: var(--cream-2); color: var(--slate-soft); }

/* ---------- Horizontal journey strip (home) ---------- */
.tl-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 380px);
  gap: 22px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.tl-strip::-webkit-scrollbar { height: 8px; }
.tl-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.tl-card {
  scroll-snap-align: start; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 10px rgba(20,53,31,0.06);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tl-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,53,31,0.14); }
.tl-card img { height: 190px; object-fit: cover; width: 100%; }
.tl-card .pad { padding: 20px 22px 24px; }
.tl-card .date { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.14em; text-transform: uppercase; }
.tl-card h3 { font-size: 18px; margin-top: 6px; }
.tl-card p { font-size: 15px; color: var(--slate-soft); margin-top: 6px; }
.tl-hint { font-size: 13px; color: var(--slate-soft); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Compare slider (then / now) ---------- */
.compare {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 50px rgba(20,53,31,0.16);
  user-select: none; -webkit-user-select: none;
}
.compare .pane { display: block; width: 100%; }
.compare .pane-new { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare .pane svg { display: block; width: 100%; height: auto; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); pointer-events: none;
  transform: translateX(-50%);
}
.cmp-handle::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff; color: var(--green-900); font-size: 13px; font-weight: 700;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.compare input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.cmp-label {
  position: absolute; top: 16px; z-index: 3; pointer-events: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(12,26,16,0.72); color: #fff; padding: 6px 12px; border-radius: 999px;
}
.cmp-label.left { left: 16px; }
.cmp-label.right { right: 16px; }

/* ---------- Varieties ---------- */
.varieties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vcard {
  position: relative; border-radius: var(--radius); padding: 30px 26px 26px;
  color: #fff; overflow: hidden; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vcard:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 18px 40px rgba(20,53,31,0.2); }
.vcard .apple { position: absolute; top: 18px; right: 18px; width: 54px; height: 54px; opacity: 0.9; }
.vcard h3 { color: #fff; font-family: var(--display); font-size: 26px; font-weight: 600; }
.vcard p { font-size: 14.5px; color: rgba(255,255,255,0.88); margin-top: 6px; }
.v-gala { background: linear-gradient(150deg, #A93226 0%, #7B1F16 100%); }
.v-fuji { background: linear-gradient(150deg, #C0503C 0%, #8E3B2B 60%, #6E2C1F 100%); }
.v-jero { background: linear-gradient(150deg, #6E1F2B 0%, #45121B 100%); }

/* ---------- Real photos ---------- */
figure.shot { margin: 0; }
figure.shot img { width: 100%; display: block; border-radius: 14px; }
figure.shot figcaption { font-size: 13px; color: var(--slate-soft); margin-top: 9px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr; } }

.photo-slot {
  margin-top: 16px; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 12px, #EAE2D1 12px, #EAE2D1 24px);
  min-height: 170px; display: flex; align-items: center; justify-content: center;
  color: var(--slate-soft); font-size: 14px; font-weight: 600; text-align: center; padding: 18px;
}

/* ---------- Journey entries ---------- */
.entry {
  background: #fff; border-radius: var(--radius);
  padding: 34px 32px; margin-bottom: 26px;
  box-shadow: 0 2px 10px rgba(20,53,31,0.05);
}
.entry .date { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.14em; text-transform: uppercase; }
.entry h3 { margin-top: 6px; font-size: 24px; font-family: var(--display); font-weight: 600; }
.entry p { margin-top: 10px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(20,53,31,0.05);
}
.contact-card .big { font-size: 19px; font-weight: 700; color: var(--green-900); word-break: break-word; }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 28px; box-shadow: 0 10px 34px rgba(20,53,31,0.12); }
.map-frame iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Curved section divider ---------- */
.curve { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ---------- Footer ---------- */
footer { background: var(--green-900); color: #C9D8C9; padding: 56px 0 36px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
footer a { color: #C9D8C9; display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
.foot-brand { font-weight: 800; letter-spacing: 0.12em; color: #fff; margin-bottom: 10px; }
.foot-logo { height: 92px; width: auto; margin-bottom: 14px; background: var(--cream); padding: 10px 12px; border-radius: 12px; }
.copyline { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 36px; padding-top: 18px; font-size: 13px; color: #8FA78F; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 60px 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .stat { padding: 4px 20px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .cards, .varieties { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 90px 0 76px; }
  .band { padding: 90px 0; }

  .nav-toggle { display: block; }
  nav.menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); box-shadow: 0 14px 30px rgba(20,53,31,0.12);
    flex-direction: column; gap: 0; padding: 10px 24px 18px;
  }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 13px 0; font-size: 16px; }
}
