@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --background: #ffffff;
  --foreground: #0b1e36;
  --card: #ffffff;
  --primary: #1d4f8e;
  --primary-foreground: #ffffff;
  --secondary: #0b1e36;
  --secondary-foreground: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #e8700a;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --section-alt: #f5f7fa;
  --hero-gradient: linear-gradient(135deg, #1d4f8e 0%, #0b1e36 100%);
  --radius: 1rem;
}

*, *::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 { font-family: 'Playfair Display', Georgia, serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Container */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }

/* Section padding */
.section-padding { padding: 4rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 4rem 2rem; } }
@media (min-width: 1024px) { .section-padding { padding: 6rem 4rem; } }

/* Hero BG */
.hero-bg { background: var(--hero-gradient); color: var(--primary-foreground); }

/* Section alt */
.section-alt { background-color: var(--section-alt); }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 40px rgba(11,30,54,0.05); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 6rem; padding: 0 1rem;
}
@media (min-width: 768px) { .header-inner { height: 7rem; padding: 0 2rem; } }

.header-logo img { height: 11rem; width: auto; }
@media (min-width: 768px) { .header-logo img { height: 13rem; } }

.header-nav { display: none; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .header-nav { display: flex; } }

.header-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: color 0.3s;
}
.header-nav a:hover, .header-nav a.active { color: var(--primary); }

.header-actions { display: none; gap: 0.75rem; align-items: center; }
@media (min-width: 768px) { .header-actions { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500; border-radius: 9999px;
  padding: 0.625rem 1.5rem; cursor: pointer; transition: all 0.3s; border: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 4px 12px rgba(29,79,142,0.25); }
.btn-primary:hover { background: #1a4780; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,79,142,0.3); }
.btn-outline {
  background: transparent; border: 1px solid rgba(29,79,142,0.3); color: var(--primary);
}
.btn-outline:hover { background: rgba(29,79,142,0.05); border-color: var(--primary); }
.btn-white { background: #fff; color: var(--secondary); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }
.btn-ghost-white {
  background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 4px 12px rgba(232,112,10,0.25); }
.btn-accent:hover { background: #d4650a; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* Hamburger */
.hamburger {
  display: flex; background: none; border: none; cursor: pointer; padding: 0.5rem;
  color: var(--foreground);
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger svg { width: 1.5rem; height: 1.5rem; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 0.75rem;
  padding: 1rem; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px); border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu a { font-size: 0.875rem; font-weight: 500; padding: 0.5rem 0; color: var(--muted-foreground); }
.mobile-menu a.active { color: var(--primary); }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden; min-height: 85vh;
  display: flex; align-items: center; background: #fff;
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(48px);
}
.hero-blob-1 { top: 10%; left: 15%; width: 500px; height: 500px; background: rgba(29,79,142,0.05); }
.hero-blob-2 { bottom: 10%; right: 15%; width: 400px; height: 400px; background: rgba(232,112,10,0.05); }

.hero-machines {
  position: absolute; inset: 0; display: none; align-items: center; pointer-events: none;
}
@media (min-width: 768px) { .hero-machines { display: flex; } }
.hero-machine-left, .hero-machine-right {
  position: absolute; width: 65%; opacity: 0.2;
}
.hero-machine-left { left: -5%; }
.hero-machine-right { right: -5%; }

.hero-content {
  position: relative; z-index: 10; text-align: center; max-width: 42rem; margin: 0 auto;
  padding: 4rem 1rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: rgba(29,79,142,0.1); color: var(--primary);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 1.5rem;
  border: 1px solid rgba(29,79,142,0.2);
  animation: fadeInUp 0.6s ease-out both;
}
.hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; animation: fadeInUp 0.6s 0.1s ease-out both; }
@media (min-width: 768px) { .hero h1 { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }
.hero h1 .brand { color: var(--primary); display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.hero h1 .subtitle {
  display: block; font-size: 1.5rem; margin-top: 0.5rem;
  color: rgba(11,30,54,0.8); font-weight: 600;
}
@media (min-width: 768px) { .hero h1 .subtitle { font-size: 1.875rem; } }
@media (min-width: 1024px) { .hero h1 .subtitle { font-size: 2.25rem; } }
.hero-desc { font-size: 1.125rem; color: var(--muted-foreground); margin-bottom: 2.5rem; max-width: 36rem; margin-left: auto; margin-right: auto; animation: fadeInUp 0.6s 0.2s ease-out both; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; animation: fadeInUp 0.6s 0.3s ease-out both; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

/* ===== STATS ===== */
.stats-section { padding: 4rem 1rem; background: var(--muted); border-top: 1px solid rgba(226,232,240,0.5); border-bottom: 1px solid rgba(226,232,240,0.5); }
.stats-label { text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); font-weight: 600; margin-bottom: 2.5rem; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 48rem; margin: 0 auto; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }
@media (min-width: 768px) { .stat-value { font-size: 3rem; } }
@media (min-width: 1024px) { .stat-value { font-size: 3.75rem; } }
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; margin-top: 0.5rem; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid rgba(226,232,240,0.6); border-radius: 1rem; overflow: hidden;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  padding: 2rem 2.5rem; min-height: 20rem; display: flex; flex-direction: column;
  background: var(--background); transition: background 0.3s;
  border-bottom: 1px solid rgba(226,232,240,0.6);
}
@media (min-width: 1024px) {
  .service-card { border-bottom: none; border-right: 1px solid rgba(226,232,240,0.6); }
  .service-card:last-child { border-right: none; }
}
.service-card:hover { background: var(--muted); }
.service-icon { width: 1.75rem; height: 1.75rem; color: var(--primary); margin-bottom: 3rem; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }

/* ===== CASES ===== */
.cases-section .reel-embed {
  max-width: 32rem; margin: 0 auto;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8); border-radius: 1.5rem;
  box-shadow: 0 15px 35px rgba(11,30,54,0.04); padding: 0.5rem;
}
.cases-section iframe { width: 100%; height: 520px; border: none; border-radius: 0.75rem; }
@media (min-width: 768px) { .cases-section iframe { height: 580px; } }

/* ===== COVERAGE ===== */
.coverage-grid {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid rgba(226,232,240,0.6); border-radius: 1rem; overflow: hidden;
  max-width: 52rem; margin: 0 auto;
}
@media (min-width: 768px) { .coverage-grid { grid-template-columns: repeat(3, 1fr); } }
.coverage-card {
  padding: 2rem 2.5rem; min-height: 16rem; display: flex; flex-direction: column;
  background: var(--background); transition: background 0.3s;
  border-bottom: 1px solid rgba(226,232,240,0.6);
}
@media (min-width: 768px) {
  .coverage-card { border-bottom: none; border-right: 1px solid rgba(226,232,240,0.6); }
  .coverage-card:last-child { border-right: none; }
}
.coverage-card:hover { background: var(--muted); }
.coverage-icon { width: 1.75rem; height: 1.75rem; color: var(--primary); margin-bottom: 2.5rem; }
.coverage-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.25rem; }
.coverage-card .address { font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 0.75rem; }
.coverage-detail {
  margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(226,232,240,0.6);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary);
}

/* ===== DIFFERENTIALS ===== */
.differentials-section { text-align: center; }
.differentials-section p { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; max-width: 48rem; margin: 0 auto 1rem; }
.differentials-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.differentials-links a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; }
.differentials-links a:hover { text-decoration: underline; }

/* ===== CTA ===== */
.cta-section { position: relative; overflow: hidden; text-align: center; }
.cta-section h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .cta-section h2 { font-size: 2.25rem; } }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 2.5rem; font-size: 1.125rem; max-width: 32rem; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

/* ===== FOOTER ===== */
.site-footer { background: var(--background); color: var(--foreground); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.footer-logo img { height: 14rem; width: auto; }
.footer-company-name { font-size: 0.875rem; font-weight: 600; color: var(--foreground); margin-top: -1rem; }
.footer-heading { font-family: 'Playfair Display', serif; font-weight: 600; margin-bottom: 1rem; color: var(--foreground); }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.3s; }
.footer-nav a:hover { color: var(--primary); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact-item svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.footer-branches { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-branch { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-branch svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.footer-branch-city { font-weight: 500; color: rgba(11,30,54,0.8); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2rem;
  text-align: center; font-size: 0.875rem; color: var(--muted-foreground);
}

/* ===== PAGE HERO ===== */
.page-hero { position: relative; overflow: hidden; }
.page-hero .blob { position: absolute; top: 20%; right: 15%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.05); filter: blur(48px); pointer-events: none; }
.page-hero-badge {
  display: inline-flex; align-items: center; padding: 0.375rem 1rem; border-radius: 9999px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.1);
}
.page-hero h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 42rem; font-size: 1.125rem; }

/* ===== SERVICE LIST (servicos page) ===== */
.service-list { display: flex; flex-direction: column; gap: 1.5rem; }
.service-list-card {
  display: flex; flex-direction: column; gap: 1.5rem; background: var(--card);
  border-radius: 1.5rem; padding: 2rem; border: 1px solid rgba(226,232,240,0.5);
  transition: all 0.5s; position: relative; overflow: hidden;
}
@media (min-width: 768px) { .service-list-card { flex-direction: row; } }
.service-list-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(11,30,54,0.06); border-color: rgba(29,79,142,0.3); }
.service-list-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: rgba(29,79,142,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-list-icon svg { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.service-list-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-list-card p { color: var(--muted-foreground); line-height: 1.7; }

/* ===== VALUES GRID ===== */
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border-radius: 1.5rem; padding: 2rem;
  border: 1px solid rgba(226,232,240,0.5); transition: all 0.5s;
}
.value-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(11,30,54,0.06); border-color: rgba(29,79,142,0.3); }
.value-icon {
  width: 3rem; height: 3rem; border-radius: 1rem; background: rgba(29,79,142,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.value-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.value-card h3 { font-weight: 600; margin-bottom: 0.25rem; }
.value-card p { font-size: 0.875rem; color: var(--muted-foreground); }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.contact-info-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem; background: rgba(29,79,142,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-icon svg { width: 1rem; height: 1rem; color: var(--primary); }
.contact-info-label { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.contact-info-value { font-size: 0.875rem; color: var(--muted-foreground); }
.contact-info-value a { color: var(--primary); }
.contact-info-value a:hover { text-decoration: underline; }

.form-card {
  background: var(--card); border-radius: 1.5rem; padding: 1.5rem;
  border: 1px solid rgba(226,232,240,0.5); box-shadow: 0 15px 35px rgba(11,30,54,0.04);
}
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.form-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--foreground); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.625rem 1rem; border: 1px solid var(--border);
  border-radius: 0.75rem; font-size: 0.875rem; font-family: 'Inter', sans-serif;
  background: var(--background); color: var(--foreground); transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,79,142,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== SECTION HEADING ===== */
.section-heading { text-align: center; margin-bottom: 3.5rem; }
.section-heading .tag {
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.75rem;
}
.section-heading h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-heading h2 { font-size: 2.25rem; } }
.section-heading p { color: var(--muted-foreground); max-width: 36rem; margin: 0 auto; }

/* ===== SVG ICONS (inline) ===== */
.icon { display: inline-block; vertical-align: middle; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-auto { margin-top: auto; }
