/* ============================================================
   HOMES BY GIFT — Design System
   Display: Big Shoulders Display (condensed, industrial — nods to
            grain-elevator/silo signage heritage)
   Body:    Manrope (clean, warm-neutral, modern)
   Palette: Dusk Indigo / Silo Rust / Sand / Ink / Warm White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --indigo:     #232A3B;
  --indigo-deep:#171C28;
  --rust:       #A8471F;
  --rust-light: #C25A2C;
  --sand:       #EDE5D3;
  --warm-white: #FBF8F2;
  --ink:        #1C1810;
  --ink-soft:   #4A4438;
  --line:       #DCD2BC;

  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a, a:link, a:visited { color: inherit; text-decoration: none; }

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

p { max-width: 62ch; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--rust);
  color: var(--warm-white);
}
.btn-primary:hover { background: var(--rust-light); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(0,0,0,0.05); }
.btn-outline.on-dark:hover { background: rgba(255,255,255,0.08); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 37px;
  height: 28px;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-word span { color: var(--rust); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--rust); }
.nav-cta {
  background: var(--indigo);
  color: var(--warm-white) !important;
  padding: 10px 20px;
  border-radius: 2px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--indigo-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 84px; left: 0; right: 0; bottom: 0;
    background: var(--warm-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 32px;
    gap: 28px;
    font-size: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,28,40,0.15) 0%, rgba(23,28,40,0.35) 55%, rgba(23,28,40,0.86) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 32px 64px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  color: var(--warm-white);
}
.hero-eyebrow {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 14px;
  max-width: 46ch;
}
.hero h1 {
  font-size: clamp(52px, 8vw, 108px);
  color: var(--warm-white);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; }
.hero-sub {
  font-size: 19px;
  max-width: 52ch;
  color: rgba(251,248,242,0.88);
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Vertical rule motif (silo columns) ---------- */
.silo-rule {
  display: flex;
  gap: 0;
  margin: 0;
}
.silo-rule > div {
  flex: 1;
  border-left: 1px solid var(--line);
  padding: 0 24px;
}
.silo-rule > div:first-child { border-left: none; padding-left: 0; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--indigo); color: var(--warm-white); }
.section-dark .line-muted { color: rgba(251,248,242,0.6); }
.section-sand { background: var(--sand); }

.eyebrow-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(34px, 4vw, 52px); max-width: 14ch; }
.section-head p { font-size: 17px; color: var(--ink-soft); }
.section-dark .section-head p { color: rgba(251,248,242,0.75); }

/* ---------- Featured property (home page) ---------- */
.feature-property {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.feature-photo-stack { position: relative; }
.feature-photo-main { border-radius: 2px; }
.feature-photo-tag {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--rust);
  color: var(--warm-white);
  padding: 16px 22px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  max-width: 220px;
  line-height: 1.15;
}
.feature-copy h3 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.feature-copy p { color: var(--ink-soft); font-size: 17px; margin-bottom: 22px; }
.feature-stats {
  display: flex;
  gap: 0;
  margin: 28px 0 32px;
}
.feature-stats > div { flex: 1; border-left: 1px solid var(--line); padding: 0 20px; }
.feature-stats > div:first-child { border-left: none; padding-left: 0; }
.feature-stat-num { font-family: var(--display); font-size: 34px; color: var(--rust); }
.feature-stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

@media (max-width: 900px) {
  .feature-property { grid-template-columns: 1fr; }
  .feature-photo-tag { left: 12px; bottom: -18px; }
}

/* ---------- Why cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.why-item {
  border-left: 1px solid rgba(251,248,242,0.2);
  padding: 4px 28px 4px 32px;
}
.why-item:first-child { border-left: none; padding-left: 4px; }
.why-num { font-family: var(--display); font-size: 44px; color: var(--rust-light); margin-bottom: 14px; }
.why-item h4 { font-size: 20px; color: var(--warm-white); margin-bottom: 10px; }
.why-item p { font-size: 15px; color: rgba(251,248,242,0.72); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .why-item { border-left: none; padding-left: 4px; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-grid button {
  padding: 0; border: none; background: none; cursor: pointer;
  overflow: hidden; border-radius: 1px;
  aspect-ratio: 4/3;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid button:hover img { transform: scale(1.045); }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(23,28,40,0.96);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; max-width: 88vw; border-radius: 2px; }
.lightbox-caption {
  color: var(--sand); font-size: 15px; margin-top: 18px; text-align: center;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none; border: none;
  color: var(--warm-white);
  font-family: var(--body); font-size: 16px; font-weight: 600;
  cursor: pointer; padding: 14px;
}
.lightbox-close { top: 18px; right: 24px; font-size: 28px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 34px; }

/* ---------- Property details ---------- */
.detail-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}
.detail-columns h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 20px; }
.detail-columns p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 18px; }
.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: flex; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-row span:first-child { color: var(--ink-soft); }
.spec-row span:last-child { font-weight: 600; text-align: right; }
.amen-list { list-style: none; padding: 0; margin: 24px 0 0; columns: 2; column-gap: 24px; }
.amen-list li { font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

@media (max-width: 900px) {
  .detail-columns { grid-template-columns: 1fr; gap: 40px; }
  .amen-list { columns: 1; }
}

/* ---------- Story / about ---------- */
.story-block { max-width: 780px; }
.story-block h2 { font-size: clamp(34px, 4.2vw, 56px); margin-bottom: 28px; }
.story-block .story-copy p { color: var(--ink-soft); font-size: 17.5px; }

/* Intro stat strip (used right under the homepage hero) */
.intro-strip {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 0;
  align-items: center;
}
.intro-strip p { font-size: 19px; color: var(--ink-soft); }
.intro-stat { border-left: 1px solid var(--line); padding: 0 28px; }
.intro-stat-num { font-family: var(--display); font-size: 40px; color: var(--rust); }
.intro-stat-label { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 900px) {
  .intro-strip { grid-template-columns: 1fr; gap: 28px; }
  .intro-stat { border-left: none; padding: 16px 0 0; border-top: 1px solid var(--line); }
}

.growth-strip {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
}
.growth-strip > div {
  flex: 1;
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}
.growth-strip > div:first-child { border-left: none; }
.growth-strip h4 { font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.growth-strip p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .growth-strip { flex-direction: column; }
  .growth-strip > div { border-left: none; border-top: 1px solid var(--line); }
  .growth-strip > div:first-child { border-top: none; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact-info h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 20px; }
.contact-info p { color: var(--ink-soft); font-size: 16.5px; }
.contact-detail { margin-top: 36px; }
.contact-detail-label { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.contact-detail-value { font-family: var(--display); font-size: 24px; }

.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--warm-white);
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  border-radius: 2px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}
.form-row { display: flex; gap: 20px; }
.form-row .form-field { flex: 1; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { flex-direction: column; gap: 0; }
}

.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.form-success {
  display: none;
  background: var(--sand); border: 1px solid var(--line);
  padding: 20px 22px; font-size: 15px; margin-bottom: 22px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--indigo-deep);
  color: rgba(251,248,242,0.72);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(251,248,242,0.14);
}
.footer-brand .brand-word { color: var(--warm-white); }
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--body); font-size: 14px; font-weight: 700;
  color: var(--warm-white); margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; font-size: 14.5px; margin-bottom: 10px; color: rgba(251,248,242,0.72); }
.footer-col a:hover { color: var(--warm-white); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; font-size: 13px; color: rgba(251,248,242,0.45);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reveal on load (single orchestrated moment) ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.7s ease forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- Booking platforms ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.platform-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--warm-white);
  padding: 22px 20px;
  transition: border-color 0.2s ease;
}
.platform-card:hover { border-color: var(--rust); }
.platform-name {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}
.platform-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .platform-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .platform-grid { grid-template-columns: 1fr; }
}
.page-hero {
  background: var(--indigo);
  color: var(--warm-white);
  padding: 72px 0 56px;
}
.page-hero .eyebrow-line { color: var(--rust-light); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.page-hero p { color: rgba(251,248,242,0.78); font-size: 17px; margin-top: 16px; }
