/* ============================================================
   Star Free Refrigeração Automotiva
   Paleta extraída da logo: preto profundo + anel quente→frio
   ============================================================ */

:root {
    --bg: #050505;
    --surface: #101010;
    --surface-2: #161616;
    --line: #242424;
    --hot: #E23A2E;
    --sun: #F7B32B;
    --cold: #1D6FF2;
    --text: #F2F2F2;
    --muted: #9a9a9a;
    --ring: linear-gradient(90deg, var(--hot) 0%, var(--sun) 48%, var(--cold) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* compensa a altura do header fixo ao navegar por âncoras */
    scroll-padding-top: 84px;
}

body {
    font-family: 'Saira', system-ui, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: 'Saira Condensed', 'Saira', sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sun);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

/* linha gradiente do anel da logo, no topo do header */
.site-header::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--ring);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.7rem 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text);
}

.brand img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    font-family: 'Saira Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

.brand-name b {
    color: var(--cold);
    font-weight: 900;
}

.brand-sub {
    display: block;
    font-family: 'Saira', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-top: 2px;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.site-nav a:not(.btn-cta) {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:not(.btn-cta):hover {
    color: var(--text);
}

/* ---------- Botões ---------- */

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #062012;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

.btn-cta svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn-cta.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

/* halo quente→frio atras da logo */
.hero::after {
    content: "";
    position: absolute;
    right: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: min(720px, 64vw);
    aspect-ratio: 1;
    background:
        radial-gradient(closest-side, rgba(29, 111, 242, 0.22), transparent 70%),
        radial-gradient(closest-side, rgba(226, 58, 46, 0.14), transparent 75%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    margin-bottom: 1.2rem;
}

.hero h1 .cold-word {
    color: var(--cold);
}

.hero h1 .hot-word {
    color: var(--hot);
}

.hero .lede {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    max-width: 46ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

.hero-note {
    font-size: 0.88rem;
    color: var(--muted);
}

.hero-emblem {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(540px, 92vw);
}

/* logo com fundo removido: o halo quente→frio aparece atras dela */
.hero-emblem img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Faixa gradiente (anel da logo desenrolado) ---------- */

.ring-band {
    height: 4px;
    background: var(--ring);
}

/* ---------- Seções ---------- */

section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
    margin-bottom: 2.8rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-head h2 span {
    color: var(--cold);
}

.section-head p {
    color: var(--muted);
    max-width: 52ch;
    margin-top: 0.6rem;
}

/* seção que cola logo abaixo da faixa gradiente */
section.no-top-padding {
    padding-top: 0;
}

.contact h2 .accent-cold {
    color: var(--cold);
}

/* Diferenciais: três colunas com ícones, sem borda de card idêntica */

.diff-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.diff-item {
    background: var(--surface);
    padding: 2rem 1.8rem;
}

.diff-item .icon {
    width: 42px;
    height: 42px;
    margin-bottom: 1.2rem;
}

.diff-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.diff-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Serviços: grade assimétrica */

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
}

.service {
    grid-column: span 2;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--cold);
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
    transition: border-color 0.2s, background 0.2s;
}

.service:hover {
    background: var(--surface-2);
    border-color: #333;
}

.service:not(.feature):hover {
    border-left-color: var(--sun);
}

.service.wide {
    grid-column: span 3;
}

.service.feature {
    grid-column: span 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: linear-gradient(100deg, rgba(226, 58, 46, 0.08), rgba(247, 179, 43, 0.05) 45%, rgba(29, 111, 242, 0.12)), var(--surface);
    border-left: 3px solid var(--hot);
}

.service h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.service.feature h3 {
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
}

.service p {
    color: var(--muted);
    font-size: 0.93rem;
    max-width: 60ch;
}

/* ---------- Contato / rodapé ---------- */

.contact {
    border-top: 1px solid var(--line);
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.contact p {
    color: var(--muted);
    max-width: 48ch;
    margin: 0 auto 2rem;
}

footer {
    border-top: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
    text-align: center;
    color: #6d6d6d;
    font-size: 0.85rem;
}

footer .mini-ring {
    display: block;
    width: 90px;
    height: 3px;
    background: var(--ring);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* ---------- Animação de entrada (única, no hero) ---------- */

@media (prefers-reduced-motion: no-preference) {
    .hero-grid > * {
        animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .hero-grid > *:nth-child(2) {
        animation-delay: 0.15s;
    }
    @keyframes rise {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: none; }
    }
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-emblem {
        order: -1;
        width: min(360px, 84vw);
    }
    .diff-list {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service, .service.wide, .service.feature {
        grid-column: auto;
    }
    .site-nav a:not(.btn-cta) {
        display: none;
    }
}
