/* =============================================
   EMPIRE SUNFLOWER HOMES — Main Stylesheet
   Palette: Logo Gold #C8991A + Dark Charcoal
   ============================================= */

:root {
  --gold:        #C8991A;
  --gold-light:  #C8991A;
  --gold-pale:   #FAF4E1;
  --navy:        #1A1A1A;
  --navy-dark:   #0D0D0D;
  --navy-mid:    #1A1A1A;
  --white:       #FFFFFF;
  --off-white:   #FAFAF7;
  --gray:        #E8E6DE;
  --text:        #1A1A1A;
  --text-mid:    #4A4A52;
  --text-light:  #6B6B7A;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w:        1200px;
  --section-pad:  100px;
  --radius:       4px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.22);
  --shadow-lg:    0 12px 48px rgba(0, 0, 0, 0.32);
  --transition:   0.3s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p  { line-height: 1.75; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-pad) 0;
}

/* =============================================
   BUTTONS — base only; variants defined in HERO
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2px;
  transition: all var(--transition);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-mid);
  font-size: 1.05rem;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  background: #0D0D0D;
  transition: padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  padding: 14px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 65px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.3s ease;
}
.navbar.scrolled .nav-logo-img {
  height: 54px;
}

/* Wordmark text block */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.nav-logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}
.nlw-empire,
.nlw-homes {
  color: var(--white);
  font-style: normal;
}
.nlw-sunflower {
  color: #C8991A;
  font-style: italic;
  font-weight: 400;
}
.nav-logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:not(.nav-cta):hover { color: var(--white); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* Nav CTA button */
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO — Luxury Modern
   ============================================= */
.hero {
  min-height: 100vh;
  background: #090909;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Rich atmospheric gradient — pure charcoal, no blue */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 72% 52%, rgba(20, 20, 20, 0.7) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 10% 85%, rgba(200, 153, 26, 0.04) 0%, transparent 55%),
    linear-gradient(158deg, #090909 0%, #0D0D0D 45%, #111111 100%);
}

/* Subtle film-grain texture */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px;
  pointer-events: none;
}

/* Warm gold radial glow upper-right */
.hero-glow {
  position: absolute;
  top: -15%;
  right: 5%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 153, 26, 0.055) 0%, transparent 60%);
  pointer-events: none;
}

/* Geometric SVG line art */
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- INNER SPLIT LAYOUT ---- */
.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 130px 24px 64px;
  width: 100%;
  position: relative;
  z-index: 1;
  gap: 64px;
}

/* ---- LEFT TEXT PANEL ---- */
.hero-text {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-pre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-ornament {
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex-shrink: 0;
}

.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin-bottom: 0;
}

.hero-title em {
  color: var(--gold);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent 85%);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawUnderline 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both;
}

.hero-rule {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 28px 0;
  animation: expandRule 0.7s ease 0.7s both;
  transform-origin: left;
  transform: scaleX(0);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.975rem;
  max-width: 420px;
  line-height: 1.85;
  margin-bottom: 40px;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* Primary CTA — logo gold, exactly #C8991A */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #C8991A;
  color: #fff;
  padding: 15px 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 28px rgba(200, 153, 26, 0.3);
  white-space: nowrap;
}

.btn-gold svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-gold:hover {
  background: #B8890F;
  box-shadow: 0 8px 40px rgba(200, 153, 26, 0.4);
  transform: translateY(-2px);
}

.btn-gold:hover svg { transform: translateX(4px); }

.btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Secondary CTA — underline ghost */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* Keep btn-outline alias working for other sections */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 14px 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.hero-trust {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.1em;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-trust::before {
  content: '— ';
  color: var(--gold);
  opacity: 0.5;
}

/* ---- RIGHT VISUAL PANEL ---- */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  animation: heroFadeLeft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* Hero photo — real image, landscape proportions */
.hero-img-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  object-fit: cover;
  object-position: center center;
  display: block;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(200, 153, 26, 0.12);
}

/* Offset ghost frame behind image */
.hero-img-offset {
  position: absolute;
  top: 18px;
  left: -18px;
  right: 18px;
  bottom: -18px;
  border: 1px solid rgba(200, 153, 26, 0.18);
  border-radius: 3px;
  z-index: -1;
}

/* Floating property card */
.hero-card {
  position: absolute;
  bottom: 44px;
  left: -40px;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(200, 153, 26, 0.22);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  animation: heroCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(200, 153, 26, 0.1);
  border: 1px solid rgba(200, 153, 26, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.hero-card-icon svg { width: 15px; height: 15px; }

.hero-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.hero-card-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-card-name {
  font-family: var(--font-serif);
  font-size: 0.87rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-card-detail {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

.hero-card-live {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
  animation: heroPulse 2.2s ease-in-out infinite;
}

/* Gold corner brackets on image */
.hero-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
}

.hero-corner-tl {
  top: -6px;
  left: -6px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.hero-corner-br {
  bottom: -6px;
  right: -6px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* ---- STATS BAR ---- */
.hero-stats {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.022);
  border-top: 1px solid rgba(200, 153, 26, 0.13);
  position: relative;
  z-index: 1;
}

.stat {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: background 0.3s ease;
}

.stat:hover { background: rgba(200, 153, 26, 0.04); }

.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
/* Shrink "Est. 2024"-style text values to fit the stat slot */
.stat-num-sm {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  background: rgba(200, 153, 26, 0.12);
  flex-shrink: 0;
  align-self: stretch;
  margin: 18px 0;
}

/* ---- HERO ANIMATIONS ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroCardIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes expandRule {
  to { transform: scaleX(1); }
}

@keyframes drawUnderline {
  to { transform: scaleX(1); }
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); opacity: 1; }
  50%       { box-shadow: 0 0 18px rgba(74, 222, 128, 0.9); opacity: 0.75; }
}

/* =============================================
   BRAND BANNER
   ============================================= */
.brand-banner {
  background: #0D0D0D;
  padding: 64px 24px;
  text-align: center;
  border-top: 1px solid rgba(200, 153, 26, 0.1);
  border-bottom: 1px solid rgba(200, 153, 26, 0.1);
}
.brand-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.bbt-empire,
.bbt-homes {
  color: var(--white);
  font-style: normal;
}
.bbt-sunflower {
  color: #C8991A;
  font-style: italic;
  font-weight: 400;
}
.brand-banner-sub {
  font-size: 0.88rem;
  color: #C8991A;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--off-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 28px;
  border: 1px solid var(--gray);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 22px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  color: var(--navy-dark);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.service-card > p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  font-size: 0.875rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
}
.service-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio { background: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-img {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.portfolio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-photo {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 1;
  transition: background var(--transition);
}
.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}
.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(200, 153, 26, 0.22);
  border: 1px solid rgba(200, 153, 26, 0.5);
  padding: 6px 14px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
}
.about-img-main {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--gold);
  color: var(--white);
  width: 114px;
  height: 114px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-num {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}
.badge-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
  line-height: 1;
}

.about-content .section-eyebrow { text-align: left; }
.about-content .section-title {
  max-width: 480px;
  margin-bottom: 20px;
  text-align: left;
}
.about-content > p {
  color: var(--text-mid);
  margin-bottom: 16px;
}
.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 36px;
}
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-icon {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.value strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.value p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('../images/testimonials-bg.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}
.testimonials-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.testimonial-item {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(200, 153, 26, 0.2);
  border-radius: 8px;
  padding: 36px 32px;
}
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  margin-bottom: 28px;
  line-height: 1.85;
  position: relative;
  padding-left: 24px;
}
.testimonial-text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(200, 153, 26, 0.45);
  flex-shrink: 0;
  display: block;
}
.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info .section-eyebrow { text-align: left; }
.contact-info .section-title {
  max-width: 400px;
  margin-bottom: 16px;
  text-align: left;
}
.contact-info > p {
  color: var(--text-mid);
  margin-bottom: 40px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.contact-item a,
.contact-item span {
  color: var(--text-mid);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--gold); }

/* Contact Form */
.contact-form-wrap {
  background: var(--off-white);
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 40px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 153, 26, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #ABABAB; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input.error,
.form-group textarea.error {
  border-color: #DC2626;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #EFF7EF;
  border: 1px solid #4CAF50;
  color: #2E7D32;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-success.show { display: flex; }
.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #4CAF50;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo {
  display: flex;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.42);
  max-width: 280px;
  line-height: 1.75;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact a,
.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 10px;
  transition: color var(--transition);
  line-height: 1.6;
}
.footer-contact a:hover { color: var(--white); }

.footer-legal-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-legal-links a {
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: #C8991A; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.65);
  animation: none;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.75); }
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid items */
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }

.portfolio-grid .portfolio-card:nth-child(2) { transition-delay: 0.08s; }
.portfolio-grid .portfolio-card:nth-child(3) { transition-delay: 0.16s; }
.portfolio-grid .portfolio-card:nth-child(4) { transition-delay: 0.1s; }
.portfolio-grid .portfolio-card:nth-child(5) { transition-delay: 0.18s; }
.portfolio-grid .portfolio-card:nth-child(6) { transition-delay: 0.26s; }

.testimonials-inner .testimonial-item:nth-child(2) { transition-delay: 0.12s; }

/* =============================================
   NAV DROPDOWN
   ============================================= */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown-arrow { width: 10px; height: 6px; transition: transform 0.25s ease; }
.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #0D0D0D;
  border: 1px solid rgba(200, 153, 26, 0.2);
  border-radius: 4px;
  min-width: 150px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(-6px);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: #C8991A; background: rgba(200,153,26,0.06); }
.nav-dropdown-menu a::after { display: none !important; }

/* =============================================
   GALLERY
   ============================================= */
.gallery-section { background: var(--off-white); }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.gallery-filter {
  padding: 9px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--gray);
  border-radius: 2px;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.25s ease;
}
.gallery-filter:hover,
.gallery-filter.active {
  background: #C8991A;
  border-color: #C8991A;
  color: #fff;
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 9001;
}
.lightbox-close:hover { color: #C8991A; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 16px;
  transition: color 0.2s;
  z-index: 9001;
  user-select: none;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: #C8991A; }

/* =============================================
   FLOOR PLANS
   ============================================= */
.floorplans-section { background: var(--white); }
.floorplans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.floorplan-card {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
}
.floorplan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.floorplan-img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8f8f8;
  padding: 12px;
  cursor: pointer;
}

/* =============================================
   THANK YOU PAGE (thanks.html)
   ============================================= */
.thanks-section {
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
}
.thanks-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200, 153, 26, 0.06) 0%, transparent 65%),
    linear-gradient(158deg, #090909 0%, #0D0D0D 100%);
  pointer-events: none;
}
.thanks-inner {
  position: relative;
  text-align: center;
  max-width: 580px;
  width: 100%;
}
.thanks-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}
.thanks-icon svg { width: 80px; height: 80px; }
.thanks-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C8991A;
  margin-bottom: 12px;
  display: block;
}
.thanks-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.thanks-sub {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 12px;
}
.thanks-sub strong { color: #C8991A; font-weight: 600; }
.thanks-detail {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 44px;
}
.thanks-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   PAGE HERO (gallery.html / floorplans.html)
   ============================================= */
.page-hero { background: #0a0a0a; padding: 120px 0; text-align: center; }
.page-hero .section-eyebrow { margin-bottom: 12px; }
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
  margin: 0 auto;
}

/* =============================================
   GALLERY PAGE
   ============================================= */
.gallery-page-section {
  background: var(--off-white);
  padding: var(--section-pad) 0;
}

/* =============================================
   FLOOR PLANS PAGE
   ============================================= */
.floorplans-page-section {
  background: var(--white);
  padding: var(--section-pad) 0;
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.page-hero {
  background: var(--navy-dark);
  padding: 120px 0 60px;
  text-align: center;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-top: 12px;
}
.legal-section { background: #fff; padding: 80px 0; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #0D0D0D; margin: 40px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: #4A4A52; line-height: 1.85; margin-bottom: 16px; font-size: 0.95rem; }
.legal-content ul { margin: 0 0 16px 20px; color: #4A4A52; font-size: 0.95rem; line-height: 1.85; }
.legal-content a { color: #C8991A; }
.legal-last-updated { font-size: 0.8rem; color: #888; margin-bottom: 32px; font-style: italic; }

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner { gap: 48px; padding: 120px 24px 56px; }
  .hero-card { left: -20px; min-width: 200px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { gap: 48px; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  /* Mobile logo */
  .nav-logo-img { height: 52px; }
  .navbar.scrolled .nav-logo-img { height: 44px; }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }

  /* Hero — stack vertically on mobile */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 110px 24px 48px;
    gap: 40px;
  }
  .hero-visual { justify-content: center; }
  .hero-frame { max-width: 380px; }
  .hero-img-main { aspect-ratio: 16 / 9; }
  .hero-img-offset { display: none; }
  .hero-card {
    position: static;
    transform: none;
    animation: none;
    margin: 16px auto 0;
    max-width: 100%;
  }
  .hero-corner { display: none; }

  /* Hero stats wrap */
  .hero-stats { flex-wrap: wrap; }
  .stat { min-width: 50%; }
  .stat-divider:nth-child(6) { display: none; }

  /* Portfolio single column */
  .portfolio-photo { max-height: 180px; object-fit: cover; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .portfolio-img { aspect-ratio: 3 / 2; }
  .portfolio-card .portfolio-info { padding: 10px 12px; }

  /* Gallery & Floor Plans */
  .gallery-grid { columns: 2; }
  .floorplans-grid { grid-template-columns: 1fr 1fr; }

  /* About stacked */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 0; bottom: -16px; }

  /* Testimonials stacked */
  .testimonials-inner { grid-template-columns: 1fr; }

  /* Contact stacked */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-gold, .btn-ghost { width: auto; }
  .hero-stats { flex-direction: column; }
  .stat { width: 100%; border-bottom: 1px solid rgba(200, 153, 26, 0.1); }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Gallery & Floor Plans */
  .gallery-grid { columns: 1; }
  .floorplans-grid { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .portfolio-img { aspect-ratio: 1 / 1; }
}
