:root {
    --bg: #f3f7fb;
    --surface: #ffffff;
    --text: #132033;
    --muted: #4f5d73;
    --primary: #0f4c81;
    --primary-dark: #0b3960;
    --accent: #4bb3d1;
    --border: #d9e4ef;
    --success: #1f7a4f;
    --danger: #b53a3a;
    --radius: 16px;
    --shadow: 0 12px 32px rgba(11, 23, 38, 0.08);
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --section-y: clamp(2.5rem, 6vw, 4.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html:focus-within {
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(238, 244, 250, 0.86) 0%, rgba(248, 251, 255, 0.94) 100%),
        url("../../imagens/Guardacorpo-vidra%C3%A7amentosacada-espelho.jpeg") center top / cover fixed no-repeat;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: var(--section-y) 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    background: var(--surface);
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 999;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
}

.nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand strong {
    display: block;
}

.brand small {
    color: var(--muted);
}

.brand-logo {
    display: block;
    height: clamp(40px, 10vw, 52px);
    width: auto;
    max-width: min(200px, min(52vw, 240px));
    object-fit: contain;
    flex-shrink: 0;
}

.brand-taglines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.05;
    min-width: 0;
}

.brand-taglines-line {
    display: block;
    font-size: clamp(0.62rem, 1.65vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.menu {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 999px;
    padding: 12px 22px;
    font-family: inherit;
    font-weight: 700;
    transition: 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-sm {
    padding: 10px 16px;
}

.hero-grid,
.cta-grid,
.footer-grid,
.contact-grid,
.split {
    display: grid;
    gap: 24px;
}

.hero {
    padding-top: clamp(3rem, 10vw, 5.25rem);
}

.hero .eyebrow,
.eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

h1,
h2,
h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(1.45rem, 4vw, 2.35rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(1.65rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-card,
.card,
.feedback-box,
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cards-grid,
.testimonials-grid,
.faq-list,
.services-grid {
    display: grid;
    gap: 18px;
}

.portfolio-grid {
    display: grid;
    grid-auto-columns: minmax(280px, calc((100% - 36px) / 3));
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 14px;
}

.portfolio-item {
    min-width: 0;
    scroll-snap-align: start;
}

.card {
    padding: 20px;
}

.card h3 {
    margin-top: 0;
}

.chip {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.85rem;
}

.portfolio-item img {
    border-radius: 12px;
    margin-bottom: 12px;
}

.portfolio-gallery {
    display: grid;
    grid-auto-columns: minmax(230px, 86%);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: 0 2px 12px;
    margin-bottom: 12px;
}

.portfolio-gallery img {
    width: 100%;
    aspect-ratio: 13 / 9;
    height: auto;
    object-fit: cover;
    scroll-snap-align: start;
    margin-bottom: 0;
}

.portfolio-photo-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    scroll-snap-align: start;
}

.portfolio-photo-btn img {
    width: 100%;
    aspect-ratio: 13 / 9;
    height: auto;
    object-fit: cover;
    margin-bottom: 0;
}

.lightbox-modal {
    z-index: 2055;
}

.modal-backdrop {
    z-index: 2050;
}

.modal-backdrop.show {
    opacity: 0.72;
}

.lightbox-dialog {
    width: 70vw;
    max-width: 70vw;
    height: 70vh;
    max-height: 70vh;
    margin: 0 auto;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: #070b12;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 8px 12px 8px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: #0b1726;
}

.lightbox-title {
    margin: 0;
    color: #f5f8fc;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.lightbox-controls {
    display: flex;
    gap: 8px;
}

.lightbox-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: #f5f8fc;
    color: #0b1726;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.lightbox-reset {
    min-width: 64px;
}

.lightbox-close {
    background: #ffffff;
}

.lightbox-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 58px);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    cursor: zoom-in;
    padding: 0;
    touch-action: none;
    user-select: none;
}

.lightbox-stage.is-zoomed {
    cursor: grab;
}

.lightbox-stage.is-dragging {
    cursor: grabbing;
}

.lightbox-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 160ms ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.cta-band {
    background: #0b1726;
    color: #f4f8fc;
}

.cta-band .btn-outline {
    color: #f4f8fc;
    border-color: #f4f8fc;
}

.site-footer {
    background: #0e1a2a;
    color: #d7e1ee;
    margin-top: 56px;
}

.site-footer h2 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5f8fc;
}

.site-footer a {
    color: #a9d4ff;
}

.footer-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 48px 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #243349;
    padding: 16px 0;
    font-size: 0.95rem;
}

.list-unstyled {
    list-style: none;
    margin: 0;
    padding: 0;
}

.whatsapp-float {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    background: #25d366;
    color: #0b2617;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 800;
    z-index: 80;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover {
    text-decoration: none;
    filter: brightness(0.95);
}

.qrcode-float {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 58px);
    border: 1px solid var(--primary);
    background: var(--surface);
    color: var(--primary);
    border-radius: 999px;
    padding: 11px 15px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    z-index: 80;
    box-shadow: 0 12px 24px rgba(11, 23, 38, 0.14);
}

.qrcode-float:hover,
.qrcode-float:focus-visible {
    background: #eef6fc;
}

.footer-qrcode-btn {
    margin-right: 8px;
    margin-bottom: 10px;
}

.qrcode-modal[hidden] {
    display: none;
}

.qrcode-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.qrcode-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 23, 38, 0.68);
}

.qrcode-dialog {
    position: relative;
    width: min(420px, 100%);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(11, 23, 38, 0.28);
    padding: 24px;
    text-align: center;
}

.qrcode-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.qrcode-image {
    width: min(260px, 100%);
    height: auto;
    margin: 16px auto;
    border: 10px solid #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 23, 38, 0.12);
}

.qrcode-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    font-weight: 700;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.feedback-box {
    padding: 16px;
}

[data-form-feedback]:empty {
    display: none;
}

.feedback-success {
    border-left: 5px solid var(--success);
}

.feedback-error {
    border-left: 5px solid var(--danger);
}

.hidden-field {
    position: absolute;
    left: -5000px;
}

.map-wrap iframe {
    border: 0;
    width: 100%;
    min-height: 320px;
    border-radius: 16px;
}
