@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --primary: #1a1a1a;
  --primary-fg: #ffffff;
  --secondary: #f5f5f5;
  --secondary-fg: #1a1a1a;
  --muted: #f5f5f5;
  --muted-fg: #666666;
  --accent: #cc0000;
  --accent-fg: #ffffff;
  --border: #e0e0e0;
  --card: #ffffff;
  --card-fg: #1a1a1a;
  --radius: 0.375rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

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

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo img { height: 56px; width: auto; }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--fg);
  transition: color 0.2s;
}
.dropdown-trigger:hover { color: var(--accent); }
.dropdown-trigger svg { transition: transform 0.2s; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }

.dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.dropdown-item:hover { background: var(--secondary); color: var(--accent); }

/* Mobile */
.mobile-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 0 1rem 1rem;
}
.mobile-nav.open { display: block; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

.mobile-nav a, .mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--fg);
}
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--accent); }

.mobile-submenu { display: none; padding-left: 1rem; }
.mobile-submenu.open { display: block; }
.mobile-submenu a { font-weight: 400; color: var(--muted-fg); padding: 0.5rem 0; }

.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-dropdown-trigger svg { transition: transform 0.2s; }
.mobile-dropdown-trigger.open svg { transform: rotate(180deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--primary);
  color: var(--primary-fg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 50%, rgba(204,0,0,0.08) 0%, transparent 50%);
}
.hero-inner {
  position: relative;
  padding: 6rem 0;
  max-width: 720px;
}
@media (min-width: 1024px) { .hero-inner { padding: 9rem 0; } }

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: 'Source Sans 3', sans-serif;
}

.hero h1 { font-size: 2.25rem; font-weight: 700; }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

.hero h1 span { color: var(--accent); }

.hero-text {
  margin-top: 1.5rem;
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.8;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-accent:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--primary-fg);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

.section-bg { background: var(--secondary); }
.section-dark { background: var(--primary); color: var(--primary-fg); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
}
.section-title { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 1024px) { .section-title { font-size: 2.25rem; } }
.section-subtitle { margin-top: 1rem; max-width: 640px; margin-inline: auto; color: var(--muted-fg); }

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.2s;
}
.service-card:hover { border-color: rgba(204,0,0,0.3); box-shadow: var(--shadow-lg); }

.service-card .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}

.service-card .link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}
.service-card:hover .link { gap: 0.5rem; }

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

.segment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  transition: all 0.2s;
}
.segment-card:hover { border-color: rgba(204,0,0,0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.segment-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204,0,0,0.1);
  color: var(--accent);
  transition: all 0.2s;
}
.segment-card:hover .segment-icon { background: var(--accent); color: var(--accent-fg); }
.segment-icon svg { width: 24px; height: 24px; }

.segment-card span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Differentials ===== */
.differentials-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .differentials-grid { grid-template-columns: repeat(3, 1fr); } }

.differential-item { text-align: center; }

.differential-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204,0,0,0.1);
  color: var(--accent);
  margin: 0 auto 1.5rem;
}
.differential-icon svg { width: 32px; height: 32px; }

.differential-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.differential-item p { font-size: 0.875rem; line-height: 1.7; color: var(--muted-fg); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: var(--primary-fg);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-logo img {
  height: 64px;
  width: auto;
  border-radius: var(--radius);
  background: var(--primary-fg);
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo p { font-size: 0.875rem; line-height: 1.7; opacity: 0.8; }

.footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-family: 'Source Sans 3', sans-serif;
}

.footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul a { font-size: 0.875rem; opacity: 0.7; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
}
.footer-contact li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.5;
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  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: 28px; height: 28px; color: white; fill: white; }

/* ===== Page Hero (internal pages) ===== */
.page-hero {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 5rem 0;
}
.page-hero .label { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; font-family: 'Source Sans 3', sans-serif; }
.page-hero h1 { font-size: 2.25rem; font-weight: 700; }
@media (min-width: 1024px) { .page-hero h1 { font-size: 3rem; } }
.page-hero .subtitle { margin-top: 1rem; max-width: 640px; font-size: 1.125rem; opacity: 0.8; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }

/* ===== Service Detail ===== */
.service-detail-grid {
  display: grid;
  gap: 4rem;
}
@media (min-width: 1024px) { .service-detail-grid { grid-template-columns: 2fr 1fr; } }

.service-description { font-size: 1.125rem; line-height: 1.7; color: var(--muted-fg); }

.service-benefits {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
}
.service-benefits h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1.5rem; }
.service-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}
.service-benefits li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ===== CTA Section ===== */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.cta-section p { color: var(--muted-fg); margin-bottom: 2rem; }

/* ===== Sobre Nós ===== */
.history-section { max-width: 720px; margin: 0 auto; }
.history-section h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.875rem; font-weight: 700; margin-bottom: 1.5rem; }
.history-section h2 svg { width: 24px; height: 24px; color: var(--accent); }
.history-section p { color: var(--muted-fg); line-height: 1.7; margin-bottom: 1rem; }

.values-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204,0,0,0.1);
  margin-bottom: 1rem;
}
.value-icon svg { width: 24px; height: 24px; color: var(--accent); }
.value-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.value-card p, .value-card li { font-size: 0.875rem; line-height: 1.7; color: var(--muted-fg); }
.value-card ul li { margin-bottom: 0.5rem; }

/* ===== Contato ===== */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204,0,0,0.1);
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; color: var(--accent); }
.contact-item h4 { font-weight: 600; margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.875rem; color: var(--muted-fg); }

.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { display: block; }

/* ===== Depoimento ===== */
.testimonial-section { text-align: center; max-width: 720px; margin: 0 auto; }
.testimonial-section .quote-icon { width: 40px; height: 40px; color: rgba(204,0,0,0.3); margin: 0 auto 1.5rem; }
.testimonial-section blockquote { font-size: 1.25rem; font-style: italic; line-height: 1.7; font-family: 'Playfair Display', serif; }
.testimonial-section .author { margin-top: 1.5rem; }
.testimonial-section .author strong { display: block; font-weight: 600; }
.testimonial-section .author span { font-size: 0.875rem; color: var(--muted-fg); }

/* ===== Hero with icon ===== */
.page-hero-with-icon { display: flex; align-items: center; gap: 1rem; }
.page-hero-with-icon svg { width: 40px; height: 40px; color: var(--accent); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
