/* ===== Tokens ===== */
:root {
  --navy: #0B3866;
  --navy-deep: #081B30;
  --blue-accent: #1C7ED6;
  --gray-text: #4B5563;
  --gray-light-bg: #F4F6F8;
  --border: #E3E7EB;
  --white: #FFFFFF;
  --whatsapp: #075E54;
  --whatsapp-hover: #054840;
  --whatsapp-accent: #25D366;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(11, 56, 102, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Compensa o cabeçalho fixo (sticky) ao navegar pelas âncoras do menu,
   evitando que o título da seção fique escondido atrás dele. */
[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy-deep);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--gray-text); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 2px; }

.btn-large { padding: 15px 28px; font-size: 1.05rem; }
.btn-small { padding: 9px 16px; font-size: .92rem; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: var(--white); }
.btn-whatsapp .icon-wpp { width: 20px; height: 20px; flex-shrink: 0; }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
}
.brand img { height: 46px; width: auto; }

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.main-nav a {
  color: var(--navy-deep);
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--blue-accent); text-decoration: none; }

.header-actions { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #EAF1F8 0%, #FFFFFF 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 780px; }
.eyebrow {
  color: var(--blue-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  margin-bottom: .75em;
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.hero-badges li {
  font-size: .92rem;
  color: var(--navy);
  font-weight: 600;
  padding-left: 22px;
  position: relative;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-accent);
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-light-bg); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.lead-paragraph {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--navy-deep);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .96rem; }

.service-card { position: relative; padding-top: 30px; }
.service-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border);
}

.card-dark {
  background: var(--navy);
  border-color: var(--navy);
}
.card-dark h3, .card-dark p { color: var(--white); }
.card-dark p { opacity: .88; }

.assinatura-tecnica {
  text-align: center;
  margin-top: 36px;
}

.responsavel-tecnico {
  color: var(--navy);
  font-size: .98rem;
  margin: 0;
}

.crea {
  color: var(--gray-text);
  font-size: .82rem;
  margin: 2px 0 0;
}

.certificacoes {
  text-align: center;
  margin-top: 10px;
  color: var(--gray-text);
  font-size: .88rem;
}

/* ===== Gallery ===== */
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}

/* ===== Contact ===== */
.section-contact { background: var(--navy-deep); }
.section-contact .section-head h2,
.section-contact .section-head p { color: var(--white); }
.section-contact .section-head p { opacity: .85; }

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 16px;
  text-align: left;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  font-size: 1rem;
}
.contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-label {
  font-weight: 700;
  color: var(--navy);
}
.contact-list a { font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #C6D2DF;
  padding: 40px 0 100px;
  text-align: center;
}
.footer-logo {
  margin: 0 auto 14px;
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.site-footer p { color: #C6D2DF; margin: 0 0 8px; }
.footer-links a { color: #FFFFFF; font-weight: 600; }
.footer-copy { font-size: .85rem; opacity: .7; margin-top: 18px; }

.footer-admin { margin-top: 10px; }
.footer-admin a {
  color: #C6D2DF;
  opacity: .5;
  font-size: .75rem;
  font-weight: 400;
  text-decoration: none;
}
.footer-admin a:hover { opacity: .8; text-decoration: underline; }

/* ===== Floating WhatsApp button ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(7, 94, 84, 0.45);
  z-index: 150;
  transition: transform .15s ease, background-color .15s ease;
}
.whatsapp-float:hover { background: var(--whatsapp-hover); transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    transform: translateY(-130%);
    transition: transform .2s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }
  /* O botão flutuante de WhatsApp já cobre esse CTA no mobile; evita duplicidade no header. */
  .header-actions { display: none; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 52px 0; }
  .contact-card { padding: 24px 20px; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
}
