/* ==========================================================================
   SUNPRO SERVICES LLC — main.css
   One shared stylesheet for all pages.
   Brand: #DE2E27 (Sunpro red) | Poppins
   Animation system: [data-reveal] + IntersectionObserver (script/main.js)
   ========================================================================== */

:root {
    --red: #DE2E27;
    --red-dark: #B01F19;
    --ink: #1c2228;
    --ink-soft: #45505a;
    --paper: #ffffff;
    --paper-warm: #f7f8f9;
    --line: #e6e9ec;
    --shadow-sm: 0 2px 10px rgba(28, 34, 40, .07);
    --shadow-md: 0 14px 40px rgba(28, 34, 40, .12);
    --radius: 14px;
    --nav-h: 78px;
    --ease-out: cubic-bezier(.22, .8, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style-position: outside; }

::selection { background: var(--red); color: #fff; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.spinner-wrapper {
    position: fixed; inset: 0; z-index: 999;
    background: var(--paper);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 26px;
    transition: opacity .6s var(--ease-out), visibility .6s;
}
.spinner-wrapper.is-hidden { opacity: 0; visibility: hidden; }
.spinner-wrapper img { width: min(240px, 55vw); animation: preloader-breathe 1.6s ease-in-out infinite; }
.spinner-bar {
    width: 160px; height: 3px; border-radius: 3px;
    background: var(--line); overflow: hidden; position: relative;
}
.spinner-bar::after {
    content: ""; position: absolute; inset: 0; width: 40%;
    background: var(--red); border-radius: 3px;
    animation: preloader-slide 1.1s var(--ease-out) infinite;
}
@keyframes preloader-breathe { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
@keyframes preloader-slide { 0% { transform: translateX(-160px) } 100% { transform: translateX(320px) } }

/* ==========================================================================
   REVEAL ANIMATION SYSTEM  (Westward-style fadeIn Up/Down/Left/Right)
   Usage: <div data-reveal="up" data-delay="200"> ... </div>
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(46px); }
[data-reveal="down"]  { transform: translateY(-46px); }
[data-reveal="left"]  { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   NAVIGATION (sticky, shrinks on scroll)
   ========================================================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .35s, border-color .35s, background .35s;
}
.nav.is-scrolled {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, .97);
}
.nav .content {
    max-width: 1240px; margin: 0 auto; padding: 0 24px;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    transition: height .35s var(--ease-out);
}
.nav.is-scrolled .content { height: 64px; }
.nav img.brand { height: 46px; width: auto; transition: height .35s var(--ease-out); }
.nav.is-scrolled img.brand { height: 38px; }

.nav-items { display: flex; gap: 6px; }
.nav-items .listItems {
    font-size: .78rem; font-weight: 600; letter-spacing: .09em;
    padding: 10px 16px; border-radius: 8px;
    color: var(--ink-soft); position: relative;
    transition: color .25s;
}
.nav-items .listItems::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px;
    height: 2px; background: var(--red); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease-out);
}
.nav-items .listItems:hover,
.nav-items .listItems.is-active { color: var(--ink); }
.nav-items .listItems:hover::after,
.nav-items .listItems.is-active::after { transform: scaleX(1); }

/* Hamburger */
#menuToggle { display: none; }
#menuToggle input { display: none; }
.toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.toggle .bar { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .25s; }
#checkbox:checked + .toggle .bar--top { transform: translateY(7.5px) rotate(45deg); }
#checkbox:checked + .toggle .bar--middle { opacity: 0; }
#checkbox:checked + .toggle .bar--bottom { transform: translateY(-7.5px) rotate(-45deg); }

.dropdown {
    display: none; flex-direction: column;
    background: #fff; border-top: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .45s var(--ease-out);
}
.dropdown.is-open { max-height: 320px; }
.dropdown a {
    padding: 15px 26px; font-size: .82rem; font-weight: 600; letter-spacing: .08em;
    color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.dropdown a:hover { color: var(--red); background: var(--paper-warm); }

@media (max-width: 900px) {
    .nav-items { display: none; }
    #menuToggle { display: block; }
    .dropdown { display: flex; }
}

/* ==========================================================================
   HERO (homepage)
   ========================================================================== */
.homeSection {
    position: relative; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: var(--ink);
}
.homeSection #background-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .5;
    animation: hero-zoom 18s var(--ease-out) forwards;
}
@keyframes hero-zoom { from { transform: scale(1.12) } to { transform: scale(1) } }
.homeSection::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 25, 30, .55) 0%, rgba(20, 25, 30, .25) 45%, rgba(20, 25, 30, .75) 100%);
}
.homeContainer {
    position: relative; z-index: 2; text-align: center; color: #fff;
    padding: 0 24px;
}
.hpageLogo {
    width: 92px; margin: 0 auto 26px;
    opacity: 0; animation: rise-in 1s var(--ease-out) .2s forwards;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35));
}
.homeTitle p {
    font-size: clamp(2.3rem, 6vw, 4.3rem);
    font-weight: 300; letter-spacing: .01em; line-height: 1.15;
    opacity: 0; animation: rise-in 1s var(--ease-out) .45s forwards;
}
.homeTitle p b { font-weight: 700; }
.homeTitle h3 {
    margin-top: 16px;
    font-size: clamp(.95rem, 2vw, 1.25rem);
    font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    opacity: 0; animation: rise-in 1s var(--ease-out) .7s forwards;
}
.hero-rule {
    width: 64px; height: 3px; background: var(--red); border-radius: 3px;
    margin: 26px auto 0;
    opacity: 0; animation: rise-in 1s var(--ease-out) .9s forwards;
}
@keyframes rise-in { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }

.hero-scroll {
    position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .75); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0; animation: rise-in 1s var(--ease-out) 1.3s forwards;
}
.hero-scroll span:last-child {
    width: 1.5px; height: 34px; background: rgba(255, 255, 255, .6);
    animation: scroll-pulse 1.8s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scroll-pulse { 0% { transform: scaleY(0) } 55% { transform: scaleY(1) } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ==========================================================================
   GENERIC SECTIONS / LAYOUT
   ========================================================================== */
.section { padding: 96px 24px; }
.section.alt { background: var(--paper-warm); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; }

.eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: var(--red);
    margin-bottom: 14px;
}
h2.section-title {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
    margin-bottom: 20px;
}
.section-title .accent { color: var(--red); }
.lead { color: var(--ink-soft); font-size: 1.02rem; max-width: 68ch; }

.title-rule {
    width: 52px; height: 3px; background: var(--red); border-radius: 3px;
    margin: 22px 0 26px;
}
.center .title-rule { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--red); color: #fff;
    font-family: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .08em;
    padding: 14px 30px; border: 0; border-radius: 999px; cursor: pointer;
    transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
    box-shadow: 0 8px 22px rgba(222, 46, 39, .28);
}
.btn:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(222, 46, 39, .34); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost {
    background: transparent; color: var(--ink); box-shadow: none;
    border: 1.5px solid var(--line);
}
.btn.ghost:hover { border-color: var(--red); color: var(--red); background: transparent; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ==========================================================================
   PAGE HEADER (interior pages)
   ========================================================================== */
.page-hero {
    padding: calc(var(--nav-h) + 84px) 24px 72px;
    background:
        radial-gradient(900px 380px at 85% -10%, rgba(222, 46, 39, .10), transparent 60%),
        linear-gradient(180deg, var(--paper-warm), var(--paper));
    border-bottom: 1px solid var(--line);
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 600; letter-spacing: -.015em;
}

/* ==========================================================================
   STAT COUNTERS  (Westward-style)
   ========================================================================== */
.stats-band {
    background: var(--ink); color: #fff;
    padding: 70px 24px;
    position: relative; overflow: hidden;
}
.stats-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 300px at 15% 120%, rgba(222, 46, 39, .25), transparent 65%);
}
.stats-grid {
    position: relative;
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
    text-align: center;
}
.stat .num {
    font-size: clamp(2.6rem, 6vw, 3.8rem);
    font-weight: 600; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat .num .suffix { color: var(--red); font-weight: 600; }
.stat .divider {
    width: 38px; height: 2px; background: var(--red); border-radius: 2px;
    margin: 16px auto 12px;
}
.stat .label {
    font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}
@media (max-width: 680px) { .stats-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ==========================================================================
   CARDS (services overview, markets)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.svc-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
    position: relative; overflow: hidden;
}
.svc-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--red);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease-out);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: rgba(222, 46, 39, .09); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: background .3s, color .3s, transform .35s var(--ease-out);
}
.svc-card:hover .icon { background: var(--red); color: #fff; transform: scale(1.06) rotate(-4deg); }
.svc-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.svc-card p { font-size: .9rem; color: var(--ink-soft); }

/* Markets cards (image tiles) */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .market-grid { grid-template-columns: 1fr; } }

.market-tile {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--ink);
    box-shadow: var(--shadow-sm);
}
.market-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s var(--ease-out), opacity .5s;
    opacity: .92;
}
.market-tile:hover img { transform: scale(1.07); opacity: .75; }
.market-tile .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(18, 22, 27, .88) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; color: #fff;
}
.market-tile .overlay p { font-weight: 600; font-size: 1.08rem; letter-spacing: .01em; }
.market-tile .overlay .bar {
    width: 30px; height: 3px; background: var(--red); border-radius: 3px;
    margin-bottom: 10px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease-out);
}
.market-tile:hover .overlay .bar { transform: scaleX(1); }
.market-tile .overlay ul {
    list-style: none; font-size: .82rem; color: rgba(255,255,255,.85);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .5s var(--ease-out), opacity .4s .1s, margin .4s;
}
.market-tile:hover .overlay ul { max-height: 120px; opacity: 1; margin-top: 8px; }
.market-tile .overlay ul li { padding: 2px 0; }
.market-tile .overlay ul li::before { content: "— "; color: var(--red); }

/* ==========================================================================
   TEAM — flip cards (Westward-style) + bios
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }

.flip-card { perspective: 1200px; height: 240px; cursor: pointer; }
.flip-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform .8s var(--ease-out);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-inner,
.flip-card:focus-visible .flip-inner,
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
    position: absolute; inset: 0; border-radius: var(--radius);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 26px;
}
.flip-front {
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.flip-front .monogram {
    width: 74px; height: 74px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff; font-size: 1.5rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(222, 46, 39, .3);
}
.flip-front h3 { font-size: 1.08rem; font-weight: 600; }
.flip-front .role { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.flip-back {
    background: var(--ink); color: #fff;
    transform: rotateY(180deg);
    background-image: radial-gradient(400px 200px at 80% 120%, rgba(222,46,39,.4), transparent 60%);
}
.flip-back h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.flip-back p { font-size: .8rem; color: rgba(255,255,255,.8); }
.flip-back .hint {
    margin-top: 16px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red);
}

/* Bios */
.team-member {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 40px; margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--nav-h) + 20px);
    transition: box-shadow .35s, transform .35s var(--ease-out);
}
.team-member:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-member h1 { font-size: 1.35rem; font-weight: 600; }
.team-member .role {
    color: var(--red); font-size: .82rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    margin: 6px 0 16px;
}
.team-member p { color: var(--ink-soft); font-size: .95rem; }
.linkedinacc { margin-top: 18px; }

/* ==========================================================================
   SERVICES PAGE — tabs
   ========================================================================== */
.tabButtons {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 42px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
}
.tab {
    font-size: .82rem; font-weight: 600; letter-spacing: .1em;
    padding: 14px 24px; cursor: pointer;
    color: var(--ink-soft);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .25s, border-color .25s;
    user-select: none;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--red); border-bottom-color: var(--red); }

.serviceContent { display: none; }
.serviceContent.showTab { display: block; animation: tab-in .55s var(--ease-out); }
@keyframes tab-in { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }

.serviceContent .heading {
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600;
}
.serviceContent h3 { font-size: 1.02rem; font-weight: 600; margin: 22px 0 10px; }
.serviceContent p { color: var(--ink-soft); font-size: .95rem; }
.serviceContent ul { padding-left: 22px; color: var(--ink-soft); font-size: .93rem; }
.serviceContent li { margin: 5px 0; }
.serviceContent li::marker { color: var(--red); }
.serviceContent b { color: var(--ink); font-weight: 600; }

.listdesign, .waterServices {
    display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
    margin-top: 18px;
}
@media (max-width: 760px) { .listdesign, .waterServices { grid-template-columns: 1fr; } }

.serviceimageContainer {
    background: var(--ink); color: #fff;
    border-radius: var(--radius);
    padding: 44px 40px; margin-bottom: 30px;
    position: relative; overflow: hidden;
}
.serviceimageContainer::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 220px at 90% 130%, rgba(222,46,39,.45), transparent 60%);
}
.serviceimageContainer > * { position: relative; z-index: 1; }
.serviceimageContainer h3 { color: rgba(255,255,255,.8); font-weight: 400; letter-spacing: .12em; margin-top: 8px; font-size: .85rem; text-transform: uppercase; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.inputGroup { position: relative; margin-bottom: 26px; }
.inputGroup input, .inputGroup textarea {
    width: 100%; font-family: inherit; font-size: .95rem;
    padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink);
    transition: border-color .25s, box-shadow .25s;
    resize: vertical;
}
.inputGroup input:focus, .inputGroup textarea:focus {
    outline: none; border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(222, 46, 39, .1);
}
.inputGroup label {
    position: absolute; top: -9px; left: 12px;
    background: #fff; padding: 0 7px;
    font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-soft);
}

.info-card {
    background: var(--ink); color: #fff;
    border-radius: var(--radius); padding: 40px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.info-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(420px 220px at 100% 0%, rgba(222,46,39,.35), transparent 60%);
}
.info-card > * { position: relative; z-index: 1; }
.info-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
.info-card p { color: rgba(255,255,255,.82); font-size: .92rem; margin-bottom: 10px; }
.info-card .divider { width: 40px; height: 2px; background: var(--red); border-radius: 2px; margin: 22px 0; }
.info-card b { color: #fff; }

/* ==========================================================================
   TERMS PAGE
   ========================================================================== */
.terms-block {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 36px 40px; margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.terms-block h2 {
    font-size: 1.05rem; font-weight: 600; margin-bottom: 12px;
    padding-left: 16px; border-left: 3px solid var(--red);
}
.terms-block p { color: var(--ink-soft); font-size: .93rem; }

/* ==========================================================================
   FLOATING LINKEDIN WIDGET
   ========================================================================== */
.WA_Chat_Widget { position: fixed; bottom: 26px; right: 26px; z-index: 90; }
.WA_FloatingButton a {
    width: 54px; height: 54px; border-radius: 50%;
    background: #0a66c2; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.15rem;
    box-shadow: 0 12px 28px rgba(10, 102, 194, .4);
    transition: transform .3s var(--ease-out), box-shadow .3s;
}
.WA_FloatingButton a:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 36px rgba(10, 102, 194, .5); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--ink); color: rgba(255, 255, 255, .75);
    padding: 60px 24px 40px;
    position: relative; overflow: hidden;
}
.footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--red), transparent 70%);
}
.footer-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
}
.footer img.whoimage { width: 46px; }
.footer a { transition: color .25s; font-size: .85rem; }
.footer a:hover { color: #fff; }
.footer p { font-size: .85rem; }
.footer .linkedin-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    transition: background .3s, transform .3s var(--ease-out);
}
.footer .linkedin-icon:hover { background: #0a66c2; transform: translateY(-3px); }

/* Utility */
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 40px; }
.whoimage-badge { width: 56px; margin: 0 auto 8px; }

/* ==========================================================================
   DARK EDITORIAL THEME  (MNTN-inspired: dark canvas, serif display type,
   gold eyebrow rules, ghost section numbers, photo banners)
   Appended layer — overrides the light theme above.
   ========================================================================== */
:root {
    --bg: #0e1517;
    --bg-2: #121c1f;
    --surface: #17232699;
    --surface-solid: #172326;
    --line-d: rgba(255, 255, 255, .09);
    --text: #eaf0f1;
    --text-soft: #a9b6ba;
    --gold: #e3b04b;
    --serif: 'Playfair Display', Georgia, serif;
}

body { background: var(--bg); color: var(--text); }
::selection { background: var(--gold); color: #10181a; }

/* Display typography — big serif headlines like the reference */
.homeTitle p,
h2.section-title,
.page-hero h1,
.serviceContent .heading,
.team-member h1 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0;
}
h2.section-title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-title .accent { color: var(--gold); }
.lead { color: var(--text-soft); }
.title-rule { background: var(--gold); }

/* Eyebrow with leading gold line — "— A HIKING GUIDE" style */
.eyebrow {
    color: var(--gold);
    display: inline-flex; align-items: center; gap: 14px;
    font-weight: 600; letter-spacing: .26em;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); flex: none; }
.center .eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--gold); flex: none; }

/* Ghost section numbers (01, 02 …) */
.section { position: relative; }
.section[data-num]::before {
    content: attr(data-num);
    position: absolute; top: 26px; left: max(12px, 3.5vw);
    font-family: var(--serif); font-weight: 700; line-height: 1;
    font-size: clamp(5.5rem, 13vw, 10.5rem);
    color: rgba(255, 255, 255, .05);
    pointer-events: none; user-select: none;
}

/* Preloader */
.spinner-wrapper { background: var(--bg); }
.spinner-bar { background: rgba(255, 255, 255, .12); }

/* Navigation — translucent dark like the reference */
.nav { background: rgba(14, 21, 23, .72); }
.nav.is-scrolled { background: rgba(14, 21, 23, .95); border-color: var(--line-d); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.nav-items .listItems { color: var(--text-soft); }
.nav-items .listItems:hover, .nav-items .listItems.is-active { color: #fff; }
.nav-items .listItems::after { background: var(--gold); }
.toggle .bar { background: #fff; }
.dropdown { background: #101a1d; border-color: var(--line-d); }
.dropdown a { color: var(--text-soft); border-color: var(--line-d); }
.dropdown a:hover { color: var(--gold); background: rgba(255,255,255,.04); }

/* Hero — eyebrow above the serif headline, gold rules */
.homeSection::after {
    background: linear-gradient(180deg, rgba(10,15,17,.62) 0%, rgba(10,15,17,.30) 45%, rgba(14,21,23,.96) 100%);
}
.homeTitle { display: flex; flex-direction: column; align-items: center; }
.homeTitle h3 {
    order: -1; margin: 0 0 20px;
    font-size: .74rem; font-weight: 600; letter-spacing: .3em;
    color: var(--gold);
    display: inline-flex; align-items: center; gap: 16px;
}
.homeTitle h3::before, .homeTitle h3::after { content: ""; width: 46px; height: 1px; background: var(--gold); }
.homeTitle p { font-size: clamp(2.5rem, 6.5vw, 4.6rem); font-weight: 600; }
.homeTitle p b { font-weight: 700; font-style: italic; color: #fff; }
.hero-rule { background: var(--gold); }
.hero-scroll { color: rgba(255,255,255,.65); }
.hero-scroll span:last-child { background: rgba(255,255,255,.5); }

/* Sections & surfaces */
.section.alt { background: var(--bg-2); }
.page-hero {
    background:
        radial-gradient(900px 380px at 85% -10%, rgba(227, 176, 75, .08), transparent 60%),
        linear-gradient(180deg, #101a1d, var(--bg));
    border-bottom: 1px solid var(--line-d);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }

/* Buttons — keep Sunpro red primary; ghost adapts to dark */
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Cards */
.svc-card { background: var(--surface-solid); border-color: var(--line-d); }
.svc-card h3 { color: #fff; }
.svc-card p { color: var(--text-soft); }
.svc-card:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.svc-card .icon { background: rgba(222, 46, 39, .16); }

.stats-band { background: var(--bg-2); }

/* Market tiles */
.market-tile { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.market-tile .overlay .bar { background: var(--gold); }
.market-tile .overlay ul li::before { color: var(--gold); }

/* Team */
.flip-front { background: var(--surface-solid); border-color: var(--line-d); }
.flip-front h3 { color: #fff; }
.flip-front .role { color: var(--text-soft); }
.flip-back { background-color: #0c1315; }
.flip-back .hint { color: var(--gold); }
.team-member { background: var(--surface-solid); border-color: var(--line-d); }
.team-member h1 { color: #fff; }
.team-member p { color: var(--text-soft); }
.team-member .role { color: var(--gold); }
.team-member:hover { box-shadow: 0 18px 44px rgba(0,0,0,.5); }

/* Services tabs */
.tabButtons { border-color: var(--line-d); }
.tab { color: var(--text-soft); }
.tab:hover { color: #fff; }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.serviceContent p, .serviceContent ul { color: var(--text-soft); }
.serviceContent b { color: #fff; }
.serviceContent h3 { color: #fff; }
.serviceContent li::marker { color: var(--gold); }

/* Photo banners for AIR / WATER / LAND / SUSTAINABILITY with slow pan */
.serviceimageContainer {
    background-size: cover;
    background-position: center 30%;
    padding: 72px 44px;
    animation: banner-pan 26s ease-in-out infinite alternate;
}
@keyframes banner-pan { from { background-position: center 20% } to { background-position: center 65% } }
.serviceimageContainer::after {
    background:
        linear-gradient(90deg, rgba(10, 15, 17, .85) 0%, rgba(10, 15, 17, .5) 55%, rgba(10, 15, 17, .25) 100%),
        radial-gradient(520px 240px at 92% 135%, rgba(227, 176, 75, .28), transparent 60%);
}
.serviceimageContainer .heading { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.serviceimageContainer h3 { color: var(--gold); letter-spacing: .22em; }
.svc-hero-air   { background-image: url('../images/air.webp'); }
.svc-hero-water { background-image: url('../images/water.webp'); }
.svc-hero-land  { background-image: url('../images/land.webp'); }
.svc-hero-sust  { background-image: url('../images/sustainability.webp'); }

/* Contact */
.inputGroup input, .inputGroup textarea {
    background: var(--surface-solid); border-color: var(--line-d); color: #fff;
}
.inputGroup input:focus, .inputGroup textarea:focus {
    border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227, 176, 75, .12);
}
.inputGroup label { background: var(--bg); color: var(--text-soft); }
.info-card { background: #0c1315; }
.info-card .divider { background: var(--gold); }

/* Terms */
.terms-block { background: var(--surface-solid); border-color: var(--line-d); box-shadow: none; }
.terms-block h2 { color: #fff; border-left-color: var(--gold); }
.terms-block p { color: var(--text-soft); }

/* Footer */
.footer { background: #0a0f11; }
.footer::before { background: linear-gradient(90deg, var(--gold), transparent 70%); }

@media (max-width: 700px) {
    .section[data-num]::before { font-size: 4.6rem; top: 14px; }
}

/* ==========================================================================
   MARKETS PAGE — editorial feature rows, ticker, photo hero
   ========================================================================== */

/* Photo hero with slow Ken Burns */
.mkt-hero {
    position: relative; overflow: hidden;
    min-height: 68svh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 40px) 24px 90px;
}
.mkt-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .38;
    animation: hero-zoom 22s var(--ease-out) forwards;
}
.mkt-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,15,17,.55) 0%, rgba(10,15,17,.35) 50%, var(--bg) 100%);
}
.mkt-hero-inner { position: relative; z-index: 2; width: 100%; }
.mkt-hero h1 {
    font-family: var(--serif); font-weight: 600; color: #fff;
    font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0;
}
.mkt-hero .hero-scroll { bottom: 22px; }

/* Ticker strip */
.ticker {
    overflow: hidden; white-space: nowrap;
    border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
    background: var(--bg-2);
    padding: 16px 0;
}
.ticker-track {
    display: inline-flex; align-items: center; gap: 34px;
    padding-right: 34px;
    animation: ticker-scroll 36s linear infinite;
    will-change: transform;
}
.ticker span {
    font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
    color: var(--text-soft);
}
.ticker i { color: var(--gold); font-style: normal; font-size: .7rem; }
@keyframes ticker-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ==========================================================================
   MARKETS MOSAIC — mixed-size tiles, Ken Burns drift, animated captions
   ========================================================================== */
.mkt-mosaic-sec { padding-top: 48px; }

.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 18px;
}
.m-tile {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    grid-column: span 1; grid-row: span 1;
    background: var(--surface-solid);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .42);
    display: block; color: #fff;
    isolation: isolate;
}
/* size variants */
.m-tile         { grid-column: span 2; grid-row: span 1; }  /* default: wide-ish */
.m-tile.m-tall  { grid-column: span 2; grid-row: span 2; }
.m-tile.m-wide  { grid-column: span 2; grid-row: span 1; }

/* image as a zooming background layer */
.m-tile::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-image: var(--img);
    background-size: cover; background-position: center;
    transform: scale(1.02);
    transition: transform 1.2s var(--ease-out);
}
.m-tile:hover::before { transform: scale(1.12); }
/* gradient scrim */
.m-tile::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,15,17,.05) 30%, rgba(10,15,17,.55) 65%, rgba(10,15,17,.92) 100%);
    transition: background .4s;
}
.m-tile:hover::after {
    background: linear-gradient(180deg, rgba(10,15,17,.15) 20%, rgba(10,15,17,.65) 60%, rgba(10,15,17,.95) 100%);
}

/* ghost number, top-right */
.m-num {
    position: absolute; top: 12px; right: 16px;
    font-family: var(--serif); font-weight: 700;
    font-size: 2.4rem; line-height: 1;
    color: rgba(255,255,255,.22);
    transition: color .4s, transform .4s var(--ease-out);
}
.m-tile:hover .m-num { color: var(--gold); transform: translateY(-2px); }

/* caption block, bottom */
.m-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.m-bar {
    display: block; width: 30px; height: 3px; border-radius: 3px;
    background: var(--gold); margin-bottom: 12px;
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease-out);
}
.m-tile:hover .m-bar { transform: scaleX(1); }
.m-kicker {
    display: block; font-size: .64rem; font-weight: 700;
    letter-spacing: .24em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 6px;
}
.m-cap h3 {
    font-family: var(--serif); font-weight: 600;
    font-size: 1.5rem; line-height: 1.15; color: #fff;
}
/* description hidden until hover — slides up */
.m-cap p {
    font-size: .84rem; color: rgba(255,255,255,.82);
    max-height: 0; opacity: 0; overflow: hidden;
    transform: translateY(6px);
    transition: max-height .5s var(--ease-out), opacity .4s, transform .5s var(--ease-out), margin .4s;
}
.m-tile:hover .m-cap p { max-height: 80px; opacity: 1; transform: none; margin-top: 8px; }

/* gold ring on hover/focus */
.m-tile::before, .m-tile::after { border-radius: var(--radius); }
.m-tile { transition: transform .4s var(--ease-out), box-shadow .4s; }
.m-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,0,0,.55); }
.m-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* tablet */
@media (max-width: 900px) {
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .m-tile, .m-tile.m-wide { grid-column: span 2; grid-row: span 1; }
    .m-tile.m-tall { grid-column: span 2; grid-row: span 2; }
}
/* phone */
@media (max-width: 560px) {
    .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .m-tile, .m-tile.m-wide, .m-tile.m-tall { grid-column: span 1; grid-row: span 1; }
    /* show descriptions by default on touch (no hover) */
    .m-cap p { max-height: 80px; opacity: 1; transform: none; margin-top: 8px; }
    .m-bar { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .m-tile::before { transition: none; }
}
