:root {
    --deep: #123d29;
    --forest: #1f6a3b;
    --leaf: #7fc744;
    --sage: #cfe1c6;
    --ink: #071b12;
    --charcoal: #292c29;
    --cream: #f1f0e9;
    --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--charcoal);
    font-family: "Montserrat", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
h1:focus { outline: none; }
.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    height: 118px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 0 clamp(1.25rem, 5vw, 5.5rem);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.brand {
    display: inline-flex;
    width: 174px;
    align-items: center;
}
.brand img { width: 100%; height: 80px; object-fit: contain; object-position: left center; }
.site-header nav { display: flex; gap: clamp(1.5rem, 3vw, 3.2rem); }
.site-header nav a { position: relative; padding-block: .65rem; text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav a:hover { color: var(--leaf); }

.header-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
    text-decoration: none;
    padding: .9rem 0 .9rem 1.2rem;
    border-left: 1px solid rgba(255,255,255,.24);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.header-cta-copy small,
.header-cta-copy strong { display: block; }
.header-cta-copy small { color: var(--leaf); font-size: .5rem; font-weight: 800; letter-spacing: .15em; }
.header-cta-copy strong { margin-top: .25rem; color: #fff; font-size: .65rem; letter-spacing: .07em; }
.header-cta .icon-arrow { width: .95rem; height: .95rem; color: var(--leaf); }
.header-assurance { cursor: default; }
.insurance-mark {
    position: relative;
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(126,203,62,.72);
    border-radius: 50%;
    background: rgba(126,203,62,.1);
}
.insurance-mark::after {
    content: "";
    position: absolute;
    top: .43rem;
    left: .69rem;
    width: .38rem;
    height: .7rem;
    border: solid var(--leaf);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.icon-arrow {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-arrow.diagonal { transform: rotate(-45deg); }
.icon-arrow.left { transform: rotate(180deg); }
.icon-arrow.up { transform: rotate(-90deg); }

.hero {
    position: relative;
    min-height: min(980px, 100svh);
    height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--ink);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .16;
    background-image: radial-gradient(rgba(255,255,255,.45) .45px, transparent .6px);
    background-size: 4px 4px;
    mix-blend-mode: soft-light;
}

.hero-photo,
.hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: center 58%; filter: saturate(.72) contrast(1.1) brightness(.82); transform: scale(1.01); }
.hero-overlay { background: linear-gradient(90deg, rgba(3,19,12,.96) 0%, rgba(4,24,16,.79) 42%, rgba(3,18,12,.16) 74%, rgba(3,18,12,.36) 100%), linear-gradient(0deg, rgba(3,18,12,.82), transparent 48%), linear-gradient(180deg, rgba(0,0,0,.28), transparent 25%); }

.hero-content {
    position: relative;
    z-index: 2;
    width: min(960px, 90vw);
    padding: 9.5rem 0 10rem clamp(1.25rem, 8vw, 9rem);
}

.hero-content > * { animation: hero-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 2.1rem;
    color: rgba(255,255,255,.74);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.eyebrow span { width: 34px; height: 2px; background: var(--leaf); }

.hero h1 {
    margin: 0;
    max-width: 920px;
    color: #fff;
    font-size: clamp(4rem, 7.5vw, 8.1rem);
    line-height: .88;
    letter-spacing: -.07em;
    font-weight: 900;
    text-transform: uppercase;
}
.hero h1 em { color: #d8edc8; font-style: normal; }

.hero-film {
    position: absolute;
    z-index: 3;
    right: clamp(1.5rem,4vw,4.5rem);
    top: 50%;
    display: grid;
    grid-template-columns: repeat(3, 88px);
    gap: .55rem;
    transform: translateY(-26%);
}

.hero-film figure {
    position: relative;
    height: 220px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255,255,255,.2);
    background: var(--ink);
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
    animation: film-in .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero-film figure:nth-child(2) { margin-top: 2.5rem; animation-delay: .12s; }
.hero-film figure:nth-child(3) { margin-top: 5rem; animation-delay: .24s; }
.hero-film img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08) brightness(.84); transition: filter .4s ease, transform .7s cubic-bezier(.2,.65,.25,1); }
.hero-film figure:hover img { filter: saturate(1) contrast(1.02); transform: scale(1.06); }

@keyframes film-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-copy {
    max-width: 670px;
    margin: 2.2rem 0 0;
    color: rgba(255,255,255,.72);
    font-size: clamp(.9rem, 1.05vw, 1.04rem);
    line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1.75rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: .25s ease;
}
.button-primary { color: var(--ink); background: var(--leaf); }
.button-primary:hover { background: #92de50; transform: translateY(-2px); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Blazor input components render their controls outside the page CSS scope. */
.contact-form-wrap input:not([type="checkbox"]):not([type="radio"]),
.contact-form-wrap textarea {
    appearance: none;
    width: 100%;
    min-height: 64px;
    padding: 0 1.1rem;
    border: 1px solid #dce1d9;
    border-radius: 14px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font: 500 .8rem "Montserrat", Arial, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form-wrap textarea {
    min-height: 150px;
    padding-block: 1rem;
    resize: vertical;
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder { color: #929a93; opacity: 1; }

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    border-color: #79b94a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(127,199,68,.13);
}

.contact-form-wrap input.invalid,
.contact-form-wrap textarea.invalid { border-color: #b54a4a; outline: 0; }
.contact-form-wrap input.valid.modified,
.contact-form-wrap textarea.valid.modified { outline: 0; }

/* The static site creates this confirmation panel in the browser, outside
   Blazor's generated CSS scope, so its complete presentation lives here. */
.form-success {
    min-height: clamp(340px, 42vw, 460px);
    display: grid;
    place-content: center;
    justify-items: start;
    width: 100%;
    margin-top: 1.5rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 12%, rgba(127,199,68,.22), transparent 32%),
        linear-gradient(135deg, rgba(207,225,198,.66), rgba(255,255,255,.78));
    border: 1px solid rgba(31,106,59,.16);
    border-radius: 22px;
}

.form-success > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-content: center;
    color: var(--leaf);
    background: var(--ink);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(7,27,18,.2);
    font-size: 1.45rem;
    font-weight: 900;
}

.form-success h3 {
    max-width: 650px;
    margin: 1.6rem 0 .75rem;
    color: var(--ink);
    font-size: clamp(1.75rem, 3.5vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.form-success p {
    max-width: 560px;
    margin: 0;
    color: #465b4e;
    font-size: clamp(.82rem, 1.1vw, .98rem);
    line-height: 1.7;
}

.form-success .button-dark {
    margin-top: 1.6rem;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(7,27,18,.18);
    cursor: pointer;
}

.form-success .button-dark:hover {
    color: var(--ink);
    background: var(--leaf);
    transform: translateY(-2px);
}

.hero-proof {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    background: rgba(3,18,12,.9);
    border-top: 1px solid rgba(255,255,255,.16);
    border-left: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(18px);
}
.hero-proof div { min-width: 172px; padding: 1.25rem 1.5rem; border-left: 1px solid rgba(255,255,255,.13); }
.hero-proof div:first-child { border-left: 0; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof span { color: var(--leaf); font-size: .51rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.hero-proof strong { margin-top: .4rem; color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }

.hero-scroll {
    position: absolute;
    z-index: 2;
    left: 2.2rem;
    bottom: 2.4rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(255,255,255,.5);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.hero-scroll span { width: 1px; height: 40px; background: var(--leaf); }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

@media (max-width: 850px) {
    .site-header {
        height: 96px;
        grid-template-columns: minmax(0,1fr) auto;
        gap: 1rem;
        padding-right: max(1.25rem, env(safe-area-inset-right));
        padding-left: max(1.25rem, env(safe-area-inset-left));
    }
    .site-header nav { display: none; }
    .brand { width: 140px; }
    .brand img { height: 66px; }
    .header-cta { font-size: .65rem; }
    .hero { min-height: 760px; height: min(860px, 100svh); align-items: flex-end; }
    .hero-photo { object-position: 62% center; }
    .hero-overlay { background: linear-gradient(0deg, rgba(4,26,18,.98) 0%, rgba(4,28,19,.80) 55%, rgba(3,20,14,.25) 100%); }
    .hero-content { width: 100%; padding: 7.5rem 1.25rem 12rem; }
    .hero h1 { font-size: clamp(3.35rem, 15.5vw, 5.5rem); }
    .hero-copy { max-width: 560px; font-size: .9rem; }
    .hero-proof { right: 0; left: 0; bottom: 0; }
    .hero-proof div { min-width: 0; flex: 1; padding: .85rem .75rem; }
    .hero-scroll { display: none; }
    .hero-film { display: none; }
}

@media (max-width: 1200px) and (min-width: 851px) {
    .hero-film { display: none; }
}

@media (max-width: 520px) {
    .site-header { height: 90px; }
    .brand { width: 126px; }
    .brand img { height: 60px; }
    .header-cta { max-width: 152px; min-height: 44px; gap: .58rem; padding: .6rem 0 .6rem .75rem; border-left-color: rgba(255,255,255,.32); line-height: 1.3; }
    .header-cta-copy small { font-size: .44rem; }
    .header-cta-copy strong { font-size: .54rem; }
    .header-cta .icon-arrow { display: none; }
    .insurance-mark { width: 1.55rem; height: 1.55rem; }
    .insurance-mark::after { top: .31rem; left: .54rem; width: .32rem; height: .62rem; }
    .eyebrow { font-size: .56rem; letter-spacing: .13em; }
    .hero { min-height: 720px; height: min(790px, 100svh); }
    .hero-content {
        padding: 7rem max(1.25rem, env(safe-area-inset-right)) calc(6.8rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    }
    .hero h1 { font-size: clamp(3rem, 14vw, 4.45rem); }
    .hero h1 em {
        display: block;
        margin-top: .08em;
        font-size: .68em;
        line-height: .96;
        letter-spacing: -.045em;
        white-space: nowrap;
    }
    .hero-actions { gap: .65rem; }
    .button { width: 100%; min-height: 52px; }
    .hero-proof { display: none; }
    .contact-form-wrap input:not([type="checkbox"]):not([type="radio"]),
    .contact-form-wrap textarea { min-height: 56px; font-size: 16px; }
    .contact-form-wrap textarea { min-height: 132px; }
}

@media (max-width: 360px) {
    .site-header {
        gap: .65rem;
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }
    .brand { width: 112px; }
    .brand img { height: 56px; }
    .header-cta { max-width: 132px; padding-left: .65rem; }
    .header-cta-copy strong { font-size: .49rem; letter-spacing: .04em; }
    .hero-content {
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-left: max(1rem, env(safe-area-inset-left));
    }
    .hero h1 { font-size: clamp(2.75rem, 13.7vw, 3.1rem); }
    .hero-copy { font-size: .82rem; }
    .button { font-size: .63rem; }
}

@media (max-width: 850px) and (max-height: 720px) {
    .hero { min-height: 680px; }
    .hero-content { padding-top: 6rem; padding-bottom: 6.2rem; }
    .hero-copy { margin-top: 1.4rem; line-height: 1.65; }
    .hero-actions { margin-top: 1.4rem; }
}

@media (max-width: 820px) {
    .hero-proof { display: none; }
    html[data-contact-dock="hidden"] .mobile-action-dock {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(100% + 2rem));
    }
}

@media (max-width: 850px) and (max-height: 520px) and (orientation: landscape) {
    .site-header { height: 78px; }
    .brand { width: 120px; }
    .brand img { height: 54px; }
    .hero { min-height: 100svh; height: auto; }
    .hero-proof { display: none; }
    .hero-content { padding: 6rem 1.5rem 1.25rem; }
    .hero h1 { font-size: clamp(3rem,7vw,4rem); }
    .hero-copy { margin-top: 1rem; font-size: .78rem; line-height: 1.55; }
    .hero-actions { flex-wrap: nowrap; margin-top: 1rem; }
    .button { width: auto; min-height: 48px; padding-inline: 1.25rem; font-size: .62rem; }
}

@media (hover: none) and (pointer: coarse) {
    .button-primary:hover,
    .service-card:hover,
    .gallery-item:hover { transform: none; }
}
