:root {
  --color-bg: #0d0d0f;
  --color-surface: #16161a;
  --color-surface-2: #1e1e24;
  --color-primary: #e6391a;
  --color-primary-dark: #c42e14;
  --color-text: #f4f4f5;
  --color-muted: #a1a1aa;
  --color-border: #2a2a32;
  --font: "Barlow", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff5c3d;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
  letter-spacing: -0.5px;
}

.logo__text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo__text strong {
  color: var(--color-primary);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--color-text);
}

.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: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff !important;
}

.btn--whatsapp:hover {
  background: #1fb855;
  color: #fff !important;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  margin-top: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background:
    linear-gradient(135deg, rgba(13, 13, 15, 0.95) 0%, rgba(13, 13, 15, 0.7) 50%, rgba(230, 57, 26, 0.15) 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='%23e6391a' fill-opacity='0.06'%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"),
    var(--color-bg);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(230, 57, 26, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  padding: 80px 0;
}

.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(230, 57, 26, 0.15);
  border: 1px solid rgba(230, 57, 26, 0.35);
  border-radius: 100px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 48px;
}

/* Services */
.services {
  background: var(--color-surface);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(230, 57, 26, 0.4);
  transform: translateY(-4px);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about p {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.about p strong {
  color: var(--color-text);
}

.about__facts {
  list-style: none;
  margin-top: 24px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.about__facts li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.about__facts li:last-child {
  border-bottom: none;
}

.about__facts strong {
  color: var(--color-text);
}

.about__highlight {
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 32px;
}

.about__highlight h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.about__highlight ul {
  list-style: none;
}

.about__highlight li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--color-muted);
}

.about__highlight li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Contact */
.contact {
  background: var(--color-surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact__item {
  margin-bottom: 24px;
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.contact__item p {
  color: var(--color-muted);
}

.contact__item a {
  color: var(--color-text);
  font-weight: 500;
}

.contact__map iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  filter: grayscale(30%) contrast(1.1);
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer__brand p {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer__legal a {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer__legal a:hover {
  color: var(--color-text);
}

.footer__copy {
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* Legal pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .legal-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--color-text);
}

.legal-page p,
.legal-page li {
  color: var(--color-muted);
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  margin: 12px 0 12px 24px;
}

.legal-page a {
  word-break: break-all;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--color-muted);
  font-weight: 500;
}

.legal-back:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    gap: 16px;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
