/* =====================================================
   ESTATE DESIGN & CONSTRUCTION — Elevated Luxury Upgrade
   Additive layer. Loaded AFTER style.css so it overrides.
   Brand kept: Gold #b8965a · Dark #111 · White #fff
   Goal: richer depth, refined type rhythm, premium motion.
   ===================================================== */

:root {
  /* Refined gold system + gradients */
  --gold-grad:     linear-gradient(135deg, #d4b483 0%, #b8965a 48%, #a17e44 100%);
  --gold-sheen:    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  --gold-soft:     rgba(184,150,90,0.12);
  --gold-ring:     rgba(184,150,90,0.45);

  /* Warmer neutrals + accessible muted text */
  --paper:         #f7f5f1;        /* warm off-white for alt sections */
  --ink-muted:     #6b6b6b;        /* darker than #888 → AA contrast on white */
  --hairline:      rgba(17,17,17,0.08);
  --hairline-light:rgba(255,255,255,0.14);

  /* Layered, softer shadows for depth */
  --shadow-sm:     0 1px 2px rgba(17,17,17,0.04), 0 4px 16px rgba(17,17,17,0.06);
  --shadow-md:     0 4px 12px rgba(17,17,17,0.06), 0 14px 40px rgba(17,17,17,0.10);
  --shadow-lg:     0 8px 24px rgba(17,17,17,0.08), 0 30px 70px rgba(17,17,17,0.16);
  --shadow-gold:   0 10px 30px rgba(184,150,90,0.30);

  --radius:        14px;
  --radius-lg:     20px;

  /* Premium easing (from motion best-practice) */
  --ease-lux:      cubic-bezier(0.22, 1, 0.36, 1);
  --transition:    all 0.4s var(--ease-lux);
}

/* Slightly tighter, more elegant body rhythm */
body { letter-spacing: 0.1px; -webkit-font-smoothing: antialiased; }

.section-alt { background: var(--paper); }
.section-subtitle { color: var(--ink-muted); }

/* ---- Refined section eyebrow + title ---- */
.section-label {
  letter-spacing: 4.5px;
  font-size: 0.72rem;
}
.section-title { letter-spacing: -0.8px; }
.section-title em { font-style: italic; color: var(--gold); }

/* =====================================================
   SCROLL PROGRESS BAR (added via JS)
   ===================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 1100;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(184,150,90,0.6);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* =====================================================
   NAVIGATION — glassier, more refined
   ===================================================== */
#navbar { padding: 26px 0; }
#navbar.scrolled {
  background: rgba(14,14,14,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline-light);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  padding: 13px 0;
}
.nav-links a { font-size: 0.76rem; letter-spacing: 2.2px; }
.nav-links a::after { height: 1.5px; background: var(--gold-grad); }
.nav-logo img { transition: transform 0.4s var(--ease-lux), filter 0.4s var(--ease-lux); }
.nav-logo:hover img { transform: scale(1.04); }

/* =====================================================
   BUTTONS — gold gradient + sheen sweep
   ===================================================== */
.btn {
  position: relative;
  overflow: hidden;
  letter-spacing: 2.2px;
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-sheen);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-lux);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(184,150,90,0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  background: var(--gold-grad);
}
.btn-outline:hover,
.btn-outline-dark:hover { transform: translateY(-3px); }

/* =====================================================
   HERO — cinematic depth + staggered entrance
   ===================================================== */
.hero-bg {
  transform: scale(1.06);
  transition: transform 8s ease-out;
  will-change: transform;
}
.hero-bg.loaded { transform: scale(1); }

/* Hero background video — cover the section like a background image */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--dark);
}

/* Richer overlay + vignette for depth */
.hero-overlay {
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(184,150,90,0.10) 0%, transparent 55%),
    linear-gradient(105deg, rgba(8,8,8,0.58) 0%, rgba(10,10,10,0.30) 55%, rgba(10,10,10,0.12) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 -120px 140px -60px rgba(0,0,0,0.32);
}

/* Legibility safety now that the overlay is lighter — lift text off bright frames
   without darkening the image. drop-shadow on h1 shadows the gold gradient text too. */
.hero-content h1 { filter: drop-shadow(0 2px 14px rgba(0,0,0,0.5)); }
.hero-content .hero-eyebrow,
.hero-content .hero-text { text-shadow: 0 2px 14px rgba(0,0,0,0.45); }

.hero h1 em {
  background: linear-gradient(120deg, #e6cfa3, #b8965a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-light);
}

.stat-num {
  background: linear-gradient(120deg, #ffffff 0%, #e6cfa3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat-item {
  position: relative;
  padding-left: 22px;
}
.hero-stats .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--gold-grad);
  opacity: 0.7;
}

/* Staggered hero entrance */
.hero-content > * {
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise 0.9s var(--ease-lux) forwards;
}
.hero-eyebrow   { animation-delay: 0.15s; }
.hero h1        { animation-delay: 0.30s; }
.hero-text      { animation-delay: 0.45s; }
.hero-buttons   { animation-delay: 0.60s; }
.hero-stats     { animation-delay: 0.75s; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-down cue (added via JS) */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: cueFade 1s var(--ease-lux) 1.2s both;
}
.scroll-cue .cue-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  position: relative;
}
.scroll-cue .cue-mouse::before {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: cueScroll 1.8s var(--ease-lux) infinite;
}
@keyframes cueScroll {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}
@keyframes cueFade { from { opacity: 0; } to { opacity: 0.9; } }

/* =====================================================
   TRUST BAR — refined divider + hover
   ===================================================== */
.trust-bar { border-bottom: 1px solid var(--hairline); }
.trust-item { transition: color 0.3s ease; }
.trust-item i { color: var(--gold); }

/* =====================================================
   SERVICE CARDS — gold ring + deeper hover lift
   ===================================================== */
/* Balanced 3 × 3 layout (was 4 + 2) */
.services-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.45s var(--ease-lux);
  pointer-events: none;
  z-index: 3;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::after { border-color: var(--gold-ring); }
.service-card:hover img { transform: scale(1.1); }
.service-card-line { background: var(--gold-grad); }

/* =====================================================
   STYLE TILES — smoother, gold-accented
   ===================================================== */
.style-tile {
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.style-tile:hover { box-shadow: var(--shadow-lg); }
.style-tile-line { background: var(--gold-grad); }
.style-tile-cta { color: var(--gold-light); }

/* =====================================================
   PROCESS — gold numerals + hairline rhythm
   ===================================================== */
.process-num {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.95;
}
.process-step { transition: background 0.4s var(--ease-lux), transform 0.4s var(--ease-lux); }
.process-step:hover { transform: translateY(-4px); }

/* =====================================================
   WHY CARDS — premium icon chips + lift
   ===================================================== */
.why-card {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--white);
  transition: transform 0.45s var(--ease-lux), box-shadow 0.45s var(--ease-lux), border-color 0.45s var(--ease-lux);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--white);
  border-color: var(--gold-ring);
}
.why-icon {
  background: var(--gold-grad);
  box-shadow: var(--shadow-gold);
}

/* =====================================================
   PORTFOLIO — refined overlay + hover ring
   ===================================================== */
.portfolio-item {
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.portfolio-item-overlay {
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.25) 55%, transparent 100%);
}
.portfolio-item-label { letter-spacing: 0.4px; }

/* =====================================================
   AREA PILLS — refined chips
   ===================================================== */
.area-pill {
  border: 1px solid var(--hairline);
  transition: transform 0.35s var(--ease-lux), border-color 0.35s var(--ease-lux), color 0.35s ease, box-shadow 0.35s var(--ease-lux);
}
.area-pill:hover {
  transform: translateY(-3px);
  border-color: var(--gold-ring);
  color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
}
.area-pill i { color: var(--gold); }

/* =====================================================
   CTA — gold radial glow accent
   ===================================================== */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 120% at 50% 0%, rgba(184,150,90,0.16) 0%, transparent 60%);
}
.cta-content { position: relative; z-index: 1; }

/* Calculator promo card — soften corners on the bento panel */
.platforms-row .platform-item { transition: transform 0.35s var(--ease-lux); }
.platforms-row .platform-item:hover { transform: translateY(-3px); }

/* =====================================================
   FOOTER — refined links
   ===================================================== */
.footer-links a { transition: color 0.3s ease, padding-left 0.3s var(--ease-lux); }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-links a i { color: var(--gold); }
.social-btn { transition: transform 0.35s var(--ease-lux), background 0.3s ease, color 0.3s ease; }
.social-btn:hover { transform: translateY(-3px); }

/* =====================================================
   REVEAL — staggered, with premium ease
   ===================================================== */
[data-reveal] {
  transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
  transform: translateY(34px);
}
[data-reveal].revealed { transform: translateY(0); }

/* Stagger children within grids (JS adds --i custom prop) */
.services-grid [data-reveal],
.why-grid [data-reveal],
.process-grid [data-reveal],
.portfolio-grid [data-reveal] {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* =====================================================
   ACCESSIBILITY — focus + reduced motion
   ===================================================== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible,
.style-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-content > * { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
}
