/* ==========================================================
   Sulauto Service — folha de estilos
   Cores principais definidas em :root (fácil de alterar)
   ========================================================== */
:root {
  --ink: #0b1b33;
  --ink-2: #10284a;
  --ink-3: #173763;
  --paper: #f1f5fa;
  --white: #ffffff;
  --muted: #5c6b7e;
  --line: #d9e2ee;
  --accent: #4da3ff;
  --accent-dark: #1d6fd1;
  --accent-light: #7dbcff;
  --brand-blue: #0065b3;
  --brand-red: #ee1d23;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --max: 1160px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: #c3cfde; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--accent); }
.topbar span { display: inline-flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.topbar a { white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 27, 51, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; flex: none;
}
.logo-mark img { width: 24px; height: auto; }
.logo-text { font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: .03em; line-height: 1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .45em; color: var(--brand-red); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #d3deec; text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
@media (max-width: 780px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-radius: 10px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--ink) !important;
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-family: inherit;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(77,163,255,.18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  color: #fff;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(44px, 7vw, 80px); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 18px; color: #bccbdd; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-badges div { border-left: 2px solid var(--accent); padding-left: 14px; }
.hero-badges strong { display: block; font-family: var(--font-head); font-size: 34px; line-height: 1; }
.hero-badges span { font-size: 13px; color: #8fa3bd; }
.hero .container > div:first-child { position: relative; z-index: 1; }
/* Foto da oficina a sangrar até à margem direita, a desvanecer para o fundo */
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
}
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,27,51,.55) 0%, transparent 20%, transparent 78%, var(--ink-3) 100%);
}
.hero-stripes {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px; z-index: 2;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 72px; }
  /* No telemóvel a foto fica por baixo do texto e desvanece para o fundo */
  .hero-art {
    position: relative; width: auto; height: 320px; margin: -16px calc(50% - 50vw) -72px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
  }
  .hero-photo { object-position: center 40%; }
  .hero-art::after { background: linear-gradient(to bottom, transparent 70%, var(--ink-3) 100%); }
}

/* Cabeçalho de página interior */
.page-hero { background: linear-gradient(160deg, var(--ink), var(--ink-3)); color: #fff; position: relative; }
.page-hero .container { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 8px; }
.page-hero p { color: #b3c3d8; margin: 0; max-width: 560px; }

/* ---------- Secções ---------- */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 48px); }
.section-head p { color: var(--muted); font-size: 17px; }
.bg-white { background: var(--white); }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-card {
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(77,163,255,.22), transparent 70%),
    linear-gradient(150deg, var(--ink-2), var(--ink));
  color: #fff; border-radius: calc(var(--radius) + 6px); padding: 44px 44px 40px;
  position: relative; overflow: hidden; box-shadow: 0 24px 48px rgba(11, 27, 51, .22);
}
.about-card::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 240px; height: 240px;
  border-radius: 50%; border: 30px solid rgba(77,163,255,.12);
}
.about-card > * { position: relative; z-index: 1; }
.about-stat { display: flex; align-items: center; gap: 22px; }
.about-card .big {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(110px, 12vw, 150px); line-height: .82;
  background: linear-gradient(180deg, #fff 10%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: flex-start;
}
.about-card .big span { font-size: .42em; line-height: 1; margin-left: 4px; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.about-stat h3 {
  font-size: 30px; line-height: 1; margin: 0; padding-left: 22px;
  border-left: 3px solid var(--accent);
}
.about-card p { color: #bccbdd; margin: 22px 0 0; max-width: 340px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-badges strong em { font-style: normal; color: var(--accent); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; color: var(--accent-dark); margin-top: 3px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* Serviços: mecânica geral */
.mech {
  max-width: 1040px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 56px 48px; box-shadow: var(--shadow);
}
.mech .eyebrow { justify-content: center; }
.mech-icon {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px;
  background: #e3efff; color: var(--accent-dark); display: grid; place-items: center;
}
.mech h2 { font-size: clamp(52px, 9vw, 96px); margin-bottom: 14px; }
.mech-lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.mech-list {
  list-style: none; padding: 32px 0 0; margin: 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left;
}
.mech-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; transition: border-color .2s ease, transform .2s ease;
}
.mech-list li:hover { border-color: var(--accent); transform: translateY(-2px); }
.mech-list li { border-top: 3px solid var(--accent); }
.mech-list h3 { font-size: 22px; margin: 0 0 8px; line-height: 1.15; }
.mech-list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; background: #e3efff; color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 18px;
}
@media (max-width: 960px) { .mech-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .mech { padding: 40px 24px; } }
@media (max-width: 560px) { .mech-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mech-list li { transition: none; } .mech-list li:hover { transform: none; } }
/* Inspeção */
.inspection {
  background: var(--accent); color: var(--ink); border-radius: calc(var(--radius) + 6px);
  padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
.inspection-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.inspection h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 6px; }
.inspection p { margin: 0; max-width: 560px; }
.inspection .btn { background: var(--ink); color: #fff !important; }
.inspection .btn:hover { background: #061225; }
@media (max-width: 860px) { .inspection { grid-template-columns: 1fr; padding: 32px; text-align: left; } }

/* Testemunhos */
.testimonials { overflow: hidden; }
.testimonials .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.testimonials .eyebrow { justify-content: center; font-size: 18px; }
.testimonials .section-head h2 { font-size: clamp(42px, 6vw, 64px); }
.t-deck { display: grid; gap: 16px; max-width: 420px; margin: 0 auto; }
.t-card {
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3)); color: #fff;
  position: relative; border-radius: var(--radius); padding: 32px 28px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow);
}
.t-stars { color: #f5b301; font-size: 22px; letter-spacing: 4px; margin-bottom: 14px; }

.t-card p { color: #d3deec; font-size: 15px; margin: 0 0 14px; }
.t-card .t-note { font-size: 12px; color: #8fa3bd; }
.t-author { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.t-author a { color: #fff; }
.t-author a:hover { color: var(--accent); }
.t-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: grid; place-items: center; font-family: var(--font-head); font-size: 24px;
}
.t-eye {
  position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); transition: background .2s, color .2s;
}
.t-eye:hover { background: var(--accent); color: var(--ink); }
.t-card[aria-hidden="true"] .t-eye { pointer-events: none; }
/* Baralho de cartões (ativado por js/main.js) */
.t-deck.is-deck { gap: 0; touch-action: pan-y; cursor: grab; user-select: none; }
.t-deck.is-deck .t-card {
  grid-area: 1 / 1; min-height: 400px;
  transition: transform .45s cubic-bezier(.25,.8,.25,1), opacity .45s, filter .45s;
}
.t-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.t-controls[hidden] { display: none; }
.t-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.t-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.t-count { font-family: var(--font-head); font-size: 20px; font-weight: 700; min-width: 48px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .t-deck.is-deck .t-card { transition: none; } }
/* CTA final */
.cta { text-align: center; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }
.cta .phone-big {
  display: inline-block; font-family: var(--font-head); font-size: clamp(40px, 6vw, 64px);
  font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 20px;
}
.cta .phone-big:hover { color: var(--accent-dark); }

/* ---------- Contactos ---------- */
.contact-grid { display: grid; gap: 32px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-content: start; }
.hours { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; color: var(--muted); max-width: 300px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; }
.hours strong { color: var(--ink); font-weight: 600; white-space: nowrap; text-align: right; }
.hours .closed strong { color: var(--muted); font-weight: 500; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .service-icon { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-card h3 { font-size: 20px; margin-bottom: 4px; }
.contact-card p, .contact-card address { margin: 0; color: var(--muted); font-style: normal; }
.contact-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--accent-dark); }
.contact-card .phone-line a { display: inline-flex; align-items: center; gap: 8px; }
.contact-card .phone-line { margin-top: 12px; line-height: 1.3; }
.contact-card .phone-line + p { margin-top: 4px; }
.phone-icon { color: var(--accent-dark); flex: none; }
.whatsapp-icon { color: #25d366; flex: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--muted); }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; color: var(--ink); }

.map-wrap { margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #ddd; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }
.map-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--white); padding: 16px 20px; font-size: 15px; }
.map-bar a { color: var(--accent-dark); font-weight: 600; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: #9db0c8; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--font-head); text-transform: uppercase; font-size: 18px; letter-spacing: .06em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: #d3deec; }
.footer a:hover { color: var(--accent); }
.footer .logo { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Botão flutuante de chamada (telemóvel) */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--ink);
  display: none; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-fab { bottom: 84px; background: #25d366; color: #fff; }
@media (max-width: 780px) { .call-fab { display: grid; } }
.topbar .wa-icon, .footer .wa-icon { color: #25d366; flex: none; }
.topbar a:has(.wa-icon) { display: inline-flex; align-items: center; gap: 5px; }
.footer li a { display: inline-flex; align-items: center; gap: 8px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
