/* ASG Locações — base do design system (design-system/asg/MASTER.md)
   Ordem de carga: styles.css → ajustes-v2.css → tema-claro.css → hero-imagem.css */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin.woff2) format('woff2');
}

:root{
  /* Superfícies */
  --surface-dark: #0F172A;
  --surface-darker: #0B1120;
  --surface-dark-2: #1E293B;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --muted: #EBF0F5;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Texto */
  --ink: #0F172A;          /* títulos sobre claro */
  --fg: #334155;           /* corpo sobre claro — 9.9:1 em --bg */
  --fg-muted: #475569;     /* secundário sobre claro — 6.6:1 em --muted */
  --on-dark: #FFFFFF;
  --on-dark-muted: #CBD5E1; /* 12:1 em --surface-dark */
  --on-dark-subtle: #94A3B8; /* 6.9:1 em --surface-dark */

  /* Marca */
  --accent: #F5B800;       /* amarelo ASG — texto só sobre escuro */
  --accent-hover: #FFC61A;
  --on-accent: #0F172A;
  --whatsapp: #25D366;

  /* Ritmo */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 6px 16px rgba(15,23,42,.10);
  --shadow-lg: 0 18px 40px rgba(15,23,42,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 220ms;

  --header-h: 96px;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; background:var(--bg); -webkit-text-size-adjust:100%;}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:var(--accent); color:var(--on-accent);}
a{color:inherit;}
img{display:block; max-width:100%; height:auto;}
h1,h2,h3,h4{font-family:var(--font); color:var(--ink); letter-spacing:-0.015em; text-wrap:balance;}
section[id]{scroll-margin-top:calc(var(--header-h) + 8px);}

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

/* ---------- Topbar ---------- */
.topbar{
  background:var(--surface-darker);
  color:var(--on-dark-muted);
  font-size:14px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar .container{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:4px 24px;}
.topbar strong{color:var(--accent); font-weight:600; font-variant-numeric:tabular-nums;}
.topbar-endereco{display:inline-flex; align-items:center; gap:8px;}
.topbar-endereco svg{flex:none; fill:none; stroke:var(--accent); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:100;
  background:#FFFFFF;
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  min-height:var(--header-h);
}
.brand{display:flex; align-items:center; flex:none;}
.brand img{height:84px; width:auto;}

header nav{display:flex; gap:4px; font-size:15px; font-weight:500;}
header nav a{
  position:relative;
  display:inline-flex; align-items:center;
  min-height:44px; padding:0 14px;
  text-decoration:none; color:var(--fg);
  transition:color var(--dur) var(--ease);
}
header nav a::after{
  content:""; position:absolute; left:14px; right:14px; bottom:6px; height:3px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform var(--dur) var(--ease);
}
header nav a:hover{color:var(--ink);}
header nav a:hover::after{transform:scaleX(1);}

/* ---------- Botões ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:0 28px;
  font-family:var(--font); font-weight:600; font-size:16px; letter-spacing:.01em;
  text-decoration:none;
  border-radius:var(--radius);
  border:2px solid transparent;
  cursor:pointer;
  transition:background-color var(--dur) var(--ease), color var(--dur) var(--ease),
             border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg{flex:none;}
.btn-primary{background:var(--accent); color:var(--on-accent); border-color:var(--accent);}
.btn-primary:hover{background:var(--accent-hover); border-color:var(--accent-hover); box-shadow:0 8px 24px rgba(245,184,0,.32);}
.btn-whatsapp{background:var(--whatsapp); color:#0B1120; border-color:var(--whatsapp);}
.btn-whatsapp:hover{box-shadow:0 8px 24px rgba(37,211,102,.30);}
.btn-outline{background:transparent; color:var(--ink); border-color:var(--ink);}
.btn-outline:hover{background:var(--ink); color:#FFFFFF;}
.btn-outline-dark-bg{color:var(--on-dark); border-color:rgba(255,255,255,.55);}
.btn-outline-dark-bg:hover{background:#FFFFFF; color:var(--ink); border-color:#FFFFFF;}

/* ---------- Cabeçalho de seção ---------- */
section{padding:var(--space-4xl) 0;}
.section-head{max-width:720px; margin-bottom:var(--space-2xl);}
.section-kicker{
  display:inline-flex; align-items:center; gap:12px;
  font-size:14px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:var(--fg-muted);
  margin-bottom:16px;
}
.section-kicker::before{content:""; width:28px; height:4px; background:var(--accent); flex:none;}
.section-head h2,
.sobre-text h2,
.contato-info h2{
  font-size:clamp(30px, 3.6vw, 46px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-0.025em;
}
.section-head p{font-size:18px; color:var(--fg); margin-top:18px; max-width:60ch;}

/* ---------- Rodapé ---------- */
footer{background:var(--surface-darker); color:var(--on-dark-muted); padding:var(--space-3xl) 0 var(--space-xl);}
.footer-grid{display:grid; grid-template-columns:minmax(220px, 1fr) 2fr; gap:var(--space-2xl); margin-bottom:var(--space-2xl);}
.footer-brand{display:flex; flex-direction:column; align-items:flex-start; gap:16px;}
.footer-brand img{height:84px; width:auto;}
.footer-brand span{font-size:15px; color:var(--on-dark-muted);}
.footer-links{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr) minmax(0,1fr); gap:var(--space-xl);}
.footer-col h4{
  font-size:13px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:var(--accent); margin-bottom:16px;
}
.footer-col a,
.footer-col-text{display:block; color:var(--on-dark-muted); font-size:15px; text-decoration:none; padding:6px 0; overflow-wrap:anywhere;}
.footer-col a{transition:color var(--dur) var(--ease);}
.footer-col a:hover{color:#FFFFFF; text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:4px;}
.footer-bottom{
  padding-top:var(--space-lg); border-top:1px solid rgba(255,255,255,.1);
  font-size:14px; color:var(--on-dark-subtle);
}

/* ---------- WhatsApp flutuante (estático — sem pulso) ---------- */
.wa-float{
  position:fixed; bottom:24px; right:24px; z-index:200;
  width:60px; height:60px; border-radius:50%;
  background:var(--whatsapp); display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 28px rgba(15,23,42,.28);
  text-decoration:none;
  transition:box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wa-float:hover{box-shadow:0 14px 34px rgba(15,23,42,.36); transform:translateY(-2px);}
.wa-float svg{width:30px; height:30px; fill:#0B1120;}

/* ---------- Responsivo: cabeçalho ---------- */
@media (max-width: 899px){
  :root{--header-h: 120px;}
  .header-inner{flex-direction:column; align-items:stretch; gap:0; min-height:0;}
  .brand{padding:8px 0 4px;}
  .brand img{height:60px;}
  header nav{
    justify-content:space-between; gap:0;
    margin:0 -24px; padding:0 12px;
    border-top:1px solid var(--border);
    overflow-x:auto; scrollbar-width:none;
  }
  header nav::-webkit-scrollbar{display:none;}
  header nav a{padding:0 10px; font-size:15px; white-space:nowrap;}
  header nav a::after{left:10px; right:10px; bottom:4px;}
  section{padding:var(--space-3xl) 0;}
  .footer-grid{grid-template-columns:1fr;}
}
@media (max-width: 560px){
  .container{padding:0 16px;}
  header nav{margin:0 -16px; padding:0 4px;}
  header nav a{padding:0 8px; font-size:14.5px;}
  .topbar{font-size:13.5px; padding:8px 0;}
  .footer-links{grid-template-columns:1fr;}
  .btn{width:100%;}
  .wa-float{bottom:16px; right:16px; width:56px; height:56px;}
  footer{padding-bottom:96px;}
}
