/* =====================================================================
   AZ Recyclage — Peinture réfléchissante thermique toiture
   Design inspiré d'une structure corporate moderne — accent VERT.
   ===================================================================== */

/* ----------------------------- TOKENS ------------------------------- */
:root {
  --navy: #0F172A;          /* titres, footer, surfaces sombres */
  --green: #16A34A;         /* accent principal (CTA, liens, icônes) */
  --green-dark: #15803D;    /* hover / texte d'accent sur clair */
  --green-light: #22C55E;   /* dégradés / hover sombre */
  --green-soft: #ECFDF5;    /* fonds doux, sections alternées */
  --green-tint: #DCFCE7;    /* fonds d'icônes */
  --green-ring: rgba(22, 163, 74, 0.30);

  --ink: #1E293B;           /* corps de texte */
  --muted: #475569;         /* texte secondaire (~7:1) */
  --line: #E2E8F0;          /* bordures */
  --bg-soft: #F8FAFC;       /* fond clair */
  --white: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);

  --container: 1180px;
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Lexend', var(--font);

  --t-fast: 0.18s ease;
  --t: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- RESET -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 840px; }

/* placeholder visuel quand une image n'existe pas encore */
.img-missing {
  min-height: 240px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 55%, var(--green-dark) 100%);
  position: relative;
}
.img-missing::after {
  content: "Image à ajouter";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.5px;
}

/* ----------------------------- ICÔNES SVG --------------------------- */
.ico { width: 24px; height: 24px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; }

/* ------------------- ACCESSIBILITÉ : focus clavier ------------------ */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.nav-toggle:focus-visible, .faq-q:focus-visible, .dropdown-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ----------------------------- BUTTONS ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 8px 20px var(--green-ring); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--green-soft); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

/* ----------------------------- HEADER ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 130%);
  color: var(--white); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { color: var(--navy); font-size: 1.08rem; }
.logo-text small { color: var(--muted); font-size: 0.72rem; }
.logo-light .logo-text strong { color: var(--white); }
.logo-light .logo-text small { color: rgba(255,255,255,0.7); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a, .dropdown-toggle {
  font-family: inherit; font-weight: 500; color: var(--ink); font-size: 0.97rem;
  padding: 9px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-list a:hover, .dropdown-toggle:hover { background: var(--green-soft); color: var(--green-dark); }
.dropdown-toggle .chevron { transition: transform var(--t-fast); }
.has-dropdown.open .dropdown-toggle .chevron,
.dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.dropdown-menu a:hover { background: var(--green-soft); color: var(--green-dark); }

.btn-header { margin-left: 12px; padding: 12px 22px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--t-fast); }
.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 (centré) ------------------------ */
.hero {
  position: relative; text-align: center;
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(34,197,94,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
  padding: 76px 0 56px;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-subtitle { font-size: 1.25rem; font-weight: 600; color: var(--green-dark); margin-bottom: 14px; }
.hero-text { font-size: 1.08rem; color: var(--muted); max-width: 46em; margin: 0 auto 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 30px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 22px 28px; justify-content: center; }
.trust-row li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.trust-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-sm); color: var(--green);
}

.hero-banner { max-width: 880px; margin: 44px auto 0; }
.hero-img {
  width: 100%; height: auto; display: block;       /* image entière, sans recadrage */
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}

/* ----------------------------- SECTIONS ----------------------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--green-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.rounded-img { width: 100%; height: 100%; min-height: 320px; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.mini-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.mini-card h3 { font-size: 1rem; margin: 10px 0 6px; }
.mini-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.mini-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-tint); color: var(--green-dark);
}
.mini-ico .ico { width: 26px; height: 26px; }

/* ----------------------------- COMPTEURS ---------------------------- */
.counters {
  background: var(--green-soft);
  border-top: 1px solid var(--green-tint); border-bottom: 1px solid var(--green-tint);
  padding: 52px 0;
}
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.counter { text-align: center; padding: 8px; }
.counter-num {
  display: block; font-family: var(--font-head); font-weight: 800; line-height: 1.1;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--green-dark);
}
.counter-label { color: var(--muted); font-size: 0.95rem; }
.counters-note { text-align: center; margin: 26px 0 0; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ----------------------------- CARDS GRID --------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-grid.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.card-ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px;
  border-radius: 14px; color: var(--green-dark);
  background: linear-gradient(135deg, var(--green-soft), var(--green-tint));
}
.card-ico .ico { width: 28px; height: 28px; }
.card-link {
  margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-dark); font-weight: 600; font-size: 0.95rem;
}
.card-link .ico { transition: transform var(--t-fast); }
.card:hover .card-link .ico, .card-link:hover .ico { transform: translateX(4px); }

/* ----------------------------- ESTIMATION --------------------------- */
.estimate-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.check-list { margin: 18px 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}
.note { font-size: 0.9rem; color: var(--muted); font-style: italic; }

.estimate-form {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.97rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: var(--white);
  box-shadow: 0 0 0 3px var(--green-ring);
}
.field .invalid { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,0.12); }
.form-feedback { margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-feedback.ok { color: var(--green-dark); }
.form-feedback.error { color: #c0392b; }

/* ----------------------------- STEPS -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow-sm); position: relative; border-top: 4px solid var(--green);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light)); color: #fff;
  font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* -------------------- CALLOUT AMIANTE (capsulage) ------------------- */
.amiante-callout {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 28px; padding: 28px;
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--green); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.amiante-ico {
  flex-shrink: 0; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--green-tint); color: var(--green-dark);
}
.amiante-ico .ico { width: 28px; height: 28px; }
.amiante-body h3 { margin-bottom: 10px; }
.amiante-body p { color: var(--muted); margin: 0 0 10px; }
.amiante-precision { font-size: 0.92rem; }
.amiante-warning {
  font-size: 0.9rem; color: var(--ink);
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--radius-sm);
  padding: 12px 14px; margin-top: 4px !important;
}

/* ----------------------------- BADGES (eco) ------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--green); color: var(--green-dark);
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
}
.badge .ico { color: var(--green); }

/* ----------------------------- TESTIMONIALS ------------------------- */
.testimonial .quote { font-size: 1rem; color: var(--ink); font-style: italic; margin-bottom: 18px; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-dark); font-weight: 800; font-size: 0.95rem;
}
.t-author span { display: flex; flex-direction: column; line-height: 1.25; }
.t-author small { color: var(--muted); font-size: 0.82rem; }

/* ----------------------------- TEAM --------------------------------- */
.team-card { text-align: center; }
.team-img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; }
.team-card p { font-size: 0.92rem; }

/* ----------------------------- PRICING ------------------------------ */
.price-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform var(--t), box-shadow var(--t);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 0.74rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; letter-spacing: 0.5px;
}
.price-card p { color: var(--muted); font-size: 0.94rem; }
.price-tag { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 8px 0 16px; }
.center-note { text-align: center; margin-top: 30px; font-weight: 600; color: var(--navy); }

/* --------------------- RÉALISATIONS (grille de cartes) -------------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--t); }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-info { padding: 18px 20px; }
.project-info h3 { font-size: 1.05rem; margin-bottom: 10px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.project-meta li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.project-meta .ico { color: var(--green); }

/* --------------------- COUVERTURE GÉOGRAPHIQUE --------------------- */
.geo-block { max-width: 840px; margin: 0 auto; text-align: center; }
.dept-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.dept-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 0.9rem; color: var(--ink);
}
.dept-chips .ico { color: var(--green); }

/* ----------------------------- FAQ ---------------------------------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow var(--t), border-color var(--t);
}
.faq-item.open { border-color: var(--green); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; color: var(--navy);
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--green-dark); }
.faq-chevron { color: var(--green); transition: transform var(--t); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq-a p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ----------------------------- CTA FINAL ---------------------------- */
.cta-final {
  background: linear-gradient(120deg, var(--navy) 0%, var(--green-dark) 70%, var(--green) 130%);
  color: var(--white); padding: 64px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-final h2 { color: var(--white); margin-bottom: 8px; }
.cta-final p { color: rgba(255,255,255,0.9); margin: 0; max-width: 38em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------------------- FOOTER ------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.82); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr 1fr; gap: 32px; }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.7); margin-top: 14px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col li, .footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--green-light); }
.footer-contact li { display: flex; align-items: center; gap: 9px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact .ico { color: var(--green-light); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin: 0; }

/* ----------------------------- BACK TO TOP -------------------------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); }

/* ----------------------------- REVEAL (scroll) ---------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================ RESPONSIVE ============================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .estimate-grid { grid-template-columns: 1fr; }
  .two-col .reveal:first-child:has(img) { order: -1; }
  .mini-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--white);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform var(--t);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 0; align-items: stretch; padding: 12px 24px 24px; }
  .nav-list > li { width: 100%; }
  .nav-list a, .dropdown-toggle {
    width: 100%; padding: 14px 8px; border-bottom: 1px solid var(--line);
    border-radius: 0; justify-content: space-between;
  }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0;
  }
  .dropdown-menu a { border-bottom: 0; padding: 11px 8px; }
  .btn-header { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 40px; }
  .cards-grid, .cards-grid.cards-3, .steps, .mini-cards,
  .project-grid, .counters-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .amiante-callout { flex-direction: column; gap: 16px; padding: 22px; }
}

/* ---------------------- prefers-reduced-motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .price-card:hover, .project-card:hover { transform: none; }
  .project-card:hover .project-thumb img { transform: none; }
  .faq-a { transition: none; }
}
