:root {
  --navy: #1a4379;
  --navy-2: #2f5e98;
  --blue: #0689E4;
  --blue-light: #B3D9EC;
  --white: #fff;
  --gray-50: #f7f9fc;
  --gray-100: #edf1f6;
  --gray-300: #c8d1dc;
  --gray-600: #5f6f82;
  --gray-800: #243447;
  --whatsapp: #25d366;
  --shadow: 0 18px 45px rgba(11,31,58,.12);
  --radius: 8px;
  --header: 74px;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, Arial, sans-serif; color: var(--gray-800); line-height: 1.6; background: var(--white); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 76px 0; }
.section-anchor { scroll-margin-top: calc(var(--header) + 24px); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--gray-100);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: var(--header); display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: min(100% - 32px, var(--container)); margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 800; line-height: 1.15; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius);
  color: var(--white); background: linear-gradient(135deg, var(--navy), var(--blue));
}

.nav-menu { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.nav-menu a:hover { color: var(--blue); }

.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); background: var(--white); cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); transition: .2s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--header) + 64px) 0 72px; color: var(--white);
  background:
    linear-gradient(115deg, rgba(11,31,58,.94), rgba(18,53,95,.86), rgba(11,31,58,.72)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-content { max-width: 820px; }
.kicker { color: var(--blue); text-transform: uppercase; font-size: .78rem; font-weight: 800; margin-bottom: 12px; }
.hero .kicker { color: var(--blue-light); }
h1 { font-size: clamp(2.3rem, 7vw, 4.9rem); line-height: 1.02; }
h2 { color: var(--navy); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.hero p:not(.kicker), .section-heading p, #sobre p { margin-top: 18px; color: var(--gray-600); }
.hero p:not(.kicker) { color: rgba(255,255,255,.84); font-size: clamp(1rem, 2.2vw, 1.22rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 800; cursor: pointer; transition: .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--blue); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }

.about-grid, .contact-grid { display: grid; gap: 32px; }
.about-card, .contact-card {
  padding: 28px; border: 1px solid var(--gray-100); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.card-icon, .service-card span {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius);
  color: var(--white); background: var(--navy-2); font-weight: 800;
}
.about-card h3 { margin: 18px 0; color: var(--navy); }
.about-card li { padding-left: 16px; border-left: 3px solid var(--blue); color: var(--gray-600); }
.about-card li + li { margin-top: 14px; }

.services { background: var(--gray-50); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.service-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.service-card {
  min-height: 250px; padding: 26px; border: 1px solid var(--gray-100); border-radius: var(--radius);
  background: var(--white); box-shadow: 0 12px 28px rgba(11,31,58,.08); transition: .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h3 { margin-top: 22px; color: var(--navy); line-height: 1.25; }
.service-card p { margin-top: 12px; color: var(--gray-600); }

.contact-form { display: grid; gap: 18px; margin-top: 28px; }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-weight: 700; }
input, textarea {
  width: 100%; border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 14px; outline: 0; color: var(--gray-800);
}
input { height: 48px; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(6,137,228,.12); }

.contact-info {
  padding: 30px; border-radius: var(--radius); color: var(--white);
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
}
.contact-info p { margin: 12px 0 28px; color: rgba(255,255,255,.78); }
.contact-info strong { display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: var(--blue-light); }
.contact-info span { display: block; margin-top: 6px; color: rgba(255,255,255,.88); }

.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 15;
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px;
  border-radius: 999px; color: var(--white); background: var(--whatsapp); font-weight: 800;
  box-shadow: 0 14px 30px rgba(37,211,102,.28);
}

.site-footer { color: rgba(255,255,255,.78); background: var(--navy); }
.footer-grid { display: grid; gap: 28px; padding: 46px 0; }
.footer-grid strong { display: block; color: var(--white); margin-bottom: 12px; }
.footer-grid a { display: block; margin-top: 8px; }
.copyright { padding: 18px 16px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute; top: var(--header); left: 16px; right: 16px;
    display: grid; gap: 0; padding: 10px; border: 1px solid var(--gray-100);
    border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s;
  }
  .nav-menu.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-menu a { display: block; padding: 13px 12px; }
  .hero-actions .btn { width: 100%; }
}

.brand-logo {
  display: block;
  width: auto;
  height: 80px;
  max-width: 320px;
  object-fit: contain;
}

.form-message {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: .3s;
}

.form-message.success {
    display: block;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-template-columns: repeat(2, 1fr); }
  .full { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-info { position: sticky; top: calc(var(--header) + 24px); }
  .footer-grid { grid-template-columns: 1.4fr .7fr .9fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 767px) {
  .brand-logo {
    height: 56px;
    max-width: 190px;
  }
}