*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe4;
  --color-surface: #ffffff;
  --color-text: #2c2420;
  --color-text-muted: #6b5f57;
  --color-accent: #8b3a3a;
  --color-accent-dark: #6e2d2d;
  --color-accent-light: #c9a0a0;
  --color-border: #e5ddd5;
  --color-success: #2d6a4f;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
  --shadow-md: 0 8px 32px rgba(44, 36, 32, 0.1);
  --radius: 12px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(44, 36, 32, 0.55) 0%, rgba(139, 58, 58, 0.45) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a0a0' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #3d2c2c 0%, #6e2d2d 50%, #8b3a3a 100%);
  color: #fff;
}

.hero-content {
  padding: 4rem 0;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 480px;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: var(--color-accent-dark);
}

.btn-primary:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section-intro {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.section p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Info card */
.info-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.info-card dl div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.info-card dl div:last-child {
  border-bottom: none;
}

.info-card dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.info-card dd {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-active {
  background: #d8f3dc;
  color: var(--color-success);
}

/* Activities */
.activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.activity-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.activity-card:hover {
  box-shadow: var(--shadow-md);
}

.activity-main {
  border-color: var(--color-accent-light);
  background: linear-gradient(135deg, #fff 0%, #fdf8f8 100%);
}

.activity-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.activity-code {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.activity-desc {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* Contact */
.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.contact-list a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-list a:hover {
  color: var(--color-accent-dark);
}

.map-placeholder {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 280px;
}

.map-placeholder p:first-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0;
}

.map-placeholder p:nth-child(2) {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* CNPJ card */
.cnpj-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cnpj-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, #3d2c2c 0%, #6e2d2d 100%);
  color: #fff;
}

.cnpj-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.cnpj-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.cnpj-matriz {
  font-size: 0.85rem;
  opacity: 0.75;
}

.cnpj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}

.cnpj-grid > div {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.field-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.field-value {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Footer */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.footer-cnpj {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-copy {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 4%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav {
    position: relative;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: 60vh;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
