/* ============================================================
   True North Homes — Mountain Lake Luxury
   Shared stylesheet
   ============================================================ */

:root {
  /* Palette */
  --pine:        #233a2e;   /* deep evergreen */
  --pine-dark:   #18271f;
  --lake:        #3f6b75;   /* muted lake blue */
  --lake-light:  #6e9aa1;
  --brass:       #b08d57;   /* warm metallic accent */
  --brass-dark:  #997846;
  --sand:        #cdbfa6;   /* natural stone/sand */
  --cream:       #f7f3ec;   /* off-white background */
  --cream-2:     #efe8db;
  --charcoal:    #2c2b28;
  --ink:         #1f1e1b;
  --muted:       #6f6a60;
  --line:        rgba(35,58,46,0.14);
  --white:       #ffffff;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --shadow: 0 18px 50px rgba(24,39,31,0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; }

a { color: var(--lake); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brass-dark); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brass-dark);
  margin: 0 0 1rem;
}

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

section { padding: clamp(56px, 9vw, 120px) 0; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--charcoal); max-width: 60ch; }

.center { text-align: center; }
.center .lede, .center .eyebrow + h2 { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
}
.btn-primary { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-dark); border-color: var(--brass-dark); color:#fff; }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--cream); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost-light:hover { background: #fff; color: var(--pine); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; color: var(--brass); }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark .name {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--pine); letter-spacing: 0.02em;
}
.brand .wordmark .sub {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal);
}
.nav-links a:hover, .nav-links a.active { color: var(--brass-dark); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pine); margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px var(--gutter); }
  .nav-links .btn { margin: 14px var(--gutter); text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24,39,31,0.60) 0%, rgba(24,39,31,0.42) 40%, rgba(24,39,31,0.82) 100%),
    url('../assets/scene-hero.svg') center / cover no-repeat,
    linear-gradient(160deg, #2f4f45 0%, #1d3128 55%, #16241d 100%);
  overflow: hidden;
}
.hero::after {
  /* subtle waterline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(180deg, transparent, rgba(63,107,117,0.35));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--sand); }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 52ch; color: rgba(255,255,255,0.92); }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-sub { min-height: 60vh; }

/* ---------- Sections / layout helpers ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

.bg-pine { background: var(--pine); color: var(--cream); }
.bg-pine h2, .bg-pine h3 { color: #fff; }
.bg-pine .eyebrow { color: var(--sand); }
.bg-cream2 { background: var(--cream-2); }

/* Image placeholder block */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(160deg, rgba(63,107,117,0.85), rgba(35,58,46,0.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px);
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); text-align: center; padding: 24px;
  box-shadow: var(--shadow);
}
.media .placeholder-label {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; border: 1px dashed rgba(255,255,255,0.5);
  padding: 14px 18px; border-radius: var(--radius); max-width: 80%;
}
.media.tall { min-height: 460px; }

/* Real/placeholder images that fill a media slot */
.media-img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow); display: block; }
.media-img.tall { height: 460px; }
@media (max-width: 820px) { .media-img { height: 280px; } .media-img.tall { height: 320px; } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 34px; height: 34px; color: var(--brass); margin-bottom: 16px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--brass); line-height: 1; }
.stat .label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* Homesite list */
.lot { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); margin-bottom: 16px; flex-wrap: wrap; }
.lot .lot-id { font-family: var(--serif); font-size: 1.5rem; color: var(--pine); }
.lot .lot-meta { color: var(--muted); font-size: 0.95rem; }
.badge { display: inline-block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--brass-dark); background: rgba(176,141,87,0.14);
  padding: 6px 12px; border-radius: 100px; }

/* ---------- Callout / waitlist band ---------- */
.band { background: var(--pine); color: var(--cream); text-align: center; }
.band h2 { color: #fff; }
.band .lede { color: rgba(255,255,255,0.85); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--charcoal); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream);
  color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px rgba(63,107,117,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.form-success { display:none; background: rgba(63,107,117,0.12); border:1px solid var(--lake);
  color: var(--pine); padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.95rem; }

/* Inline email capture */
.signup { display: flex; gap: 12px; max-width: 540px; margin: 26px auto 0; flex-wrap: wrap; }
.signup input { flex: 1 1 240px; padding: 16px 18px; border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius); background: rgba(255,255,255,0.12); color: #fff; font-size: 1rem; }
.signup input::placeholder { color: rgba(255,255,255,0.7); }
.signup input:focus { outline: none; border-color: var(--sand); background: rgba(255,255,255,0.18); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-dark); color: rgba(247,243,236,0.8); padding: 64px 0 28px; }
.site-footer a { color: rgba(247,243,236,0.8); }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { color: var(--sand); font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-brand .name { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(247,243,236,0.15); margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(247,243,236,0.55); }
.disclaimer { font-size: 0.78rem; color: rgba(247,243,236,0.5); max-width: 70ch; margin-top: 14px; line-height: 1.6; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--pine); color: var(--cream); padding: clamp(70px, 11vw, 130px) 0 clamp(48px,7vw,80px); }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--sand); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 60ch; margin-bottom: 0; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
