/* ==========================================================================
   Auto Box - Mecânica para carros (Canasvieiras, Florianópolis - SC)
   Paleta: grafite estrutural + vermelho (1 acento) sobre base clara. Tema: claro.
   ========================================================================== */

:root {
  --graphite:   #1c2128;
  --graphite-2: #12161b;
  --red:        #e11d2a;
  --red-dk:     #b8121e;
  --ink:        #1a1f26;
  --muted:      #5c6773;
  --paper:      #f4f5f7;
  --paper-2:    #e8ebef;
  --white:      #ffffff;
  --line:       #dde1e7;

  --radius-card: 12px;
  --radius-in:   9px;
  --shadow-sm:   0 2px 8px rgba(20,25,32,.08);
  --shadow-md:   0 16px 42px rgba(20,25,32,.16);
  --maxw:        1180px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Saira", var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.04; letter-spacing: -.01em; margin: 0; text-transform: uppercase; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section { padding: clamp(58px, 9vw, 104px) 0; }

.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--red); margin: 0 0 14px; }
.section-head { max-width: 54ch; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); }
.section-head h2 em { color: var(--red); font-style: normal; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 16px 0 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: 1rem; padding: .82em 1.5em; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(225,29,42,.3); }
.btn-primary:hover { background: var(--red-dk); }
.btn-ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: #fff; }
.btn-lg { font-size: 1.08rem; padding: .95em 1.8em; }
.btn .ph { font-size: 1.25em; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 72px; display: flex; align-items: center; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(244,245,247,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; width: min(100% - 40px, 1260px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; color: var(--graphite); line-height: 1; display: block; text-transform: uppercase; }
.brand span { display: block; font-size: .58rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .22s; }
.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }
.nav .btn { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; color: var(--graphite); }
.nav-toggle .ph { font-size: 1.9rem; }

/* Hero */
.hero { position: relative; padding: 0; min-height: min(100dvh, 840px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero.webp") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18,22,27,.95) 0%, rgba(18,22,27,.84) 44%, rgba(18,22,27,.5) 100%); }
.hero .wrap { padding-top: 98px; padding-bottom: 60px; }
.hero-inner { max-width: 42ch; }
.hero .rating { display: inline-flex; align-items: center; gap: .6em; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .5em 1em; border-radius: 999px; margin-bottom: 22px; font-size: .95rem; }
.hero .rating .stars { color: #ffc531; letter-spacing: 1px; }
.hero .rating b { font-family: var(--font-head); font-weight: 700; }
.hero .rating span { color: rgba(255,255,255,.8); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { font-size: 1.2rem; margin: 20px 0 32px; max-width: 38ch; color: rgba(255,255,255,.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; background: rgba(18,22,27,.68); border-top: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.hero-strip ul { list-style: none; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 34px; width: min(100% - 40px, var(--maxw)); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.92); }
.hero-strip li { display: flex; align-items: center; gap: .5em; }
.hero-strip .ph { color: var(--red); font-size: 1.2em; }

/* Serviços */
.services { background: var(--paper); }
.svc-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-photo { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc:hover .svc-photo img { transform: scale(1.06); }
.svc-icon { position: absolute; left: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.svc-icon .ph { font-size: 1.5rem; }
.svc-body { padding: 18px 20px 24px; }
.svc-body h3 { font-size: 1.4rem; color: var(--graphite); }
.svc-body p { margin: 9px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }

/* Sobre */
.about { background: var(--graphite); color: #fff; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.about .eyebrow { color: #ff5a63; }
.about h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); color: #fff; }
.about h2 em { color: var(--red); font-style: normal; }
.about p { color: rgba(255,255,255,.84); margin: 18px 0 0; }
.about-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; }
.about-points .ph { color: var(--red); font-size: 1.5rem; margin-top: 2px; flex: none; }
.about-points b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-size: 1.1rem; display: block; }
.about-points span { color: rgba(255,255,255,.76); font-size: .96rem; }
.about-figure { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); aspect-ratio: 4/5; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; left: 16px; bottom: 16px; background: var(--red); color: #fff; border-radius: 12px; padding: 12px 16px; font-family: var(--font-head); text-transform: uppercase; line-height: 1.05; box-shadow: var(--shadow-md); }
.about-badge b { font-size: 1.7rem; display: block; }
.about-badge span { font-size: .72rem; letter-spacing: .08em; opacity: .95; }

/* Trabalhos */
.works { background: var(--paper-2); }
.works-grid { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
.work { position: relative; overflow: hidden; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); background: #ccd; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.07); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.02rem; background: linear-gradient(transparent, rgba(18,22,27,.9)); }
.work.big { grid-column: span 3; grid-row: span 2; }
.work.std { grid-column: span 3; }
.works-note { margin-top: 22px; color: var(--muted); font-size: .92rem; }

/* Depoimentos */
.reviews { background: var(--paper); }
.reviews .rating-line { display: inline-flex; align-items: center; gap: .6em; margin-top: 14px; font-size: 1.05rem; color: var(--muted); }
.reviews .rating-line .stars { color: #f5a623; letter-spacing: 1px; }
.reviews .rating-line b { font-family: var(--font-head); color: var(--graphite); font-size: 1.2rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink); flex: 1; }
.review figcaption { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review .av { width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--graphite); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.review .who b { font-family: var(--font-head); font-size: 1.02rem; display: block; line-height: 1.15; }
.review .who span { color: var(--muted); font-size: .86rem; display: inline-flex; align-items: center; gap: .35em; }
.review .who .ph { color: #4285f4; }

/* Localização */
.local { background: var(--graphite-2); color: #fff; }
.local-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: stretch; }
.local .eyebrow { color: #ff5a63; }
.local h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.local p { color: rgba(255,255,255,.82); margin: 16px 0 0; }
.local-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.local-list li { display: flex; gap: 14px; align-items: flex-start; }
.local-list .ph { color: var(--red); font-size: 1.4rem; flex: none; margin-top: 2px; }
.local-list b { font-family: var(--font-head); text-transform: uppercase; font-size: 1.02rem; display: block; }
.local-list a, .local-list span { color: rgba(255,255,255,.82); text-decoration: none; }
.local-list a:hover { color: #ff8a90; }
.map { border-radius: 14px; overflow: hidden; min-height: 340px; box-shadow: 0 20px 50px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.2); }

/* Contato */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); }
.contact-info h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--graphite); }
.contact-info h2 em { color: var(--red); font-style: normal; }
.contact-info p { color: var(--muted); margin: 16px 0 26px; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 14px; align-items: center; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ccard .ic { width: 46px; height: 46px; border-radius: 10px; background: var(--graphite); color: #fff; display: grid; place-items: center; flex: none; }
.ccard .ic .ph { font-size: 1.5rem; }
.ccard b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em; font-size: 1.05rem; color: var(--graphite); display: block; line-height: 1.15; }
.ccard span { color: var(--muted); font-size: .95rem; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.form h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.4rem; color: var(--graphite); margin-bottom: 6px; }
.form .lead { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-in); background: var(--paper); transition: border-color .18s, box-shadow .18s; }
.field input::placeholder, .field textarea::placeholder { color: #93a0ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,42,.16); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em; font-size: 1.1rem; color: var(--graphite); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\002B"; font-family: var(--font-head); font-size: 1.5rem; color: var(--red); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--graphite-2); color: rgba(255,255,255,.82); padding: 60px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .fbrand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand .mark { width: 46px; height: 46px; }
.footer-brand b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; color: #fff; }
.footer-brand p { max-width: 34ch; font-size: .96rem; }
.footer-col h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: #fff; font-size: 1.02rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: #ff8a90; }
.footer-col .ph { color: var(--red); margin-right: 8px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.72); text-decoration: none; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5); text-decoration: none; transition: transform .18s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ph { font-size: 2rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } .svc, .work img, .ccard, .svc-photo img { transition: none !important; } }

/* Responsive */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .about-grid, .local-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-figure { aspect-ratio: 16/10; max-height: 420px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .work.big, .work.std { grid-column: span 1; grid-row: span 1; }
  .work.big { grid-column: 1 / -1; grid-row: span 2; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .28s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; }
  .site-header .wrap { justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .hero-strip ul { font-size: .8rem; gap: 8px 18px; }
  .brand span { display: none; }
}
