@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: #f7f7f7;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --primary: #141414;
  --primary-foreground: #fafafa;
  --secondary: #ebebeb;
  --secondary-foreground: #1a1a1a;
  --muted: #f0f0f0;
  --muted-foreground: #666666;
  --accent: #5f8296;
  --accent-foreground: #ffffff;
  --accent-glow: #7a99ab;
  --border: #e0e0e0;
  --navy: #141414;
  --navy-dark: #0a0a0a;
  --steel: #4d4d4d;
  --metallic-light: #b8b8b8;
  --radius: 0.5rem;
}

.dark {
  --background: #0f0f0f;
  --foreground: #f2f2f2;
  --card: #1a1a1a;
  --card-foreground: #f2f2f2;
  --primary: #5f8296;
  --primary-foreground: #ffffff;
  --secondary: #292929;
  --secondary-foreground: #f2f2f2;
  --muted: #242424;
  --muted-foreground: #999999;
  --accent: #5f8296;
  --accent-foreground: #ffffff;
  --border: #2e2e2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Gradients */
.gradient-industrial {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--steel) 100%);
}
.gradient-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
}
.gradient-hero-overlay {
  background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, var(--navy) 50%, rgba(77,77,77,0.6) 100%);
}
.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shadows */
.industrial-shadow {
  box-shadow: 0 10px 40px -10px rgba(20,20,20,0.15), 0 4px 12px -4px rgba(20,20,20,0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--accent-foreground);
}
.btn-lg { padding: 0.875rem 2rem; font-size: 1.1rem; }
.btn-outline {
  background: transparent;
  border: 1px solid;
}
.btn-outline-light {
  border-color: rgba(250,250,250,0.6);
  color: var(--primary-foreground);
  background: rgba(250,250,250,0.1);
}
.btn-outline-light:hover { background: rgba(250,250,250,0.2); }
.btn-outline-accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn-full { width: 100%; }

/* Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-hover { transition: all 0.3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -12px rgba(20,20,20,0.2); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(77,77,77,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .header-inner { height: 5rem; } }
.header .logo img { height: 2.5rem; width: auto; filter: brightness(0) invert(1); }
@media (min-width: 768px) { .header .logo img { height: 3.5rem; } }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250,250,250,0.8);
  border-radius: var(--radius);
  transition: color 0.2s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); }

.mobile-controls { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .mobile-controls { display: none; } }
.mobile-controls a, .mobile-controls button { color: rgba(250,250,250,0.8); background: none; border: none; cursor: pointer; }
.mobile-controls svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(77,77,77,0.3);
  padding: 1rem;
}
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250,250,250,0.8);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); background: rgba(77,77,77,0.2); }

/* Main */
main { flex: 1; padding-top: 4rem; }
@media (min-width: 768px) { main { padding-top: 5rem; } }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* Hero */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 10; max-width: 48rem; }
.hero .badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(95,130,150,0.4);
  border-radius: 9999px;
  color: var(--accent);
  background: rgba(95,130,150,0.1);
}
.hero h1 { font-size: 2.5rem; line-height: 1.1; color: var(--primary-foreground); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .hero h1 { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p { font-size: 1.125rem; color: rgba(250,250,250,0.8); margin-bottom: 2rem; max-width: 42rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page header */
.page-header { position: relative; padding: 5rem 0; }
.page-header h1 { font-size: 2.5rem; color: var(--primary-foreground); margin-bottom: 1rem; }
@media (min-width: 768px) { .page-header h1 { font-size: 3.25rem; } }
.page-header p { font-size: 1.125rem; color: rgba(250,250,250,0.8); }
.page-header .text-accent { color: var(--accent); }

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-bg-muted { background: var(--muted); }
.section-title { font-size: 1.875rem; text-align: center; margin-bottom: 1rem; color: var(--foreground); }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-title .text-accent { color: var(--accent); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-lg-2 { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid-lg-2 { grid-template-columns: 1fr 1fr; } }
.grid-lg-5-3-2 { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid-lg-5-3-2 { grid-template-columns: 3fr 2fr; } }

/* Differential card */
.diff-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}
.diff-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.diff-icon svg { width: 2rem; height: 2rem; color: var(--accent-foreground); }
.diff-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--foreground); }
.diff-card p { font-size: 0.875rem; color: var(--muted-foreground); }

/* Product card */
.product-card { display: flex; flex-direction: column; }
.product-card .images { display: grid; gap: 2px; }
.product-card .images.cols-1 { grid-template-columns: 1fr; }
.product-card .images.cols-2 { grid-template-columns: 1fr 1fr; }
.product-card .images.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.product-card .images .img-wrap { overflow: hidden; height: 500px; max-width: 475px; }
.product-card .images img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform 0.5s; }
.product-card .images img:hover { transform: scale(1.05); }
.product-card .info { padding: 1.5rem; }
.product-card .info .cat { font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.product-card .info h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 700; margin: 0.25rem 0 0.75rem; color: var(--foreground); }
.product-card .info p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1.25rem; }

/* Featured product card (home) */
.featured-card .img-wrap { aspect-ratio: 1; overflow: hidden; }
.featured-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.featured-card .img-wrap img:hover { transform: scale(1.05); }
.featured-card .info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.featured-card .info .cat { font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.featured-card .info h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.5rem; }
.featured-card .info p { font-size: 0.875rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--muted);
  color: var(--muted-foreground);
}
.filter-btn:hover { background: var(--secondary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--accent-foreground);
}

/* About items */
.about-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.about-item svg { width: 1.25rem; height: 1.25rem; color: var(--accent); flex-shrink: 0; }
.about-item span { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }

/* CTA section */
.cta-section { position: relative; overflow: hidden; padding: 5rem 0; }
.cta-dots {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, var(--metallic-light) 1px, transparent 0);
  background-size: 40px 40px;
}
.cta-section .content { position: relative; z-index: 10; text-align: center; }
.cta-section h2 { font-size: 1.875rem; color: var(--primary-foreground); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cta-section h2 { font-size: 2.25rem; } }
.cta-section p { color: rgba(250,250,250,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 36rem; margin-left: auto; margin-right: auto; }

/* Empresa page */
.quem-somos-text { color: var(--muted-foreground); line-height: 1.7; }
.quem-somos-text p { margin-bottom: 1rem; }
.quem-somos-img { border-radius: var(--radius); overflow: hidden; }
.quem-somos-img img { width: 100%; height: 20rem; object-fit: cover; }

.missao-card { padding: 2rem; height: 100%; }
.missao-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.missao-icon svg { width: 1.75rem; height: 1.75rem; color: var(--accent-foreground); }
.missao-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.75rem; }
.missao-card p { color: var(--muted-foreground); }

.valor-chip {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--card); border-radius: var(--radius);
  padding: 1rem 1.5rem; border: 1px solid var(--border);
}
.valor-chip svg { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.valor-chip span { font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--foreground); }
.valores-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; max-width: 48rem; margin: 0 auto; }

/* Services card */
.service-card { padding: 2rem; display: flex; flex-direction: column; height: 100%; }
.service-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 1.75rem; height: 1.75rem; color: var(--accent-foreground); }
.service-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; flex: 1; }

/* Contact form */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.25rem; }
.form-input, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 7rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Contact info */
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.contact-info-item svg { width: 1.25rem; height: 1.25rem; color: var(--accent); flex-shrink: 0; margin-top: 0.125rem; }
.contact-info-item .label { font-weight: 500; color: var(--foreground); }
.contact-info-item .value { color: var(--muted-foreground); }
.contact-info-item a { color: var(--accent); transition: opacity 0.2s; }
.contact-info-item a:hover { opacity: 0.8; }

/* Footer */
.footer { color: var(--primary-foreground); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer .logo img { height: 3rem; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer p { font-size: 0.875rem; color: rgba(250,250,250,0.7); line-height: 1.6; }
.footer h4 { font-family: 'Rajdhani', sans-serif; font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer nav a { display: block; font-size: 0.875rem; color: rgba(250,250,250,0.7); padding: 0.25rem 0; transition: color 0.2s; }
.footer nav a:hover { color: var(--accent); }
.footer-contact { font-size: 0.875rem; color: rgba(250,250,250,0.7); }
.footer-contact .item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-contact svg { width: 1rem; height: 1rem; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid rgba(77,77,77,0.3);
  text-align: center; font-size: 0.75rem; color: rgba(250,250,250,0.5);
}

/* WhatsApp button */
.whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #22c55e; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 1.75rem; height: 1.75rem; color: #fff; }

/* 404 */
.not-found { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--muted); text-align: center; }
.not-found h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.not-found p { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.not-found a { color: var(--accent); text-decoration: underline; }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; z-index: 100;
  transition: opacity 0.3s; pointer-events: none;
}
.toast-success { background: #22c55e; color: #fff; }
.toast-error { background: #ef4444; color: #fff; }
.toast.hidden { opacity: 0; }

/* Animations */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* Utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.gap-12 { gap: 3rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
