/* ===== Charnecar — Reparação Auto & Manutenção Industrial ===== */

:root {
  --preto: #131313;
  --preto-suave: #1d1d1d;
  --branco: #ffffff;
  --cinza-fundo: #f5f5f4;
  --cinza-texto: #55524e;
  --azul: #1d56a8;
  --azul-escuro: #164683;
  --borda: #e5e3e0;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(19, 19, 19, .08);
  --fonte-titulo: "Oswald", "Arial Narrow", sans-serif;
  --fonte-texto: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--fonte-texto);
  color: var(--preto);
  background: var(--branco);
  line-height: 1.6;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  border-radius: 6px;
  padding: .65rem 1.25rem;
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }

.btn-accent {
  background: var(--azul);
  color: var(--branco);
}
.btn-accent:hover { background: var(--azul-escuro); }

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .55);
  color: var(--branco);
}
.btn-outline:hover { border-color: var(--branco); background: rgba(255,255,255,.08); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand-logo { height: 54px; width: auto; }

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--fonte-titulo);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .92rem;
  text-decoration: none;
  color: var(--preto);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--azul); border-bottom-color: var(--azul); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--preto);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(29, 86, 168, .35), transparent 60%),
    linear-gradient(160deg, #181818 0%, #101010 60%, #161616 100%);
  color: var(--branco);
}

.hero-inner {
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  max-width: 780px;
}

.hero-kicker {
  font-family: var(--fonte-titulo);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
}

.hero .accent { color: #4d86d8; }

.hero-sub {
  margin: 1.4rem 0 2.2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-strip {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--fonte-titulo);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

.hero-strip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4d86d8;
}

/* ===== Secções ===== */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.section-dark {
  background: var(--preto-suave);
  color: var(--branco);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: .75rem;
  position: relative;
  padding-left: 1rem;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 5px;
  background: var(--azul);
  border-radius: 3px;
}

.section-lead {
  color: var(--cinza-texto);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

/* ===== Serviços ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--cinza-fundo);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-wide { grid-column: 1 / -1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--azul);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--branco); }

.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--cinza-texto); font-size: .95rem; }

/* ===== Sobre ===== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sobre-grid p { color: rgba(255, 255, 255, .82); margin-bottom: 1.1rem; }
.sobre-grid .btn { margin-top: .75rem; }

.sobre-points { list-style: none; display: grid; gap: 1.5rem; }

.sobre-points li {
  display: flex;
  gap: 1.1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.point-num {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.4rem;
  color: #4d86d8;
  line-height: 1.2;
}

.sobre-points h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.sobre-points p { font-size: .92rem; color: rgba(255, 255, 255, .72); margin: 0; }

/* ===== Horário ===== */
.horario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.horario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.horario-table th,
.horario-table td {
  text-align: left;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--borda);
}

.horario-table th { font-weight: 600; }
.horario-table td { text-align: right; font-variant-numeric: tabular-nums; }
.horario-table .fechado { color: var(--azul); font-weight: 600; }

.horario-cta {
  background: var(--cinza-fundo);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
}
.horario-cta h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.horario-cta p { color: var(--cinza-texto); margin-bottom: 1.4rem; }

/* ===== Contactos ===== */
.contactos-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 2rem;
  align-items: start;
}

.contact-list { list-style: none; display: grid; gap: 1.75rem; }

.contact-list li { display: flex; gap: 1rem; }

.contact-list .icon { width: 1.5rem; height: 1.5rem; fill: #4d86d8; margin-top: .2rem; }

.contact-list strong {
  font-family: var(--fonte-titulo);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .92rem;
  display: block;
  margin-bottom: .2rem;
}

.contact-list p { color: rgba(255, 255, 255, .82); }
.contact-list a { color: var(--branco); text-decoration-color: #4d86d8; }
.contact-list a:hover { color: #4d86d8; }

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, .06);
}
.map-consent p { color: rgba(255, 255, 255, .82); font-size: .95rem; }
.map-consent-link {
  color: #4d86d8;
  font-size: .9rem;
}

/* ===== Banner de cookies ===== */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 720px;
  margin-inline: auto;
  background: var(--preto);
  color: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #4d86d8; }

.cookie-actions { display: flex; gap: .6rem; flex: none; }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--branco);
  background: transparent;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--branco); background: rgba(255, 255, 255, .08); }

.cookie-banner .btn { cursor: pointer; }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}

/* ===== Página legal ===== */
.legal { max-width: 780px; }
.legal h1 { margin-bottom: .25rem; }
.legal-updated { color: var(--cinza-texto); font-size: .88rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p { margin-bottom: .9rem; }
.legal ul { margin: 0 0 .9rem 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--azul); }
.legal .btn { margin-top: 1.5rem; color: var(--branco); text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, .65);
  padding: 2rem 0;
  font-size: .92rem;
}

.footer-inner { text-align: center; display: grid; gap: .35rem; }
.footer-inner a { color: rgba(255, 255, 255, .85); }
.footer-copy { font-size: .82rem; color: rgba(255, 255, 255, .4); margin-top: .5rem; }

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .sobre-grid,
  .horario-grid,
  .contactos-grid { grid-template-columns: 1fr; }

  .map-wrap { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .header-cta { display: none; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
  }
  .site-nav.aberto { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--borda); }
  .site-nav a:last-child { border-bottom: 0; }

  .brand-logo { height: 42px; }
}
