
/* ========================================
   RODRIGO VIDROS - RV SOLUÇÕES EM VIDROS
   Estilos gerais
======================================== */

:root {
    --azul-escuro: #0A3D62;
    --azul-medio: #145783;
    --azul-claro: #DCECF7;
    --ciano: #42C6D9;
    --branco: #FFFFFF;
    --cinza-fundo: #F5F8FB;
    --cinza-texto: #526273;
    --texto: #243447;
    --borda: #DFE7EE;
    --verde-whatsapp: #25D366;
    --sombra: 0 12px 35px rgba(10, 61, 98, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--texto);
    background: var(--branco);
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

section[id] {
    scroll-margin-top: 85px;
}

/* CABEÇALHO */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--branco);
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
}

.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.brand strong {
    color: var(--azul-escuro);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.brand small {
    color: var(--cinza-texto);
    font-size: 12px;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu-links > a {
    font-size: 13px;
    font-weight: 600;
    color: var(--texto);
    transition: color 0.2s ease;
}

.menu-links > a:hover,
.menu-links > a:focus-visible {
    color: var(--azul-medio);
}

.menu-links .menu-cta {
    padding: 11px 17px;
    border-radius: 8px;
    background: var(--azul-escuro);
    color: var(--branco);
}

.menu-links .menu-cta:hover {
    background: var(--azul-medio);
    color: var(--branco);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--azul-escuro);
    font-size: 27px;
    padding: 10px;
    cursor: pointer;
}

/* BOTÕES */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--azul-escuro);
    color: var(--branco);
}

.button-primary:hover {
    background: var(--azul-medio);
    color: var(--branco);
}

.button-outline {
    border-color: var(--azul-escuro);
    color: var(--azul-escuro);
    background: transparent;
}

.button-outline:hover {
    background: var(--azul-escuro);
    color: var(--branco);
}

.button-white {
    background: var(--branco);
    color: var(--azul-escuro);
}

.button-white:hover {
    background: var(--azul-claro);
    color: var(--azul-escuro);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ciano);
    outline-offset: 3px;
}

/* APRESENTAÇÃO INICIAL */

.hero {
    padding: 75px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 20%,
            #E3F3FA 0,
            transparent 40%
        ),
        linear-gradient(135deg, #F8FBFD, #EAF3F9);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 55px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--azul-medio);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    color: var(--azul-escuro);
    font-size: clamp(34px, 4.4vw, 55px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.4px;
}

.hero-text > p:not(.hero-location) {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--cinza-texto);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-location {
    margin-top: 26px;
    color: var(--cinza-texto);
    font-size: 13px;
}

.hero-location i {
    color: var(--azul-medio);
    margin-right: 5px;
}

.hero-image {
    padding: 14px;
    border: 1px solid rgba(10, 61, 98, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--sombra);
}

.hero-image img {
    width: 100%;
    height: 420px;
    border-radius: 15px;
    object-fit: cover;
    background: var(--azul-claro);
}

/* DIFERENCIAIS */

.highlights {
    position: relative;
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.highlight > i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--azul-claro);
    color: var(--azul-escuro);
    font-size: 23px;
}

.highlight h3 {
    margin: 0 0 5px;
    color: var(--azul-escuro);
    font-size: 15px;
    font-weight: 800;
}

.highlight p {
    margin: 0;
    color: var(--cinza-texto);
    font-size: 13px;
    line-height: 1.6;
}

/* SEÇÕES */

.section {
    padding: 85px 0;
}

.section-light {
    background: var(--branco);
}

.section-blue {
    background: var(--cinza-fundo);
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.about-text h2 {
    margin: 0 0 16px;
    color: var(--azul-escuro);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.25;
}

.section-heading > p {
    margin: 0;
    color: var(--cinza-texto);
    font-size: 15px;
}

/* SOBRE */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 65px;
}

.about-image {
    padding: 12px;
    border-radius: 18px;
    background: var(--cinza-fundo);
}

.about-image img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 12px;
}

.about-text p {
    margin: 0 0 18px;
    color: var(--cinza-texto);
    font-size: 15px;
}

.about-text h3 {
    margin: 26px 0 10px;
    color: var(--azul-escuro);
    font-size: 20px;
    font-weight: 800;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--azul-medio);
    font-size: 13px;
    font-weight: 800;
}

.text-link:hover {
    color: var(--azul-escuro);
    text-decoration: underline;
}

/* SERVIÇOS */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.service-card {
    overflow: hidden;
    border: 1px solid var(--borda);
    border-radius: 14px;
    background: var(--branco);
    box-shadow: 0 5px 18px rgba(10, 61, 98, 0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra);
}

.service-card > img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--azul-claro);
}

.service-info {
    padding: 23px;
}

.service-info h3 {
    margin: 0 0 10px;
    color: var(--azul-escuro);
    font-size: 19px;
    font-weight: 800;
}

.service-info p {
    min-height: 70px;
    margin: 0 0 10px;
    color: var(--cinza-texto);
    font-size: 14px;
}

.services-footer {
    margin-top: 40px;
    text-align: center;
}

.services-footer p {
    color: var(--cinza-texto);
}

/* CHAMADA PARA CONTATO */

.callout {
    padding: 45px 0;
    background: var(--azul-escuro);
    color: var(--branco);
}

.callout-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.callout h2 {
    margin: 0 0 8px;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
}

.callout p {
    margin: 0;
    color: #DFEAF3;
    font-size: 14px;
}

/* PERGUNTAS FREQUENTES */

.faq-container {
    max-width: 850px;
}

.faq-list {
    display: grid;
    gap: 13px;
}

.faq-item {
    padding: 20px 23px;
    border: 1px solid var(--borda);
    border-radius: 10px;
    background: var(--branco);
}

.faq-item summary {
    position: relative;
    padding-right: 28px;
    color: var(--azul-escuro);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 0;
    right: 0;
    content: "+";
    color: var(--azul-medio);
    font-size: 22px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 15px 0 0;
    color: var(--cinza-texto);
    font-size: 14px;
}

/* CONTATO */

.section-contact {
    background: var(--cinza-fundo);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 45px;
    align-items: start;
}

.contact-info,
.contact-form {
    padding: 30px;
    border: 1px solid var(--borda);
    border-radius: 14px;
    background: var(--branco);
    box-shadow: 0 5px 20px rgba(10, 61, 98, 0.04);
}

.contact-info h3 {
    margin: 0;
    color: var(--azul-escuro);
    font-size: 25px;
    font-weight: 800;
}

.contact-info > p {
    margin: 5px 0 25px;
    color: var(--cinza-texto);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 24px 0;
    overflow-wrap: anywhere;
}

.contact-item > i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 10px;
    background: var(--azul-claro);
    color: var(--azul-escuro);
    font-size: 19px;
}

.contact-item span {
    display: flex;
    flex-direction: column;
    color: var(--cinza-texto);
    font-size: 14px;
}

.contact-item strong {
    margin-bottom: 3px;
    color: var(--azul-escuro);
    font-size: 13px;
}

.contact-item:hover span {
    color: var(--azul-medio);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form label {
    margin-top: 8px;
    color: var(--azul-escuro);
    font-size: 13px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #CBD7E2;
    border-radius: 7px;
    background: var(--branco);
    color: var(--texto);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #788897;
}

.form-button {
    width: 100%;
    margin-top: 12px;
}

.form-note {
    margin: 3px 0 0;
    color: var(--cinza-texto);
    font-size: 11px;
    line-height: 1.6;
}

/* RODAPÉ */

.site-footer {
    padding: 30px 0;
    background: #072B45;
    color: var(--branco);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content strong {
    font-size: 15px;
}

.footer-content p {
    margin: 3px 0 0;
    color: #D6E3ED;
    font-size: 12px;
}

.footer-content > a {
    font-size: 13px;
    font-weight: 700;
}

.footer-content > a:hover {
    color: var(--ciano);
}

/* BOTÃO FLUTUANTE DO WHATSAPP */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--verde-whatsapp);
    color: var(--branco);
    font-size: 31px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    background: #1EBE5D;
    color: var(--branco);
}

/* TABLETS */

@media (max-width: 1000px) {
    .navbar {
        gap: 15px;
    }

    .menu-links {
        gap: 13px;
    }

    .menu-links > a {
        font-size: 12px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-image img {
        height: 350px;
    }

    .about-grid {
        gap: 35px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CELULARES */

@media (max-width: 760px) {
    html {
        scroll-padding-top: 75px;
    }

    .container {
        width: min(100% - 30px, 540px);
    }

    .navbar {
        min-height: 74px;
        flex-wrap: wrap;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .brand {
        gap: 9px;
    }

    .brand strong {
        font-size: 13px;
    }

    .brand small {
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
    }

    .menu-links.is-open {
        display: flex;
    }

    .menu-links > a {
        padding: 12px 10px;
        font-size: 14px;
    }

    .menu-links .menu-cta {
        margin-top: 8px;
        text-align: center;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(33px, 9vw, 45px);
        letter-spacing: -0.7px;
    }

    .hero-text > p:not(.hero-location) {
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-image img {
        height: 300px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 23px;
        padding-top: 27px;
        padding-bottom: 27px;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image img {
        height: 290px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card > img {
        height: 250px;
    }

    .service-info p {
        min-height: 0;
    }

    .callout-content {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .callout .button {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-info,
    .contact-form {
        padding: 22px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}

/* TELAS MUITO PEQUENAS */

@media (max-width: 360px) {
    .container {
        width: calc(100% - 24px);
    }

    .brand strong {
        font-size: 11px;
    }

    .brand small {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .service-card > img {
        height: 210px;
    }
}

/* RESPEITA A PREFERÊNCIA POR MENOS MOVIMENTO */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
