/* =================================================================
   MAGE ZAL — Immobilier & Peinture
   Design & build: Team Rhino (www.tmrhino.com)
   ================================================================= */

:root {
    --ink:        #0a2540;
    --ink-2:      #071a30;
    --ink-3:      #0e2f52;
    --gold:       #c39a4d;
    --gold-2:     #d8b45e;
    --gold-soft:  #ecd39a;
    --paper:      #f6f3ec;
    --cream:      #fbfaf6;
    --white:      #ffffff;
    --muted:      #5a6472;
    --line:       rgba(10, 37, 64, .12);
    --line-2:     rgba(10, 37, 64, .06);

    --f-display: "Fraunces", Georgia, serif;
    --f-body:    "Manrope", system-ui, -apple-system, sans-serif;

    --container: 1240px;
    --radius:    18px;
    --radius-lg: 28px;

    --ease:   cubic-bezier(.22, 1, .36, 1);
    --ease-2: cubic-bezier(.65, .05, .36, 1);
    --dur:    .7s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    font-family: var(--f-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--ink-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.ink { color: var(--gold); font-style: italic; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; }

.tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-body); font-size: .74rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold); padding-bottom: 4px; margin-bottom: 22px;
}
.tag::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.tag--light { color: var(--gold-soft); }
.tag--light::before { background: var(--gold-soft); }

.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title { font-size: clamp(2.1rem, 5.4vw, 4.1rem); }
.section__sub { margin-top: 22px; font-size: 1.06rem; color: var(--muted); max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--ink); --fg: var(--white);
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 28px; border-radius: 100px;
    font-weight: 700; font-size: .95rem; letter-spacing: .01em;
    background: var(--bg); color: var(--fg);
    overflow: hidden; isolation: isolate;
    transition: transform .5s var(--ease), color .4s var(--ease), box-shadow .5s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--gold); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--ink-2); box-shadow: 0 18px 40px -18px rgba(10,37,64,.5); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { --bg: var(--gold); --fg: var(--ink-2); }
.btn--gold::after { background: var(--ink); }
.btn--gold:hover { color: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn--ghost::after { background: var(--white); }
.btn--ghost:hover { color: var(--ink-2); border-color: transparent; }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; padding: 18px; }

/* ---------- Grain & ambient ---------- */
.grain {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .035;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAA20lEQVRoge3YMQ7CQBBE0W+Q+P9zBkhISJYsz6x7Oi/YYKuqZ9e2fn5+fr8KfKYO8E9uqQO8YUfyVDnynDrAO+5IHn0+qnx6TR3gnUeSp8qR5xyJrr2mDvDOHclDdSaS56lyZE3qAO/YkTxUR/LUOdKUMuWpciRPnSNNKVKeKkeecksdYE+dI005U54qR54KR+4qR5pyJE+VI00pU54qR/LUORK1I3mqHGnKmfJUOdKUcqQ8VY48pY9H0o7kqXKkKWfKU+VIU8qUp8qRp/TxSNqRPFWONOVMeaocecr/AIe1HPz3pQ9HAAAAAElFTkSuQmCC");
    background-repeat: repeat; background-size: 100px;
}
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; opacity: .4; }
.blob--1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(195,154,77,.22), transparent 70%); top: -120px; right: -120px; }
.blob--2 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(10,37,64,.12), transparent 70%); bottom: -200px; left: -160px; }
@media (max-width: 900px) { .grain, .ambient { display: none; } }

/* ---------- Custom cursor ---------- */
.cursor {
    position: fixed; top: 0; left: 0; width: 34px; height: 34px; z-index: 10000;
    border: 1px solid var(--gold); border-radius: 50%; pointer-events: none;
    transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
    display: grid; place-items: center; will-change: transform;
}
.cursor__label { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transition: opacity .3s; }
.cursor.is-view { width: 84px; height: 84px; background: var(--gold); border-color: var(--gold); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-hover { width: 58px; height: 58px; background: rgba(195,154,77,.15); }
.cursor.is-hide { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 10001; background: var(--ink-2); display: grid; place-items: center; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader__mark { font-family: var(--f-display); font-size: 3rem; color: var(--gold); letter-spacing: .1em; }
.loader__bar { width: 180px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.loader__text { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.loader.is-done { opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); z-index: 9999; }

/* ---------- Header ---------- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
    padding: 18px 0; transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
/* Header on top of hero: white text */
.header:not(.is-stuck) .brand__text strong { color: var(--white); }
.header:not(.is-stuck) .brand__text em { color: var(--gold-soft); }
.header:not(.is-stuck) .nav__link { color: var(--white); }
.header:not(.is-stuck) .header__phone span { color: var(--white); }
.header:not(.is-stuck) .burger { border-color: rgba(255,255,255,.35); }
.header:not(.is-stuck) .burger span { background: var(--white); }
.header:not(.is-stuck) .brand__logo { filter: brightness(0) invert(1); }

.header.is-stuck { padding: 10px 0; background: rgba(246,243,236,.96); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) {
    @media (hover: hover) { .header.is-stuck { background: rgba(246,243,236,.82); backdrop-filter: blur(8px); } }
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 46px; object-fit: contain; transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--f-display); font-size: 1.18rem; font-weight: 600; letter-spacing: .01em; }
.brand__text em { font-style: normal; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.nav { display: flex; gap: 6px; }
.nav__link { position: relative; padding: 8px 14px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.header__phone svg { width: 17px; height: 17px; color: var(--gold); }
.header__phone span { transition: color .3s; }
.header__phone:hover span { color: var(--gold); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 1.6px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger.is-open span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 890; background: var(--ink-2); color: var(--white);
    display: flex; flex-direction: column; justify-content: center; padding: 40px 32px;
    clip-path: circle(0% at calc(100% - 45px) 45px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 45px) 45px); visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__link { font-family: var(--f-display); font-size: clamp(2rem, 11vw, 3.2rem); display: flex; align-items: baseline; gap: 16px; padding: 8px 0; transform: translateY(30px); opacity: 0; }
.mobile-menu.is-open .mobile-menu__link { transform: translateY(0); opacity: 1; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.mobile-menu__link span { font-family: var(--f-body); font-size: .8rem; color: var(--gold); font-weight: 700; }
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__footer { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__footer a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-weight: 600; }
.mobile-menu__footer svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: 64px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 120%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(7,26,48,.55) 0%, rgba(7,26,48,.35) 35%, rgba(7,26,48,.82) 100%),
    linear-gradient(90deg, rgba(7,26,48,.6), transparent 60%); }
.hero__inner { position: relative; color: var(--white); padding-top: 120px; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 26px; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(195,154,77,.3); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(195,154,77,.3);} 50% { box-shadow: 0 0 0 9px rgba(195,154,77,0);} }

.hero__title { font-size: clamp(3rem, 12vw, 9rem); font-weight: 400; line-height: .92; margin-bottom: 30px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line--accent { color: var(--gold); font-style: italic; }
.hero__title .word { display: inline-block; }

.hero__lead { max-width: 520px; font-size: 1.15rem; color: rgba(255,255,255,.82); margin-bottom: 38px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 720px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 30px; }
.stat__num { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); line-height: 1; }
.stat__label { font-size: .82rem; color: rgba(255,255,255,.65); letter-spacing: .02em; }

.hero__scroll { position: absolute; bottom: 30px; right: 32px; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__scroll span { width: 1px; height: 46px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--gold); animation: scrolldown 1.8s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: translateY(-100%);} 100% { transform: translateY(250%);} }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--white); padding: 22px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-style: italic; white-space: nowrap; color: rgba(255,255,255,.92); }
.marquee__track i { color: var(--gold); font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / Piliers ---------- */
.intro { background: var(--paper); }
.intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; margin-bottom: clamp(60px, 8vw, 110px); }
.intro__title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin-bottom: 24px; }
.intro__text { color: var(--muted); font-size: 1.08rem; max-width: 480px; margin-bottom: 30px; }
.intro__list { display: flex; flex-direction: column; gap: 14px; }
.intro__list span { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.intro__list svg { width: 20px; height: 20px; color: var(--white); background: var(--gold); border-radius: 50%; padding: 3px; flex-shrink: 0; }

.intro__figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.intro__figure img { width: 100%; height: 560px; object-fit: cover; }
@media (hover: hover) { .intro__figure img { transition: transform 1.2s var(--ease); } .intro__figure:hover img { transform: scale(1.06); } }
.intro__badge { position: absolute; bottom: 24px; left: 24px; background: var(--cream); border-radius: 16px; padding: 18px 24px; display: flex; flex-direction: column; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.intro__badge strong { font-family: var(--f-display); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.intro__badge span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { position: relative; background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 40px 34px; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pillar:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(10,37,64,.35); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__idx { font-family: var(--f-display); font-size: .9rem; color: var(--gold); font-weight: 600; }
.pillar__icon { width: 42px; height: 42px; color: var(--ink); margin: 20px 0 18px; stroke-width: 1.4; }
.pillar h3 { font-size: 1.7rem; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: .98rem; }

/* ---------- Services ---------- */
.services { background: var(--ink-2); color: var(--white); }
.services .section__sub { color: rgba(255,255,255,.65); }
.services .ink { color: var(--gold); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 36px 32px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .5s, transform .6s var(--ease); }
.scard--lg { }
.scard__bg { position: absolute; inset: 0; z-index: 0; opacity: 0; background-size: cover; background-position: center; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.scard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,48,.3), rgba(7,26,48,.92)); opacity: 0; transition: opacity .6s; z-index: 1; }
.scard > * { position: relative; z-index: 2; }
.scard:hover { transform: translateY(-6px); border-color: rgba(195,154,77,.5); }
.scard.is-img::after { opacity: 1; }
.scard__num { font-family: var(--f-display); font-size: .85rem; color: var(--gold); margin-bottom: 8px; }
.scard__icon { width: 40px; height: 40px; color: var(--gold-soft); stroke-width: 1.3; margin-bottom: 22px; }
.scard h3 { font-size: 1.4rem; margin-bottom: 10px; }
.scard p { color: rgba(255,255,255,.68); font-size: .96rem; margin-bottom: 20px; }
.scard__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); margin-top: auto; }
.scard__link svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.scard:hover .scard__link svg { transform: translate(3px, -3px); }

/* ---------- Réalisations ---------- */
.works { background: var(--paper); }
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 20px; }
.work { position: relative; border-radius: var(--radius); overflow: hidden; grid-row: span 1; }
.work--tall { grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .work img { transition: transform 1.1s var(--ease); } .work:hover img { transform: scale(1.08); } }
.work figcaption { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 22px; background: linear-gradient(180deg, transparent 40%, rgba(7,26,48,.85)); color: var(--white); opacity: 0; transition: opacity .5s var(--ease); }
.work:hover figcaption { opacity: 1; }
.work figcaption span { font-family: var(--f-display); font-size: 1.15rem; font-style: italic; }
.work figcaption svg { width: 22px; height: 22px; color: var(--gold); }

/* ---------- Méthode ---------- */
.method { background: var(--cream); }
.method__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.method__progress { position: absolute; top: 30px; left: 6%; right: 6%; height: 2px; background: var(--line); }
.method__progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.step { position: relative; opacity: 1; }
.step__num { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); position: relative; z-index: 2; margin-bottom: 24px; }
.step__body svg { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.4; margin-bottom: 14px; }
.step__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step__body p { color: var(--muted); font-size: .96rem; }

/* ---------- Reviews ---------- */
.reviews { background: var(--paper); }
.reviews__wrap { position: relative; overflow: hidden; padding: 0 32px; max-width: var(--container); margin: 0 auto; }
.reviewsSwiper { overflow: hidden; }
.swiper-slide.review { background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 44px 40px; height: auto; display: flex; flex-direction: column; box-sizing: border-box; }
.review__quote { width: 44px; height: 44px; color: var(--gold); opacity: .5; margin-bottom: 18px; }
.review__stars { display: flex; gap: 4px; margin-bottom: 16px; }
.review__stars svg { width: 18px; height: 18px; color: var(--gold); fill: var(--gold); }
.review p { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.45; font-style: italic; margin-bottom: 26px; }
.review footer { margin-top: auto; }
.review footer strong { display: block; font-size: 1rem; }
.review footer span { font-size: .85rem; color: var(--muted); }
.reviews__ctrl { display: flex; gap: 12px; margin-top: 36px; justify-content: center; }
.rbtn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.rbtn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: scale(1.06); }
.rbtn svg { width: 20px; height: 20px; }

/* ---------- Coverage ---------- */
.coverage { background: var(--ink); color: var(--white); }
.coverage__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.coverage .ink { color: var(--gold); }
.coverage .section__sub { color: rgba(255,255,255,.68); }
.coverage__cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.coverage__cities li { padding: 8px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 100px; font-size: .9rem; font-weight: 600; transition: background .4s, color .4s, border-color .4s; }
.coverage__cities li:hover { background: var(--gold); color: var(--ink-2); border-color: var(--gold); }
.coverage__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cbadge { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 24px; transition: transform .5s var(--ease), background .5s; }
.cbadge:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.cbadge svg { width: 32px; height: 32px; color: var(--gold); stroke-width: 1.4; margin-bottom: 16px; }
.cbadge strong { display: block; font-family: var(--f-display); font-size: 1.25rem; margin-bottom: 4px; }
.cbadge span { font-size: .86rem; color: rgba(255,255,255,.6); }

/* ---------- Contact ---------- */
.contact { background: var(--ink-2); color: var(--white); overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__title { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 22px; }
.contact__lead { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 420px; margin-bottom: 40px; }
.contact__info { display: flex; flex-direction: column; gap: 22px; }
.contact__info li { display: flex; align-items: center; gap: 16px; }
.contact__info svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.contact__info span { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact__info a { font-size: 1.1rem; font-weight: 600; transition: color .3s; }
.contact__info a:hover { color: var(--gold); }

.form { background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 46px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { position: relative; margin-bottom: 22px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 22px 16px 10px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--white); font-family: inherit; font-size: 1rem; color: var(--ink);
    transition: border-color .3s, box-shadow .3s; cursor: none; resize: vertical;
}
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: 1rem; pointer-events: none; transition: transform .25s var(--ease), font-size .25s var(--ease), color .25s; transform-origin: left; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195,154,77,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-11px) scale(.78); color: var(--gold); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form__note { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: 16px; }
.form__note svg { width: 15px; height: 15px; color: var(--gold); }
.form__status { margin-top: 16px; font-weight: 600; font-size: .92rem; border-radius: 12px; padding: 0; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .4s; }
.form__status.show { padding: 14px 18px; max-height: 120px; }
.form__status.ok { background: rgba(38,160,105,.12); color: #1c7a4f; }
.form__status.err { background: rgba(214,69,69,.1); color: #b23030; }
#submitBtn.is-loading { pointer-events: none; opacity: .75; }
#submitBtn.is-loading .btn__label::after { content: ""; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 80px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer .brand__logo { filter: brightness(0) invert(1); }
.brand--footer .brand__text strong { color: var(--white); }
.footer__brand p { margin: 20px 0 24px; font-size: .95rem; max-width: 320px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .4s, color .4s, transform .4s var(--ease); }
.footer__social a:hover { background: var(--gold); color: var(--ink-2); transform: translateY(-4px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { color: var(--white); font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.footer__col a, .footer__col span { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .95rem; transition: color .3s, transform .3s; }
.footer__col a:hover { color: var(--gold); transform: translateX(3px); }
.footer__col a.btn { display: inline-flex; padding: 11px 20px; transform: none; color: var(--ink-2); }
.footer__col a.btn:hover { color: var(--white); transform: none; }
.footer__col svg { width: 16px; height: 16px; color: var(--gold); }
.footer__cta { margin-top: 16px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: .85rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--gold); }
.footer__credit a { color: var(--gold); font-weight: 700; }

/* ---------- Floating ---------- */
.floating { position: fixed; right: 22px; bottom: 22px; z-index: 850; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); transition: transform .4s var(--ease); }
.fab:hover { transform: scale(1.1); }
.fab svg { width: 24px; height: 24px; }
.fab--wa { background: #25d366; }
.fab--call { background: var(--gold); color: var(--ink-2); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 10002; background: rgba(7,26,48,.94); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 84vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox__close { position: absolute; top: 26px; right: 26px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: var(--white); display: grid; place-items: center; transition: background .3s, transform .3s; }
.lightbox__close:hover { background: var(--gold); color: var(--ink-2); transform: rotate(90deg); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: var(--white); display: grid; place-items: center; transition: background .3s; }
.lightbox__nav:hover { background: var(--gold); color: var(--ink-2); }
.lightbox__prev { left: 26px; } .lightbox__next { right: 26px; }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }

/* ---------- Reveal base ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
/* Hero words: hidden only while loader is visible, visible by default as fallback */
[data-splitline] .word { display: inline-block; transform: translateY(110%); }
body.is-loaded [data-splitline] .word { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
    .nav, .header__phone { display: none; }
    .burger { display: flex; }
    .intro__grid, .coverage__inner, .contact__grid { grid-template-columns: 1fr; }
    .intro__figure img { height: 360px; }
    .pillars { grid-template-columns: 1fr; gap: 16px; }
    .pillar { padding: 28px 24px; }
    .pillar h3 { font-size: 1.4rem; }
    .method__steps { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .method__progress { display: none; }
    .works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 12px; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 620px) {
    :root { --radius: 14px; --radius-lg: 20px; }
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }

    /* Hero compact */
    .hero { min-height: 92svh; padding-bottom: 40px; }
    .hero__inner { padding-top: 100px; }
    .hero__title { font-size: clamp(2.6rem, 14vw, 4rem); margin-bottom: 20px; }
    .hero__eyebrow { font-size: .7rem; margin-bottom: 18px; }
    .hero__lead { font-size: 1rem; margin-bottom: 24px; }
    .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 36px; }
    .hero__cta .btn { justify-content: center; padding: 14px 22px; font-size: .9rem; }
    .hero__stats { gap: 14px; padding-top: 20px; }
    .stat__num { font-size: 1.6rem; }
    .stat__label { font-size: .72rem; }
    .hero__scroll { display: none; }

    /* Marquee */
    .marquee { padding: 14px 0; }
    .marquee__track span { font-size: 1.2rem; }

    /* Intro */
    .intro__title { font-size: 1.7rem; }
    .intro__text { font-size: .96rem; margin-bottom: 20px; }
    .intro__list span { font-size: .9rem; }
    .intro__figure img { height: 280px; }
    .intro__badge { padding: 14px 18px; bottom: 16px; left: 16px; }
    .intro__badge strong { font-size: 1.8rem; }

    /* Services */
    .services__grid { grid-template-columns: 1fr; gap: 12px; }
    .scard { min-height: auto; padding: 24px 20px; }
    .scard__icon { width: 32px; height: 32px; margin-bottom: 16px; }
    .scard h3 { font-size: 1.2rem; margin-bottom: 6px; }
    .scard p { font-size: .88rem; margin-bottom: 14px; }

    /* Works */
    .works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
    .work--tall { grid-row: span 1; }
    .work { border-radius: 10px; }

    /* Method */
    .method__steps { grid-template-columns: 1fr; gap: 20px; }
    .step { display: flex; gap: 16px; align-items: flex-start; }
    .step__num { width: 44px; height: 44px; font-size: 1rem; flex-shrink: 0; margin-bottom: 0; }
    .step__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
    .step__body p { font-size: .88rem; }
    .step__body svg { width: 22px; height: 22px; margin-bottom: 8px; }

    /* Reviews */
    .reviews__wrap { padding: 0 16px; }
    .swiper-slide.review { padding: 24px 20px; border-radius: var(--radius); }
    .review__quote { width: 30px; height: 30px; margin-bottom: 12px; }
    .review__stars svg { width: 15px; height: 15px; }
    .review p { font-size: 1rem; margin-bottom: 18px; }
    .reviews__ctrl { margin-top: 20px; }
    .rbtn { width: 44px; height: 44px; }

    /* Coverage */
    .coverage__badges { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cbadge { padding: 18px 16px; }
    .cbadge svg { width: 24px; height: 24px; margin-bottom: 10px; }
    .cbadge strong { font-size: 1.05rem; }
    .cbadge span { font-size: .78rem; }
    .coverage__cities { gap: 8px; margin-top: 20px; }
    .coverage__cities li { padding: 6px 14px; font-size: .82rem; }

    /* Contact */
    .form { padding: 24px 18px; border-radius: var(--radius); }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .field { margin-bottom: 16px; }
    .field input, .field select, .field textarea { padding: 18px 14px 8px; font-size: .95rem; border-radius: 10px; }
    .field textarea { min-height: 100px; }
    .contact__title { font-size: 1.8rem; }
    .contact__lead { font-size: .95rem; margin-bottom: 24px; }
    .contact__info { gap: 14px; }

    /* Footer */
    .footer { padding: 48px 0 24px; }
    .footer__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
    .footer__brand p { font-size: .88rem; margin: 14px 0 16px; }
    .footer__col h4 { margin-bottom: 14px; font-size: .72rem; }
    .footer__col a, .footer__col span { font-size: .88rem; padding: 4px 0; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 18px; font-size: .8rem; }

    /* Floating smaller */
    .floating { right: 14px; bottom: 14px; gap: 8px; }
    .fab { width: 48px; height: 48px; }
    .fab svg { width: 20px; height: 20px; }

    /* Section heads */
    .section__head { margin-bottom: 28px; }
    .section__title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .section__sub { font-size: .92rem; margin-top: 12px; }
    .tag { font-size: .68rem; margin-bottom: 14px; letter-spacing: .18em; }
    .tag::before { width: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .hero__img { height: 100%; }
}
