/* ==========================================================================
   ZEAL REALTY — site styles
   Built on the Lamborghini Design System tokens. Pure-black canvas, white
   voice, gold reserved for CTAs. Zero radius, hairline dividers, no shadows.
   Entrance motion only (scroll reveals / parallax / counters); hover stays
   color-only per the system.
   ========================================================================== */

* { box-sizing: border-box; }

/* ---- Brand accent: refreshing mint (tweakable via Tweaks panel) ----------- */
:root {
  --lambo-gold: #2BC49A;        /* primary CTA / accent — refreshing mint */
  --lambo-gold-dark: #1E8C6E;   /* hover / pressed */
  --lambo-gold-text: #8FE8CE;   /* lighter mint for inline text accents */
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-abyss);
  color: var(--text-body);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--lambo-gold); color: #000; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ---- Layout helpers ------------------------------------------------------ */
.zl-content { max-width: var(--content-max); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.zl-wide    { max-width: var(--container-max); margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.zl-section { padding-top: 120px; padding-bottom: 120px; position: relative; }
.zl-section--tight { padding-top: 88px; padding-bottom: 88px; }

.zl-divider { border: 0; border-top: 1px solid var(--border-hairline); margin: 0; }

/* ---- Display type scale (responsive, uppercase, weight 400) --------------- */
.zl-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--lambo-gold-text);
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.zl-eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--lambo-gold-text);
  opacity: .8;
}
.zl-eyebrow--plain::before { display: none; }

.zl-h1 {
  font-family: var(--font-display-expanded);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.5px;
  margin: 0;
  font-size: clamp(2.75rem, 7.4vw, 6.75rem);
}
.zl-h2 {
  font-family: var(--font-display-expanded);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -0.3px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}
.zl-h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.08;
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.zl-lead {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-body-strong);
  font-weight: var(--fw-light);
}
.zl-body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-body);
}
.zl-kicker-num {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: var(--fw-regular);
}

/* ---- Reveal-on-scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--left.is-in, .reveal--right.is-in { transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }
.reveal[data-d="5"] { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- image-slot theming -------------------------------------------------- */
image-slot {
  --slot-bg: #101010;
  background: #0d0d0d;
  display: block;
}

/* ---- Splash intro --------------------------------------------------------- */
.zl-splash {
  position: fixed; inset: 0; z-index: 500; background: #000;
  display: grid; place-items: center;
  transition: opacity .7s ease;
}
.zl-splash.is-done { opacity: 0; pointer-events: none; }
.zl-splash img { height: 110px; width: auto; opacity: 0; transform: translateY(14px); animation: zl-splash-in 1s cubic-bezier(0.16,1,0.3,1) forwards; }
.zl-splash .wm { margin-top: 22px; color: var(--text-muted); font-family: var(--font-ui); font-size: 11px; letter-spacing: 4px; text-transform: uppercase; opacity: 0; animation: zl-splash-in 1s .25s cubic-bezier(0.16,1,0.3,1) forwards; }
.zl-splash .bar { margin-top: 30px; width: 120px; height: 1px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.zl-splash .bar::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 40%; background: var(--lambo-gold-text); animation: zl-splash-bar 1.2s ease forwards; }
@keyframes zl-splash-in { to { opacity: 1; transform: none; } }
@keyframes zl-splash-bar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .zl-splash { display: none; } }

/* ---- Header / nav -------------------------------------------------------- */
.zl-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: background-color .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.zl-header.is-scrolled {
  background: rgba(0,0,0,0.82);
  border-bottom: 1px solid var(--border-hairline);
  padding: 14px 40px;
  backdrop-filter: saturate(120%) blur(2px);
}
.zl-logo { display: flex; align-items: center; gap: 12px; }
.zl-logo img { height: 46px; width: auto; transition: height .4s ease; }
.zl-header.is-scrolled .zl-logo img { height: 38px; }
.zl-nav-right { display: flex; align-items: center; gap: 20px; }

.zl-menu-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: none; cursor: pointer; padding: 8px 4px;
  font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: 2px;
  text-transform: uppercase; color: var(--white); font-weight: var(--fw-medium);
}
.zl-menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.zl-menu-btn .bars span { width: 22px; height: 1.5px; background: var(--white); display: block; transition: transform .3s ease; }
.zl-menu-btn:hover .bars span:first-child { transform: translateX(3px); }

/* ---- Menu overlay -------------------------------------------------------- */
.zl-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.97);
  display: grid; grid-template-columns: 1.3fr 1fr;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
.zl-overlay.is-open { opacity: 1; pointer-events: auto; }
.zl-overlay-close {
  position: absolute; top: 22px; right: 40px; z-index: 2;
  background: transparent; border: none; color: var(--white); cursor: pointer;
  font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: 2px;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
}
.zl-overlay-nav { padding: 120px 40px 40px 8vw; display: flex; flex-direction: column; justify-content: center; }
.zl-overlay-nav a {
  font-family: var(--font-display-expanded); text-transform: uppercase;
  color: var(--white); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.28;
  font-weight: var(--fw-regular); letter-spacing: -0.3px;
  opacity: .55; transition: opacity .25s ease, color .25s ease;
  display: flex; align-items: baseline; gap: 18px;
}
.zl-overlay-nav a .idx { font-family: var(--font-ui); font-size: .8rem; letter-spacing: 2px; color: var(--lambo-gold-text); opacity: .8; }
.zl-overlay-nav a:hover { opacity: 1; }
.zl-overlay-side {
  border-left: 1px solid var(--border-hairline); padding: 120px 6vw 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  background: var(--surface-iron);
}
.zl-overlay-side .lbl { color: var(--text-muted); }

/* ---- Hero ---------------------------------------------------------------- */
.zl-hero { position: relative; height: 100vh; min-height: 640px; width: 100%; overflow: hidden; }
.zl-hero-media { position: absolute; inset: -8% 0 -8% 0; }
.zl-hero-media image-slot { width: 100%; height: 100%; }
.zl-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.zl-hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 32%, rgba(0,0,0,.25) 62%, rgba(0,0,0,.92) 100%),
    linear-gradient(to right, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 55%);
}
.zl-hero-inner { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8vh; }
.zl-hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px 26px;
}
.zl-hero-progress { flex: 1; height: 1px; background: rgba(255,255,255,.22); position: relative; margin-right: 24px; }
.zl-hero-progress::after { content:""; position:absolute; left:0; top:0; height:100%; width:24%; background: var(--white); animation: zl-progress 9s linear infinite; }
@keyframes zl-progress { 0% { width: 4%; } 100% { width: 100%; } }

.zl-hex-btn {
  width: 54px; height: 60px; flex: 0 0 auto; position: relative; cursor: pointer;
  display: grid; place-items: center; opacity: .85; transition: opacity .2s ease;
}
.zl-hex-btn:hover { opacity: 1; }
.zl-hex-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.zl-scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.zl-scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,.5), rgba(255,255,255,0)); animation: zl-cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes zl-cue { 0%,100% { transform: scaleY(.4); opacity:.4;} 50% { transform: scaleY(1); opacity:1; } }

/* ---- Buttons wrapper spacing --------------------------------------------- */
.zl-cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---- Stat counters ------------------------------------------------------- */
.zl-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.zl-stat { padding: 12px 32px 12px 0; border-left: 1px solid var(--border-hairline); padding-left: 28px; }
.zl-stat:first-child { border-left: none; padding-left: 0; }
.zl-stat-num { font-family: var(--font-display-expanded); font-weight: var(--fw-regular); color: var(--white); font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -1px; }
.zl-stat-num .u { color: var(--lambo-gold-text); }
.zl-stat-label { margin-top: 14px; color: var(--text-muted); font-size: var(--fs-label); letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.5; }

/* ---- Cards / grids ------------------------------------------------------- */
.zl-grid { display: grid; gap: 1px; background: var(--border-hairline); }
.zl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.zl-grid-2 { grid-template-columns: repeat(2, 1fr); }

.zl-svc {
  background: var(--surface-abyss); padding: 44px 36px 40px;
  transition: background-color .35s ease; position: relative; min-height: 280px;
  display: flex; flex-direction: column;
}
.zl-svc:hover { background: var(--surface-charcoal); }
.zl-svc .ic { color: var(--white); margin-bottom: 28px; }
.zl-svc .ic svg { width: 30px; height: 30px; stroke-width: 1.3; }
.zl-svc .no { position: absolute; top: 32px; right: 36px; font-size: var(--fs-label); letter-spacing: 2px; color: var(--text-muted); }
.zl-svc h4 { font-family: var(--font-display); text-transform: uppercase; color: var(--white); font-weight: var(--fw-regular); font-size: 1.3rem; margin: 0 0 14px; line-height: 1.1; }
.zl-svc p { margin: 0; color: var(--text-body); font-size: .95rem; line-height: 1.65; }
.zl-svc .go { margin-top: auto; padding-top: 22px; color: var(--lambo-gold-text); font-size: var(--fs-label); letter-spacing: 2px; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease; }
.zl-svc:hover .go { opacity: 1; transform: none; }

/* ---- Feature / media cards ----------------------------------------------- */
.zl-feature { position: relative; overflow: hidden; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; }
.zl-feature image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.zl-feature .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 6%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.zl-feature .body { position: relative; z-index: 2; padding: 34px; }
.zl-feature .tag-row { position: absolute; top: 26px; left: 26px; z-index: 2; }

/* ---- Timeline ------------------------------------------------------------ */
.zl-timeline { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.zl-timeline::before { content:""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--border-hairline); }
.zl-tl-step { padding: 0 18px; position: relative; }
.zl-tl-node { width: 12px; height: 12px; border: 1px solid var(--ash); background: #000; position: relative; z-index: 2; margin-bottom: 30px; transition: background-color .4s ease, border-color .4s ease; }
.zl-tl-step.is-in .zl-tl-node { background: var(--lambo-gold); border-color: var(--lambo-gold); }
.zl-tl-num { font-size: var(--fs-label); letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; }
.zl-tl-step h4 { font-family: var(--font-display); text-transform: uppercase; color: var(--white); font-weight: var(--fw-regular); font-size: 1.15rem; margin: 0 0 12px; line-height: 1.12; }
.zl-tl-step p { margin: 0; font-size: .88rem; color: var(--text-body); line-height: 1.6; }

/* ---- Why-choose list ----------------------------------------------------- */
.zl-why-item { display: flex; gap: 26px; padding: 34px 0; border-top: 1px solid var(--border-hairline); align-items: flex-start; }
.zl-why-item:last-child { border-bottom: 1px solid var(--border-hairline); }
.zl-why-item .n { font-family: var(--font-display); color: var(--lambo-gold-text); font-size: 1rem; letter-spacing: 1px; width: 54px; flex: 0 0 54px; padding-top: 6px; }
.zl-why-item .ic { color: var(--white); flex: 0 0 auto; }
.zl-why-item .ic svg { width: 26px; height: 26px; stroke-width: 1.3; }
.zl-why-item h4 { font-family: var(--font-display); text-transform: uppercase; color: var(--white); font-weight: var(--fw-regular); font-size: 1.25rem; margin: 0 0 8px; }
.zl-why-item p { margin: 0; color: var(--text-body); font-size: .98rem; line-height: 1.65; max-width: 620px; }

/* ---- Footer -------------------------------------------------------------- */
.zl-footer { background: var(--surface-abyss); border-top: 1px solid var(--border-hairline); }
.zl-footer a.flink { color: var(--text-body); font-size: .95rem; line-height: 2.2; transition: color .2s ease; text-transform: uppercase; letter-spacing: 1px; }
.zl-footer a.flink:hover { color: var(--white); }
.zl-foot-head { color: var(--text-muted); font-size: var(--fs-label); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.zl-social { display: flex; gap: 14px; }
.zl-social a { width: 40px; height: 40px; border: 1px solid var(--border-hairline); display: grid; place-items: center; color: var(--text-body-strong); transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.zl-social a:hover { background: var(--surface-charcoal); color: var(--white); border-color: var(--surface-charcoal); }
.zl-social svg { width: 17px; height: 17px; stroke-width: 1.5; }

/* ---- Contact ------------------------------------------------------------- */
.zl-field { margin-bottom: 26px; }
.zl-map { width: 100%; height: 100%; min-height: 360px; background: var(--surface-iron); position: relative; overflow: hidden; border: 1px solid var(--border-hairline); }
.zl-map .grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--border-hairline) 1px, transparent 1px), linear-gradient(90deg, var(--border-hairline) 1px, transparent 1px);
  background-size: 46px 46px; }
.zl-map .pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%); color: var(--lambo-gold); }
.zl-map .route { position: absolute; top: 20%; left: -10%; right: -10%; height: 2px; background: var(--ash); transform: rotate(-8deg); opacity: .5; }
.zl-map .route.b { top: 68%; transform: rotate(5deg); background: var(--surface-charcoal); height: 8px; opacity: 1; }

.zl-info-card { border: 1px solid var(--border-hairline); padding: 30px; transition: background-color .3s ease; }
.zl-info-card:hover { background: var(--surface-iron); }
.zl-info-card .h { color: var(--text-muted); font-size: var(--fs-label); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.zl-info-card .v { color: var(--white); font-size: 1.15rem; line-height: 1.5; font-family: var(--font-display); text-transform: uppercase; font-weight: var(--fw-regular); }
.zl-info-card .s { color: var(--text-body); font-size: .95rem; margin-top: 6px; }

/* ---- Page hero (inner pages) --------------------------------------------- */
.zl-pagehero { position: relative; height: 62vh; min-height: 460px; overflow: hidden; display: flex; align-items: flex-end; }
.zl-pagehero image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.zl-pagehero .scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,.2) 40%, rgba(0,0,0,.9)); }
.zl-pagehero .inner { position: relative; z-index: 2; padding-bottom: 64px; }

/* ---- Generic responsive grid utilities ------------------------------------
   Applied alongside an inline gridTemplateColumns for the desktop ratio;
   the media queries below use !important to override that inline value at
   narrower widths (inline styles otherwise always beat stylesheet rules). */
.zl-g-stack {}
@media (max-width: 900px) {
  .zl-g-stack { grid-template-columns: 1fr !important; }
}

.zl-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.zl-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.zl-cards-6 { display: grid; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) {
  .zl-cards-3, .zl-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .zl-cards-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .zl-cards-3, .zl-cards-4, .zl-cards-6 { grid-template-columns: 1fr; }
}

.zl-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
@media (max-width: 900px) {
  .zl-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 560px) {
  .zl-footer-grid { grid-template-columns: 1fr; }
}

.zl-leader-card {}
@media (max-width: 900px) {
  .zl-leader-card { grid-template-columns: 1fr !important; min-height: auto !important; }
  .zl-leader-card > image-slot { height: 260px !important; }
}

.zl-about-media {}
@media (max-width: 900px) {
  .zl-about-media { display: flex !important; flex-direction: column !important; height: auto !important; gap: 18px; }
  .zl-about-media > image-slot { height: 280px !important; }
}

/* Force image-before-text stacking order on mobile for flipped service rows,
   regardless of desktop explicit grid-column placement. */
.zl-svcrow-media { order: 1; }
.zl-svcrow-text { order: 2; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .zl-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .zl-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .zl-timeline::before { display: none; }
  .zl-stats { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .zl-stat { border-left: none; padding-left: 0; }
  .zl-overlay { grid-template-columns: 1fr; }
  .zl-overlay-side { display: none; }
  .zl-feature { min-height: 360px !important; }
}
@media (max-width: 720px) {
  .zl-content, .zl-wide { padding-left: 22px; padding-right: 22px; }
  .zl-header { padding: 16px 22px; }
  .zl-header.is-scrolled { padding: 12px 22px; }
  .zl-section { padding-top: 64px; padding-bottom: 64px; }
  .zl-grid-3, .zl-grid-2, .zl-stats { grid-template-columns: 1fr; }
  .zl-hero-foot { padding: 0 22px 20px; }
  .zl-why-item { flex-wrap: wrap; gap: 14px; }
  .zl-overlay-nav { padding: 96px 22px 32px; overflow-y: auto; }
  .zl-overlay-nav a { font-size: 1.7rem; }
  .zl-overlay-close { right: 22px; top: 16px; }
  .zl-feature { min-height: 300px !important; }
}
@media (max-width: 480px) {
  .zl-timeline { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .zl-header .zl-header-cta { display: none; }
}
