/* ==============================================
   STYLES.CSS — WEAVE HOMES
   Modern Provençal Property Listing Site
   2712 E. 22nd Street, Austin, TX 78722
   ============================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --bg:          #FAF8F5;
  --text:        #2C2C2C;
  --gold:        #C9A96E;
  --stone:       #F0EDE8;
  --dark:        #1C1C1A;
  --white:       #FFFFFF;
  --ph-bg:       #E8E4DE;  /* placeholder background */
  --ph-text:     #9A9490;  /* placeholder text */

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --nav-h:       72px;
  --section-pad: 96px;
  --max-w:       1240px;
  --gutter:      40px;

  --ease:        0.3s ease;
  --ease-slow:   0.65s ease;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

/* Small gold spaced-caps label used throughout */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- CONTAINER --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- DIVIDERS --- */
.gold-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}
.gold-rule-full {
  width: 100%;
  height: 1px;
  background: var(--gold);
  opacity: 0.25;
  margin: 0;
}


/* ==============================================
   IMAGE PLACEHOLDERS
   ============================================== */
.img-placeholder {
  background: var(--ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ph-text);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}


/* ==============================================
   NAVBAR
   ============================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--ease), box-shadow var(--ease);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  transition: color var(--ease);
}
.navbar.scrolled .nav-logo { color: var(--text); }

/* Desktop links */
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--ease);
  position: relative;
}
.navbar.scrolled .nav-links a { color: var(--text); }

/* Gold underline on hover / active */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--gold); }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.9);
  transition: all var(--ease);
}
.navbar.scrolled .hamburger span { background: var(--text); }

/* Mobile dropdown nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  z-index: 999;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--ease), opacity var(--ease);
  pointer-events: none;
}
.mobile-nav.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--stone);
  transition: color var(--ease);
}
.mobile-nav a:hover { color: var(--gold); }


/* ==============================================
   HERO — HOMEPAGE
   ============================================== */
.hero-home {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Media layer (photo or placeholder) */
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media .img-placeholder { height: 100%; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.52) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: var(--white);
  max-width: 700px;
  padding: 0 24px;
}
.hero-content .eyebrow {
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.hero-content h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.hero-divider {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 36px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ==============================================
   HERO — UNIT PAGES
   ============================================== */
.hero-unit {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-unit .hero-media {
  position: absolute;
  inset: 0;
}
.hero-unit .hero-media .img-placeholder { height: 100%; }

/* Gradient from bottom — text sits in lower-left */
.hero-unit .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.08) 55%
  );
  display: flex;
  align-items: flex-end;
  padding: 60px 64px;
}

.hero-unit-content {
  color: var(--white);
  max-width: 640px;
}
.hero-unit-content .eyebrow { margin-bottom: 10px; }
.hero-unit-content h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 22px;
}

/* Stats row e.g. "4 Bed · 3 Bath · 2,198 Sq Ft" */
.hero-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.hero-stats-bar span:not(:last-child)::after {
  content: '·';
  margin: 0 10px;
  color: var(--gold);
}

.hero-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
}


/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #b8905a; }

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

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


/* ==============================================
   SECTION WRAPPERS
   ============================================== */
.section {
  padding: var(--section-pad) 0;
}
.section-alt  { background: var(--stone); }
.section-dark { background: var(--dark); color: var(--white); }

/* Centered heading block used in multiple sections */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}
.section-title .eyebrow { margin-bottom: 14px; }
.section-title h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  margin-bottom: 18px;
}
.section-title p {
  font-size: 0.95rem;
  color: #666;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}


/* ==============================================
   PROPERTY CARDS — HOMEPAGE
   ============================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.property-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.1);
}

/* Aspect-ratio image area */
.card-img-wrap {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
}
.card-img-wrap .img-placeholder {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: transform 0.6s ease;
}
.property-card:hover .card-img-wrap .img-placeholder {
  transform: scale(1.04);
}
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.property-card:hover .card-img {
  transform: scale(1.04);
}

.card-body { padding: 32px; }
.card-body h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 4px;
}
.card-color {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 16px;
}
.card-stats {
  display: flex;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 10px;
}
.card-stats span:not(:last-child) {
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid #ddd;
}
.card-price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.card-teaser {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
}


/* ==============================================
   SUBSCRIBE SECTION — HOMEPAGE CTA
   ============================================== */
.subscribe-section { padding: var(--section-pad) 0; }

.subscribe-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.subscribe-copy .eyebrow { margin-bottom: 14px; }
.subscribe-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 18px;
}
.subscribe-copy p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.subscribe-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.subscribe-form label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.subscribe-form input:not([type="checkbox"]),
.subscribe-form select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input:not([type="checkbox"])::placeholder { color: rgba(255,255,255,0.3); }
.subscribe-form input:not([type="checkbox"]):focus,
.subscribe-form select:focus { border-color: var(--gold); }
.subscribe-form select option { background: #1a1a1a; color: var(--white); }
.sub-consent { grid-column: span 2; }
.subscribe-form .btn { grid-column: span 2; justify-self: start; }

@media (max-width: 860px) {
  .subscribe-inner { grid-template-columns: 1fr; gap: 40px; }
  .subscribe-form { grid-template-columns: 1fr; }
  .sub-consent, .subscribe-form .btn { grid-column: span 1; }
}


/* ==============================================
   BUILDER SECTION — HOMEPAGE
   ============================================== */
.builder-section {
  text-align: center;
  padding: var(--section-pad) 0;
}
.builder-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-bottom: 18px;
}
.builder-section p {
  font-size: 1rem;
  color: #666;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.85;
}


/* ==============================================
   STICKY SUB-NAV (UNIT PAGES)
   ============================================== */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.subnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }

.subnav-inner a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #999;
  padding: 17px 22px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ease);
}
.subnav-inner a:hover { color: var(--text); }
.subnav-inner a.active {
  color: var(--text);
  border-bottom-color: var(--gold);
}


/* ==============================================
   OVERVIEW SECTION
   ============================================== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.overview-description {
  font-size: 0.97rem;
  line-height: 1.95;
  color: #444;
}
.overview-description p { margin-bottom: 1.4em; }

/* Stats panel (right column) */
.stats-panel {
  background: var(--stone);
  padding: 36px;
}
.stats-panel h3 {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  gap: 16px;
}
.stat-row:last-child { border-bottom: none; }
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-align: right;
}


/* ==============================================
   GALLERY GRID
   ============================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 10px;
  grid-auto-flow: dense;
}

/* Feature items: item 1 spans 2 cols + 2 rows */
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
/* Item 8 spans 2 columns */
.gallery-item:nth-child(8) {
  grid-column: span 2;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item .img-placeholder {
  height: 100%;
  transition: transform 0.55s ease;
}
.gallery-item:hover .img-placeholder { transform: scale(1.05); }
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.05); }

/* Subtle hover darkening via pseudo-element */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--ease);
  pointer-events: none;
}
.gallery-item:hover::after { background: rgba(0,0,0,0.14); }


/* ==============================================
   LIGHTBOX
   ============================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
}

.lightbox-placeholder {
  width: min(820px, 88vw);
  height: min(560px, 70vh);
  background: var(--ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-text);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--ease);
}
.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--ease);
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--gold);
}

.lightbox-caption {
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}


/* ==============================================
   FLEX SUITE SECTION
   ============================================== */
.flex-suite-section {
  background: var(--stone);
  padding: var(--section-pad) 0;
}
.flex-suite-header {
  text-align: center;
  margin-bottom: 60px;
}
.flex-suite-header h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 300;
  margin-bottom: 8px;
}

.flex-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.flex-col { text-align: center; }
.flex-icon {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.flex-col h3 {
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.flex-col p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.82;
}

.flex-tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 44px;
}

.flex-fp-wrap {
  max-width: 580px;
  margin: 0 auto;
}
.flex-fp-wrap .img-placeholder { height: 280px; }


/* ==============================================
   AMENITIES — TABS
   ============================================== */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #999;
  padding: 16px 28px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Two-column amenity list */
.amenity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: #444;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  line-height: 1.55;
}
.amenity-item::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  min-width: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
}

/* Stats grid used in Lot & Area tab */
.stats-grid-tab {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.stats-grid-tab .stat-row {
  padding: 13px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}


/* ==============================================
   MORTGAGE CALCULATOR
   ============================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group.span-2 { grid-column: span 2; }

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}
.form-group input:not([type="checkbox"]),
.form-group select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: border-color var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input[type="checkbox"] {
  width: auto;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }

/* Results panel */
.calc-results {
  background: var(--dark);
  padding: 44px;
  color: var(--white);
}
.calc-results h3 {
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 28px;
}
.result-main { margin-bottom: 28px; }
.result-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.result-total {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.result-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

.result-breakdown {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.result-line:last-child { border-bottom: none; }
.rl-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}
.rl-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
}

.calc-disclaimer {
  font-size: 0.7rem;
  color: #999;
  margin-top: 24px;
  line-height: 1.65;
  font-style: italic;
}


/* ==============================================
   LOCATION SECTION
   ============================================== */
.location-section .container { text-align: center; }
.location-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-bottom: 18px;
}
.location-section p {
  font-size: 0.95rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.85;
}
.map-wrap { overflow: hidden; line-height: 0; }


/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

/* Agent bio column */
.agent-bio { text-align: center; }

.agent-headshot-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.08);
}
.agent-headshot-wrap .img-placeholder {
  height: 100%;
  border-radius: 50%;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.3);
}

.agent-bio h3 {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 4px;
}
.agent-update-blurb {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}
.agent-title {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.agent-details {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  line-height: 2;
}
.agent-details a {
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.agent-details a:hover { color: var(--gold); }

/* Contact form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form .form-group label { color: rgba(255,255,255,0.45); }
.contact-form .form-group input,
.contact-form .form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: border-color var(--ease);
  resize: vertical;
}
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus { border-color: var(--gold); }
.contact-form .form-group.span-2 { grid-column: span 2; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  line-height: 1.55;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  min-width: auto;
  margin-top: 2px;
  accent-color: var(--gold);
}


/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: var(--dark);
  padding: 44px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.footer-agent-line {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.footer-agent-line a {
  color: rgba(255,255,255,0.45);
  transition: color var(--ease);
}
.footer-agent-line a:hover { color: var(--gold); }
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--gold); }
.footer-legal {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  max-width: 600px;
  line-height: 1.7;
}


/* ==============================================
   FLOOR PLAN SECTION
   ============================================== */
.floorplan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.floorplan-level-label {
  text-align: center;
  margin-bottom: 16px;
  display: block;
}

.floorplan-img {
  height: 460px;
  width: 100%;
}

.floorplan-rooms {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #999;
  text-align: center;
  padding: 16px 8px 0;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.floorplan-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: #aaa;
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .floorplan-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .floorplan-img { height: 320px; }
}


/* ==============================================
   FADE-IN SCROLL ANIMATIONS
   ============================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ==============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 72px;
    --gutter: 28px;
  }

  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-panel { max-width: 480px; }

  .calc-grid { grid-template-columns: 1fr; gap: 36px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .agent-bio { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
  .agent-headshot-wrap { margin: 0 0 20px; }
}


/* ==============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================== */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --gutter: 20px;
    --nav-h: 60px;
  }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero unit — bottom left content */
  .hero-unit .hero-overlay { padding: 32px 24px; }
  .hero-cta-group { flex-direction: column; align-items: center; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Gallery: 2 columns, no special spanning */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Flex suite */
  .flex-cols { grid-template-columns: 1fr; gap: 32px; }

  /* Amenity list */
  .amenity-list { grid-template-columns: 1fr; }
  .stats-grid-tab { grid-template-columns: 1fr; }

  /* Calc */
  .calc-form { grid-template-columns: 1fr; }
  .calc-form .form-group.span-2 { grid-column: span 1; }

  /* Contact form */
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .form-group.span-2 { grid-column: span 1; }

  /* Lightbox nav */
  .lightbox-prev { left: -6px; }
  .lightbox-next { right: -6px; }
}


/* ==============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================== */
@media (max-width: 480px) {
  :root { --gutter: 16px; }

  .hero-content h1 { font-size: 2.6rem; }
  .hero-unit-content h1 { font-size: 2.4rem; }

  .gallery-grid { grid-auto-rows: 200px; }

  .tabs-nav { overflow-x: auto; flex-wrap: nowrap; }
  .tab-btn { padding: 14px 18px; }

  .subnav-inner a { padding: 15px 14px; font-size: 0.65rem; }
}
