/* =============================================================================
   Casa Le Materiais Para Construção Ltda — estilos globais (LGPD / Google Ads)
   ============================================================================= */

:root {
  --color-bg: #f6f4f1;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-primary: #c45c26;
  --color-primary-hover: #a34d20;
  --color-secondary: #2d4a3e;
  --color-border: #e2ddd6;
  --color-banner-bg: #1e1e1e;
  --color-banner-text: #f5f5f5;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --max-width: 920px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

body.cookie-banner-open {
  padding-bottom: 220px;
}

@media (min-width: 640px) {
  body.cookie-banner-open {
    padding-bottom: 180px;
  }
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ----- Layout ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-secondary);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-primary);
}

.site-logo__legal {
  display: block;
  font-size: clamp(0.68rem, 2.4vw, 0.98rem);
  line-height: 1.25;
  max-width: min(100%, 22rem);
}

@media (min-width: 960px) {
  .site-logo__legal {
    font-size: 1rem;
    max-width: 26rem;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Espaço extra no rodapé para o botão flutuante do WhatsApp não cobrir o último conteúdo */
  padding: 2rem 1.25rem 5.5rem;
}

.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1a3028 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
}

.hero p {
  margin: 0;
  opacity: 0.92;
  max-width: 36rem;
}

.hero-brand {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-brand__name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 3.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.28;
}

.hero-brand__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  opacity: 0.96;
}

.hero-brand__facts li {
  margin: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.hero-brand__facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  opacity: 0.85;
}

.hero-sales {
  margin: 0 0 1rem !important;
  font-weight: 600;
  font-size: clamp(0.98rem, 2.5vw, 1.08rem);
  max-width: 42rem !important;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-trust {
  margin: 0 0 1.25rem !important;
  font-size: 0.98rem;
  line-height: 1.45;
  opacity: 0.96;
  border-left: 3px solid var(--color-primary);
  padding: 0.35rem 0 0.35rem 0.9rem;
  max-width: 40rem !important;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0 8px 8px 0;
}

.hero h1.hero-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  line-height: 1.25;
}

.hero .hero-sub {
  margin: 0;
  opacity: 0.9;
  max-width: 38rem;
  font-size: 0.98rem;
}

.btn--whatsapp {
  background: #25d366;
  color: #fff !important;
}

.btn--whatsapp:hover {
  background: #1da851;
  color: #fff !important;
}

.btn--outline-light {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.store-showcase {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.store-showcase img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.store-showcase figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  line-height: 1.45;
}

.photo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.photo-grid .store-showcase {
  margin-bottom: 0;
}

.store-showcase--compact img {
  max-height: 260px;
}

/* ----- WhatsApp flutuante (apoio; conteúdo institucional continua no site) ----- */
.wa-float {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: calc(100vw - 1.5rem);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wa-float:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.wa-float__icon {
  flex-shrink: 0;
  display: flex;
  line-height: 0;
}

.wa-float__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 380px) {
  .wa-float__label {
    max-width: 9.5rem;
  }
}

/* Sobe o botão quando o banner de cookies está visível (z-index do banner: 1000) */
body.cookie-banner-open .wa-float {
  bottom: 12.5rem;
}

@media (min-width: 520px) {
  body.cookie-banner-open .wa-float {
    bottom: 9.5rem;
  }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--color-secondary);
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.meta-list li:last-child {
  border-bottom: none;
}

.meta-list strong {
  color: var(--color-text-muted);
  font-weight: 600;
  min-width: 8rem;
}

/* ----- Formulário ----- */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn--secondary:hover {
  background: #1f342c;
  color: #fff;
}

/* ----- Políticas (prose) ----- */
.prose h1 {
  font-size: 1.75rem;
  color: var(--color-secondary);
  margin-top: 0;
}

.prose h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .prose table {
    display: table;
  }
}

.prose th,
.prose td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #ede9e3;
  font-weight: 600;
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-secondary);
  color: #e8ebe9;
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__cols {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 560px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ----- Cookie banner (LGPD + peso visual igual nos botões) ----- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--color-banner-bg);
  color: var(--color-banner-text);
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-banner__links {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cookie-banner__links a {
  color: #9fd4ff;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .cookie-banner__actions {
    flex-direction: row;
  }
}

/* Mesmo peso visual: mesma flex, padding e tipografia */
.cookie-banner__btn {
  flex: 1 1 0;
  min-height: 48px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.cookie-banner__btn:active {
  transform: scale(0.99);
}

.cookie-banner__btn--accept {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.cookie-banner__btn--accept:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.cookie-banner__btn--reject {
  background: #3a3a3a;
  color: #fff;
  border-color: #5a5a5a;
}

.cookie-banner__btn--reject:hover {
  background: #4a4a4a;
  border-color: #6a6a6a;
}

/* ----- Utilidades ----- */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell main {
  flex: 1;
}
