/* ============================================================
   GURRAM FARMHOUSE — Public Site Styles
   A warm, editorial, cinematic luxury aesthetic.
   ============================================================ */

:root {
  /* Palette */
  --ivory: #f6f2ea;
  --off-white: #fbf9f5;
  --charcoal: #232320;
  --charcoal-soft: #34332e;
  --green: #4a5d43;
  --green-deep: #333f2e;
  --brown: #8a6a4f;
  --stone: #cfc7b8;
  --stone-light: #e9e3d6;
  --line: rgba(35, 35, 32, 0.12);
  --line-on-dark: rgba(246, 242, 234, 0.18);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(64px, 10vw, 140px) 0; }
.section--dark { background: var(--charcoal); color: var(--off-white); }
.section--tint { background: var(--stone-light); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 12px; }
.section-head p { color: var(--charcoal-soft); font-size: 1.05rem; margin-top: 16px; }
.section--dark .section-head p { color: var(--stone); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--off-white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--off-white); border-color: var(--charcoal); }
.section--dark .btn-outline:hover { background: var(--off-white); color: var(--charcoal); border-color: var(--off-white); }
.btn-whatsapp { background: #3a5a40; color: #fff; }
.btn-whatsapp:hover { background: #2e4833; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--off-white);
  transition: color 0.4s var(--ease);
}
.is-scrolled .brand { color: var(--charcoal); }

.nav-desktop { display: none; align-items: center; gap: 40px; }
.nav-desktop a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: color 0.4s var(--ease), opacity 0.2s ease;
  opacity: 0.9;
}
.nav-desktop a:hover { opacity: 1; }
.is-scrolled .nav-desktop a { color: var(--charcoal); }
.nav-desktop .btn { padding: 12px 24px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  padding: 8px 0;
  z-index: 110;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--off-white); transition: all 0.35s var(--ease); }
.is-scrolled .nav-toggle span { background: var(--charcoal); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-open .nav-toggle span { background: var(--charcoal) !important; }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 0 40px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.nav-open .nav-mobile { transform: translateY(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.9rem; color: var(--charcoal); }
.nav-mobile .btn { margin-top: 12px; align-self: flex-start; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--off-white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(74,93,67,0.55), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(138,106,79,0.45), transparent 55%),
    linear-gradient(160deg, #2b2a25 0%, #1d1d1a 60%, #14140f 100%);
}
.hero-media-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 90px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,16,0.15) 0%, rgba(20,20,16,0.15) 40%, rgba(15,15,12,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(56px, 9vw, 96px);
}
.hero-eyebrow { color: var(--stone-light); opacity: 0.9; }
.hero h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 14px 0 18px;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); font-family: var(--serif); font-style: italic; color: var(--stone-light); max-width: 34ch; }
.hero-location { margin-top: 10px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-actions .btn-outline { border-color: rgba(251,249,245,0.5); color: var(--off-white); }
.hero-actions .btn-outline:hover { background: var(--off-white); color: var(--charcoal); }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 46px; background: rgba(251,249,245,0.4);
  overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--off-white); animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }

/* ------------------------------------------------------------
   Story
   ------------------------------------------------------------ */
.story { text-align: center; }
.story .container { max-width: 780px; }
.story h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-style: italic; }
.story p { margin-top: 24px; font-size: 1.1rem; color: var(--charcoal-soft); }

/* ------------------------------------------------------------
   Estate feature rows
   ------------------------------------------------------------ */
.feature-row {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 96px);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--stone-light);
}
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--stone-light), var(--stone));
  color: var(--brown); font-family: var(--serif); font-style: italic; font-size: 1rem; text-align: center; padding: 20px;
}
.feature-text .eyebrow { display: block; margin-bottom: 10px; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.feature-text p { margin-top: 14px; color: var(--charcoal-soft); }

@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1.1fr 0.9fr; }
  .feature-row.is-reverse .feature-media { order: 2; }
  .feature-row.is-reverse .feature-text { order: 1; }
}

/* ------------------------------------------------------------
   Experience (time-of-day) cards
   ------------------------------------------------------------ */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
}
@media (min-width: 700px) { .experience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .experience-grid { grid-template-columns: repeat(4, 1fr); } }
.experience-card {
  background: var(--charcoal);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 32px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.experience-card .num { position: absolute; top: 24px; left: 24px; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--stone); opacity: 0.7; }
.experience-card h3 { font-size: 1.4rem; color: var(--off-white); text-transform: uppercase; letter-spacing: 0.05em; }
.experience-card p { margin-top: 10px; color: var(--stone); font-size: 0.95rem; }

/* ------------------------------------------------------------
   Construction Journey timeline
   ------------------------------------------------------------ */
.journey-stages {
  display: flex; flex-wrap: wrap; gap: 10px 0;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.journey-stage {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--charcoal-soft);
}
.journey-stage.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.journey-arrow { padding: 10px 4px; color: var(--stone); }

.journey-timeline { position: relative; padding-left: 32px; }
.journey-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.journey-item { position: relative; padding-bottom: clamp(36px, 5vw, 56px); }
.journey-item:last-child { padding-bottom: 0; }
.journey-item::before {
  content: ""; position: absolute; left: -32px; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--green); border: 2px solid var(--off-white); box-shadow: 0 0 0 1px var(--green);
}
.journey-date { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown); }
.journey-item h4 { font-size: 1.3rem; margin-top: 8px; }
.journey-item p { margin-top: 8px; color: var(--charcoal-soft); }
.journey-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.journey-media img, .journey-media video { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); cursor: pointer; }
.journey-empty { color: var(--charcoal-soft); font-style: italic; font-family: var(--serif); }

/* ------------------------------------------------------------
   Property info grid
   ------------------------------------------------------------ */
.property-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .property-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .property-grid { grid-template-columns: repeat(4, 1fr); } }
.property-item { background: var(--off-white); padding: 28px 20px; text-align: center; }
.property-item .label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-soft); }
.property-item .value { font-family: var(--serif); font-size: 1.25rem; margin-top: 10px; color: var(--charcoal); }
.property-item .value.is-tbd { font-style: italic; color: var(--brown); font-size: 1.05rem; }

/* ------------------------------------------------------------
   Gallery (masonry via CSS columns)
   ------------------------------------------------------------ */
.gallery-columns { column-count: 1; column-gap: 14px; }
@media (min-width: 640px) { .gallery-columns { column-count: 2; } }
@media (min-width: 1000px) { .gallery-columns { column-count: 3; } }
.gallery-item {
  break-inside: avoid; margin-bottom: 14px; position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer; background: var(--stone-light);
}
.gallery-item img, .gallery-item video { width: 100%; display: block; transition: transform 0.6s var(--ease); }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.035); }
.gallery-item .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,16,0.18);
}
.gallery-item .play-badge svg { width: 46px; height: 46px; }
.gallery-empty { text-align: center; padding: 60px 20px; color: var(--charcoal-soft); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,15,12,0.96); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: var(--off-white); opacity: 0.75;
  font-size: 1.6rem; padding: 14px; transition: opacity 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------
   Location
   ------------------------------------------------------------ */
.location-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .location-grid { grid-template-columns: 1fr 1fr; } }
.location-address { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; }
.location-map-card {
  aspect-ratio: 16/11; border-radius: var(--radius); background: var(--stone-light);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------
   Enquiry form
   ------------------------------------------------------------ */
.enquiry-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .enquiry-grid { grid-template-columns: 0.9fr 1.1fr; } }
.enquiry-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 560px) { .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-soft); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--off-white); color: var(--charcoal);
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { font-size: 0.9rem; padding: 12px 0; }
.form-msg.is-success { color: var(--green-deep); }
.form-msg.is-error { color: #9a3b3b; }

/* ------------------------------------------------------------
   Instagram
   ------------------------------------------------------------ */
.instagram-section { text-align: center; }
.instagram-handle { font-family: var(--serif); font-size: 1.6rem; margin-top: 10px; display: inline-block; }

/* ------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------ */
.final-cta {
  position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--off-white); overflow: hidden;
}
.final-cta .hero-media-placeholder { filter: brightness(0.75); }
.final-cta::before { content: ""; position: absolute; inset: 0; background: rgba(15,15,12,0.55); z-index: 1; }
.final-cta-content { position: relative; z-index: 2; padding: 40px var(--gutter); }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.03em; }
.final-cta p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: 14px; color: var(--stone-light); }
.final-cta .hero-actions { justify-content: center; margin-top: 32px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer { background: var(--charcoal); color: var(--stone); padding: 56px 0 calc(56px + var(--safe-bottom, 0px)); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--off-white); letter-spacing: 0.06em; }
.footer-col h5 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--off-white); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 8px; color: var(--stone); }
.footer-col a:hover { color: var(--off-white); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-on-dark); font-size: 0.78rem; color: rgba(207,199,184,0.6); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ------------------------------------------------------------
   Mobile sticky action bar
   ------------------------------------------------------------ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--off-white); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px 10px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal);
}
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar a.is-whatsapp { color: var(--green-deep); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
body.has-mobile-bar { padding-bottom: 62px; }

/* ------------------------------------------------------------
   Reveal-on-scroll animation
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Coming soon vs open badges */
.mode-badge {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid rgba(251,249,245,0.4); border-radius: 999px; color: var(--off-white); margin-bottom: 18px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: var(--off-white);
  padding: 12px 20px; z-index: 300;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
