/*
Theme Name: Telhas Mafrense 2026
Author: Pulse Propaganda
Description: Site institucional Telhas Mafrense (2026). Para voltar ao site antigo, reative o tema anterior em Aparência > Temas.
Version: 1.0
Text Domain: mafrense-2026
*/
/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600&family=Geologica:wght@400;700;900&display=swap');

/* ============================================================
   TELHAS MAFRENSE — Design System
   Paleta: terracota + argila + branco quente
   Tipografia: Archivo Black (títulos) / Archivo (corpo)
   Padrão: Trust & Authority
   ============================================================ */

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  --color-primary:    #8C3A2B;   /* terracota */
  --color-secondary:  #C9A66B;   /* argila/bege dourado */
  --color-cta:        #f5b61f;   /* vermelho-laranja ativo */
  --color-bg:         #F8F5F0;   /* branco quente */
  --color-bg-alt:     #EDEAE4;   /* fundo alternado de seção */
  --color-text:       #1A1A1A;
  --color-text-light: #5C5147;
  --color-white:      #FFFFFF;
  --color-border:     #DDD5C8;

  --font-title: 'Geologica', sans-serif;
  --font-body:  'Archivo', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  --container: 1200px;
  --gap:       2rem;
}

/* ── Reset + Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  text-transform: uppercase;
}

ul { list-style: none; }

/* ── Container helper ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Títulos de seção ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-text);
  position: relative;
  display: inline-block;
  padding-bottom: .5rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 3rem; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ── Botões ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}


/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 3rem);
  max-width: 1160px;
  background: #ffe500;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .5rem .5rem 1.5rem;
}

/* Botão pill "Fale Conosco" */
.header-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 100px;
  padding: .4rem 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.header-cta:hover { background: #f0f0f0; }

.header-cta span {
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1E0E06;
}
.header-cta strong {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #ec0000;
}

/* Logo */
.header-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Contato */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: .8rem;
  color: #1A1A1A;
  line-height: 1.3;
}
.header-contact a {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #1A1A1A;
}

/* Nav principal */
.header-nav ul {
  display: flex;
  gap: .25rem;
  align-items: center;
}
.header-nav > ul > li {
  position: relative;
}
.header-nav > ul > li > a {
  display: block;
  padding: .5rem .875rem;
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .03em;
  color: #1A1A1A;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.header-nav > ul > li > a:hover,
.header-nav > ul > li > a.nav-active {
  background: #f07d00;
  color: #ffffff;
}

/* Submenu dropdown */
.header-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  flex-direction: column;
  gap: 0;
  text-align: left;
}
/* Último item do menu (Downloads) — dropdown alinha à direita do li para não sair da tela */
.header-nav > ul > li:last-child > ul {
  left: auto;
  right: 0;
}
.header-nav ul ul li {
  text-align: left !important;
}
.header-nav ul ul li a {
  display: block;
  padding: .5rem 1rem;
  font-size: .85rem;
  transition: background .15s;
  white-space: nowrap;
  text-align: left !important;
}
.header-nav ul ul li a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
.header-nav > ul > li:hover > ul {
  display: flex;
}

/* Redes sociais no header */
.header-social {
  display: flex;
  gap: .625rem;
  align-items: center;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1A1A;
  transition: color .15s, transform .15s;
}
.header-social a:hover {
  color: #000000;
  transform: scale(1.15);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  background: url('files/LOU_0209.JPG') center center / cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 100%);
  z-index: 0;
}

/* ── Texto base (compartilhado pelas duas camadas) ── */
.hero-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Camada 1 — preenchimento branco, atrás do robô */
.hero-text--fill {
  color: #FFFFFF;
  z-index: 1;
  will-change: transform;
}

/* Camada 3 — só contorno, na frente do robô */
.hero-text--outline {
  color: transparent;
  -webkit-text-stroke: 2px #FFFFFF;
  z-index: 3;
  will-change: transform;
}

/* ── Robô — camada do meio ── */
.hero-robot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 90%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  pointer-events: none;
}


/* ============================================================
   ACESSO RÁPIDO
   ============================================================ */
.quick-access {
  padding-block: 3.5rem;
  background: var(--color-white);
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.quick-access .card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  position: relative;
}

/* Borda gradiente 1px via pseudo-elemento */
.quick-access .card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(90deg, #ff854e 0%, #ffde8f 50%, #ffd778 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.quick-access .card:hover {
  box-shadow: 0 8px 32px rgba(232,80,10,.15);
  transform: translateY(-4px);
}

/* Topo do card: ícone + seta */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  width: 92px;
  height: 92px;
  background: #ffe500;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon img,
.card-icon svg {
  width: 60px;
  height: 60px;
  color: #f07d00;
  filter: brightness(0) saturate(100%) invert(47%) sepia(97%) saturate(500%) hue-rotate(1deg) brightness(103%) contrast(101%);
}

.card-arrow {
  color: #ffe500;
  display: flex;
  align-items: center;
}
.card-arrow img {
  width: 36px;
  height: 36px;
  filter: brightness(0) saturate(100%) invert(47%) sepia(97%) saturate(500%) hue-rotate(1deg) brightness(103%) contrast(101%);
}

/* Título */
.quick-access .card h2 {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: .9;
  color: #1E0E06;
  text-transform: uppercase;
  margin: 0;
}

/* Pill CTA */
.card-pill {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 100px;
  background: #ffe500;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .06em;
  color: #1E0E06;
  text-transform: uppercase;
  transition: background .15s;
  align-self: flex-start;
}
.card-pill:hover {
  background: #f0d800;
}


/* ============================================================
   MISSÃO, VISÃO E VALORES
   ============================================================ */
.mvv {
  padding-block: 6rem;
  position: relative;
  background-image: url('files/bg-02.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;   /* parallax CSS nativo */
}

/* Overlay escuro sobre a imagem */
.mvv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 8, 2, 0);
  pointer-events: none;
  z-index: 0;
}

.mvv .container {
  position: relative;
  z-index: 1;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.mvv-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: none;
}

.mvv-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.mvv-item h2 {
  font-family: 'Geologica', sans-serif;
  font-size: 1.1rem;
  margin-bottom: .75rem;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mvv-item p {
  font-size: .925rem;
  color: #1A1A1A;
  line-height: 1.7;
}


.mvv-item ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.mvv-item ul li {
  font-size: .85rem;
  font-weight: 500;
  background: rgba(0,0,0,.07);
  color: #1A1A1A;
  padding: .3rem .75rem;
  border-radius: 100px;
  border: 1px solid rgba(245,182,31,.3);
}
.mvv-item--valores .mvv-item ul li,
article.mvv-item--valores ul li {
  background: #f07d00 !important;
  color: #ffffff !important;
  border-color: #f07d00;
}


/* ============================================================
   LINHA DE PRODUTOS
   ============================================================ */
.products {
  padding-block: 4rem;
  background: var(--color-white);
}

.products > .container > h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: .5rem;
}
.products > .container > h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 3rem; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Filtros */
.products-filter {
  display: flex;
  gap: .75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .5rem 1.25rem;
  border: 2px solid #f07d00;
  border-radius: 100px;
  background: transparent;
  color: #f07d00;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.filter-btn:hover {
  background: #f07d00;
  border-color: #f07d00;
  color: #ffffff;
}

.filter-btn.active {
  background: #f07d00;
  border-color: #f07d00;
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.product-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid #e4e4e4;
  padding: 1rem 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transform: translateY(-4px);
}

/* Área da foto — caixa cinza com cantos arredondados */
.product-card-img {
  background: #f9f7fa;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.25rem .875rem;
  min-height: 190px;
  gap: .75rem;
}
.product-card-img img:not(.product-arrow) {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  flex: 1;
}

/* Corpo do card */
.product-card-body {
  padding: 0 .5rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

/* Seta alinhada à esquerda, abaixo da foto */
.product-arrow {
  width: 32px;
  height: 32px;
  transform: rotate(180deg);
  align-self: flex-start;
  margin-top: auto;
  filter: brightness(0) saturate(100%) invert(93%) sepia(4%) saturate(153%) hue-rotate(249deg) brightness(90%);
}

.product-card h3 {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.2;
  color: #1E0E06;
  margin: 0;
}

/* Pill "Veja Mais" */
.product-pill {
  display: block;
  text-align: center;
  padding: .4rem .75rem;
  border-radius: 100px;
  border: none;
  background: #f5b61f;
  color: #1E0E06;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .15s;
  margin-top: auto;
  cursor: pointer;
  pointer-events: none;
}

/* Card inteiro é clicável */
.product-card { cursor: pointer; }
.product-card:hover .product-pill { background: #f5c842; }


/* ============================================================
   CTA GUIA DO FABRICANTE
   ============================================================ */
.cta-footer-wrapper {
  position: relative;
  background-image: url('files/IMG_9288.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.cta-footer-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 229, 0, 0.20);
  z-index: 0;
  pointer-events: none;
}

.cta-footer-wrapper > * {
  position: relative;
  z-index: 1;
}

.cta-fabricante {
  padding-block: 5rem;
  text-align: center;
  background: transparent;
  color: #ffffff;
}

.cta-fabricante p:first-child {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .5rem;
}

.cta-fabricante h2 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-fabricante p:nth-child(3) {
  font-size: 1.05rem;
  opacity: .85;
  margin-bottom: 2rem;
}

.cta-fabricante a {
  display: inline-block;
  padding: .875rem 2.5rem;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}
.cta-fabricante a:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: transparent;
  color: #f07d00;
  padding-block: 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2E2420;
}

footer h3 {
  font-family: var(--font-title);
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #604426;
  margin-bottom: 1.25rem;
}

.footer-about p {
  font-size: .875rem;
  line-height: 1.7;
  color: #604426;
}

.footer-contact address,
.footer-contact p {
  font-size: .875rem;
  font-style: normal;
  color: #604426;
  line-height: 1.7;
  margin-bottom: .35rem;
}
.footer-contact a {
  color: #604426;
  transition: color .15s;
}
.footer-contact a:hover { color: #c45f00; }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-social a {
  font-size: .875rem;
  font-weight: 500;
  color: #604426;
  transition: color .15s;
}
.footer-social a:hover { color: #ffffff; }

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: .8rem;
  color: #ffffff;
}


/* ============================================================
   RESPONSIVO
   ============================================================ */

/* Desktop médio — evita corte do título */
@media (max-width: 1380px) and (min-width: 1025px) {
  .hero-text {
    font-size: clamp(2.5rem, 6.5vw, 7rem);
    white-space: normal;
    width: 90%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero {
    background: url('files/LOU_0209.JPG') center center / cover no-repeat;
  }

  .hero-robot {
    display: none;
  }

  .hero-text {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    text-align: left;
    width: 90%;
    top: auto;
    bottom: 38%;
    transform: translateX(-50%);
    left: 50%;
  }

  .hero-text--outline {
    display: none;
  }
}

/* ============================================================
   MENU MOBILE
   ============================================================ */

/* Botão hamburguer — oculto no desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 200;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1E0E06;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer — painel deslizante */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  pointer-events: none;
}
.mobile-menu.is-open { pointer-events: all; }

/* Overlay escuro */
.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }

/* Painel lateral */
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: #ffffff;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

/* Links do menu mobile */
.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu__nav > ul > li {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu__nav > ul > li > a,
.mobile-menu__nav > ul > li > button.mob-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .9rem 0;
  font-family: 'Geologica', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1E0E06;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.mobile-menu__nav > ul > li > a:hover,
.mobile-menu__nav > ul > li > button.mob-parent:hover { color: #f07d00; }

/* Seta do submenu */
.mob-arrow {
  font-size: .7rem;
  transition: transform .25s;
  flex-shrink: 0;
}
.mob-parent.is-open .mob-arrow { transform: rotate(180deg); }

/* Submenu colapsável */
.mobile-menu__nav ul ul {
  display: none;
  padding-left: 1rem;
  padding-bottom: .5rem;
}
.mobile-menu__nav ul ul.is-open { display: block; }
.mobile-menu__nav ul ul li a {
  display: block;
  padding: .55rem 0;
  font-size: .9rem;
  color: #444;
  text-decoration: none;
}
.mobile-menu__nav ul ul li a:hover { color: #f07d00; }

/* Contato no rodapé do drawer */
.mobile-menu__contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #ffe500;
}
.mobile-menu__contact a {
  display: block;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f07d00;
  text-decoration: none;
  margin-bottom: .5rem;
}
.mobile-menu__contact p {
  font-size: .8rem;
  color: #888;
}

/* O drawer começa escondido */
.mobile-menu { display: none; }

/* Mobile grande */
@media (max-width: 768px) {
  .header-nav, .header-social, .header-cta { display: none; }
  .hamburger { display: flex; }

  .hero {
    background: url('files/LOU_0209.JPG') center center / cover no-repeat;
  }

  .hero-robot {
    display: none;
  }

  .hero-text {
    font-size: clamp(2rem, 10vw, 5rem);
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    text-align: left;
    width: 90%;
    top: auto;
    bottom: 38%;
    transform: translateX(-50%);
    left: 50%;
  }

  .hero-text--outline {
    display: none;
  }

  .quick-access-grid,
  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-content { padding-inline: 1rem; }
}

/* ============================================================
   MODAL DE PRODUTO
   ============================================================ */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 24px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in .25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #1A1A1A;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background .2s;
}
.modal-close:hover { background: #ffe500; }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-img-wrap {
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  background: #F8F5F0;
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  min-height: 280px;
}

.modal-content {
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.4rem;
  color: #1A1A1A;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.modal-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.modal-spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem .9rem;
  background: #F8F5F0;
  border-radius: 10px;
  gap: 1rem;
}

.modal-spec-list li span {
  font-size: .85rem;
  color: #666;
  flex-shrink: 0;
}

.modal-spec-list li strong {
  font-size: .9rem;
  font-weight: 700;
  color: #f07d00;
  text-align: right;
}

.modal-note {
  font-size: .78rem;
  color: #999;
  line-height: 1.5;
  margin-top: .5rem;
}

@media (max-width: 640px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-img-wrap { border-radius: 24px 24px 0 0; }
  .modal-img-wrap img { min-height: 200px; max-height: 220px; }
  .modal-content { padding: 1.5rem 1.25rem; }
  .modal-title { font-size: 1.15rem; }
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}


/* ═══════════════════════════════════════════════════════════
   SUBPAGES — Estilos das páginas internas
   ═══════════════════════════════════════════════════════════ */

/* ── Page Hero (comum a todas as subpáginas) ── */
.page-hero {
  padding-top: 12rem;
  padding-bottom: 12rem;
  background-attachment: fixed;
  background-size: cover;
  background-position: top center;
  text-align: center;
}
.page-hero--bg03 { background-image: url('files/bg-03.jpg'); }
.page-hero--bg04 { background-image: url('files/bg-07.jpg'); }
.page-hero--bg05 { background-image: url('files/bg-05.jpg'); }
.page-hero--bg06 { background-image: url('files/bg-06.jpg'); }
.page-hero--bg07 { background-image: url('files/bg-04.jpg'); }
.page-hero--bg08 { background-image: url('files/bg-08.jpg'); }

.page-hero .breadcrumb {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #f07d00;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Geologica', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
}
.page-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Page Content (base) ── */
.page-content {
  padding-block: 5rem;
  background: #F8F5F0;
}
.page-content .container {
  max-width: 900px;
}
.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1A1A1A;
  margin-bottom: 1.5rem;
}

/* ══ Nossa História ══════════════════════════════════════ */
.timeline {
  margin-top: 3.5rem;
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid #ffe500;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: .4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f07d00;
  border: 3px solid #ffe500;
}
.timeline-year {
  font-family: 'Geologica', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #f07d00;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.timeline-item p {
  margin-bottom: 0;
}
.highlight-box {
  background: #ffe500;
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 3rem;
}
.highlight-box p {
  color: #1A1A1A;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ══ Certificação ════════════════════════════════════════ */
.psq-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e4e4e4;
  padding: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.psq-box h2 {
  font-family: 'Geologica', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #f07d00;
  margin-bottom: 1rem;
}
.psq-box p {
  margin-bottom: 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.benefit-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4e4e4;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.benefit-item::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #f07d00;
  margin-top: .35rem;
}
.benefit-item p {
  font-size: .9rem;
  line-height: 1.5;
  color: #1A1A1A;
  margin-bottom: 0;
}
.cert-seal {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #ffe500;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-top: 3rem;
}
.cert-seal img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}
.cert-seal p {
  font-weight: 600;
  font-size: 1rem;
  color: #1A1A1A;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ══ Premiações ══════════════════════════════════════════ */
.page-content > .container > p.intro {
  margin-bottom: 2.5rem;
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.award-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e4e4e4;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: box-shadow .2s, transform .2s;
}
.award-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.award-year {
  font-family: 'Geologica', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #ffe500;
  line-height: 1;
}
.award-title {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  color: #f07d00;
  letter-spacing: .04em;
  line-height: 1.3;
}
.award-desc {
  font-size: .9rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
.intl-highlight {
  background: #f07d00;
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 3rem;
  color: #ffffff;
}
.intl-highlight h2 {
  font-family: 'Geologica', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffe500;
  margin-bottom: 1rem;
}
.intl-highlight p {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: .75rem;
}
.intl-highlight p:last-child { margin-bottom: 0; }

/* ══ Guia do Fabricante ══════════════════════════════════ */
.guide-intro {
  background: #f07d00;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
}
.guide-intro p {
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.guide-step {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e4e4e4;
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.guide-step:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.guide-step-num {
  font-family: 'Geologica', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: #ffe500;
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
}
.guide-step-body {
  flex: 1;
}
.guide-step-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #1A1A1A;
  margin: 0;
}
.guide-step-body ul {
  margin: .75rem 0 0 1.1rem;
  padding: 0;
}
.guide-step-body ul li {
  font-size: .95rem;
  line-height: 1.7;
  color: #1A1A1A;
  margin-bottom: .25rem;
}
.guide-step-body ul li strong {
  color: #f07d00;
}
.guide-ref {
  margin-top: 3rem;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e4e4e4;
  padding: 2rem;
  text-align: center;
}
.guide-ref h2 {
  font-family: 'Geologica', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #f07d00;
  margin-bottom: 1.5rem;
}
.guide-ref img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ══ Sustentabilidade ════════════════════════════════════ */
.sustent-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1A1A1A;
  margin-bottom: 3rem;
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.pilar-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e4e4e4;
  padding: 2rem 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.pilar-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transform: translateY(-3px);
}
.pilar-icon {
  font-size: 2rem;
  color: #f07d00;
  margin-bottom: .85rem;
  line-height: 1;
}
.pilar-title {
  font-family: 'Geologica', sans-serif;
  font-weight: 900;
  font-size: .95rem;
  text-transform: uppercase;
  color: #f07d00;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}
.pilar-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}
.sustent-highlight {
  background: #f07d00;
  border-radius: 20px;
  padding: 2.5rem 3rem;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.highlight-stat {
  text-align: center;
  min-width: 120px;
}
.highlight-stat strong {
  display: block;
  font-family: 'Geologica', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #ffe500;
  line-height: 1;
}
.highlight-stat span {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.8);
}
.highlight-divider {
  width: 2px;
  height: 80px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.highlight-text {
  flex: 1;
}
.highlight-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: #ffffff;
  margin: 0;
}
.compromisso-box {
  background: #ffe500;
  border-radius: 20px;
  padding: 2.5rem;
}
.compromisso-box h2 {
  font-family: 'Geologica', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 1rem;
}
.compromisso-box p {
  font-size: 1rem;
  line-height: 1.8;
  color: #1A1A1A;
  margin: 0;
}
@media (max-width: 640px) {
  .sustent-highlight {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .highlight-divider { width: 80px; height: 2px; }
}

/* ── Page Hero mobile: imagem de fundo mais visível ── */
@media (max-width: 768px) {
  .page-hero {
    background-attachment: scroll;   /* "fixed" faz o celular ampliar demais a imagem */
    background-position: center center;
    padding-top: 10rem;              /* espaço para o menu flutuante */
    padding-bottom: 4rem;
  }
  /* Ponto focal de cada foto */
  /* Premiações: a foto tem uma faixa lisa embaixo — amplia um pouco para escondê-la */
  .page-hero--bg07 {
    background-size: auto 120%;
    background-position: center top;
    background-repeat: no-repeat;
  }
  .page-hero--bg04 { background-position: center bottom; }   /* certificação (telhas) */
  /* Nossa história: a telha fica no topo da foto, então a imagem começa abaixo do menu */
  .page-hero--bg03 {
    background-color: #a47901;
    background-size: auto calc(100% - 80px);
    background-position: center bottom;
    background-repeat: no-repeat;
  }
}
