/*
   VidroVal / Val Vidros - CSS principal
   Visual final do cliente: cabeçalho branco, cores suaves e imagens tratadas.
*/
:root {
    --blue-950: #07111f;
    --blue-900: #0d213d;
    --blue-850: #123055;
    --blue-800: #183f70;
    --blue-700: #245393;
    --blue-600: #346cb5;
    --red-600: #d64242;
    --red-700: #b93232;
    --white: #ffffff;
    --ice: #eef6ff;
    --gray-100: #f5f8fc;
    --gray-200: #e9eff7;
    --gray-300: #c9d4e5;
    --gray-700: #40516b;
    --dark: #02050b;
    --stroke: rgba(13, 33, 61, 0.12);
    --shadow: 0 18px 50px rgba(7, 17, 31, 0.18);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--white);
    background: var(--blue-950);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(120deg, rgba(52, 108, 181, 0.15), transparent 34%),
        linear-gradient(280deg, rgba(214, 66, 66, 0.08), transparent 36%),
        var(--blue-950);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-950);
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e9eff7;
    box-shadow: 0 12px 34px rgba(7, 17, 31, 0.08);
}

.topbar-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.brand {
    display: inline-grid;
    place-items: center;
    width: 184px;
    min-height: 66px;
    border-radius: 0;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.brand img {
    width: 178px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.menu-toggle {
    justify-self: end;
    display: grid;
    place-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--blue-700);
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
}

.main-nav.is-open {
    display: flex;
}

.main-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--blue-900);
    font-weight: 850;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    background: var(--blue-700);
    color: var(--white);
}

.topbar-whatsapp {
    display: none;
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    padding: 96px 0 64px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(13, 33, 61, 0.82) 48%, rgba(13, 33, 61, 0.35) 100%),
        var(--hero-bg) center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.6)),
        radial-gradient(circle at 78% 24%, rgba(214, 66, 66, 0.13), transparent 26%),
        radial-gradient(circle at 22% 18%, rgba(52, 108, 181, 0.22), transparent 32%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(0deg, var(--blue-950), transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--red-600);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-head h2,
.quote-copy h2,
.simulator-copy h2,
.contact-copy h2 {
    margin: 18px 0 16px;
    font-size: clamp(2.35rem, 10vw, 5.7rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.hero p,
.section-head p,
.quote-copy p,
.simulator-copy p,
.contact-copy p {
    margin: 0;
    max-width: 720px;
    color: #d8e6f7;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 950;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--red-600);
    color: var(--white);
    box-shadow: 0 14px 36px rgba(225, 37, 37, 0.36);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--red-700);
}

.btn-secondary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 14px 36px rgba(36, 87, 179, 0.28);
}

.btn-full {
    width: 100%;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-badges span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--blue-950);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-card-header {
    padding: 22px;
    background: var(--blue-700);
    color: var(--white);
}

.hero-card-header strong,
.hero-card-header span {
    display: block;
}

.hero-card-header strong {
    font-size: 1.35rem;
}

.hero-card-header span {
    color: #dce9ff;
    font-weight: 700;
}

.hero-card-body {
    display: grid;
    gap: 0;
}

.hero-card-body div {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #e4eaf4;
}

.hero-card-body b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red-600);
    color: var(--white);
}

.hero-card-body span {
    color: var(--gray-700);
    font-weight: 850;
}

.hero-card > a {
    display: block;
    padding: 18px 22px;
    background: var(--blue-900);
    color: var(--white);
    font-weight: 950;
    text-align: center;
}

.service-strip {
    background: var(--gray-100);
    border-block: 1px solid #e4ebf5;
    padding: 16px 0;
}

.service-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-strip span {
    padding: 13px 10px;
    text-align: center;
    color: var(--blue-900);
    background: #ffffff;
    border: 1px solid #dde7f3;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 22px rgba(7, 17, 31, 0.05);
}

.section {
    padding: 82px 0;
}

.section-head {
    margin-bottom: 32px;
}

.section-head h2,
.quote-copy h2,
.simulator-copy h2,
.contact-copy h2 {
    font-size: clamp(2rem, 7vw, 4.4rem);
}

.services-grid {
    display: grid;
    gap: 22px;
}

.service-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--blue-950);
    box-shadow: var(--shadow);
}

.service-card figure {
    position: relative;
    margin: 0;
    min-height: 280px;
    background: var(--blue-800);
    overflow: hidden;
}

.service-card figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 11, 22, 0.04), rgba(5, 11, 22, 0.44));
}

.service-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.08) brightness(0.94);
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-card figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--red-600);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--blue-900);
}

.service-content p {
    margin: 0;
    color: var(--gray-700);
}

.service-content a {
    display: inline-flex;
    margin-top: 18px;
    padding: 11px 15px;
    border-radius: 999px;
    background: var(--blue-700);
    color: var(--white);
    font-weight: 950;
}

.quote-section {
    background: #0d213d;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-grid {
    display: grid;
    gap: 28px;
}

.quote-stats {
    display: grid;
    gap: 16px;
}

.quote-stats div {
    border-radius: var(--radius-lg);
    padding: 22px;
    background: var(--white);
    color: var(--blue-950);
    border-left: 8px solid var(--red-600);
}

.quote-stats strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--blue-700);
}

.quote-stats span {
    display: block;
    margin-top: 8px;
    color: var(--gray-700);
    font-weight: 850;
}

.simulator-section {
    background:
        linear-gradient(135deg, rgba(24, 63, 112, 0.88), rgba(7, 17, 31, 0.98)),
        radial-gradient(circle at 14% 18%, rgba(214, 66, 66, 0.12), transparent 28%);
}

.simulator-grid {
    display: grid;
    gap: 30px;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    color: #e1ecfb;
    font-weight: 800;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red-600);
    color: var(--white);
    font-size: 0.85rem;
}

.budget-panel {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--blue-950);
    box-shadow: var(--shadow);
}

.panel-title {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--blue-900);
    color: var(--white);
    margin-bottom: 18px;
}

.panel-title span,
.panel-title strong {
    display: block;
}

.panel-title span {
    color: #b9c9e4;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-title strong {
    margin-top: 5px;
    font-size: 1.4rem;
    line-height: 1.08;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.category-grid legend,
.measure-grid label > span,
.field span {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 8px;
    color: var(--blue-900);
    font-size: 0.86rem;
    font-weight: 950;
}

.category-btn {
    border: 2px solid #dce5f4;
    border-radius: 18px;
    padding: 13px 10px;
    background: var(--gray-100);
    color: var(--blue-900);
    font-weight: 950;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-btn:hover,
.category-btn:focus {
    transform: translateY(-1px);
    border-color: var(--blue-600);
}

.category-btn.is-active {
    background: var(--red-600);
    color: var(--white);
    border-color: var(--red-600);
}

.measure-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.measure-grid.compact {
    margin-top: 16px;
}

input,
select {
    width: 100%;
    min-height: 52px;
    border: 2px solid #dce5f4;
    border-radius: 16px;
    padding: 0 14px;
    background: var(--gray-100);
    color: var(--blue-950);
    outline: none;
    font-weight: 750;
}

input:focus,
select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(36, 87, 179, 0.14);
}

input[type="range"] {
    min-height: 34px;
    padding: 0;
    border: 0;
    accent-color: var(--red-600);
    background: transparent;
}

.summary-box {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--blue-900);
    color: var(--white);
}

.summary-box span {
    display: block;
    color: #b9c9e4;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-box strong {
    display: block;
    margin-top: 4px;
    font-size: 2rem;
    line-height: 1;
}

.summary-box p {
    margin: 0;
    color: #e0ebfb;
    font-weight: 850;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 170px;
    border-radius: 20px;
    background: var(--blue-800);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.08);
    transition: transform 0.35s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--blue-700);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 950;
}

.contact-section {
    padding: 82px 0;
    background:
        linear-gradient(90deg, rgba(5, 11, 22, 0.93), rgba(7, 20, 43, 0.92)),
        url('https://images.unsplash.com/photo-1497366412874-3415097a27e7?auto=format&fit=crop&w=1700&q=86') center / cover no-repeat;
}

.contact-grid {
    display: grid;
    gap: 24px;
}

.contact-card {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--blue-950);
    box-shadow: var(--shadow);
}

.contact-card h3 {
    margin: 0 0 14px;
    font-size: 1.55rem;
    line-height: 1.1;
}

.contact-card p {
    margin: 0 0 12px;
    color: var(--gray-700);
}

.contact-card a {
    display: inline-flex;
    margin-top: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    background: var(--blue-700);
    color: var(--white);
    font-weight: 950;
}

.footer {
    padding: 54px 0 24px;
    background: #07111f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    gap: 28px;
}

.footer img {
    width: 190px;
    height: auto;
    padding: 10px;
    border-radius: 14px;
    background: var(--white);
}

.footer p {
    max-width: 400px;
    margin: 14px 0 0;
    color: #b7c5d9;
}

.footer strong,
.footer a,
.footer span {
    display: block;
}

.footer strong {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1.05rem;
}

.footer a,
.footer span {
    margin-bottom: 8px;
    color: #b7c5d9;
    font-weight: 750;
}

.copyright {
    display: grid;
    gap: 8px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #91a0b7;
    font-size: 0.9rem;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #20c763;
    box-shadow: 0 0 0 0 rgba(32, 199, 99, 0.55), 0 16px 38px rgba(0, 0, 0, 0.38);
    animation: pulseWhatsapp 1.8s infinite;
}

.floating-whatsapp svg {
    width: 34px;
    height: 34px;
    fill: var(--white);
}

@keyframes pulseWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(32, 199, 99, 0.56), 0 16px 38px rgba(0, 0, 0, 0.38); }
    70% { box-shadow: 0 0 0 16px rgba(32, 199, 99, 0), 0 16px 38px rgba(0, 0, 0, 0.38); }
    100% { box-shadow: 0 0 0 0 rgba(32, 199, 99, 0), 0 16px 38px rgba(0, 0, 0, 0.38); }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 640px) {
    .hero-actions,
    .contact-actions {
        flex-direction: row;
        align-items: center;
    }

    .service-strip-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .measure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .topbar-inner {
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }

    .brand {
        width: 210px;
    }

    .brand img {
        width: 205px;
        max-height: 74px;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        grid-column: auto;
        justify-self: center;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 6px;
        border-radius: 999px;
        background: #f2f6fb;
    }

    .main-nav a {
        padding: 10px 16px;
        color: var(--blue-900);
    }

    .topbar-whatsapp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 18px;
        border-radius: 999px;
        background: var(--red-600);
        color: var(--white);
        font-weight: 950;
        box-shadow: 0 10px 24px rgba(214, 66, 66, 0.20);
    }

    .hero {
        min-height: 830px;
        padding: 130px 0 90px;
    }

    .hero-grid,
    .quote-grid,
    .simulator-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
        align-items: center;
    }

    .hero-card {
        max-width: 440px;
        justify-self: end;
    }

    .service-strip-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card:nth-child(1),
    .service-card:nth-child(6) {
        grid-column: span 2;
    }

    .quote-stats {
        grid-template-columns: 1fr;
    }

    .budget-panel {
        padding: 26px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 0.8fr 0.8fr;
    }

    .copyright {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (min-width: 1160px) {
    .service-card:nth-child(1) img,
    .service-card:nth-child(6) img {
        height: 370px;
    }
}


/* Páginas secundárias de serviços */
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 64px;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.95), rgba(13, 33, 61, 0.78) 52%, rgba(13, 33, 61, 0.38)),
        var(--detail-bg) center / cover no-repeat;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.74));
    pointer-events: none;
}

.detail-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: #d8e6f7;
    font-size: 0.92rem;
    font-weight: 760;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detail-hero-grid {
    display: grid;
    gap: 30px;
    align-items: end;
}

.detail-hero-copy h1 {
    max-width: 860px;
    margin: 18px 0 16px;
    font-size: clamp(2.35rem, 9vw, 5.1rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.detail-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #d8e6f7;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.detail-info-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue-900);
    box-shadow: var(--shadow);
}

.detail-info-card strong {
    display: block;
    color: var(--blue-900);
    font-size: 1.08rem;
}

.detail-info-card span {
    color: var(--gray-700);
    font-weight: 760;
}

.detail-layout {
    display: grid;
    gap: 26px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.content-card {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--blue-900);
    box-shadow: var(--shadow);
}

.content-card h2,
.content-card h3 {
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.02rem;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    position: relative;
    padding-left: 30px;
    color: var(--gray-700);
    font-weight: 690;
}

.detail-list li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue-600);
    box-shadow: 0 0 0 5px rgba(52, 108, 181, 0.13);
}

.timeline-list {
    counter-reset: step;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    color: var(--gray-700);
    font-weight: 690;
}

.timeline-list li::before {
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: var(--blue-700);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 950;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
    align-self: start;
}

.sidebar-box {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #f6f9fd;
    color: var(--blue-900);
    box-shadow: var(--shadow);
}

.sidebar-box h3 {
    margin: 0 0 12px;
    line-height: 1.12;
}

.sidebar-box p {
    margin: 0 0 16px;
    color: var(--gray-700);
}

.service-nav-list {
    display: grid;
    gap: 10px;
}

.service-nav-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--white);
    color: var(--blue-900);
    font-weight: 850;
    border: 1px solid var(--stroke);
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-nav-list a:hover,
.service-nav-list a:focus {
    transform: translateY(-2px);
    background: var(--ice);
}

.detail-cta-band {
    border-radius: var(--radius-xl);
    padding: 28px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
    color: var(--white);
    box-shadow: var(--shadow);
}

.detail-cta-band h2 {
    margin: 0 0 10px;
    line-height: 1.1;
}

.detail-cta-band p {
    margin: 0 0 20px;
    color: #d8e6f7;
}

.notice-box {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #fff7e9;
    color: #704813;
    border: 1px solid #f2dab3;
    font-weight: 740;
}

@media (min-width: 900px) {
    .detail-hero {
        padding: 110px 0 86px;
    }

    .detail-hero-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }

    .content-card {
        padding: 34px;
    }
}


/* Galerias de modelos nas páginas de serviço */
.compact-heading {
    text-align: left;
    margin-bottom: 22px;
}

.compact-heading h2 {
    margin-bottom: 10px;
}

.service-models {
    overflow: hidden;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.model-card {
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 35, 71, 0.10);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(7, 20, 43, 0.10);
}

.model-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.model-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.04);
}

.model-card figcaption {
    display: grid;
    gap: 4px;
    padding: 16px 18px 18px;
}

.model-card figcaption strong {
    color: #1f579b;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.model-card figcaption span {
    color: #17243b;
    font-size: .96rem;
    line-height: 1.45;
    font-weight: 700;
}

.model-note {
    margin-top: 20px;
}

@media (max-width: 720px) {
    .model-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .model-card {
        border-radius: 20px;
    }
}


/* V7 - Carrossel compacto de modelos nas páginas de serviço */
.model-carousel-section {
    position: relative;
    padding: 38px 0 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border-bottom: 1px solid rgba(23, 36, 59, 0.08);
    overflow: hidden;
}

.model-carousel-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0%, rgba(31, 87, 155, 0.09), transparent 30%), radial-gradient(circle at 90% 15%, rgba(214, 66, 66, 0.06), transparent 28%);
    pointer-events: none;
}

.model-carousel-section .container {
    position: relative;
    z-index: 1;
}

.carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.carousel-head h2 {
    margin: 6px 0 8px;
    color: #14233d;
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    line-height: 1.08;
}

.carousel-head p {
    max-width: 760px;
    color: #536176;
    line-height: 1.7;
    margin: 0;
}

.carousel-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.carousel-arrow {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #1f579b;
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(31, 87, 155, 0.22);
    transition: transform .2s ease, background .2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    background: #d64242;
    transform: translateY(-2px);
}

.model-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 87, 155, .55) rgba(31, 87, 155, .10);
}

.model-carousel::-webkit-scrollbar {
    height: 9px;
}

.model-carousel::-webkit-scrollbar-track {
    background: rgba(31, 87, 155, .10);
    border-radius: 999px;
}

.model-carousel::-webkit-scrollbar-thumb {
    background: rgba(31, 87, 155, .55);
    border-radius: 999px;
}

.model-slide-card {
    flex: 0 0 calc((100% - 70px) / 6);
    min-width: 158px;
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 35, 71, 0.10);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(7, 20, 43, 0.10);
    scroll-snap-align: start;
}

.model-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.model-open img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.model-slide-card:hover .model-open img,
.model-open:focus img {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.04);
}

.model-slide-card figcaption {
    display: grid;
    gap: 4px;
    padding: 11px 12px 13px;
}

.model-slide-card figcaption strong {
    color: #1f579b;
    font-size: .70rem;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.model-slide-card figcaption span {
    color: #17243b;
    font-size: .84rem;
    line-height: 1.35;
    font-weight: 800;
}

.model-helper {
    margin: 10px 0 0;
    color: #5d6a7d;
    font-size: .92rem;
    line-height: 1.6;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(7, 17, 31, .88);
    backdrop-filter: blur(8px);
}

.image-lightbox.is-open {
    display: flex;
}

.lightbox-panel {
    position: relative;
    width: min(1120px, 96vw);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.lightbox-panel img {
    display: block;
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    background: #07111f;
}

.lightbox-caption {
    padding: 14px 18px 16px;
    color: #17243b;
    font-weight: 850;
    line-height: 1.45;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #17243b;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

@media (max-width: 1240px) {
    .model-slide-card {
        flex-basis: calc((100% - 42px) / 4);
    }
}

@media (max-width: 820px) {
    .carousel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .model-slide-card {
        flex-basis: calc((100% - 14px) / 2.15);
        min-width: 210px;
    }
}

@media (max-width: 520px) {
    .model-carousel-section {
        padding: 28px 0 26px;
    }

    .model-slide-card {
        flex-basis: 78%;
        min-width: 240px;
        border-radius: 18px;
    }

    .carousel-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .lightbox-panel {
        border-radius: 18px;
    }
}
