/* ============================================
   HILLSCAPE HOMES — Design System
   Palette: Pine green, terracotta, fog white, charcoal ink, soft gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --pine: #1F3326;
  --pine-deep: #142019;
  --terracotta: #B5654B;
  --terracotta-light: #D08866;
  --fog: #F2EDE3;
  --fog-dim: #E8E0D2;
  --ink: #252220;
  --gold: #C9A24B;
  --white: #FFFFFF;

  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;

  --max-width: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--fog);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(242, 237, 227, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}

.navbar.scrolled .nav-logo,
.navbar.solid .nav-logo { color: var(--pine); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.4s ease;
}

.navbar.scrolled .nav-links a,
.navbar.solid .nav-links a { color: var(--ink); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.active { font-weight: 600; }

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 0.88rem;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--terracotta-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: background 0.4s ease;
}

.navbar.scrolled .nav-toggle span,
.navbar.solid .nav-toggle span { background: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--fog);
  color: var(--fog);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--pine);
  color: var(--pine);
}
.btn-outline-dark:hover { background: var(--pine); color: var(--white); }

/* ============ HERO (homepage) ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pine-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 1.8s ease forwards;
}

@keyframes heroFade { to { opacity: 1; } }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,32,25,0.55) 0%, rgba(20,32,25,0.35) 45%, rgba(20,32,25,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroRise 1.2s ease 0.4s forwards;
}

@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--fog-dim);
}

.hero p {
  font-size: 1.15rem;
  color: var(--fog-dim);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
section { padding: 110px 0; }

.section-fog { background: var(--fog); }
.section-pine { background: var(--pine); color: var(--fog); }
.section-white { background: var(--white); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.section-pine .eyebrow { color: var(--gold); }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1.05rem;
  color: #5C5852;
}

.section-pine .section-head p { color: #C9CFC6; }

/* ============ INTRO / DREAM STATEMENT ============ */
.dream-statement {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.dream-statement p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--pine);
}

.dream-statement strong {
  font-weight: 600;
  color: var(--terracotta);
}

/* ============ WHY-CARDS (path options) ============ */
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--fog-dim);
  border: 1px solid var(--fog-dim);
}

.path-card {
  background: var(--white);
  padding: 44px 32px;
  transition: background 0.3s ease;
}

.path-card:hover { background: var(--fog); }

.path-card .num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--terracotta);
  margin-bottom: 24px;
  font-weight: 600;
}

.path-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--pine);
}

.path-card p { font-size: 0.94rem; color: #5C5852; }

/* ============ LOCATIONS — journey strip ============ */
.location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  overflow: hidden;
}

.location-row:nth-child(even) { direction: rtl; }
.location-row:nth-child(even) .location-text { direction: ltr; }
.location-row:nth-child(even) .location-img { direction: ltr; }

.location-img { position: relative; overflow: hidden; height: 100%; }

.location-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.location-row:hover .location-img img { transform: scale(1.06); }

.location-text {
  background: var(--pine);
  color: var(--fog);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}

.location-text .loc-tag {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.location-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.location-text p {
  color: #C9CFC6;
  font-size: 1rem;
  margin-bottom: 24px;
}

.location-text .loc-link {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  width: fit-content;
  transition: opacity 0.3s ease;
}

.location-text .loc-link:hover { opacity: 0.7; }

/* ============ PROCESS STEPS ============ */
.process-list { display: flex; flex-direction: column; }

.process-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--fog-dim);
}

.process-item:last-child { border-bottom: 1px solid var(--fog-dim); }

.process-item .step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--fog-dim);
  font-weight: 600;
}

.process-item h3 {
  font-size: 1.4rem;
  color: var(--pine);
  margin-bottom: 10px;
}

.process-item p { color: #5C5852; max-width: 560px; }

/* ============ TESTIMONIAL / QUOTE ============ */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-block p.quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 28px;
}

.quote-block .quote-author {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 20px;
}

.cta-band p {
  max-width: 520px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.9);
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--terracotta);
}
.cta-band .btn-primary:hover { background: var(--fog); }

/* ============ FOOTER ============ */
footer {
  background: var(--pine-deep);
  color: var(--fog-dim);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo { color: var(--white); margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.92rem; color: #9FA89C; max-width: 280px; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  color: #C9CFC6;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #748370;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ PAGE HEADER (non-home pages) ============ */
.page-header {
  position: relative;
  padding: 200px 0 90px;
  background: var(--pine-deep);
  color: var(--white);
  overflow: hidden;
}

.page-header img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,32,25,0.55) 0%, rgba(20,32,25,0.4) 40%, rgba(20,32,25,0.75) 100%);
}

.page-header .container { position: relative; z-index: 2; }

.page-header .eyebrow { color: var(--gold); }

.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  max-width: 700px;
}

.page-header p {
  margin-top: 18px;
  max-width: 560px;
  color: #C9CFC6;
  font-size: 1.05rem;
}

/* ============ GENERIC GRID CARD (used on locations/about pages) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--fog-dim);
}

.info-card img { height: 220px; object-fit: cover; width: 100%; }

.info-card .info-card-body { padding: 28px; }

.info-card h3 { color: var(--pine); font-size: 1.25rem; margin-bottom: 10px; }
.info-card p { color: #5C5852; font-size: 0.94rem; }

/* ============ TWO COL TEXT/IMAGE (about page) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split img {
  border-radius: 2px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* ============ STAT ROW ============ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-row .stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-row .stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #C9CFC6;
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.founder-grid {
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 48px;
}

.founder-photo { max-width: 280px; }

.team-card img { height: 320px; object-fit: cover; width: 100%; margin-bottom: 20px; }
.team-card h3 { color: var(--pine); margin-bottom: 4px; }
.team-card .role { color: var(--terracotta); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.team-card p.bio { font-size: 0.92rem; color: #5C5852; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--fog-dim);
}

.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-item h4 { color: var(--pine); font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: #5C5852; font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--terracotta); }

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pine);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--fog-dim);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--terracotta);
  border-color: transparent;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--pine);
  font-weight: 500;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ NOTICE BANNER ============ */
.notice-banner {
  background: var(--fog-dim);
  border-left: 3px solid var(--terracotta);
  padding: 18px 28px;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0;
}

.notice-banner strong { color: var(--pine); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 220px 1fr; gap: 32px; }
  .founder-photo { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 18px 24px; }
  .navbar.scrolled { padding: 12px 24px; }
  .split img { height: 260px; }
  .split h2 { font-size: 1.7rem !important; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--pine);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--fog) !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  section { padding: 70px 0; }
  .container { padding: 0 20px; }

  .location-row, .split, .split-reverse, .form-row, .contact-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .location-text { padding: 48px 28px; }
  .path-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .founder-photo { max-width: 200px; margin: 0 auto; }
  .founder-grid > div:last-child { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-item { grid-template-columns: 60px 1fr; }
  .footer-bottom { flex-direction: column; }
}
