/* Core tokens, global layout, header, hero */

:root {
    --color-bg: #eef2ea;
    --color-bg-alt: #f8faf6;
    --color-surface: rgba(255, 255, 255, 0.88);
    --color-surface-strong: #ffffff;
    --color-surface-dark: #123126;
    --color-text: #193126;
    --color-text-soft: #274034;
    --color-text-on-dark: rgba(255, 255, 255, 0.96);
    --color-text-on-dark-soft: rgba(255, 255, 255, 0.9);
    --color-line: rgba(25, 49, 38, 0.12);
    --color-line-strong: rgba(25, 49, 38, 0.2);
    --color-primary: #1f5a3d;
    --color-primary-strong: #143b28;
    --color-primary-soft: #dbe8df;
    --color-accent: #b27c42;
    --color-accent-soft: #f2e5d5;
    --color-danger: #a33f2b;
    --color-danger-soft: #f6e1db;
    --shadow-sm: 0 10px 30px rgba(18, 49, 38, 0.08);
    --shadow-md: 0 24px 70px rgba(18, 49, 38, 0.12);
    --shadow-lg: 0 34px 90px rgba(18, 49, 38, 0.18);
    --radius-sm: 18px;
    --radius-md: 28px;
    --radius-lg: 40px;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-18: 4.5rem;
    --page-gutter: clamp(1rem, 2.8vw, 2.75rem);
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(31, 90, 61, 0.16), transparent 28%),
        radial-gradient(circle at right bottom, rgba(178, 124, 66, 0.14), transparent 26%),
        linear-gradient(180deg, #f4f7f1 0%, #edf2eb 38%, #f7faf5 100%);
    overflow-x: hidden;
}

body.nav-is-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
.brand strong {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.03em;
}

p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: var(--page-gutter);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 246, 0.84);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(18px);
}

.shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 88px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
}

.brand-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small {
    color: #30483c;
    font-size: 0.82rem;
    line-height: 1.35;
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
        linear-gradient(145deg, var(--color-primary), #2d6f4e);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.brand-mark-image {
    width: clamp(4rem, 5vw, 4.85rem);
    height: clamp(4rem, 5vw, 4.85rem);
    padding: 0.16rem;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 22px;
    border: 1px solid rgba(31, 90, 61, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(18, 49, 38, 0.08);
}

.brand-logo {
    display: block;
    width: 118%;
    height: 118%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    transform: translateY(-2%);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-left: auto;
}

.site-nav-list,
.hero-highlights,
.footer-links,
.contact-list,
.chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.38rem;
    border: 1px solid rgba(31, 90, 61, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 34px rgba(18, 49, 38, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-nav-list li {
    display: flex;
}

.site-nav [data-nav-link] {
    position: relative;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    color: #254036;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-nav [data-nav-link]:hover,
.site-nav [data-nav-link]:focus-visible {
    color: var(--color-primary-strong);
    background: linear-gradient(180deg, rgba(31, 90, 61, 0.12), rgba(31, 90, 61, 0.05));
    box-shadow: inset 0 0 0 1px rgba(31, 90, 61, 0.08), 0 10px 20px rgba(18, 49, 38, 0.08);
}

.site-nav [data-nav-link].is-active,
.site-nav [data-nav-link][aria-current="location"] {
    color: var(--color-primary-strong);
    background: linear-gradient(180deg, rgba(31, 90, 61, 0.18), rgba(31, 90, 61, 0.1));
    box-shadow: inset 0 0 0 1px rgba(31, 90, 61, 0.12), 0 12px 24px rgba(18, 49, 38, 0.08);
}

.site-nav [data-nav-link].is-active::after,
.site-nav [data-nav-link][aria-current="location"]::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.48rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(31, 90, 61, 0.9), rgba(178, 124, 66, 0.76));
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.language-switcher a {
    min-width: 2.2rem;
    padding: 0.45rem 0.7rem;
    text-align: center;
    border-radius: 999px;
    font-size: 0.8rem;
}

.language-switcher a.is-current {
    background: var(--color-primary);
    color: #fff;
}

.nav-phone {
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--color-text);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

.site-main {
    padding-bottom: var(--space-18);
}

.site-main > section,
.site-footer {
    width: 100%;
}

.hero-section {
    position: relative;
    overflow: clip;
    isolation: isolate;
    min-height: calc(100svh - 88px);
    padding: 0;
}

.hero-section > .container {
    padding-inline: 0;
}

.hero-shell,
.section-grid,
.card-grid,
.contact-layout,
.footer-grid,
.emergency-grid {
    display: grid;
    gap: var(--space-6);
}

.hero-shell {
    width: 100%;
    min-height: inherit;
    margin-inline: 0;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: stretch;
    gap: 0;
}

.hero-content,
.hero-side,
.hero-panel,
.card,
.consent-card,
.site-footer {
    box-shadow: var(--shadow-md);
}

.hero-content,
.hero-panel,
.card,
.site-footer {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 245, 0.9));
}

.hero-content {
    position: relative;
    display: grid;
    align-content: center;
    gap: var(--space-5);
    min-height: inherit;
    padding: clamp(2.5rem, 5vw, 5rem) max(var(--page-gutter), 3rem);
    background-color: #f6f8f4;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(247, 250, 245, 0.12)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.08)),
        url("../images/bghero.png");
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
    background-position: center center;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero-content::before,
.hero-content::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
}

.hero-content::before {
    top: -8rem;
    left: -7rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
    filter: blur(10px);
    animation: hero-ambient-fade 1000ms ease-out 180ms both, hero-ambient-drift 8s ease-in-out 1.2s infinite alternate;
}

.hero-content::after {
    right: 10%;
    bottom: -7rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(178, 124, 66, 0.18), rgba(178, 124, 66, 0));
    filter: blur(14px);
    animation: hero-ambient-fade 1200ms ease-out 320ms both, hero-ambient-drift-reverse 9s ease-in-out 1.35s infinite alternate;
}

.hero-content h1 {
    margin: 0.55rem 0 1rem;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.96;
}

.hero-copy-cloud {
    display: grid;
    gap: 0.35rem;
    width: min(100%, 48rem);
    padding: clamp(1rem, 1.5vw, 1.35rem) clamp(1rem, 1.7vw, 1.4rem);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 1.8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.38));
    box-shadow: 0 18px 42px rgba(18, 49, 38, 0.09);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    transform-origin: 18% 24%;
    animation: hero-cloud-in 1050ms cubic-bezier(0.18, 0.9, 0.22, 1) 180ms both;
}

.hero-copy-cloud h1,
.hero-copy-cloud .hero-lead {
    margin: 0;
}

.hero-lead,
.section-lead,
.card p,
.hero-panel p,
.testimonial-meta span,
.contact-list {
    color: var(--color-text-soft);
    line-height: 1.7;
}

.hero-actions,
.contact-call-actions,
.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem 1rem;
}

.hero-eyebrow {
    justify-self: start;
    width: fit-content;
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(248, 250, 246, 0.78), rgba(255, 255, 255, 0.52));
    color: var(--color-primary-strong);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 28px rgba(18, 49, 38, 0.08);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    animation: hero-rise-in 780ms cubic-bezier(0.18, 0.9, 0.22, 1) 80ms both;
}

.hero-actions-stage {
    animation: hero-rise-in 860ms cubic-bezier(0.18, 0.9, 0.22, 1) 360ms both;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 0.8rem;
    margin-top: 0;
}

.hero-highlights-stage {
    animation: hero-rise-in 920ms cubic-bezier(0.18, 0.9, 0.22, 1) 520ms both;
}

.hero-highlights li,
.chip,
.alert-chip,
.service-category,
.city-cloud-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-highlights li,
.chip,
.city-cloud-label {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.hero-highlights-stage li {
    opacity: 0;
    animation: hero-chip-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-highlights-stage li:nth-child(1) {
    animation-delay: 610ms;
}

.hero-highlights-stage li:nth-child(2) {
    animation-delay: 690ms;
}

.hero-highlights-stage li:nth-child(3) {
    animation-delay: 770ms;
}

.hero-highlights-stage li:nth-child(4) {
    animation-delay: 850ms;
}

.hero-side {
    display: grid;
    gap: 0;
    min-height: inherit;
}

.hero-panel {
    display: grid;
    align-content: center;
    padding: clamp(2rem, 3vw, 3rem) max(var(--page-gutter), 2rem);
    border-top: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-panel:first-child {
    border-bottom: 1px solid rgba(25, 49, 38, 0.08);
}

.hero-panel-stage {
    opacity: 0;
    will-change: transform, opacity, filter;
}

.hero-panel-stage-stat {
    animation: hero-side-in 1050ms cubic-bezier(0.16, 0.92, 0.22, 1) 300ms both;
}

.hero-panel-stage-urgent {
    animation: hero-side-in 1120ms cubic-bezier(0.16, 0.92, 0.22, 1) 450ms both;
}

.hero-panel strong {
    display: block;
    margin: 0.3rem 0 0.6rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
}

.hero-panel-urgent {
    background:
        linear-gradient(180deg, rgba(18, 49, 38, 0.95), rgba(19, 58, 42, 0.95)),
        var(--color-surface-dark);
    color: var(--color-text-on-dark);
}

.hero-panel-urgent p {
    color: var(--color-text-on-dark-soft);
}

.panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--color-primary);
}

.panel-phones {
    display: grid;
    gap: 0.75rem;
    margin-top: var(--space-6);
}

.panel-phones a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text-on-dark);
    font-weight: 700;
}

.hero-panel-stage-urgent .panel-phones a:nth-child(1) {
    animation: hero-chip-in 760ms cubic-bezier(0.22, 1, 0.36, 1) 760ms both;
}

.hero-panel-stage-urgent .panel-phones a:nth-child(2) {
    animation: hero-chip-in 760ms cubic-bezier(0.22, 1, 0.36, 1) 860ms both;
}

@keyframes hero-rise-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes hero-cloud-in {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.965) rotate(-1.2deg);
        filter: blur(16px);
    }

    60% {
        opacity: 1;
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes hero-side-in {
    from {
        opacity: 0;
        transform: translateX(42px) translateY(12px) scale(0.985);
        filter: blur(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes hero-chip-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes hero-ambient-fade {
    from {
        opacity: 0;
        transform: scale(0.86);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hero-ambient-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(28px, 18px, 0) scale(1.08);
    }
}

@keyframes hero-ambient-drift-reverse {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-20px, -16px, 0) scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content::before,
    .hero-content::after,
    .hero-eyebrow,
    .hero-copy-stage,
    .hero-actions-stage,
    .hero-highlights-stage,
    .hero-highlights-stage li,
    .hero-panel-stage,
    .hero-panel-stage-urgent .panel-phones a {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

