/* ==========================================================================
   Pedreira São Joaquim — V2
   Paleta baseada no LOGO da marca: verde + amarelo + vermelho
   ========================================================================== */

:root {
  /* Cores da marca (extraídas do logo) */
  --verde:       #0E7A38;
  --verde-esc:   #0A5A29;
  --verde-2:     #12924A;
  --amarelo:     #F5C400;
  --amarelo-cl:  #FFD633;
  --vermelho:    #CE1F1F;
  --vermelho-esc:#A81616;

  /* Neutros */
  --dark:        #172018;
  --text:        #1F2A22;
  --text-soft:   #566158;
  --line:        #E3E8E3;
  --bg:          #FFFFFF;
  --bg-alt:      #F3F7F3;
  --wa:          #25D366;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(23, 32, 24, .10);
  --shadow-lg: 0 20px 50px rgba(23, 32, 24, .16);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; border-radius: 50px; cursor: pointer;
  transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-esc); box-shadow: 0 10px 24px rgba(14,122,56,.32); }

.btn-yellow { background: var(--amarelo); color: var(--verde-esc); }
.btn-yellow:hover { background: var(--amarelo-cl); box-shadow: 0 10px 24px rgba(245,196,0,.4); }

.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1eb457; box-shadow: 0 10px 24px rgba(37,211,102,.35); }

.btn-outline { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn-outline:hover { background: var(--verde); color: #fff; }

.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: #fff; color: var(--verde-esc); border-color: #fff; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(23,32,24,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo real (banner amarelo) num container arredondado */
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; border-radius: 6px; }
.logo-fallback { display: flex; flex-direction: column; line-height: 1.05; }
.logo-fallback strong { font-size: 20px; color: var(--verde); font-weight: 900; }
.logo-fallback span { font-size: 12px; color: var(--vermelho); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 15px; position: relative; transition: color .2s; }
.main-nav ul a:hover, .main-nav ul a.active { color: var(--verde); }
.main-nav ul a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--amarelo); border-radius: 2px; }
.nav-cta { padding: 10px 20px; font-size: 15px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--verde); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; color: #fff;
  /* A foto do hero é definida no <style> da página (.hero-photo), sobre este fundo. */
  background: linear-gradient(150deg, rgba(9,70,34,.92) 0%, rgba(14,122,56,.80) 55%, rgba(9,60,30,.88) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 82%); pointer-events: none;
}
.hero-content { position: relative; padding: 92px 22px 104px; max-width: 840px; }
.hero-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 800;
  color: var(--dark); background: var(--amarelo); padding: 6px 14px; border-radius: 50px; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; letter-spacing: -.03em; }
.hero-title em { font-style: normal; color: var(--amarelo); }
.hero-subtitle { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #e6f2ea; margin: 22px 0 34px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { position: relative; background: rgba(0,0,0,.16); border-top: 1px solid rgba(255,255,255,.14); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat-number { display: block; font-size: 2.4rem; font-weight: 900; color: var(--amarelo); letter-spacing: -.02em; }
.stat-number.stat-text { font-size: 1.7rem; color: #fff; }
.stat-label { display: block; font-size: 14px; color: #d5e6db; margin-top: 4px; }

/* ==========================================================================
   Seções
   ========================================================================== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-green { background: var(--verde); color: #fff; }
.section-dark { background: var(--dark); color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 13px; font-weight: 800; color: var(--vermelho); margin-bottom: 12px; }
.section-eyebrow.light { color: var(--amarelo); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--dark); }
.section-title.light { color: #fff; }
.title-accent { color: var(--verde); }
.section-title.light .title-accent { color: var(--amarelo); }
.section-lead { color: var(--text-soft); font-size: 1.12rem; margin-top: 14px; }
.section-lead.light { color: #dff0e6; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.about-badge {
  position: absolute; right: -14px; bottom: -20px; background: var(--amarelo); color: var(--verde-esc);
  border-radius: var(--radius); padding: 16px 22px; text-align: center; box-shadow: var(--shadow);
}
.about-badge span { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.about-badge strong { font-size: 2rem; font-weight: 900; }
.about-text .section-eyebrow, .about-text .section-title { text-align: left; }
.about-text .section-title { margin-bottom: 18px; }
.about-text p { color: var(--text-soft); margin-bottom: 16px; }
.about-text p strong { color: var(--text); }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.mvv-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.mvv-card h3 { font-size: 1.05rem; color: var(--verde); margin-bottom: 8px; padding-left: 14px; position: relative; }
.mvv-card h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--amarelo); border-radius: 2px; }
.mvv-card p { font-size: .92rem; color: var(--text-soft); margin: 0; }

/* ---------- Produtos ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-media { aspect-ratio: 4/3; overflow: hidden; background: var(--verde-esc); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 1.3rem; color: var(--dark); }
.product-apps { font-size: .95rem; color: var(--text-soft); flex: 1; }
.product-apps strong { color: var(--verde); }

/* ---------- Serviços ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, var(--verde), var(--verde-2)); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.service-item h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 8px; }
.service-item p { color: var(--text-soft); font-size: .97rem; }
.service-item em { color: #8a948d; font-style: normal; font-size: .88rem; }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.07); }

/* ---------- Diferenciais ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { display: flex; gap: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 24px; }
.benefit .check { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--amarelo); color: var(--verde-esc); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.benefit h3 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.benefit p { color: #d7ebde; font-size: .95rem; }

/* ---------- Localização ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.location-info .section-eyebrow, .location-info .section-title { text-align: left; }
.location-info .section-title { margin-bottom: 24px; }
.location-list { margin-bottom: 26px; }
.location-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.location-list strong { display: block; color: var(--verde); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.location-list span { color: var(--text-soft); }
.location-map { height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.location-map iframe { width: 100%; height: 100%; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: start; }
.contact-info .section-eyebrow, .contact-info .section-title, .contact-info .section-lead { text-align: left; }
.contact-list { margin-top: 30px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--amarelo); }
.contact-list a { color: #eef7f0; font-size: 1.05rem; font-weight: 600; }
.contact-list a:hover { color: #fff; }

.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: .85rem; font-weight: 700; color: var(--text); }
.form-row input, .form-row select, .form-row textarea {
  font-family: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--verde); background: #fff; }
.form-row textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: .9rem; text-align: center; min-height: 1em; }
.form-note.ok { color: var(--verde); }
.form-note.err { color: var(--vermelho); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--dark); color: #b6c3ba; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 40px; }
.footer-brand img { height: 42px; border-radius: 6px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--amarelo); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom p { font-size: .88rem; color: #8a978e; text-align: center; }
.footer-bottom .cnpj { color: #6e7c73; font-size: .82rem; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 950; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); animation: wa-pulse 2.4s infinite; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .about-badge { right: 16px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 22px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .32s ease; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 15px 4px; font-size: 17px; }
  .main-nav ul a.active::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; padding: 14px; font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(3) { border-left: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero-content { padding: 64px 22px 76px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cards-grid, .services-grid, .benefits-grid, .form-grid { grid-template-columns: 1fr; }
  .about-badge { position: static; display: inline-block; margin-top: 16px; }
  .contact-form-wrap { padding: 22px; }
  .section-head { margin-bottom: 38px; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .logo img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
