/* =========================================================
   Elevate Home Solutions — v3 Design System
   Lifted slate. Warmer, lighter, still rich. Sage accent.
   ========================================================= */

:root {
  /* Surfaces — lifted slate, breathable but still rich */
  --color-bg:        #1F2A36;   /* warm slate page background */
  --color-surface:   #27313D;   /* cards, raised */
  --color-surface-2: #33404E;   /* hover / featured */
  --color-elevated:  #3D4B5B;   /* highest layer */
  --color-line:      rgba(255,255,255,0.08);
  --color-line-2:    rgba(255,255,255,0.14);

  /* Text */
  --text-primary:   #F4F2EC;    /* warm off-white */
  --text-secondary: #C7CDD8;    /* slightly warmer secondary */
  --text-muted:     #8E97A4;
  --text-faint:     #65707E;

  /* Brand */
  --blue-primary:  #2563EB;     /* Elevate Blue */
  --blue-deep:     #1E3A6E;     /* Navy */
  --teal-cyan:     #0EA5C6;     /* secondary accent */
  --sage:          #8FB89B;     /* NEW — Loxone-adjacent, sophisticated */
  --sage-deep:     #6E967B;
  --mint:          #2DD4A0;

  /* Gradient ramp */
  --grad-pop:    linear-gradient(120deg, #3B82F6 0%, #0EA5C6 55%, #8FB89B 100%);
  --grad-button: linear-gradient(135deg, #2563EB 0%, #1E3A6E 100%);
  --grad-soft:   linear-gradient(180deg, rgba(37,99,235,0.10) 0%, rgba(143,184,155,0.04) 100%);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  /* Scale (fluid) */
  --fs-eyebrow: 0.75rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.125rem, 1rem + 0.6vw, 1.3125rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  --fs-h2:      clamp(2rem,    1.4rem + 2.4vw, 3rem);
  --fs-h1:      clamp(2.5rem,  1.6rem + 4vw,   4.75rem);
  --fs-display: clamp(3rem,    2rem + 5vw,     6rem);

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --pad-x: clamp(1.25rem, 1rem + 1.6vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(37,99,235,0.45); color: #fff; }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin: 0;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.014em; }

p { margin: 0; color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: var(--sage);
  display: inline-block;
}

.lead { font-size: var(--fs-lead); color: var(--text-secondary); line-height: 1.55; max-width: 56ch; }

.gradient-text {
  background: var(--grad-pop);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--pad-x); }

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); position: relative; }
.section--sm { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--alt { background: var(--color-surface); }
.section--accent {
  background: linear-gradient(180deg, var(--color-bg) 0%, #11151B 100%);
  position: relative;
}

/* Section header pattern */
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1.25rem; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.125rem 0;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(31, 42, 54, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--color-line);
  padding: 0.85rem 0;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.625rem; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--sage);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--text-primary); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: var(--text-primary); }
.nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-line-2);
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-primary);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--text-primary);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--grad-button);
  color: #fff;
  box-shadow: 0 4px 18px -4px rgba(37,99,235,0.55), inset 0 0 0 1px rgba(255,255,255,0.10);
}
.btn--primary:hover { box-shadow: 0 8px 26px -6px rgba(37,99,235,0.65), inset 0 0 0 1px rgba(255,255,255,0.15); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--color-line-2);
}
.btn--ghost:hover { border-color: var(--sage); color: var(--sage); }

.btn--text {
  padding: 0.5rem 0;
  color: var(--sage);
  font-weight: 500;
}
.btn--text:hover { color: var(--text-primary); }
.btn--text .arrow { transition: transform 0.25s var(--ease); }
.btn--text:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Hero (with video bg)
   ========================================================= */
.hero {
  position: relative;
  min-height: min(96vh, 920px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(15,22,32,0.88) 0%, rgba(20,28,40,0.72) 38%, rgba(31,42,54,0.40) 70%, rgba(31,42,54,0.55) 100%),
    linear-gradient(180deg, rgba(31,42,54,0.20) 0%, rgba(31,42,54,0.45) 65%, rgba(31,42,54,0.97) 100%);
  z-index: -1;
}
.hero__inner {
  position: relative;
  width: 100%;
  padding-block: clamp(7rem, 6rem + 5vw, 10rem) clamp(2.5rem, 2rem + 2vw, 4rem);
}
.hero__inner .eyebrow { margin-bottom: 1.5rem; }
.hero h1 {
  max-width: 18ch; margin-bottom: 1.75rem; font-weight: 600;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero .lead {
  margin-bottom: 2.25rem;
  color: #DCE2EE;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.hero__ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }

.hero__partner {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 0.95rem 0.4rem 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-line-2);
  border-radius: 999px;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  margin-top: 0.75rem;
}
.hero__partner img { height: 24px; width: auto; border-radius: 3px; }
.hero__partner span {
  font-size: 0.72rem; color: var(--text-secondary);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}

.hero__partner-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem;
  margin-bottom: 3rem;
}

.hero__stats {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  display: grid; gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 880px;
}
.hero__stat .label { line-height: 1.45; }
.hero__stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  display: block;
  line-height: 1.05;
}
.hero__stat .label {
  display: block; margin-top: 0.4rem;
  font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--text-muted);
}

.scroll-cue {
  position: absolute; bottom: 1.5rem; right: clamp(1.5rem, 3vw, 3rem);
  font-size: 0.7rem; letter-spacing: 0.18em;
  color: var(--text-muted); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  pointer-events: none;
}
@media (max-width: 720px) { .scroll-cue { display: none; } }
.scroll-cue::after {
  content: ""; width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--sage), transparent);
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0%,100% { transform: scaleY(1); transform-origin: top; opacity: 0.85; }
  50%     { transform: scaleY(0.5); opacity: 0.35; }
}

/* =========================================================
   Page header (non-home pages)
   ========================================================= */
.page-hero,
.page-header {
  padding: clamp(8.5rem, 6.5rem + 5vw, 12rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
  position: relative;
  background: linear-gradient(180deg, #1A2330 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-line);
}
.page-hero h1,
.page-header h1 {
  max-width: 22ch;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.page-hero .eyebrow,
.page-header .eyebrow {
  margin-bottom: 1.25rem;
}
.page-hero .lead,
.page-header .lead {
  color: var(--text-secondary);
  max-width: 64ch;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 80% 20%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(800px 400px at 10% 90%, rgba(143,184,155,0.06), transparent 60%);
  pointer-events: none;
}
.page-header__inner { position: relative; }
.page-header h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem); max-width: 18ch; margin-bottom: 1.5rem; }
.page-header .lead { margin-top: 0.5rem; }

/* =========================================================
   Cards & grid components
   ========================================================= */

/* Generic card */
.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-line-2);
  background: var(--color-surface-2);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.22);
  color: #6BA6FF;
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.55; }

/* Service grid */
.services-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.services-grid .featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1.1fr 1fr;
  padding: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.10) 0%, rgba(143,184,155,0.04) 100%), var(--color-surface);
  border: 1px solid rgba(37,99,235,0.25);
}
.services-grid .featured .featured__media {
  position: relative; min-height: 280px;
  background: var(--color-surface-2);
  overflow: hidden;
}
.services-grid .featured .featured__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.services-grid .featured .featured__body {
  padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.services-grid .featured .pill {
  align-self: flex-start;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); padding: 0.35rem 0.7rem;
  background: rgba(143,184,155,0.10);
  border: 1px solid rgba(143,184,155,0.25);
  border-radius: 999px; margin-bottom: 1.1rem; font-weight: 500;
}

/* Two-column section */
.split {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__media {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--color-line);
  aspect-ratio: 4/5;
  position: relative;
  background: var(--color-surface);
}
.split__media--wide { aspect-ratio: 16/10; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body h2 { margin-bottom: 1.25rem; }
.split__body .lead { margin-bottom: 1.75rem; }

.bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.bullet-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 0.875rem;
  padding: 1rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
}
.bullet-list .bullet-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(143,184,155,0.12);
  color: var(--sage);
}
.bullet-list .bullet-icon svg { width: 14px; height: 14px; }
.bullet-list .bullet-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.25;
  display: block;
}
.bullet-list .bullet-body { color: var(--text-secondary); font-size: 0.95rem; }

/* Process steps */
.steps {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 1.6rem;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.08em;
  display: block; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; }

/* Packages */
.packages {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.package {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.package:hover { transform: translateY(-3px); border-color: var(--color-line-2); }
.package--featured {
  border: 1.5px solid var(--blue-primary);
  background:
    linear-gradient(160deg, rgba(37,99,235,0.10) 0%, rgba(143,184,155,0.04) 100%),
    var(--color-surface);
  position: relative;
  box-shadow: 0 16px 60px -24px rgba(37,99,235,0.40);
}
.package__ribbon {
  position: absolute; top: -12px; left: 1.75rem;
  background: var(--grad-button);
  color: #fff; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-weight: 600;
}
.package h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.package__sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.package__price {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex; align-items: baseline; gap: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-line);
}
.package__price small { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.package__features {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: grid; gap: 0.75rem;
  flex: 1;
}
.package__features li {
  display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem;
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5;
}
.package__features li svg { width: 16px; height: 16px; color: var(--sage); margin-top: 4px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chip {
  padding: 0.55rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.85rem; color: var(--text-secondary);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover { border-color: var(--sage); color: var(--text-primary); }

/* Team cards */
.team-grid {
  display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--color-line-2); }
.team-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg);
}
.team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 1.75rem; }
.team-card__role {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; margin-bottom: 0.75rem; display: block;
}
.team-card__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.85rem; }
.team-card__bio { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.6; }

/* CTA block */
.cta-block {
  position: relative; isolation: isolate;
  text-align: center;
  padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2rem, 1rem + 3vw, 5rem);
  border-radius: 24px;
  border: 1px solid var(--color-line-2);
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(37,99,235,0.18), transparent 60%),
    radial-gradient(600px 300px at 50% 110%, rgba(143,184,155,0.10), transparent 60%),
    var(--color-surface);
  overflow: hidden;
}
.cta-block .eyebrow { margin-bottom: 1.5rem; }
.cta-block h2 { margin-bottom: 1.25rem; max-width: 18ch; margin-inline: auto; }
.cta-block .lead { margin: 0 auto 2.5rem; max-width: 56ch; }
.cta-block .actions { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* Loxone Partner badge */
.loxone-badge {
  display: inline-flex; align-items: center; gap: 0.875rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
}
.loxone-badge img { height: 38px; width: auto; border-radius: 6px; }
.loxone-badge .text {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.3;
}
.loxone-badge .text strong { color: var(--text-primary); display: block; font-weight: 600; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 2rem;
  background: #0F1218;
  border-top: 1px solid var(--color-line);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.95rem; max-width: 36ch; margin-top: 1rem;
}
.footer-brand img { height: 38px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 500; margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; }
.footer-col a {
  color: var(--text-secondary); font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding-top: 1.75rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom .partner-mini { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom .partner-mini img { height: 22px; width: auto; border-radius: 3px; }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-cue::after { animation: none; }
  .hero__media video { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .featured { grid-column: span 1; grid-template-columns: 1fr; }
  .services-grid .featured .featured__media { min-height: 220px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packages { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .split__media { aspect-ratio: 16/10; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 80px 1rem auto;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 16px;
    align-items: stretch; gap: 1.25rem;
  }
  .hero { min-height: 86vh; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
}

/* =========================================================
   v3 — Markets Grid
   ========================================================= */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.market-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  gap: 1rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.market-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-line-2);
  background: var(--color-surface-2);
}
.market-card__tag {
  display: inline-flex; align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.market-card__tag--resi {
  background: rgba(143,184,155,0.15);
  color: var(--sage);
  border: 1px solid rgba(143,184,155,0.3);
}
.market-card__tag--commercial {
  background: rgba(14,165,198,0.15);
  color: var(--teal-cyan);
  border: 1px solid rgba(14,165,198,0.3);
}
.market-card__tag--institutional {
  background: rgba(59,130,246,0.15);
  color: #6FA4F0;
  border: 1px solid rgba(59,130,246,0.3);
}
.market-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}
.market-card p { color: var(--text-secondary); }
.market-card__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .markets-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   v3 — Packages Page (lifestyle-led)
   ========================================================= */
.package-section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }

.package-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: center;
}
.package-feature--reverse { direction: rtl; }
.package-feature--reverse > * { direction: ltr; }

.package-feature__media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: 0 20px 50px -25px rgba(0,0,0,0.6);
}
.package-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
}

.package-feature__tier {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}
.package-feature__tier--featured { color: var(--teal-cyan); }
.package-feature__ribbon {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, rgba(14,165,198,0.2), rgba(143,184,155,0.2));
  border: 1px solid rgba(14,165,198,0.35);
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.package-feature__body h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.package-feature__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}
.package-feature__details h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.package-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.package-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.5;
}
.package-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.package-investment {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.package-investment span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.package-investment strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.package-feature__cta { margin-top: 2rem; }

/* Section background tints to make tiers visually distinct */
.package-section--starter {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(143,184,155,0.04) 100%);
}
.package-section--elevated {
  position: relative;
}
.package-section--elevated::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(14,165,198,0.10), transparent 60%);
  pointer-events: none;
}
.package-section--premium {
  position: relative;
}
.package-section--premium::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at bottom left, rgba(37,99,235,0.10), transparent 60%);
  pointer-events: none;
}

/* Commercial note */
.commercial-note {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 22px;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  background-image: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(14,165,198,0.04));
}

@media (max-width: 980px) {
  .package-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .package-feature--reverse { direction: ltr; }
  .package-feature__details { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================================
   Contact form + sidebar
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  line-height: 1.45;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--color-surface-2);
  box-shadow: 0 0 0 4px rgba(143,184,155,0.16);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23C7CDD8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 1.75rem 1.75rem;
}
.contact-card h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--sage); }
.contact-card--partner {
  background: linear-gradient(135deg, rgba(143,184,155,0.08), rgba(37,99,235,0.04));
  border-color: rgba(143,184,155,0.25);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .field-row { grid-template-columns: 1fr; }
}
