/* =============================================
   GP AUTO — style.css
   Casa automotiva multimarca | 20 anos de consultoria
   Tom: honesto, especialista, do lado do comprador.
   Nada de brilho de concessionaria.
   Archivo (titulos) + Public Sans (texto)
   ============================================= */

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

:root {
    --ink:        #0F1419;
    --ink-2:      #161D26;
    --steel:      #232E3B;
    --steel-soft: #33414F;

    --amber:      #D9822B;
    --amber-lt:   #F0B25A;
    --amber-rgb:  217, 130, 43;

    --paper:      #F6F4F0;
    --paper-2:    #EDEAE4;
    --white:      #FFFFFF;

    --text:       #0F1419;
    --text-soft:  #4A5666;
    --text-mute:  #7A8697;
    --on-dark:    #E9ECF0;
    --on-dark-2:  rgba(233, 236, 240, 0.68);

    --border:     rgba(15, 20, 25, 0.12);
    --border-sub: rgba(15, 20, 25, 0.06);
    --border-dk:  rgba(233, 236, 240, 0.14);

    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
    --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
    --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;

    --text-xs:   clamp(0.73rem,  1.4vw, 0.8rem);
    --text-sm:   clamp(0.875rem, 1.7vw, 0.94rem);
    --text-base: clamp(1rem,     2vw,   1.05rem);
    --text-lg:   clamp(1.1rem,   2.4vw, 1.24rem);
    --text-xl:   clamp(1.3rem,   2.9vw, 1.5rem);
    --text-2xl:  clamp(1.5rem,   3.6vw, 1.95rem);
    --text-3xl:  clamp(1.85rem,  4.6vw, 2.6rem);
    --text-4xl:  clamp(2.25rem,  6vw,   3.6rem);

    --nav-h:     72px;
    --radius:    4px;
    --radius-lg: 8px;
    --transition: 0.24s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    background: var(--paper);
    color: var(--text);
    font-family: 'Public Sans', system-ui, sans-serif;
    font-size: var(--text-base);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

h1, h2, h3, h4 {
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text);
}
h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-lg); }
p  { color: var(--text-soft); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--dark { background: var(--ink); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-2); }
.section--paper2 { background: var(--paper-2); }

.section-header { max-width: 720px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin-top: var(--sp-3); }
.section-header p  { margin-top: var(--sp-4); font-size: var(--text-lg); }

/* --- EYEBROW: etiqueta tecnica, caixa alta --- */
.eyebrow {
    display: inline-block;
    font-family: 'Archivo', sans-serif;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
}
.section--dark .eyebrow { color: var(--amber-lt); }

/* --- BOTÕES: retos, sem raio grande. Ferramenta, não enfeite --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius);
    font-family: 'Archivo', sans-serif;
    font-weight: 700; font-size: var(--text-sm);
    letter-spacing: 0.02em;
    transition: all var(--transition);
    white-space: nowrap; min-height: 50px;
    border: 1.5px solid transparent;
}
.btn--primary {
    background: var(--amber); color: var(--ink);
    box-shadow: 0 4px 18px rgba(var(--amber-rgb), 0.28);
}
.btn--primary:hover { background: var(--amber-lt); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(var(--amber-rgb), 0.38); }
.btn--ghost { color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--ghost-dk { color: var(--on-dark); border-color: var(--border-dk); }
.btn--ghost-dk:hover { border-color: var(--amber-lt); color: var(--amber-lt); }
.btn--nav { display: none; padding: 0.6rem 1.2rem; font-size: var(--text-xs); min-height: 42px; }
.btn--lg { padding: 1.05rem 2.2rem; font-size: var(--text-base); min-height: 56px; }

/* --- NAV --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 800;
    height: var(--nav-h);
    transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
    background: rgba(246, 244, 240, 0.95);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}
.nav__container {
    max-width: 1140px; margin: 0 auto; padding: 0 var(--sp-5);
    height: 100%; display: flex; align-items: center; gap: var(--sp-6);
}
.nav__logo { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text__main {
    font-family: 'Archivo', sans-serif;
    font-size: 1.22rem; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text);
}
.logo-text__sub {
    font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--text-mute); margin-top: 3px;
}

.nav__links { display: none; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav__link {
    font-size: var(--text-sm); font-weight: 600; color: var(--text-soft);
    transition: color var(--transition);
}
.nav__link:hover { color: var(--amber); }

.nav__right { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.nav__links + .nav__right { margin-left: 0; }

/* --- SELETOR DE IDIOMA (canto da nav) --- */
.lang {
    display: flex; align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.lang__btn {
    font-family: 'Archivo', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-mute);
    padding: 7px 11px; line-height: 1; min-height: 34px;
    transition: all var(--transition);
}
.lang__btn:hover { color: var(--text); }
.lang__btn--active { background: var(--ink); color: var(--white); }

.nav__burger { display: flex; flex-direction: column; gap: 5px; padding: var(--sp-1); }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all var(--transition); }
.nav__burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper);
    padding: var(--sp-6) var(--sp-5) var(--sp-8);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 20, 25, 0.12);
    gap: var(--sp-4);
}
.nav__links.is-open .nav__link { font-size: var(--text-lg); color: var(--text); }

/* --- HERO --- */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--on-dark);
    padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 5.5rem));
    padding-bottom: clamp(3.5rem, 9vw, 5.5rem);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 0%, rgba(var(--amber-rgb), 0.18), transparent 70%),
        linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
    pointer-events: none;
}
/* faixa tecnica sutil, lembrando marcacao de oficina */
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, var(--border-dk) 0 1px, transparent 1px 88px);
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 780px; }
.hero__title { color: var(--on-dark); max-width: 16ch; }
.hero__title em { font-style: normal; color: var(--amber-lt); }
.hero__sub { font-size: var(--text-lg); color: var(--on-dark-2); max-width: 58ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }

.hero__stats {
    display: flex; flex-wrap: wrap; gap: var(--sp-10);
    margin-top: var(--sp-10); padding-top: var(--sp-6);
    border-top: 1px solid var(--border-dk);
}
.hero__stat { display: flex; flex-direction: column; gap: 3px; }
.hero__stat-num {
    font-family: 'Archivo', sans-serif;
    font-size: var(--text-2xl); font-weight: 800;
    color: var(--amber-lt); line-height: 1;
}
.hero__stat-label { font-size: var(--text-xs); color: var(--on-dark-2); max-width: 20ch; letter-spacing: 0.02em; }

/* --- QUEM SOMOS --- */
.quem { max-width: 760px; }
.quem p { font-size: var(--text-lg); }

/* --- SERVIÇOS --- */
.servicos { display: grid; gap: var(--sp-5); }
.servico {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3.5vw, 2.25rem);
    display: flex; flex-direction: column; gap: var(--sp-4);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.servico:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--amber-rgb), 0.45);
    box-shadow: 0 18px 44px rgba(15, 20, 25, 0.1);
}
.servico__anos {
    align-self: flex-start;
    font-family: 'Archivo', sans-serif;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink); background: var(--amber-lt);
    padding: 4px 10px; border-radius: var(--radius);
}
.servico h3 { font-size: var(--text-xl); }
.servico > p { font-size: var(--text-sm); }
.servico__lista { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--border-sub); }
.servico__lista li {
    position: relative; padding-left: var(--sp-6);
    font-size: var(--text-sm); color: var(--text-soft);
}
.servico__lista li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 10px; height: 2px; background: var(--amber);
}

/* --- DIFERENCIAIS --- */
.difs { display: grid; gap: var(--sp-6); }
.dif { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-5); border-top: 2px solid var(--amber); }
.dif h3 { color: var(--on-dark); }
.dif p { font-size: var(--text-sm); }

/* --- COMO FUNCIONA --- */
.passos { display: grid; gap: var(--sp-5); counter-reset: passo; }
.passo { display: grid; gap: var(--sp-4); }
.passo__num {
    font-family: 'Archivo', sans-serif;
    font-size: 2.6rem; font-weight: 800; line-height: 1;
    color: rgba(var(--amber-rgb), 0.35);
    letter-spacing: -0.04em;
}
.passo__corpo { display: flex; flex-direction: column; gap: var(--sp-2); }
.passo__corpo p { font-size: var(--text-sm); }

/* --- HISTÓRIA --- */
.historia { max-width: 780px; display: flex; flex-direction: column; gap: var(--sp-4); }
.historia p { font-size: var(--text-base); }
.historia__marca {
    margin-top: var(--sp-4); padding-left: var(--sp-6);
    border-left: 3px solid var(--amber);
    font-family: 'Archivo', sans-serif;
    font-size: var(--text-lg); font-weight: 600;
    color: var(--text); line-height: 1.4;
}

/* --- DEPOIMENTOS (aguardando os reais) --- */
.depos { display: grid; gap: var(--sp-4); }
.depo {
    border: 1.5px dashed rgba(var(--amber-rgb), 0.45);
    background: rgba(var(--amber-rgb), 0.05);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3.5vw, 2rem);
    display: flex; flex-direction: column; gap: var(--sp-3);
    min-height: 180px;
}
.depo__marca { font-family: 'Archivo', sans-serif; font-size: 2rem; font-weight: 800; color: rgba(var(--amber-rgb), 0.4); line-height: 1; }
.depo p { font-size: var(--text-sm); color: var(--text-mute); }
.depos-nota { margin-top: var(--sp-6); font-size: var(--text-sm); color: var(--text-mute); text-align: center; }

/* --- CTA FINAL --- */
.cta { background: var(--ink); }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-4); max-width: 660px; margin: 0 auto; }
.cta__inner h2 { color: var(--on-dark); }
.cta__inner p { font-size: var(--text-lg); color: var(--on-dark-2); }

/* --- CONTATO --- */
.contato { display: grid; gap: var(--sp-8); }
.contato__bloco { display: flex; flex-direction: column; gap: var(--sp-2); }
.contato__bloco h4 {
    font-family: 'Archivo', sans-serif;
    font-size: var(--text-xs); font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--amber); margin-bottom: var(--sp-1);
}
.contato__bloco a, .contato__bloco p { font-size: var(--text-base); color: var(--text); font-weight: 500; }
.contato__bloco a:hover { color: var(--amber); }
.contato__bloco small { font-size: var(--text-sm); color: var(--text-mute); font-weight: 400; }

/* --- FOOTER --- */
.footer { background: var(--ink-2); border-top: 1px solid var(--border-dk); }
.footer__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-8) var(--sp-5);
    max-width: 1140px; margin: 0 auto;
}
.footer .logo-text__main { color: var(--on-dark); }
.footer .logo-text__sub  { color: var(--amber-lt); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer__links a, .footer__legal { font-size: var(--text-xs); color: var(--on-dark-2); transition: color var(--transition); }
.footer__links a:hover { color: var(--amber-lt); }
.footer__legal { width: 100%; padding-top: var(--sp-4); border-top: 1px solid var(--border-dk); }

/* --- REVELAÇÃO --- */
[data-animate] { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-animate].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    [data-animate] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (min-width: 620px) {
    .difs { grid-template-columns: repeat(2, 1fr); }
    .passo { grid-template-columns: auto 1fr; align-items: start; gap: var(--sp-6); }
    .depos { grid-template-columns: repeat(3, 1fr); }
    .contato { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 920px) {
    .nav__links { display: flex; }
    .nav__burger { display: none; }
    .btn--nav { display: inline-flex; }
    .nav__links > .btn { display: none; }

    .servicos { grid-template-columns: repeat(3, 1fr); }
    .difs { grid-template-columns: repeat(4, 1fr); }
    .passos { grid-template-columns: repeat(4, 1fr); }
    .passo { grid-template-columns: 1fr; gap: var(--sp-3); }
    .contato { grid-template-columns: repeat(4, 1fr); }
}
