/* ================================================================
   MARIA HOME SMART CONNECT — Design System v2
   Light-first luxury real estate · White + Crimson
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ---------- COLOR TOKENS (semantic names kept; values flipped) ---------- */
  --obsidian: #FFFFFF;            /* page background */
  --obsidian-2: #FAF8F4;          /* alt section bg (cream) */
  --smoke: #FFFFFF;               /* card bg */
  --smoke-2: #F4F1EB;             /* deeper card bg / hover */
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.16);

  --pearl: #0E0E12;               /* primary text */
  --mist: #2A2A30;                /* secondary text */
  --fog: #6B6E76;                 /* muted body */
  --muted: #9CA0A8;               /* placeholder / decoration */

  --coral: #A90433;               /* PRIMARY ACCENT — crimson */
  --coral-soft: #C42456;
  --coral-deep: #82022A;
  --blush: #FCE9EE;               /* very light tint for backgrounds */

  --mint: #1FAE6B;                /* positive signal (SLI Connected) */
  --mint-soft: #6FD9A4;
  --mint-deep: #0E8957;

  --lilac: #6E4DCC;               /* SLI Luxury tier */
  --lilac-soft: #9785E0;

  --gold: #B8862F;                /* refined gold for premium */
  --signal: #C0292E;

  --grad-hero: linear-gradient(160deg, #FFFFFF 0%, #FAF8F4 50%, #FCE9EE 100%);
  --grad-coral: linear-gradient(135deg, #A90433 0%, #C42456 100%);
  --grad-crimson-deep: linear-gradient(135deg, #82022A 0%, #A90433 100%);
  --grad-mint: linear-gradient(135deg, #0E8957 0%, #1FAE6B 100%);
  --grad-aurora: linear-gradient(135deg, #A90433 0%, #C42456 50%, #B8862F 100%);

  /* ---------- TYPE ---------- */
  --font-display: 'General Sans', 'Söhne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --font-accent: 'Fraunces', Georgia, serif;

  /* ---------- LAYOUT ---------- */
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(20,20,20,0.04), 0 1px 6px rgba(20,20,20,0.04);
  --shadow-md: 0 8px 24px rgba(20,20,20,0.06), 0 2px 8px rgba(20,20,20,0.04);
  --shadow-lg: 0 24px 48px rgba(20,20,20,0.08), 0 8px 16px rgba(20,20,20,0.05);
  --shadow-coral: 0 8px 24px rgba(169,4,51,0.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--obsidian);
  color: var(--pearl);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--pearl); }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); letter-spacing: -0.015em; }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--coral); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: var(--coral);
}
.serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--coral); }
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--fog); }
.text-coral { color: var(--coral); }
.text-mint { color: var(--mint-deep); }
.text-lilac { color: var(--lilac); }
.text-gold { color: var(--gold); }
.gradient-text {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================================================================
   LAYOUT PRIMITIVES
   ================================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 5rem) 0; }
.grid { display: grid; gap: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo {
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--pearl);
  text-decoration: none;
}
/* Hide the CSS-drawn mark + text wordmark — replaced by image logo */
.logo .logo-mark,
.logo .logo-text { display: none !important; }
/* Inject the brand image via ::before
   Source image is 1580x720 (~2.19:1) — horizontal wordmark, minimal padding */
.logo::before {
  content: '';
  display: block;
  width: 200px;
  height: 80px;
  background-image: url('https://assets.cdn.filesafe.space/B31XXjDyT9rzpSAddV8M/media/6a0b1360dbe569a25dd60cf7.png');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}
.header.scrolled .logo::before { width: 160px; height: 66px; }

@media (max-width: 540px) {
  .logo::before { width: 150px; height: 62px; }
}

.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-menu a {
  font-size: 0.92rem; font-weight: 500; color: var(--pearl);
  opacity: 0.85; transition: opacity 0.2s, color 0.2s;
  position: relative; padding: 0.25rem 0;
}
.nav-menu a:hover { opacity: 1; color: var(--coral); }
.nav-menu a.active { color: var(--coral); opacity: 1; }
.nav-menu a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--coral);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-toggle {
  display: flex; align-items: center;
  background: var(--obsidian-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
}
.lang-toggle button {
  padding: 0.35rem 0.75rem; border-radius: 999px;
  color: var(--fog); transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--coral); color: #FFFFFF; font-weight: 600;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  padding: 0;
  z-index: 101;
}
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--pearl); border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 89;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  .nav-menu {
    position: fixed; top: 0; right: 0;
    width: min(360px, 88vw); height: 100vh;
    background: #FFFFFF;
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    z-index: 90;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { font-size: 1.05rem; padding: 1rem 0; display: block; width: 100%; opacity: 1; }
  .nav-menu a.active::after { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .nav-actions .lang-toggle button { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
  .nav { gap: 0.5rem; }
  body.menu-open { overflow: hidden; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--coral); color: #FFFFFF;
  box-shadow: var(--shadow-coral);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(169,4,51,0.28);
}
.btn-ghost {
  background: transparent; color: var(--pearl);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--obsidian-2); border-color: var(--coral); color: var(--coral); }
.btn-mint {
  background: var(--mint-deep); color: #FFFFFF; font-weight: 600;
}
.btn-mint:hover { background: var(--mint); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding: clamp(8rem, 16vw, 12rem) 0 clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.85) 30%,
      rgba(255,255,255,0.55) 55%,
      rgba(255,255,255,0.25) 80%,
      rgba(255,255,255,0.1) 100%
    ),
    url('https://assets.cdn.filesafe.space/B31XXjDyT9rzpSAddV8M/media/6a0b16e88d08689eb2c1dfb7.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 50% 40% at 15% 25%, rgba(169,4,51,0.08), transparent 60%),
    linear-gradient(180deg, transparent 60%, rgba(250,248,244,0.4) 100%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,20,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 50% 50% at 25% 40%, black 30%, transparent 100%);
  pointer-events: none;
  opacity: 0.5;
}
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0.3) 100%
      ),
      url('https://assets.cdn.filesafe.space/B31XXjDyT9rzpSAddV8M/media/6a0b16e88d08689eb2c1dfb7.jpg') center/cover no-repeat;
  }
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.75rem, 7vw, 6rem);
  margin: 1.25rem 0 1.5rem;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--fog);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ================================================================
   AI SEARCH BAR
   ================================================================ */
.ai-search {
  margin-top: 3rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 720px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.ai-search::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(169,4,51,0.35), rgba(184,134,47,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.ai-search-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--coral);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ai-search-icon svg { width: 22px; height: 22px; stroke: #FFFFFF; stroke-width: 2.2; }
.ai-search input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font-size: 1rem; color: var(--pearl);
  padding: 0.5rem 0;
}
.ai-search input::placeholder { color: var(--muted); }
.ai-search button { flex-shrink: 0; }

.ai-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ai-chip {
  font-family: var(--font-mono); font-size: 0.75rem;
  background: #FFFFFF; border: 1px solid var(--line);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  color: var(--fog); cursor: pointer;
  transition: all 0.2s;
}
.ai-chip:hover { border-color: var(--coral); color: var(--coral); background: var(--blush); }

/* ================================================================
   STATS / TRUST BAR
   ================================================================ */
.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-bar small {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em;
}
.trust-logos { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; opacity: 0.7; }
.trust-logos span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: var(--pearl); letter-spacing: -0.02em;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blush);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--coral); stroke-width: 1.8; fill: none; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--fog); font-size: 0.95rem; }

/* ================================================================
   PROPERTY CARD
   ================================================================ */
.property-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--obsidian-2);
}
.property-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.property-card:hover .property-media img { transform: scale(1.05); }
.property-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.property-badges {
  position: absolute; top: 1rem; left: 1rem; right: 1rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2;
}
.sli-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(20,20,20,0.85);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
}
.sli-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.sli-badge.high { color: #6FD9A4; }
.sli-badge.high .dot { background: #6FD9A4; box-shadow: 0 0 8px #6FD9A4; }
.sli-badge.mid { color: #F4C752; }
.sli-badge.mid .dot { background: #F4C752; box-shadow: 0 0 8px #F4C752; }
.sli-badge.luxury { color: #C99FFF; }
.sli-badge.luxury .dot { background: #C99FFF; box-shadow: 0 0 8px #C99FFF; }

.property-save {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; transition: all 0.2s;
}
.property-save:hover { background: var(--coral); border-color: var(--coral); }
.property-save svg { width: 16px; height: 16px; stroke: var(--pearl); stroke-width: 2; fill: none; }
.property-save:hover svg { stroke: #FFFFFF; }
.property-save.saved svg { fill: var(--coral); stroke: var(--coral); }

.property-body { padding: 1.5rem; }
.property-price {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.6rem; letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--pearl);
}
.property-title { font-size: 1rem; color: var(--pearl); margin-bottom: 0.25rem; font-weight: 500; }
.property-location { color: var(--fog); font-size: 0.85rem; margin-bottom: 1.25rem; }
.property-specs {
  display: flex; gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--fog);
}
.property-specs span { display: inline-flex; align-items: center; gap: 0.35rem; }
.property-specs svg { width: 14px; height: 14px; stroke: var(--fog); stroke-width: 1.8; fill: none; }
.property-iot {
  display: flex; gap: 0.5rem; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.iot-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  background: var(--obsidian-2); border: 1px solid var(--line);
  padding: 0.3rem 0.55rem; border-radius: 6px;
  color: var(--fog);
}
.iot-pill svg { width: 11px; height: 11px; stroke-width: 2; fill: none; }
.iot-pill.active { color: var(--mint-deep); border-color: rgba(31,174,107,0.3); background: rgba(31,174,107,0.06); }
.iot-pill.active svg { stroke: var(--mint-deep); }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head-left { max-width: 640px; }
.section-head h2 { margin: 0.75rem 0 0.5rem; }
.section-head p { color: var(--fog); font-size: 1.05rem; }
.section-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--coral); font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.section-link:hover { border-bottom-color: var(--coral); }
.section-link svg { width: 16px; height: 16px; stroke: var(--coral); stroke-width: 2; fill: none; }

/* ================================================================
   FEATURE LIST (used in services / about / investors)
   ================================================================ */
.feature-list { display: grid; gap: 1rem; }
.feature-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature-row-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px; background: var(--blush);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.feature-row-icon svg { width: 18px; height: 18px; stroke: var(--coral); stroke-width: 1.8; fill: none; }
.feature-row-content { flex: 1; }
.feature-row-content h4 { font-size: 1rem; margin-bottom: 0.15rem; font-weight: 500; }
.feature-row-content p { font-size: 0.85rem; color: var(--fog); margin: 0; }
.feature-row-score {
  font-family: var(--font-mono); font-weight: 600;
  color: var(--coral); font-size: 0.95rem;
}

/* Tier / market category small caps (used in investors tiers) */
.market-cat { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fog); text-transform: uppercase; letter-spacing: 0.15em; }

/* Maria FAB removed per request — chat widget no longer used. */

/* ================================================================
   PROCESS / STEPS
   ================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  counter-increment: step;
  transition: all 0.3s var(--ease);
}
.step:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.step::before {
  content: '0' counter(step);
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--coral); letter-spacing: 0.15em; font-weight: 600;
}
.step-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blush);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.step-icon svg { width: 20px; height: 20px; stroke: var(--coral); stroke-width: 1.8; fill: none; }
.step h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step p { font-size: 0.9rem; color: var(--fog); }

/* ================================================================
   TESTIMONIAL
   ================================================================ */
.testimonial {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.testimonial::before {
  content: '"';
  position: absolute; top: -1rem; left: 1rem;
  font-family: var(--font-accent);
  font-size: 12rem; line-height: 1;
  color: var(--coral);
  opacity: 0.08;
}
.testimonial-quote {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  color: var(--pearl);
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-aurora);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600;
  color: #FFFFFF;
}
.testimonial-name { font-weight: 500; }
.testimonial-role { font-size: 0.85rem; color: var(--fog); }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--pearl);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(169,4,51,0.28), transparent 70%);
  pointer-events: none;
}
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4 { color: #FFFFFF; }
.cta-section .eyebrow { color: var(--coral-soft); }
.cta-section .eyebrow::before { background: var(--coral-soft); }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 1.25rem; }
.cta-inner p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-inner .hero-actions { justify-content: center; }
.cta-section .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.25); }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #FFFFFF; color: #FFFFFF; }
.cta-section .gradient-text { background: linear-gradient(135deg, #FF6E8E, #B8862F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ================================================================
   FOOTER (anchor — keep dark for luxury contrast)
   ================================================================ */
.footer {
  background: var(--pearl);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--pearl);
}
.footer .logo { color: #FFFFFF; }
.footer .logo::before {
  background-color: #FFFFFF;
  border-radius: 10px;
  background-size: 88%;
  background-position: center;
  background-repeat: no-repeat;
  height: 110px;
  width: 240px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9rem; max-width: 28ch; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: #FFFFFF; margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--coral-soft); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--coral); border-color: var(--coral); }
.footer-social svg { width: 16px; height: 16px; stroke: #FFFFFF; stroke-width: 1.8; fill: none; }

/* ================================================================
   GRIDS
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.hidden { display: none !important; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-coral { 0%, 100% { box-shadow: 0 0 0 0 rgba(169,4,51,0.35); } 50% { box-shadow: 0 0 0 8px rgba(169,4,51,0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fade-up { animation: fadeUp 0.8s var(--ease) both; }
.pulse-coral { animation: pulse-coral 2s infinite; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ================================================================
   FORMS
   ================================================================ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--fog); font-weight: 500;
}
.form-input, .form-textarea, .form-select {
  background: var(--obsidian-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--pearl);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--coral); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(169,4,51,0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 140px; font-family: inherit; }

/* ================================================================
   STAT CARDS + CHARTS (used in /insights/ and inline metric blocks)
   ================================================================ */
.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.stat-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.stat-card-head h5 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fog); font-weight: 500; }
.stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--pearl); }
.stat-meta { color: var(--mint-deep); font-family: var(--font-mono); font-size: 0.82rem; margin-top: 0.5rem; display: flex; align-items: center; gap: 0.35rem; }
.stat-meta.down { color: var(--signal); }

.dash-grid { display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.energy-chart {
  height: 180px;
  position: relative;
  margin-top: 1rem;
}
.energy-chart svg { width: 100%; height: 100%; }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(169,4,51,0.10), transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 1rem 0 1.25rem; }
.page-hero p { color: var(--fog); font-size: 1.1rem; max-width: 56ch; }

/* Filter bar */
.filter-bar {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.filter-bar select, .filter-bar input {
  background: var(--obsidian-2); border: 1px solid var(--line);
  padding: 0.6rem 0.9rem; border-radius: 10px; font-size: 0.85rem;
  color: var(--pearl); cursor: pointer;
}
.filter-bar select:hover, .filter-bar input:focus { border-color: var(--coral); outline: none; }

/* Tabs */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tab {
  padding: 0.9rem 1.2rem; background: transparent; border: none;
  color: var(--fog); font-size: 0.92rem; font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  cursor: pointer;
}
.tab.active, .tab:hover { color: var(--coral); border-bottom-color: var(--coral); }
