/* ==========================================================================
   Paraná Despachante — Stylesheet
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  --navy-deep: #0A2038;
  --navy: #0F2E4F;
  --navy-soft: #16375C;
  --white: #FFFFFF;
  --gray-100: #F5F7F9;
  --gray-200: #E9EDF1;
  --gray-300: #D7DDE3;
  --gray-500: #6B7684;
  --gray-700: #3B4451;
  --green: #1F6F4A;
  --green-soft: #E7F1EC;
  --gold: #AD8A55;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 2px 4px rgba(10, 32, 56, 0.06), 0 12px 32px rgba(10, 32, 56, 0.08);
  --header-height: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

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

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

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

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

section { padding: 88px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.section-head p {
  font-size: 17px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Visually hidden (skip link target labels, form legends) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(31, 111, 74, 0.28);
}
.btn-primary:hover { background: #195a3c; transform: translateY(-1px); }

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.icon-inline { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 32, 56, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text span { color: var(--gold); font-weight: 400; }

.main-nav { display: flex; }

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--white); border-color: var(--gold); }

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

.header-actions .btn { padding: 11px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

@media (max-width: 940px) {
  .main-nav { display: none; }
  .header-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 940px) {
  .main-nav.open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--navy-deep);
    padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a { display: block; padding: 12px 4px; }
}

/* mobile sticky contact bar */
.mobile-contact-bar {
  display: none;
}

@media (max-width: 640px) {
  .mobile-contact-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99;
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    box-shadow: 0 -6px 20px rgba(10,32,56,0.12);
  }
  .mobile-contact-bar a {
    flex: 1;
    text-align: center;
    padding: 13px 6px;
    font-size: 13.5px;
    font-weight: 600;
  }
  .mobile-contact-bar a.call { color: var(--navy); border-right: 1px solid var(--gray-300); }
  .mobile-contact-bar a.whats { color: var(--white); background: var(--green); }
  body { padding-bottom: 56px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.9) 40%, transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 6px 14px;
}

.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 46px);
  letter-spacing: -0.01em;
}

.hero .lede {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  max-width: 44ch;
}

/* Hero form card — styled like an official intake form / protocolo */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: var(--navy-deep);
}

.hero-form-card__top {
  background: var(--navy-deep);
  color: var(--white);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-form-card__top h2 {
  color: var(--white);
  font-size: 19px;
  margin: 0;
}

.hero-form-card__top .protocolo-tag {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--gold);
  border: 1px dashed rgba(173, 138, 85, 0.6);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.hero-form-card__body { padding: 26px; }

.hero-form-card__body p.helper {
  font-size: 13.5px;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--navy-deep);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.form-field textarea { resize: vertical; min-height: 84px; }

.form-field.error input,
.form-field.error select,
.form-field.error textarea { border-color: #B3261E; }

.form-field .field-error {
  display: none;
  font-size: 12.5px;
  color: #B3261E;
  margin-top: 5px;
}

.form-field.error .field-error { display: block; }

.form-note {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 14px;
  line-height: 1.5;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
}

.form-status.visible { display: block; }
.form-status.success { background: var(--green-soft); color: var(--green); }
.form-status.error-status { background: #FBEAE9; color: #B3261E; }

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip { padding: 64px 0; background: var(--gray-100); }

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

@media (max-width: 940px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.trust-card .stamp {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 16px;
}

.trust-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.trust-card p { font-size: 14px; margin: 0; }

/* ==========================================================================
   Services
   ========================================================================== */

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

@media (max-width: 940px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.service-card .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin: 0; }

.services-note {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--gray-500);
  border-left: 3px solid var(--gray-300);
  padding-left: 14px;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-it-works { background: var(--navy-deep); color: var(--white); }
.how-it-works .section-head h2 { color: var(--white); }
.how-it-works .section-head p { color: rgba(255,255,255,0.7); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  counter-reset: step;
}

@media (max-width: 940px) { .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 8px 20px 8px 0;
}

.step .step-number {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 12px;
  display: block;
}

.step h3 { color: var(--white); font-size: 16.5px; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,0.68); font-size: 14px; margin: 0; }

/* ==========================================================================
   About
   ========================================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 940px) { .about-layout { grid-template-columns: 1fr; } }

.about-layout p { font-size: 16px; }

.company-box {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  padding: 26px 28px;
}

.company-box h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.company-box dl { display: grid; gap: 12px; }
.company-box dl div { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.company-box dt { font-size: 13px; font-weight: 600; color: var(--navy); }
.company-box dd { font-size: 13.5px; color: var(--gray-700); margin: 0; }

@media (max-width: 480px) {
  .company-box dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Local service / map
   ========================================================================== */

.local-section { background: var(--gray-100); }

.local-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: stretch;
}

@media (max-width: 940px) { .local-layout { grid-template-columns: 1fr; } }

.local-info {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
}

.local-info .info-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
}
.local-info .info-row:first-of-type { border-top: none; padding-top: 0; }

.local-info .info-row .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.local-info .info-row h4 { font-size: 14.5px; margin: 0 0 4px; color: var(--navy); }
.local-info .info-row p { font-size: 14px; margin: 0; }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  min-height: 320px;
  background: var(--gray-200);
  position: relative;
}

.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.map-embed .map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13.5px;
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
}

.final-cta h2 { color: var(--white); font-size: clamp(26px, 3.6vw, 36px); max-width: 26ch; margin: 0 auto 14px; }
.final-cta p { color: rgba(255,255,255,0.78); max-width: 48ch; margin: 0 auto 32px; font-size: 16.5px; }
.final-cta .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy-deep);
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--gray-300);
  border-radius: 50%;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--navy);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-question .plus::before { width: 10px; height: 1.5px; }
.faq-question .plus::after { width: 1.5px; height: 10px; }

.faq-item[data-open="true"] .plus { transform: rotate(45deg); border-color: var(--navy); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p { padding: 0 4px 20px; font-size: 14.5px; max-width: 62ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .brand-text { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 13.5px; margin-top: 14px; max-width: 34ch; }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-col p { margin: 0 0 6px; color: rgba(255,255,255,0.6); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

.lgpd-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  max-width: 70ch;
  margin: 0 0 24px;
}

/* ==========================================================================
   Simple pages (privacy / terms / thank you)
   ========================================================================== */

.simple-page {
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 80px;
}

.simple-page .container { max-width: 820px; }

.simple-page h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.simple-page .updated { font-size: 13.5px; color: var(--gray-500); margin-bottom: 40px; }
.simple-page h2 { font-size: 20px; margin-top: 40px; }
.simple-page p, .simple-page li { font-size: 15.5px; color: var(--gray-700); }
.simple-page ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.simple-page li { margin-bottom: 8px; }

.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 40px 24px;
}

.thanks-card {
  background: var(--white);
  color: var(--navy-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-width: 520px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
}

.thanks-card .check {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}

.thanks-card h1 { font-size: 26px; margin-bottom: 12px; }
.thanks-card p { font-size: 15.5px; margin-bottom: 28px; }
.thanks-card .protocolo {
  font-family: "Courier New", monospace;
  font-size: 12.5px;
  color: var(--gray-500);
  border: 1px dashed var(--gray-300);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 26px;
  display: inline-block;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-300);
}
.back-link:hover { color: var(--navy); border-color: var(--navy); }
