/**
 * ============================================================
 * DESIGN SYSTEM — Madereira São Luiz
 * Nicho: Construção Civil / Madeireiras
 * Arquivo isolado — altere aqui para mudar toda a identidade visual
 * ============================================================
 */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ── Tokens de Design (CSS Custom Properties) ─────────────── */
:root {
  /* Paleta principal — Âmbar/Madeira + Carvão */
  --color-primary:        #D4820A;   /* âmbar quente  */
  --color-primary-dark:   #B06A05;   /* âmbar escuro  */
  --color-primary-light:  #F5A623;   /* âmbar claro   */
  --color-accent:         #1A1A2E;   /* carvão noite  */
  --color-accent-soft:    #2C2C4A;   /* carvão médio  */

  /* Neutros */
  --color-bg:             #F7F4EF;   /* bege natural  */
  --color-bg-dark:        #111118;   /* escuro fundo  */
  --color-surface:        #FFFFFF;
  --color-surface-dark:   #1E1E30;
  --color-border:         #E2D9CC;

  /* Texto */
  --color-text:           #2D2D2D;
  --color-text-muted:     #6B6B6B;
  --color-text-on-dark:   #F7F4EF;

  /* Estados */
  --color-success:        #22863A;
  --color-danger:         #C0392B;
  --color-warning:        #E67E22;

  /* Tipografia */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  /* Escala tipográfica */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;

  /* Espaçamento */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Bordas */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.18);

  /* Transições */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 72px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Tipografia ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-accent);
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  position: relative;
  margin-bottom: var(--space-2);
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
}

.section-title.centered::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 600px;
}

/* ── Botões ───────────────────────────────────────────────── */
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 14px rgba(212, 130, 10, 0.35);
}

.btn-primary-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 130, 10, 0.45);
  color: #fff;
}

.btn-outline-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-outline-cta:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-msl {
  background: var(--color-accent) !important;
  height: var(--navbar-height);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-msl .navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-primary-light) !important;
  letter-spacing: -0.5px;
}

.navbar-msl .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.85) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar-msl .nav-link:hover,
.navbar-msl .nav-link.active {
  color: var(--color-primary-light) !important;
  background: rgba(212, 130, 10, 0.12);
}

.navbar-toggler {
  border-color: rgba(212, 130, 10, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245, 166, 35, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── Hero / Carousel ──────────────────────────────────────── */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-slide img {
  object-fit: cover;
  width: 100%;
  height: 580px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 24, 0.82) 0%,
    rgba(17, 17, 24, 0.50) 55%,
    rgba(17, 17, 24, 0.10) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
}

.hero-text {
  max-width: 560px;
  animation: heroFadeIn 0.8s ease both;
}

.hero-text .eyebrow {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-3);
}

.hero-text h2 {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero-text p {
  font-size: var(--fs-lg);
  color: rgba(247, 244, 239, 0.80);
  margin-bottom: var(--space-6);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(212, 130, 10, 0.85);
  border-radius: var(--radius-full);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}
.carousel-control-prev { left: 24px; }
.carousel-control-next { right: 24px; }
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: var(--color-primary);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--color-primary-light);
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  opacity: 0.5;
}
.carousel-indicators .active {
  opacity: 1;
  width: 28px;
}

/* ── Seções Gerais ────────────────────────────────────────── */
.section-pad {
  padding: var(--space-24) 0;
}

.section-pad-sm {
  padding: var(--space-12) 0;
}

/* ── Cards de Produto ─────────────────────────────────────── */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 2;
}

.badge-featured {
  background: var(--color-accent);
  color: var(--color-primary-light);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-promo {
  background: var(--color-danger);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-card__body {
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__category {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-card__price {
  display: flex;
  flex-direction: column;
}

.product-card__price .old-price {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card__price .current-price {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-primary-dark);
}

.product-card__price .consult {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text-muted);
  font-style: italic;
}

.product-card__cta {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.product-card__cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Seção de Destaque (fundo escuro) ─────────────────────── */
.section-dark {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-subtitle {
  color: rgba(247, 244, 239, 0.70);
}

/* ── Cards de Depoimento ──────────────────────────────────── */
.testimonial-card {
  background: var(--color-surface-dark);
  border: 1px solid rgba(212, 130, 10, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.testimonial-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  color: var(--color-primary-light);
  font-size: var(--fs-lg);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--fs-base);
  color: rgba(247, 244, 239, 0.80);
  line-height: 1.7;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.testimonial-card__avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
}

.testimonial-card__city {
  font-size: var(--fs-xs);
  color: rgba(247, 244, 239, 0.50);
}

/* ── Seção de Stats / Números ─────────────────────────────── */
.stats-section {
  background: var(--color-primary);
  padding: var(--space-12) 0;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: var(--space-2);
}

/* ── Seção de Categorias ──────────────────────────────────── */
.category-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  text-decoration: none;
  color: var(--color-accent);
  transition: all var(--transition-normal);
  display: block;
}

.category-card:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card i {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  display: block;
  transition: transform var(--transition-normal);
}

.category-card:hover i {
  transform: scale(1.15);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
}

/* ── Seção de Contato / CTA Banner ───────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-soft) 100%);
  border-top: 4px solid var(--color-primary);
  padding: var(--space-16) 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(247, 244, 239, 0.75);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-8);
}

/* ── WhatsApp Float Button ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.60);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.70), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-msl {
  background: var(--color-bg-dark);
  color: rgba(247, 244, 239, 0.65);
  padding: var(--space-16) 0 var(--space-6);
}

.footer-msl .footer-brand {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-primary-light);
  margin-bottom: var(--space-4);
}

.footer-msl h6 {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-msl ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-msl ul li {
  margin-bottom: var(--space-2);
}

.footer-msl ul li a {
  color: rgba(247, 244, 239, 0.65);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-msl ul li a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  margin-top: var(--space-12);
  text-align: center;
  font-size: var(--fs-sm);
}

/* ── Filtro de categorias na página de produtos ───────────── */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.category-filter a {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-filter a:hover,
.category-filter a.active {
  background: var(--color-primary);
  color: #fff;
}

/* ── Utilitários ──────────────────────────────────────────── */
.text-primary-msl { color: var(--color-primary) !important; }
.bg-accent        { background-color: var(--color-accent) !important; }
.divider-amber {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  margin: var(--space-4) 0;
}

/* ── Responsividade ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slide,
  .hero-slide img {
    min-height: 420px;
    height: 420px;
  }

  .hero-content {
    padding: 0 var(--space-4);
  }

  .section-pad {
    padding: var(--space-12) 0;
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .stat-item__number {
    font-size: var(--fs-3xl);
  }
}

@media (max-width: 576px) {
  .hero-slide,
  .hero-slide img {
    min-height: 340px;
    height: 340px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}
