/* ==========================================================
   RESET
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--background); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==========================================================
   VARIÁVEIS
   ========================================================== */
:root {
  --primary: #0d3b66;
  --primary-dark: #092b4b;
  --text: #1a1a1a;
  --text-light: #666666;
  --background: #ffffff;
  --background-light: #f5f7fa;
  --border: #e2e5e9;
  --radius: 8px;
  --header-height: 72px;
}

/* ==========================================================
   CONTAINER
   ========================================================== */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================
   HEADER
   ========================================================== */
.header { position: sticky; top: 0; z-index: 100; background: var(--background); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo img { height: 44px; width: auto; }

/* ==========================================================
   NAVEGAÇÃO
   ========================================================== */
.nav { display: flex; gap: 32px; }
.nav a { font-size: 0.95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   SEÇÕES
   ========================================================== */
.section { padding: 88px 0; }
.section--light { background: var(--background-light); }
.section--dark { background: var(--primary); color: #fff; }

/* ==========================================================
   TÍTULOS
   ========================================================== */
.label { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.label--light { color: #fff; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15; color: var(--primary-dark); margin-bottom: 20px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: var(--primary-dark); margin-bottom: 16px; }
h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 4px; }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--text-light); }

/* Botões */
.btn { display: inline-block; padding: 13px 28px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; border: 2px solid var(--primary); cursor: pointer; transition: background .2s, color .2s; text-align: center; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--outline { background: transparent; color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.section--dark .btn--primary { background: var(--primary-dark); border-color: var(--primary-dark); }
.section--dark .btn--primary:hover { background: var(--primary); border-color: #fff; }

/* ==========================================================
   HERO
   ========================================================== */
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero__text p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 32px; max-width: 480px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__image { border-radius: 12px; overflow: hidden; background: var(--background-light); border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   SOBRE
   ========================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__image { border-radius: 12px; overflow: hidden; background: var(--background); border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__text p { color: var(--text-light); margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.feature__number { display: block; font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.feature p { font-size: 0.9rem; margin: 0; }

/* ==========================================================
   CLIENTES
   ========================================================== */
.clients__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.client { display: flex; align-items: center; justify-content: center; height: 110px; padding: 20px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); }
.client img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================
   CONTATO
   ========================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.section--dark h2 { color: #fff; }
.contact__info p { opacity: .9; margin-bottom: 24px; }
.contact__list li { margin-bottom: 10px; }

/* ==========================================================
   FORMULÁRIO
   ========================================================== */
.form { background: var(--background); color: var(--text); padding: 32px; border-radius: 12px; }
.form__group { margin-bottom: 18px; }
.form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.form .btn { width: 100%; }
.form__status { margin-top: 14px; font-size: 0.9rem; color: var(--primary); }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--primary-dark); color: #fff; padding: 56px 0 24px; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.footer__brand { max-width: 360px; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer__brand p { font-size: 0.9rem; opacity: .85; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer__nav a { font-size: 0.9rem; opacity: .85; }
.footer__nav a:hover { opacity: 1; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 0.85rem; opacity: .75; }

/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__image { order: 2; }
  .about__text { order: 1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--background); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:hover, .nav a.active { border-bottom-color: var(--border); }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .features { grid-template-columns: 1fr; }
  .hero__buttons .btn { width: 100%; }
  .form { padding: 22px; }
  .footer__top, .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
