/* Hélice Contínua Norte — HCM Fundações | Static Production Stylesheet */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-light: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-soft: #FEF3C7;
  --whatsapp: #047857;
  --whatsapp-hover: #065F46;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 1180px;
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header: strict 1-row, 3-zone contract */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  transition: border-color 150ms ease;
}
.header-phone:hover {
  border-color: var(--border-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 42px;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #FFFFFF;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-alt);
}

.btn-dark {
  background: var(--navy);
  color: #FFFFFF;
}
.btn-dark:hover {
  background: var(--navy-soft);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.85rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--navy);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 20px 22px;
}
.mobile-drawer.is-open {
  display: block;
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.mobile-drawer nav a {
  padding: 10px 8px;
  font-weight: 500;
  border-bottom: 1px solid var(--surface-alt);
  color: var(--navy);
}
.mobile-drawer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-phone { display: inline-flex; align-items: center; gap: 6px; }
  .menu-toggle { display: none; }
  .mobile-drawer { display: none !important; }
}

/* Breadcrumbs */
.breadcrumb-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding-block: 10px;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.breadcrumb-list a:hover {
  color: var(--navy);
  text-decoration: underline;
}
.breadcrumb-sep {
  color: var(--ink-light);
}

/* Typography & Sections */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  max-width: 72ch;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.section {
  padding-block: 60px;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--navy);
  color: #E2E8F0;
}
.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}
.section-dark p {
  color: #CBD5E1;
}

.section-head {
  margin-bottom: 36px;
  max-width: 760px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
}

/* Hero Split */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 44px 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 44px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-notice {
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.hero-media {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 460px;
  object-fit: cover;
}

.media-caption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #CBD5E1;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4-column Strip below hero */
.spec-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .spec-strip { grid-template-columns: repeat(4, 1fr); }
}

.spec-cell {
  background: var(--surface-alt);
  padding: 18px 20px;
}
.spec-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.spec-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-media {
  margin: -24px -24px 20px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface-alt);
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-media-caption {
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 12px;
}
.card-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Split Figure + Editorial Content */
.split-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .split-block {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.figure-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.figure-box img {
  width: 100%;
  object-fit: cover;
}
.figure-box figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-alt);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}
tr:last-child td {
  border-bottom: none;
}
.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* State & Municipality Links */
.state-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .state-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .state-grid { grid-template-columns: repeat(4, 1fr); }
}

.state-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease, transform 150ms ease;
}
.state-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.state-uf {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
}
.state-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 6px;
}
.state-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.city-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.city-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 140ms ease, background-color 140ms ease;
}
.city-link:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
}
.city-link small {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-family: var(--font-mono);
}

/* Search Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.filter-input,
.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  min-height: 42px;
}
.filter-input {
  flex: 1 1 260px;
}
.filter-select {
  flex: 0 1 220px;
}

/* Interactive WhatsApp Quote Composer (no fake submit) */
.quote-composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}
.field-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field-group input,
.field-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--ink);
  min-height: 42px;
}
.quote-note {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-hover);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Checklist */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  padding: 10px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}
.check-list strong {
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #CBD5E1;
  padding-block: 52px 32px;
  border-top: 1px solid #1E293B;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1E293B;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}
.footer-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #94A3B8;
}

/* Floating WhatsApp Button (respects <=15% mobile sticky height cap) */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 18px;
  min-height: 46px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
  transition: background-color 150ms ease, transform 150ms ease;
}
.wa-float:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .wa-float {
    right: 14px;
    bottom: 14px;
    padding: 11px 16px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
