/* =====================================================
   POSTO MACHADO LTDA - Consultoria Veicular
   style.css — Design Institucional Profissional
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0B1F3A;
  --navy-mid:   #132d55;
  --gold:       #C8921A;
  --gold-light: #E5AE3A;
  --gold-pale:  #F5E7C5;
  --cream:      #FAF7F2;
  --white:      #FFFFFF;
  --gray-100:   #F2F4F7;
  --gray-300:   #CBD2DC;
  --gray-500:   #7A8799;
  --gray-700:   #3D4D5C;
  --text:       #1A2535;

  --ff-title: 'Playfair Display', Georgia, serif;
  --ff-body:  'Source Sans 3', 'Helvetica Neue', sans-serif;

  --shadow-sm:  0 2px 8px rgba(11,31,58,.08);
  --shadow-md:  0 6px 24px rgba(11,31,58,.14);
  --shadow-lg:  0 16px 48px rgba(11,31,58,.18);

  --radius:   6px;
  --radius-lg:12px;
  --trans:    .28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a  { color: var(--gold); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-light); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ───────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--ff-title); color: var(--navy); line-height: 1.22; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  margin-bottom: 12px;
}
.section-title { margin-bottom: .5rem; }
.section-lead  { font-size: 1.1rem; color: var(--gray-500); max-width: 680px; margin-bottom: 2.5rem; }

/* ── HEADER ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px; margin: 0 auto;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 46px; height: 46px;
  background: var(--gold);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-title);
  font-weight: 900; font-size: 1.4rem;
  color: var(--navy);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name  { font-family: var(--ff-title); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.logo-sub   { font-size: .72rem; color: var(--gold-light); letter-spacing: .06em; text-transform: uppercase; }

nav { display: flex; gap: 6px; align-items: center; }
nav a {
  font-size: .88rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gray-300);
  padding: 8px 14px; border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}
nav a:hover, nav a.active { background: rgba(200,146,26,.15); color: var(--gold-light); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--trans); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 90px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8921A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,146,26,.18); border: 1px solid rgba(200,146,26,.35);
  color: var(--gold-light); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px; margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 22px; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: 14px 30px; border-radius: var(--radius);
  transition: all var(--trans); cursor: pointer; border: 2px solid transparent;
  text-decoration: none;
}
.btn-gold   { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-navy   { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,146,26,.2);
  border-radius: var(--radius-lg); padding: 36px;
  backdrop-filter: blur(8px);
}
.hero-card h3 { color: var(--gold-light); margin-bottom: 16px; font-size: 1.15rem; }
.hero-stat { display: flex; gap: 20px; margin-bottom: 20px; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--ff-title); font-size: 2rem; font-weight: 900; color: var(--white); display: block; }
.stat-lbl { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }
.divider-v { width: 1px; background: rgba(200,146,26,.25); }
.hero-checks { list-style: none; }
.hero-checks li {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,.75); font-size: .92rem;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-checks li:last-child { border-bottom: none; }
.hero-checks li::before { content: '✓'; color: var(--gold); font-weight: 700; margin-top: 1px; flex-shrink: 0; }

/* ── TRUST BAR ────────────────────────────────────── */
.trust-bar {
  background: var(--gold); padding: 18px 0;
}
.trust-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 36px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: .88rem; }
.trust-item svg { flex-shrink: 0; }

/* ── SECTION WRAPPERS ─────────────────────────────── */
section { padding: 80px 0; }
.bg-cream { background: var(--cream); }
.bg-navy  { background: var(--navy); }
.bg-gray  { background: var(--gray-100); }

/* ── SOBRE ────────────────────────────────────────── */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sobre-img-block {
  position: relative;
}
.sobre-img-frame {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center; color: var(--white);
}
.sobre-img-frame .big-year {
  font-family: var(--ff-title); font-size: 5rem; font-weight: 900;
  color: var(--gold); line-height: 1; display: block;
}
.sobre-img-frame p { color: rgba(255,255,255,.7); margin-top: 10px; font-size: .95rem; }
.sobre-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.kpi-card {
  background: var(--white); border-radius: var(--radius); padding: 18px;
  border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm);
}
.kpi-card .num { font-family: var(--ff-title); font-size: 1.7rem; font-weight: 900; color: var(--navy); }
.kpi-card .lbl { font-size: .78rem; color: var(--gray-500); }

/* ── SERVIÇOS ─────────────────────────────────────── */
.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.servico-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300); padding: 32px;
  box-shadow: var(--shadow-sm); transition: all var(--trans);
  position: relative; overflow: hidden;
}
.servico-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--trans);
}
.servico-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.servico-card:hover::before { transform: scaleX(1); }
.servico-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.servico-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.servico-card p  { font-size: .93rem; line-height: 1.75; }

/* ── DIFERENCIAIS ─────────────────────────────────── */
.diferenciais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.diferencial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,146,26,.2);
  border-radius: var(--radius-lg); padding: 30px;
  transition: background var(--trans);
}
.diferencial-card:hover { background: rgba(200,146,26,.08); }
.dif-num {
  font-family: var(--ff-title); font-size: 3rem; font-weight: 900;
  color: rgba(200,146,26,.25); line-height: 1; margin-bottom: 8px;
}
.diferencial-card h3 { color: var(--gold-light); margin-bottom: 10px; font-size: 1.1rem; }
.diferencial-card p  { color: rgba(255,255,255,.65); font-size: .91rem; }

/* ── PROCESSO ─────────────────────────────────────── */
.processo-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--gray-300);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--ff-title); font-weight: 900; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p  { font-size: .93rem; }

/* ── AUTORIDADE ───────────────────────────────────── */
.autoridade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.autoridade-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.an-card {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center;
}
.an-card .n { font-family: var(--ff-title); font-size: 2.4rem; font-weight: 900; color: var(--gold); display: block; }
.an-card .l { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── EDUCATIVO ────────────────────────────────────── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.edu-tips { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.edu-tips li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
}
.edu-tip-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 28px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-body); font-size: 1.02rem; font-weight: 600; color: var(--navy);
  transition: background var(--trans);
}
.faq-q:hover { background: var(--gray-100); }
.faq-q span { width: 24px; height: 24px; flex-shrink: 0; background: var(--gold); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 900; transition: transform var(--trans); }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 28px 22px; font-size: .94rem; color: var(--gray-700); border-top: 1px solid var(--gray-100); padding-top: 16px; }
.faq-item.open .faq-a { display: block; }

/* ── CTA FINAL ────────────────────────────────────── */
.cta-final {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 80px 0; text-align: center;
}
.cta-final h2 { color: var(--white); margin-bottom: 16px; }
.cta-final p  { color: rgba(255,255,255,.7); max-width: 580px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-final .btn-gold { font-size: 1.05rem; padding: 16px 38px; }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer { background: #07142A; padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px;
  max-width: 1140px; margin: 0 auto; padding: 0 24px 48px;
}
.footer-brand .logo-name { font-size: 1.25rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .88rem; margin-top: 14px; }
.footer-col h4 { color: var(--gold-light); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { color: rgba(255,255,255,.6); font-size: .87rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px; text-align: center;
  max-width: 1140px; margin: 0 auto;
  color: rgba(255,255,255,.35); font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── COOKIE BANNER ────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy-mid);
  border-top: 3px solid var(--gold);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
#cookie-banner p { color: rgba(255,255,255,.8); font-size: .88rem; margin: 0; flex: 1; min-width: 260px; }
#cookie-banner a { color: var(--gold-light); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button {
  padding: 9px 20px; border-radius: var(--radius); border: 2px solid;
  font-weight: 700; font-size: .88rem; cursor: pointer; transition: all var(--trans);
}
.btn-accept { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-accept:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-reject { background: transparent; border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
.btn-reject:hover { border-color: var(--white); color: var(--white); }

/* ── PAGE HERO (internas) ─────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 55%, var(--navy-mid));
  padding: 60px 0; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; font-size: .85rem; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── CONTENT PAGES ────────────────────────────────── */
.page-content { max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.page-content h2 { margin: 2rem 0 .8rem; border-left: 4px solid var(--gold); padding-left: 14px; }
.page-content h3 { margin: 1.5rem 0 .6rem; color: var(--navy-mid); }
.page-content ul, .page-content ol { margin: .6rem 0 1rem 20px; }
.page-content li { margin-bottom: .4rem; color: var(--gray-700); }
.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.page-content th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-size: .9rem; }
.page-content td { padding: 10px 16px; border-bottom: 1px solid var(--gray-300); font-size: .93rem; }
.page-content tr:nth-child(even) td { background: var(--gray-100); }

/* ── CONTATO PAGE ─────────────────────────────────── */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; padding: 64px 24px; }
.contato-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contato-card h3 { margin-bottom: 8px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.contact-item:last-child { border-bottom: none; }
.c-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.c-label { font-size: .78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 2px; }
.c-value { font-size: .97rem; color: var(--text); font-weight: 500; }
.horario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.h-item { background: var(--gray-100); border-radius: var(--radius); padding: 12px; }
.h-day { font-weight: 700; font-size: .82rem; color: var(--navy); }
.h-time { font-size: .85rem; color: var(--gray-500); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner, .sobre-grid, .autoridade-grid, .edu-grid, .contato-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; z-index: 800; }
  .hamburger { display: block; }
  .header-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .sobre-kpis { grid-template-columns: 1fr 1fr; }
  .autoridade-nums { grid-template-columns: 1fr 1fr; }
}
