/* =============================================
   LOCA CONSTRUTOR — Design System v3.0
   Mobile-First | Shared Across All Pages
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  background-color: #F3EBE9;
  color: #3E2319;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Design Tokens --- */
:root {
  --brand: #BC6C52;
  --brand-dark: #9B5540;
  --brand-light: #D4917D;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --whatsapp-hover: #1ebe5d;
  --bg-light: #F3EBE9;
  --bg-white: #ffffff;
  --text-dark: #3E2319;
  --text-white: #ffffff;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.2);
  --font-display: 'Roboto Slab', serif;
  --transition: 0.2s ease;
}

/* --- Typography (Fluid) --- */
.font-display { font-family: var(--font-display); }
h1, h2, h3 { font-family: var(--font-display); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ==========================
   HEADER (shared)
   ========================== */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}
.header-logo {
  height: 3rem;
}
.back-link {
  font-size: 0.875rem;
  color: var(--brand);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.back-link:hover {
  text-decoration: underline;
  background: rgba(188,108,82,0.08);
}

/* ==========================
   HERO (index) — Mobile-first
   ========================== */
.hero {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 1.5rem 0 2rem;
  text-align: center;
}
.hero-logo {
  width: 6rem;
  margin: 0 auto;
}
.hero-brand {
  font-size: clamp(1.1rem, 4vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-top: 0.5rem;
}
.hero-title {
  font-size: clamp(1rem, 3.5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
  line-height: 1.2;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle {
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
  align-items: center;
}
.hero-phone {
  font-size: 0.8rem;
  margin-top: 1.25rem;
}
.hero-phone strong {
  letter-spacing: 0.05em;
}

/* --- Hero WhatsApp CTA (principal) --- */
.hero-whatsapp-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-whatsapp-label {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 500;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--whatsapp);
  color: var(--text-white);
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.3rem);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  min-height: 56px;
  width: 100%;
  max-width: 24rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp:active {
  transform: translateY(0) scale(0.98);
}
.btn-whatsapp svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.hero-secondary-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  align-items: center;
}
.hero-secondary-links a {
  font-size: 0.8rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.hero-secondary-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
.hero-secondary-links svg {
  width: 16px;
  height: 16px;
}

/* ==========================
   BUTTONS
   ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
  width: 100%;
  max-width: 18rem;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn:active {
  transform: translateY(0);
}
.btn-outline {
  background: var(--bg-white);
  color: var(--brand);
}
.btn-primary {
  background: var(--brand);
  color: var(--text-white);
}
.btn-primary:hover {
  background: var(--brand-dark);
}
.btn-whatsapp-sm {
  background: var(--whatsapp);
  color: var(--text-white);
  gap: 0.6rem;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp-sm:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp-sm svg {
  width: 24px;
  height: 24px;
}

/* ==========================
   CATEGORIES MENU (index)
   ========================== */
.section-categorias {
  background: var(--bg-light);
  padding: 0 0 2rem;
}
.section-title {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.category-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  flex-shrink: 0;
}
.category-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.category-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
.category-card p {
  font-size: 0.7rem;
  color: var(--brand);
  opacity: 0.8;
  margin-top: -0.25rem;
}

/* ==========================
   PRODUCT SCROLLER (index)
   ========================== */
.section-equipamentos {
  background: var(--brand);
  color: var(--text-white);
  padding: 2rem 0;
}
.scroller-container {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
  mask: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
}
.scroller {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}
.scroller.animate {
  animation: scroll 20s linear infinite;
}
.scroller-container:hover .scroller.animate {
  animation-play-state: paused;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.product-card {
  min-width: 8rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
  background: var(--bg-white);
  padding: 0.625rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.product-card img {
  width: 100%;
  height: 5rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 0.375rem;
}
.product-card h3 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand);
}
.section-cta-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

/* ==========================
   ABOUT (index)
   ========================== */
.section-about {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 2rem 0;
  text-align: center;
}
.about-text {
  max-width: 48rem;
  margin: 0 auto;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* ==========================
   FOOTER (shared)
   ========================== */
.site-footer {
  background: var(--brand);
  color: var(--text-white);
  padding: 2rem 0;
  text-align: center;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-info {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.footer-phone {
  margin-top: 0.25rem;
  font-weight: 700;
}
.footer-copy {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}
.footer-version {
  font-size: 0.55rem;
  opacity: 0.4;
  margin-top: 0.25rem;
  letter-spacing: 0.08em;
}

/* ==========================
   PRODUCT PAGE
   ========================== */
.product-hero {
  padding: 1.5rem 0;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.product-img-box {
  background: var(--bg-white);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.product-img-box img {
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.product-title {
  font-size: clamp(1.25rem, 4.5vw, 2.5rem);
  font-weight: 900;
  color: var(--brand);
  line-height: 1.15;
}
.product-desc {
  margin-top: 0.5rem;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
}
.product-details {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.feature-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.5;
}
.feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  margin-top: 0.15rem;
  color: var(--brand);
  flex-shrink: 0;
}
.product-cta {
  margin-top: 1.5rem;
}
.product-cta .btn {
  font-size: 1rem;
  padding: 1rem 2rem;
  max-width: 100%;
}

/* ==========================
   CATEGORY PAGE
   ========================== */
.section-category-hero {
  background: var(--brand);
  color: var(--text-white);
  padding: 2rem 0;
  text-align: center;
}
.category-hero-title {
  font-size: clamp(1.25rem, 4vw, 2.25rem);
  font-weight: 900;
}
.category-hero-subtitle {
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin-top: 0.5rem;
  opacity: 0.9;
}
.section-category-products {
  background: var(--bg-light);
  padding: 2rem 0;
}
.category-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.category-product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.category-product-card img {
  width: 100%;
  height: 8rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.category-product-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.category-product-card p {
  font-size: 0.75rem;
  color: var(--text-dark);
  opacity: 0.7;
  line-height: 1.4;
}
.category-cta {
  text-align: center;
  margin-top: 2rem;
}
.coming-soon-badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--text-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ==========================
   RESPONSIVE — Tablet (480px+)
   ========================== */
@media (min-width: 480px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero { padding: 2.5rem 0; }
  .hero-logo { width: 9rem; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .btn { width: auto; }
  .category-grid { gap: 1rem; }
  .category-card { padding: 1.25rem 1rem; }
  .category-card-icon { width: 4rem; height: 4rem; }
  .category-card h3 { font-size: 0.95rem; }
  .product-card { min-width: 9rem; margin-right: 1rem; }
  .product-card img { height: 6rem; }
  .product-card h3 { font-size: 0.8rem; }
  .category-products-grid { gap: 1.25rem; }
}

/* ==========================
   RESPONSIVE — Tablet Landscape (768px+)
   ========================== */
@media (min-width: 768px) {
  .hero { padding: 3.5rem 0; }
  .hero-logo { width: 12rem; }
  .section-categorias { padding-bottom: 2.5rem; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .category-card-icon { width: 4.5rem; height: 4.5rem; }
  .category-card-icon svg { width: 2rem; height: 2rem; }
  .category-card h3 { font-size: 1rem; }
  .section-equipamentos { padding: 3rem 0; }
  .section-about { padding: 3rem 0; }
  .product-hero { padding: 2.5rem 0; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
  .product-card { min-width: 10rem; margin-right: 1.25rem; padding: 0.875rem; }
  .product-card img { height: 7rem; margin-bottom: 0.75rem; }
  .product-card h3 { font-size: 0.875rem; }
  .product-cta .btn { width: auto; }
  .category-products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .category-product-card img { height: 10rem; }
}

/* ==========================
   RESPONSIVE — Desktop (1024px+)
   ========================== */
@media (min-width: 1024px) {
  .hero { padding: 4rem 0; }
  .hero-logo { width: 14rem; }
  .product-hero { padding: 3rem 0; }
  .category-products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================
   FLOATING WHATSAPP BUTTON
   ========================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}
.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--whatsapp);
  z-index: -1;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (min-width: 768px) {
  .whatsapp-float {
    width: 68px;
    height: 68px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .whatsapp-float svg {
    width: 36px;
    height: 36px;
  }
}
