/* ==========================================================
   Hidraumix Concreto — Design System
   Cores: amarelo (#FFC629) + grafite (#1F2937) + branco
   ========================================================== */

:root {
  --color-yellow:        #FFC629;
  --color-yellow-dark:   #E2A800;
  --color-graphite:      #1F2937;
  --color-graphite-700:  #374151;
  --color-graphite-500:  #6B7280;
  --color-bg:            #FFFFFF;
  --color-bg-soft:       #F7F7F5;
  --color-bg-dark:       #111827;
  --color-text:          #1F2937;
  --color-text-muted:    #4B5563;
  --color-border:        #E5E7EB;
  --color-success:       #16A34A;
  --color-danger:        #DC2626;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.05);
  --shadow-md: 0 6px 16px rgba(17,24,39,.08), 0 2px 4px rgba(17,24,39,.04);
  --shadow-lg: 0 20px 40px rgba(17,24,39,.12);

  --container:      1180px;
  --container-wide: 1320px;

  --font-sans:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(.22,.61,.36,1);
}

/* Reset light */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-graphite); color: #fff;
  padding: 12px 16px; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--wide { max-width: var(--container-wide); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--color-graphite);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); text-transform: none; letter-spacing: 0; }
h4 { font-size: 1.05rem; letter-spacing: .04em; }
p  { color: var(--color-text-muted); }
.lead { font-size: 1.125rem; color: var(--color-text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-graphite);
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px;
  background: var(--color-yellow);
  border-radius: 3px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-weight: 700; font-family: var(--font-sans);
  padding: 14px 24px; border-radius: 999px;
  transition: transform .2s var(--ease-out), background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--color-yellow); color: var(--color-graphite); }
.btn--primary:hover { background: var(--color-yellow-dark); }
.btn--dark { background: var(--color-graphite); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--color-graphite); border-color: var(--color-graphite); }
.btn--ghost:hover { background: var(--color-graphite); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: #fff; color: var(--color-graphite); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ==========================================================
   Site header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .2s, background .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 20px;
  max-width: var(--container-wide); margin: 0 auto;
}
.brand img { height: 48px; width: auto; }

.primary-nav ul {
  display: flex; align-items: center; gap: 6px;
}
.primary-nav a {
  display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  color: var(--color-graphite-700);
  transition: color .2s, background .2s;
}
.primary-nav a:hover { color: var(--color-graphite); background: var(--color-bg-soft); }
.primary-nav a.is-active { color: var(--color-graphite); }
.primary-nav a.is-active:not(.btn)::after {
  content: ""; display: block;
  width: 16px; height: 3px; background: var(--color-yellow);
  border-radius: 3px; margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-bg-soft);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--color-graphite); border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 64px 0 0;
    background: #fff;
    padding: 24px;
    transform: translateY(-110%);
    transition: transform .35s var(--ease-out);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav a {
    font-size: 1.05rem; padding: 14px 18px;
    border-bottom: 1px solid var(--color-border); border-radius: 0;
  }
  .primary-nav a.btn { margin-top: 16px; border-radius: 999px; justify-content: center; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.92) 0%, rgba(31,41,55,.75) 60%, rgba(31,41,55,.35) 100%),
    url('../img/fotos/betoneira-lateral.jpeg') center/cover no-repeat;
  min-height: clamp(520px, 80vh, 760px);
  display: flex; align-items: center;
  padding: 80px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 90% 10%, rgba(255,198,41,.18), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(255,198,41,.10), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 28px;
  max-width: 760px;
}
.hero h1 { color: #fff; }
.hero h1 .accent {
  color: var(--color-yellow);
  display: inline-block;
}
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; }
.hero .eyebrow { color: var(--color-yellow); }
.hero .eyebrow::before { background: var(--color-yellow); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
  max-width: 720px;
}
.hero__features li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: #fff; font-size: .95rem;
}
.hero__features svg { color: var(--color-yellow); flex-shrink: 0; }

/* ==========================================================
   Section base
   ========================================================== */
.section { padding: 96px 0; }
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.75); }
.section--dark .eyebrow { color: var(--color-yellow); }

.section__head {
  display: grid; gap: 14px;
  max-width: 720px;
  margin-bottom: 56px;
}
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ==========================================================
   Highlights (under hero)
   ========================================================== */
.highlights {
  background: var(--color-yellow);
  color: var(--color-graphite);
  padding: 28px 0;
}
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.highlight {
  display: flex; align-items: center; gap: 14px;
  font-weight: 700;
}
.highlight__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--color-graphite); color: var(--color-yellow);
  border-radius: 12px;
}
.highlight strong { font-size: 1.5rem; line-height: 1; display: block; font-family: var(--font-display); }
.highlight span { font-size: .9rem; font-weight: 500; color: var(--color-graphite-700); }
@media (max-width: 900px) { .highlights__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .highlights__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   About
   ========================================================== */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }

.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(17,24,39,.35));
}
.about__badge {
  position: absolute; left: -16px; bottom: 28px;
  background: var(--color-yellow);
  padding: 18px 22px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  z-index: 2;
}
.about__badge strong {
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: var(--color-graphite);
}
.about__badge span { font-weight: 600; color: var(--color-graphite-700); font-size: .9rem; }

.about__body { display: grid; gap: 20px; }
.about__list { display: grid; gap: 14px; margin-top: 8px; }
.about__list li {
  display: flex; gap: 14px;
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.about__list svg { color: var(--color-yellow-dark); flex-shrink: 0; }
.about__list strong { display: block; color: var(--color-graphite); margin-bottom: 2px; }
.about__list small { color: var(--color-text-muted); }

/* ==========================================================
   Services
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
  display: grid; gap: 14px;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: var(--color-yellow);
  transition: width .35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--color-yellow); color: var(--color-graphite);
  border-radius: 14px;
}
.service-card h3 { font-family: var(--font-sans); font-size: 1.2rem; }
.service-card ul { display: grid; gap: 6px; }
.service-card ul li {
  font-size: .92rem; color: var(--color-text-muted);
  padding-left: 20px; position: relative;
}
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--color-yellow);
}

/* ==========================================================
   Process (numbered steps)
   ========================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process__item {
  position: relative;
  padding: 32px 24px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}
.process__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -22px; left: 24px;
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: var(--color-yellow); line-height: 1;
}
.process__item h3 { color: #fff; margin-top: 8px; font-family: var(--font-sans); font-size: 1.15rem; }
.process__item p { color: rgba(255,255,255,.7); font-size: .95rem; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

/* ==========================================================
   Gallery
   ========================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.gallery a {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.gallery a:hover img { transform: scale(1.05); opacity: .9; }
.gallery .span-2 { grid-column: span 2; }
.gallery .span-row-2 { grid-row: span 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2 { grid-column: span 2; }
  .gallery .span-row-2 { grid-row: auto; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery .span-2 { grid-column: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 8px; }
.lightbox button {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #000; font-size: 1.4rem;
}

/* ==========================================================
   CTA strip
   ========================================================== */
.cta-strip {
  background: var(--color-yellow);
  padding: 64px 0;
}
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-strip h2 { color: var(--color-graphite); margin-bottom: 4px; }
.cta-strip p { color: var(--color-graphite-700); font-weight: 500; }
.cta-strip__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cta-strip__inner { grid-template-columns: 1fr; text-align: center; }
  .cta-strip__actions { justify-content: center; }
}

/* ==========================================================
   Contact / forms
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; gap: 20px;
}
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--color-yellow); color: var(--color-graphite);
  border-radius: 12px;
}
.info-item h4 { margin-bottom: 2px; font-size: .9rem; color: var(--color-graphite); }
.info-item p, .info-item a { font-size: 1rem; color: var(--color-graphite-700); display: block; }
.info-item a:hover { color: var(--color-yellow-dark); }

.form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; gap: 16px;
}
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label {
  font-weight: 600; font-size: .9rem; color: var(--color-graphite);
}
.field input, .field select, .field textarea {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--color-graphite);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(255,198,41,.25);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.field__hint { font-size: .8rem; color: var(--color-text-muted); }

.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-weight: 500;
  display: flex; gap: 12px; align-items: flex-start;
}
.alert--success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert--error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.78);
  padding-top: 64px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { background: #fff; padding: 12px 16px; border-radius: 12px; }
.site-footer__brand p { color: rgba(255,255,255,.65); margin-top: 16px; max-width: 380px; }
.site-footer h4 {
  color: #fff; margin-bottom: 16px;
  font-family: var(--font-sans); font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-links li { color: rgba(255,255,255,.7); transition: color .2s; }
.footer-links a:hover { color: var(--color-yellow); }
.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.site-footer__bar-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(255,255,255,.55); font-size: .85rem;
}

/* ==========================================================
   WhatsApp floating button
   ========================================================== */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(37,211,102,.35), 0 4px 10px rgba(0,0,0,.15);
  z-index: 80;
  transition: transform .2s var(--ease-out);
  animation: wpp-pulse 2.4s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); }
@keyframes wpp-pulse {
  0%,100% { box-shadow: 0 10px 25px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,.4); }
  50%     { box-shadow: 0 10px 25px rgba(37,211,102,.35), 0 0 0 14px rgba(37,211,102,0); }
}

/* ==========================================================
   Page header (interior pages)
   ========================================================== */
.page-header {
  background:
    linear-gradient(135deg, rgba(17,24,39,.94), rgba(31,41,55,.7)),
    url('../img/fotos/frota-completa.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 96px 0 80px;
}
.page-header h1 { color: #fff; max-width: 720px; }
.page-header p { color: rgba(255,255,255,.8); max-width: 640px; margin-top: 12px; }
.page-header .eyebrow { color: var(--color-yellow); }
.page-header .eyebrow::before { background: var(--color-yellow); }
.page-header__breadcrumb {
  display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.page-header__breadcrumb a:hover { color: var(--color-yellow); }

/* ==========================================================
   Reveal on scroll
   ========================================================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   Utilities
   ========================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
