/* ============================================================
   PALMETTO ESTATES — Design System
   Fonts:   DM Serif Display (headlines) · DM Sans (UI/body)
            Dancing Script (accent script, use sparingly)
   Colors:  Forest Green · Terracotta · Near-black · Off-white
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=Dancing+Script:wght@600&display=swap');

/* ── DESIGN TOKENS ── */
:root {

  /* Brand Colors */
  --green:          #2A5240;   /* primary — nav, hero bg, callout boxes */
  --green-dark:     #1C2E26;   /* deeper — stat bar, footer, overlays    */
  --green-light:    #3B5A48;   /* mid — hover states, image overlays     */
  --green-tint:     #F4F7F5;   /* near-white green tint — section bgs    */
  --green-subtle:   #D4E0D8;   /* pale sage — card accents, dividers     */

  --terra:          #C06B3A;   /* terracotta — CTAs, eyebrows, accents   */
  --terra-dark:     #A05530;   /* hover state for terracotta buttons     */
  --terra-light:    #D4845A;   /* lighter terra — icon fills, highlights */

  /* Neutrals */
  --white:          #FFFFFF;
  --off-white:      #FAFAF8;   /* page background                        */
  --border:         #E8E8E4;   /* default dividers                       */
  --border-mid:     #D0D0CA;   /* stronger borders                       */
  --text:           #1C1C1A;   /* near-black body text                   */
  --text-mid:       #555550;   /* secondary text                         */
  --text-muted:     #888880;   /* captions, meta, placeholders           */

  /* Typography */
  --font-display:  'DM Serif Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-script:   'Dancing Script', cursive;

  /* Type Scale */
  --text-xs:    0.6875rem;   /* 11px — eyebrows, labels, caps  */
  --text-sm:    0.8125rem;   /* 13px — meta, captions          */
  --text-base:  1rem;        /* 16px — body                    */
  --text-lg:    1.125rem;    /* 18px — lead text               */
  --text-xl:    1.375rem;    /* 22px — card headlines          */
  --text-2xl:   1.75rem;     /* 28px — section h2              */
  --text-3xl:   2.25rem;     /* 36px — hero h1 (desktop)       */
  --text-4xl:   3rem;        /* 48px — hero h1 (large screens) */

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Layout */
  --max-width:      1280px;
  --nav-height:     68px;
  --radius-sm:      2px;
  --radius-md:      4px;
  --radius-lg:      8px;

  /* Transitions */
  --ease:           0.2s ease;
  --ease-slow:      0.4s ease;
}


/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* ── TYPOGRAPHY HELPERS ── */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

.t-script {
  font-family: var(--font-script);
  font-weight: 600;
}

.t-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
}

.t-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.t-muted { color: var(--text-muted); }
.t-mid   { color: var(--text-mid); }
.t-green { color: var(--green); }
.t-terra { color: var(--terra); }
.t-white { color: var(--white); }

.t-italic { font-style: italic; }


/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section--tint  { background: var(--green-tint); }
.section--green { background: var(--green); }
.section--dark  { background: var(--green-dark); }
.section--white { background: var(--white); }

.divider {
  width: 40px;
  height: 2px;
  background: var(--terra);
  margin: var(--space-sm) 0;
}

.divider--center { margin-left: auto; margin-right: auto; }


/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: box-shadow var(--ease-slow);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  transition: color var(--ease);
}

.nav-links a:hover { color: var(--terra); }

.nav-cta {
  background: var(--terra);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}

.nav-cta:hover { background: var(--terra-dark); }

/* Mobile hamburger — hidden by default */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--green);
  transition: var(--ease);
}

/* Push content below fixed nav */
.nav-spacer { height: var(--nav-height); }


/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

/* Filled — terracotta */
.btn-primary {
  background: var(--terra);
  color: var(--white);
  border: 1.5px solid var(--terra);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
}

/* Filled — green */
.btn-green {
  background: var(--green);
  color: var(--white);
  border: 1.5px solid var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* Outline — on light backgrounds */
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* Outline — on dark/green backgrounds */
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* Ghost — text link style */
.btn-ghost {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid transparent;
  padding-left: 0;
  padding-right: 0;
  letter-spacing: 0.12em;
}
.btn-ghost:hover { color: var(--terra-dark); }


/* ── HERO ── */
.hero {
  display: flex;
  align-items: stretch;
  min-height: 580px;
  background: var(--green);
}

.hero-image {
  width: 55%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fade right edge of photo into green panel */
.hero-image::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--green));
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem 3.5rem 2rem;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 0.5rem;
}

.hero-h1 em {
  font-style: italic;
  color: var(--terra);
}

.hero-script {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 1.25rem;
}

.hero-body {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* ── STAT BAR ── */
.stat-bar {
  background: var(--green-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 1rem 1.25rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 0.3rem;
}


/* ── SECTION HEADERS ── */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header--center {
  text-align: center;
}

.section-header--center .divider {
  margin-left: auto;
  margin-right: auto;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, var(--text-2xl));
  color: var(--text);
  line-height: 1.15;
  margin-top: 0.4rem;
}

.section-h2 em { font-style: italic; }

.section-h2--light { color: var(--white); }


/* ── HOME / FLOORPLAN CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.home-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}

.home-card:hover {
  box-shadow: 0 8px 30px rgba(42,82,64,0.12);
  transform: translateY(-3px);
}

.home-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-subtle);
}

.home-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-card:hover .home-card-image img {
  transform: scale(1.04);
}

.home-card-body {
  padding: 1.25rem;
}

.home-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: 0.25rem;
}

.home-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.home-card-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.home-card-spec {
  text-align: center;
}

.home-card-spec-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green);
  display: block;
}

.home-card-spec-label {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-card-cta {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--ease);
}

.home-card:hover .home-card-cta { gap: 0.7rem; }


/* ── PROXIMITY / LOCATION PILLS ── */
.prox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.prox-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--terra);
}

.prox-dot--green { background: var(--green); }

.prox-time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1;
}

.prox-place {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}


/* ── WHY CHOOSE GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-item {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.why-item:hover {
  border-color: var(--green-subtle);
  box-shadow: 0 4px 20px rgba(42,82,64,0.08);
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--green);
}

.why-icon img {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain;
}

.why-title {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.why-body {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.6;
}


/* ── CTA STRIP ── */
.cta-strip {
  background: var(--green);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--white);
  line-height: 1.2;
}

.cta-strip-text em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

.cta-strip-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-strip-phone {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}


/* ── FOOTER ── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 72px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 1rem;
}

.footer-body {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--ease);
}

.footer-links a:hover { color: var(--terra-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
  transition: color var(--ease);
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }


/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,82,64,0.12);
}

.form-textarea { min-height: 120px; resize: vertical; }


/* ── BADGES / TAGS ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-available {
  background: rgba(42,82,64,0.1);
  color: var(--green);
}

.badge-sold {
  background: rgba(192,107,58,0.1);
  color: var(--terra-dark);
}

.badge-reserved {
  background: rgba(136,136,128,0.1);
  color: var(--text-mid);
}


/* ── LOT MAP ACCENTS ── */
.lot-available { fill: var(--green); stroke: var(--white); }
.lot-sold      { fill: var(--text-muted); stroke: var(--white); }
.lot-reserved  { fill: var(--terra); stroke: var(--white); }


/* ── UTILITY ── */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm     { gap: 0.75rem; }
.gap-md     { gap: 1.25rem; }
.gap-lg     { gap: 2rem; }
.mt-sm      { margin-top: var(--space-sm); }
.mt-md      { margin-top: var(--space-md); }
.mt-lg      { margin-top: var(--space-lg); }
.mb-sm      { margin-bottom: var(--space-sm); }
.mb-md      { margin-bottom: var(--space-md); }
.text-center { text-align: center; }
.w-full     { width: 100%; }


/* ── MOBILE ── */
@media (max-width: 900px) {

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .hero { flex-direction: column; }

  .hero-image {
    width: 100%;
    height: 260px;
  }

  .hero-image::after { display: none; }

  .hero-content {
    padding: 2rem 1.5rem 2.5rem;
  }

  .hero-body { max-width: 100%; }

  .stat-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) { border-right: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }
}

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

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

@media (max-width: 600px) {

  .container { padding: 0 1.25rem; }

  /* card-grid handled at wider breakpoint below */

  .why-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .stat-bar { grid-template-columns: repeat(2, 1fr); }

  .nav { padding: 0 1.25rem; }
}
