/* =============================================================
   shared.css — Ingenious Developments
   ingeniousdevelopments.com
   ============================================================= */

:root {
  /* Brand neutrals */
  --ink:        #1C1612;
  --ink-mid:    #4A3F38;
  --ink-lt:     #8A7D74;

  /* Ingenious Stays — Southern forest green */
  --gs-dk:      #1A4731;
  --gs-md:      #2E7050;
  --gs-lt:      #3D8B5E;
  --gs-pale:    #E6EFE9;
  --gs-soft:    #F2F7F3;

  /* Ingenious Homes — Carolina brick */
  --gh-dk:      #7A2E1A;
  --gh-md:      #A33F28;
  --gh-lt:      #C05030;
  --gh-pale:    #F5E8E4;
  --gh-soft:    #FAF2F0;

  /* Gold thread */
  --gold:       #C4924A;
  --gold-lt:    #DDB880;
  --gold-pale:  #F7F1E4;

  /* Surfaces */
  --paper:      #F9F6F1;
  --white:      #FFFFFF;
  --border:     #E0D8D0;
  --border-lt:  #EDE9E4;

  /* Type */
  --f-display:  'Libre Baskerville', Georgia, serif;
  --f-body:     'Source Sans 3', -apple-system, sans-serif;

  /* Layout */
  --nav-h:  90px;
  --sub-h:  44px;
  --max-w:  80rem;
  --r:      4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── NAVIGATION ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--ink);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.nav-brand { text-decoration: none; }
.nav-brand-main {
  font-family: var(--f-display);
  font-size: 1.5rem; font-weight: 700;
  color: white; display: block; line-height: 1.1;
}
.nav-brand-sub {
  font-family: var(--f-body);
  font-size: 1.17rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); display: block; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 1.625rem; list-style: none; }
.nav-links a {
  font-family: var(--f-body); font-size: 1.22rem; font-weight: 500;
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover, .nav-links a.nav-active { color: white; }
.nav-links .nav-cta {
  background: var(--gold); color: var(--ink);
  padding: 0.45rem 1.125rem; border-radius: var(--r);
  font-weight: 700; font-size: 1.185rem;
  transition: background 0.18s;
}
.nav-links .nav-cta:hover { background: var(--gold-lt); color: var(--ink); }
.hamburger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.65); }
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
  background: var(--ink); padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; font-size: 1.17rem; font-weight: 500;
  color: rgba(255,255,255,0.65); text-decoration: none;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.18s;
}
.mobile-nav a:hover { color: white; }

/* ── SUBNAV ──────────────────────────────────────── */
.subnav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 198;
  height: var(--sub-h); background: white;
  border-bottom: 1px solid var(--border-lt);
  box-shadow: 0 1px 0 var(--border-lt);
}
.subnav-inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  display: flex; align-items: stretch; padding: 0 2rem; gap: 0;
}
.subnav-inner a {
  font-size: 0.8rem; font-weight: 500; color: var(--ink-lt);
  text-decoration: none; padding: 0 1.125rem;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-gs a.active, .subnav-gs a:hover { color: var(--gs-dk); border-bottom-color: var(--gs-dk); }
.subnav-gh a.active, .subnav-gh a:hover { color: var(--gh-dk); border-bottom-color: var(--gh-dk); }
.subnav-back {
  font-size: 0.73rem !important; color: rgba(28,22,18,0.35) !important;
  border-right: 1px solid var(--border-lt) !important;
  margin-right: 0.5rem; padding-right: 1.25rem !important;
  border-bottom: none !important;
}

/* ── PAGE OFFSETS ────────────────────────────────── */
.page-body     { padding-top: var(--nav-h); }
.page-body-sub { padding-top: calc(var(--nav-h) + var(--sub-h)); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.75rem 1.75rem; border-radius: var(--r);
  font-family: var(--f-body); font-size: 0.875rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.18s; letter-spacing: 0.01em; white-space: nowrap;
}
.btn-gs  { background: var(--gs-dk); color: white; }
.btn-gs:hover  { background: var(--gs-md); }
.btn-gh  { background: var(--gh-dk); color: white; }
.btn-gh:hover  { background: var(--gh-md); }
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn-gold:hover { background: var(--gold-lt); }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { opacity: 0.85; }
.btn-outline-gs {
  background: transparent; color: var(--gs-dk);
  border: 1.5px solid var(--gs-dk);
}
.btn-outline-gs:hover { background: var(--gs-pale); }
.btn-outline-gh {
  background: transparent; color: var(--gh-dk);
  border: 1.5px solid var(--gh-dk);
}
.btn-outline-gh:hover { background: var(--gh-pale); }
.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1.21875rem; }

/* ── LAYOUT ──────────────────────────────────────── */
.container     { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section       { padding: 5rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-family: var(--f-body); font-size: 1.26rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: block; margin-bottom: 0.75rem;
}
.eyebrow-gs   { color: var(--gs-md); }
.eyebrow-gh   { color: var(--gh-md); }
.eyebrow-gold { color: var(--gold); }
.eyebrow-white { color: rgba(255,255,255,0.5); }

.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700; line-height: 1.13;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 0.875rem;
}
.section-sub {
  font-size: 1.3125rem; font-weight: 300;
  color: var(--ink-mid); line-height: 1.72; max-width: 560px;
}
.rule { width: 36px; height: 2px; background: var(--gold); margin: 1.375rem 0; }

/* ── SURFACES ─────────────────────────────────────── */
.bg-paper    { background: var(--paper); }
.bg-gs-soft  { background: var(--gs-soft); }
.bg-gh-soft  { background: var(--gh-soft); }
.bg-gold-pale { background: var(--gold-pale); }
.bg-ink      { background: var(--ink); }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(28,22,18,0.1);
  transform: translateY(-3px);
}

/* ── CALLOUT BLOCK ───────────────────────────────── */
.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.375rem 1.75rem;
}
.callout-gs {
  border-left-color: var(--gs-dk);
  background: var(--gs-soft);
}
.callout-gh {
  border-left-color: var(--gh-dk);
  background: var(--gh-soft);
}

/* ── FORMS ───────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mid); margin-bottom: 0.375rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid #CEC8C0; border-radius: var(--r);
  padding: 0.75rem 0.875rem; font-family: var(--f-body);
  font-size: 1.17rem; color: var(--ink); background: white;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,146,74,0.12); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.78rem; color: var(--ink-lt); margin-top: 0.5rem; line-height: 1.5; }

/* ── DATA TABLE ──────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-lt); border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table td {
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-lt);
  color: var(--ink-mid); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--paper); }
.data-table td strong { color: var(--ink); font-weight: 600; }

/* ── BADGES ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.badge-available { background: var(--gs-dk); color: white; }
.badge-soon      { background: var(--paper); color: var(--ink-lt); border: 1px solid var(--border); }
.badge-new       { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(196,146,74,0.3); }

/* ── STATS ───────────────────────────────────────── */
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700; line-height: 1;
  color: var(--gold); margin-bottom: 0.4rem;
}
.stat-label { font-size: 1.3125rem; color: rgba(255,255,255,0.55); line-height: 1.4; }
.stat-label strong { display: block; color: white; font-weight: 600; margin-bottom: 2px; font-size: 1.3125rem; }

/* ── FOOTER ──────────────────────────────────────── */
.footer { background: var(--ink); padding: 4.5rem 2rem 2.5rem; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-name {
  font-family: var(--f-display); font-size: 1.6875rem; font-weight: 700;
  color: white; margin-bottom: 0.625rem;
}
.footer-brand-sub { font-size: 1.22rem; color: rgba(255,255,255,0.32); line-height: 1.65; max-width: 340px; }
.footer-col h4 {
  font-size: 0.93rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); margin-bottom: 1.125rem;
}
.footer-col a {
  display: block; font-size: 1.22rem; color: rgba(255,255,255,0.48);
  text-decoration: none; margin-bottom: 0.5rem; transition: color 0.18s;
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.footer-copy { font-size: 1.095rem; color: rgba(255,255,255,0.22); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row    { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-brand-sub { font-size: 0.9rem; } /* keep "Clayton, North Carolina" on one line in the header */
  .section   { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .subnav-inner a { padding: 0 0.625rem; font-size: 0.75rem; }
  .data-table { display: block; overflow-x: auto; } /* wide tables scroll sideways instead of widening the page */
}

/* Stays and Homes subnavs: 1.5x text size */
.subnav .subnav-inner a { font-size: 1.2rem; }
.subnav .subnav-inner a.subnav-back { font-size: 1.1rem !important; }
@media (max-width: 640px) {
  .subnav .subnav-inner { overflow-x: auto; }
  .subnav .subnav-inner a { font-size: 1.125rem; white-space: nowrap; }
}
