:root {
    --bg: #f2efe7;
    --bg-alt: #e5dfd2;
    --surface: #fffef9;
    --text: #1f2621;
    --muted: #5a645d;
    --primary: #c45a2d;
    --primary-dark: #8f3d1a;
    --stroke: #cbc2b2;
    --shadow: 0 16px 40px rgba(48, 38, 26, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overflow-anchor: none;
    scroll-behavior: smooth;
}

.page-top {
    display: block;
    height: 0;
    overflow: hidden;
}

body {
    font-family: "Quicksand", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 18%, rgba(196, 90, 45, 0.18), transparent 40%),
        radial-gradient(circle at 84% 8%, rgba(78, 101, 82, 0.16), transparent 36%),
        var(--bg);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
strong {
    font-family: "Quicksand", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image: linear-gradient(to right, rgba(31, 38, 33, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 38, 33, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(31, 38, 33, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #f7f1e4;
    text-decoration: none;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 80px;
    max-width: 80px;
    min-width: 80px;
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: rgba(247, 241, 228, 0.7);
    font-size: 0.68rem;
}

.brand .alvaraNumber {
    display: block;
    color: rgba(247, 241, 228, 0.6);
    font-size: 0.65rem;
    margin-top: 0.25rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav a {
    text-decoration: none;
    color: #f7f1e4;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #ffc9a8;
}

.menu-btn {
    display: none;
    border: 1px solid rgba(247, 241, 228, 0.3);
    background: rgba(247, 241, 228, 0.1);
    color: #f7f1e4;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-btn:hover {
    background: rgba(247, 241, 228, 0.2);
    border-color: rgba(247, 241, 228, 0.5);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    overflow: hidden;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
    border: none;
    border-radius: 14px;
    padding: 0 1.15rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 9px 20px rgba(142, 62, 27, 0.28);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn:hover::after {
    left: 130%;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-sm {
    height: 42px;
    padding: 0 0.9rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--stroke);
    box-shadow: none;
}

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: 5.4rem 0 0;
    background: var(--bg);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('imagens/fundohero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 10%, rgba(196, 90, 45, 0.16), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(91, 109, 96, 0.16), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1180px, 92vw);
    margin: 0 auto;
    padding: 3.2rem 0 2.6rem;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    text-align: center;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.kicker::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 1.2rem;
    color: var(--text);
    font-weight: 700;
}

.hero-title {
    position: relative;
    display: block;
}

.hero-copy {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.6;
    margin: 0 auto 1.8rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.35rem 0 0;
}

.hero-metrics-bar {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    border-top: 1px solid var(--stroke);
}

.hero-metrics {
    list-style: none;
    padding: 1.1rem 0;
    margin: 0 auto;
    width: min(1180px, 92vw);
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.hero-metrics li {
    padding-left: clamp(1.5rem, 4vw, 3rem);
    border-left: 1px solid var(--stroke);
}

.hero-metrics li:first-child {
    padding-left: 0;
    border-left: none;
}

.hero-metrics strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
    transition: transform 0.25s ease;
}

.hero-metrics li:hover strong {
    transform: scale(1.12);
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.85rem;
}

.section {
    padding: 4.4rem 0;
    scroll-margin-top: 130px;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.85), rgba(229, 223, 210, 0.5));
}

.section-head {
    max-width: 760px;
    margin-bottom: 1.4rem;
}

.section h2 {
    margin-top: 0;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.22, 1, .36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(48, 38, 26, 0.2);
    border-color: rgba(196, 90, 45, 0.35);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(196, 90, 45, 0.12);
    color: var(--primary);
    margin-bottom: 0.9rem;
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), background 0.3s ease;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-4deg);
    background: var(--primary);
    color: #fff;
}

.card h3 {
    margin-top: 0;
    transition: color 0.25s ease;
}

.portfolio-carousel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-block: 0.3rem 1rem;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 auto;
    width: min(380px, 78vw);
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img,
.carousel-slide:hover video {
    transform: scale(1.06);
}

.carousel-nav {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(142, 62, 27, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 62, 27, 0.42);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.3rem;
}

.timeline {
    position: relative;
    display: grid;
    gap: 0.7rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0.9rem;
    bottom: 0.9rem;
    width: 2px;
    background: repeating-linear-gradient(to bottom,
            rgba(196, 90, 45, 0.35) 0,
            rgba(196, 90, 45, 0.35) 6px,
            transparent 6px,
            transparent 12px);
}

.timeline>div {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.timeline>div:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: rgba(196, 90, 45, 0.35);
}

.timeline span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 700;
    background: rgba(196, 90, 45, 0.2);
    color: var(--primary-dark);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.timeline>div:hover span {
    transform: scale(1.12);
    background: var(--primary);
    color: #fff;
}

.quote {
    padding-bottom: 5.4rem;
}

.quote-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.4rem;
}

.quote-points {
    padding-left: 1.2rem;
    margin: 1rem 0 0;
}

.quote-form {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.ai-flow {
    border: 1px solid rgba(196, 90, 45, 0.28);
    border-radius: 16px;
    padding: 1rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(196, 90, 45, 0.12), transparent 44%),
        radial-gradient(circle at 0% 100%, rgba(91, 109, 96, 0.14), transparent 52%),
        #fffcf5;
}

.ai-head {
    margin-bottom: 0.8rem;
}

.ai-kicker {
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.ai-progress {
    display: grid;
    gap: 0.35rem;
}

.ai-progress span {
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 600;
}

.ai-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(31, 38, 33, 0.12);
    overflow: hidden;
}

#aiProgressBar {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c45a2d 0%, #df8455 100%);
    transition: width 0.28s ease;
}

.ai-steps {
    position: relative;
    min-height: 205px;
}

.quote-form.js-enhanced .ai-step {
    display: none;
}

.quote-form.js-enhanced .ai-step.active {
    display: block;
    animation: aiStepIn 0.28s ease;
}

.ai-question {
    margin: 0 0 0.8rem;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: #223028;
}

.ai-step .field-group {
    margin-bottom: 0;
}

.ai-step textarea {
    min-height: 150px;
}

.ai-consent {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(31, 38, 33, 0.14);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0;
}

.ai-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.ai-actions #aiPrevBtn[hidden],
.ai-actions #aiNextBtn[hidden],
.ai-actions #aiSubmitBtn[hidden] {
    display: none;
}

.ai-legal-note {
    margin: 0.8rem 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(31, 38, 33, 0.76);
}

.ai-legal-note a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ai-summary {
    display: grid;
    gap: 0.5rem;
}

.ai-summary-row {
    display: grid;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 38, 33, 0.12);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
}

.ai-summary-row strong {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
}

.ai-summary-row span {
    color: #2c3930;
    overflow-wrap: anywhere;
}

.field-group {
    margin-bottom: 0.85rem;
}

.field-group.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

label {
    display: inline-block;
    margin-bottom: 0.32rem;
    font-size: 0.9rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #b8af9f;
    border-radius: 10px;
    background: #fff;
    padding: 0.7rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 90, 45, 0.22);
}

.field-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.field-check input {
    width: 16px;
    height: 16px;
    margin-top: 4px;
}

.form-status {
    min-height: 1.2rem;
    margin-top: 0.7rem;
    font-weight: 600;
}

.form-status.error {
    color: #8f1f1f;
}

.form-status.success {
    color: #1e6a37;
}

.quote-form>button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 1rem auto 0;
}

@keyframes aiStepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer {
    padding: 1.2rem 0 2rem;
}

.footer-shell {
    background:
        radial-gradient(circle at 12% 20%, rgba(196, 90, 45, 0.2), transparent 38%),
        radial-gradient(circle at 88% 80%, rgba(91, 109, 96, 0.22), transparent 34%),
        linear-gradient(140deg, #1f2621, #2a342d 58%, #222b25);
    border-radius: 24px;
    color: #f7f1e4;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 44px rgba(26, 33, 29, 0.4);
    overflow: hidden;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr 0.9fr;
    gap: 1.1rem;
    padding: 1.45rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-brand .brand-mark {
    flex-shrink: 0;
}

.footer-brand strong {
    display: block;
    margin-bottom: 0.35rem;
}

.footer-brand p {
    margin: 0;
    color: rgba(247, 241, 228, 0.86);
}

.footer-brand small {
    display: block;
    color: rgba(247, 241, 228, 0.8);
    font-size: 0.74rem;
}

.footer-brand .alvaraNumber {
    color: rgba(247, 241, 228, 0.7);
    font-size: 0.68rem;
    margin-top: 0.2rem;
}

.footer-brand .footer-item {
    display: block;
    color: rgba(247, 241, 228, 0.84);
    font-size: 0.875rem;
    margin-top: 2.5rem;
    line-height: 1.5;
}

.footer-col .footer-item {
    display: block;
    color: rgba(247, 241, 228, 0.84);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    text-decoration: none;
    width: fit-content;
    transition: color 0.2s ease;
}

.footer-col .footer-item:hover {
    color: #ffc9a8;
}

.footer-col .footer-note {
    font-size: 0.72rem;
    color: rgba(247, 241, 228, 0.7);
}

.footer-col .footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.footer-col .footer-inline-icon {
    width: 0.78rem;
    height: 0.78rem;
    fill: currentColor;
    opacity: 0.9;
    flex: 0 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-title {
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px
    color: rgba(255, 215, 186, 0.95);
    font-weight: 700;
}

.footer-col a {
    color: #f7f1e4;
    text-decoration: none;
    width: fit-content;
    transition: color 0.2s ease;
}

.footer-link-button {
    border: none;
    background: transparent;
    color: #f7f1e4;
    font: inherit;
    font-size: 1rem;
    padding: 0;
    width: fit-content;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffc9a8;
}

.footer-link-button:hover {
    color: #ffc9a8;
}

.footer-col p {
    margin: 0;
    color: rgba(247, 241, 228, 0.84);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.45rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 0;
    border: none;
    color: #f7f1e4;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    color: #ffc9a8;
    background: rgba(255, 255, 255, 0.12);
}

.social-link svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.top-link {
    color: #f7f1e4;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.26);
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.top-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.95rem 1.45rem 1.1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(247, 241, 228, 0.8);
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cookie-settings-link {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: transparent;
    color: #f7f1e4;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-settings-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.footer-credit {
    color: #ffd3b8;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.footer-credit:hover {
    color: #ffe4cf;
}

.legal-page {
    min-height: 100vh;
}

.legal-main {
    padding: 2.2rem 0 3rem;
}

.legal-card {
    width: min(920px, 92vw);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1.4rem;
}

.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 105;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(142, 62, 27, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

.scroll-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 62, 27, 0.42);
}

.scroll-top-btn[hidden] {
    opacity: 0;
    pointer-events: none;
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.legal-kicker {
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.75rem;
}

.legal-updated {
    color: var(--muted);
    font-size: 0.9rem;
}

.legal-card h1 {
    color: var(--text);
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.legal-card h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
}

.legal-card p {
    margin-top: 0;
    color: #2d3731;
}

.legal-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.legal-link {
    color: var(--text);
    border-color: rgba(31, 38, 33, 0.25);
}

.legal-link:hover {
    border-color: rgba(31, 38, 33, 0.4);
    background: rgba(31, 38, 33, 0.08);
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 110;
    display: grid;
    place-items: center;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__content {
    width: min(880px, 100%);
    background: rgba(31, 38, 33, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: #f7f1e4;
    box-shadow: 0 16px 36px rgba(20, 25, 22, 0.45);
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.cookie-banner__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #ffc9a8;
    font-weight: 700;
}

.cookie-banner h2 {
    margin: 0.3rem 0 0.45rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.cookie-banner p {
    margin: 0;
    color: rgba(247, 241, 228, 0.9);
}

.cookie-banner__options {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.45rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.94rem;
}

.cookie-option input {
    width: 16px;
    height: 16px;
}

.cookie-banner__actions {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.cookie-banner .btn-ghost {
    color: #f7f1e4;
    border-color: rgba(247, 241, 228, 0.35);
}

.cookie-banner .btn-ghost:hover {
    background: rgba(247, 241, 228, 0.1);
    border-color: rgba(247, 241, 228, 0.55);
}

.status-modal {
    position: fixed;
    inset: 0;
    display: none;
    border: none;
    padding: 1rem;
    background: transparent;
    z-index: 120;
}

.status-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

body:has(.status-modal[open]) {
    overflow: hidden;
}

.status-modal::backdrop {
    background: rgba(31, 38, 33, 0.85);
    backdrop-filter: blur(2px);
}

.status-modal__content {
    background: linear-gradient(135deg, #1f2621 0%, #2a342d 45%, #8f3d1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #f7f1e4;
    box-shadow: 0 20px 60px rgba(20, 25, 22, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.2rem 2rem;
    width: min(520px, 92vw);
    text-align: center;
}

.status-modal__message {
    margin: 0 0 1.6rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(247, 241, 228, 0.95);
    font-weight: 500;
}

.status-modal button {
    display: block;
    margin: 0 auto;
}

.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    animation: revealIn 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-play-state: paused;
}

.reveal.visible {
    animation-play-state: running;
}

.stagger>* {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
}

.stagger.visible>* {
    animation: revealIn 0.6s cubic-bezier(.22, 1, .36, 1) forwards;
}

.stagger.visible>*:nth-child(1) {
    animation-delay: 60ms;
}

.stagger.visible>*:nth-child(2) {
    animation-delay: 140ms;
}

.stagger.visible>*:nth-child(3) {
    animation-delay: 220ms;
}

.stagger.visible>*:nth-child(4) {
    animation-delay: 300ms;
}

@keyframes revealIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




@media (max-width: 960px) {
    .main-nav {
        position: absolute;
        top: 76px;
        right: 0.75rem;
        max-width: calc(100vw - 1.5rem);
        background: rgba(47, 57, 51, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 14px;
        padding: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        transform: scale(0.96);
        transform-origin: top right;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        backdrop-filter: blur(10px);
        overflow-wrap: anywhere;
    }

    .main-nav a {
        color: #f7f1e4;
    }

    .main-nav.open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .menu-btn {
        display: inline-block;
    }

    .about-grid,
    .quote-grid,
    .services-grid,
    .field-group.two-cols {
        grid-template-columns: 1fr;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-track {
        scroll-snap-type: none;
    }

    .carousel-slide {
        width: 62vw;
        scroll-snap-align: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 0.9rem;
    }

    .hero-metrics li {
        padding-left: 0;
        padding-top: 0.9rem;
        border-left: none;
        border-top: 1px solid var(--stroke);
    }

    .hero-metrics li:first-child {
        padding-top: 0;
        border-top: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding-top: 5.5rem;
    }
}

@media (max-width: 640px) {
    .site-header .container {
        padding-inline: 0.75rem;
    }

    .header-wrap {
        gap: 0.5rem;
    }

    .brand {
        gap: 0.55rem;
        min-width: 0;
    }

    .brand-logo {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand small {
        font-size: 0.62rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-shell {
        border-radius: 18px;
    }

    .hero {
        padding: 5.5rem 0 0;
    }

    .hero-grid {
        width: 100%;
        padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
    }

    .ai-flow {
        padding: 0.85rem;
    }

    .legal-main {
        padding: 1.2rem 0 2rem;
    }

    .legal-card {
        padding: 1rem;
    }

    .ai-steps {
        min-height: 235px;
    }

    .ai-actions {
        flex-direction: column;
    }

    .ai-actions .btn {
        width: 100%;
    }

    h1 {
        font-size: clamp(1.6rem, 5vw, 2.8rem);
    }

    .hero-copy {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-metrics {
        gap: 0.8rem;
    }

    .hero-metrics li {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .hero-metrics strong {
        font-size: 1.1rem;
    }

    .cookie-banner {
        left: 0.65rem;
        right: 0.65rem;
        bottom: calc(0.65rem + env(safe-area-inset-bottom));
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .btn {
        width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .bg-grid {
        display: none;
    }

    .scroll-top-btn {
        bottom: calc(1rem + env(safe-area-inset-bottom));
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}