/* ============================================================
   EMUNAH — Design system
   Colors, type and components approved across the wireframe rounds.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Nunito+Sans:wght@600;700&family=Lato:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@500;700&display=swap');

:root {
  --ink: #033880;         /* headline text, authority */
  --deepdark: #022c66;    /* darkest accent, pillar cards */
  --darkest: #011830;     /* extra-dark, used sparingly */
  --sand: #e1eefb;        /* page background */
  --terra: #0370dd;       /* primary brand blue — buttons, CTAs */
  --sage: #3da7e1;        /* light accent */
  --blue-mid: #0354af;    /* mid tone for variety */
  --white: #ffffff;
  --gray: #5a6b7d;
  --line: #cfe0f5;
  --shadow-color: 3, 56, 128;

  --font-head: 'Poppins', sans-serif;
  --font-subhead: 'Nunito Sans', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-ui: 'DM Sans', sans-serif;

  --container: 1180px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 44px; width: auto; }

.nav__links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-subhead);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  background: var(--sand);
  color: var(--terra);
}

.nav__links a.active { color: var(--terra); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 12px 8px; }
}

/* ---------- Hero ---------- */
.hero {
  background: url('../assets/hero-gradient.jpg') center/cover no-repeat;
  padding: 90px 24px 100px;
  text-align: center;
}

.hero__logo {
  width: 220px;
  margin: 0 auto 28px;
  animation: fadeUp 0.8s ease both;
}

.hero__tagline {
  font-family: var(--font-subhead);
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 0.95rem;
  color: var(--ink);
  animation: fadeUp 0.8s ease 0.15s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--terra);
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.25rem; }

.section-intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 720px;
  margin: 0 0 40px;
  line-height: 1.6;
}
.section-intro.italic { font-style: italic; }

.accent-bar {
  width: 56px;
  height: 4px;
  background: var(--terra);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(var(--shadow-color), 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 32px rgba(var(--shadow-color), 0.18);
}

.card h3 { font-family: var(--font-subhead); font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.96rem; line-height: 1.55; margin: 0; }

/* solid color tone cards (services) */
.tone-card {
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--white);
  font-family: var(--font-subhead);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(var(--shadow-color), 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  min-height: 100px;
}
.tone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(var(--shadow-color), 0.24);
}
.tone-card.small { min-height: 130px; font-size: 0.95rem; }

.tone-ink { background: var(--ink); }
.tone-terra { background: var(--terra); }
.tone-bluemid { background: var(--blue-mid); }
.tone-deepdark { background: var(--deepdark); }
.tone-sage { background: var(--sage); }

.pillar-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--terra);
  margin-top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(3, 112, 221, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3, 112, 221, 0.42);
  background: #0563c4;
}

/* ---------- Process steps (Parceria) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 20px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(var(--shadow-color), 0.08);
  position: relative;
  margin-top: 22px;
}
.step-num {
  position: absolute;
  top: -22px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--sand);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1px;
  margin: 10px 0 6px;
}
.step-card h3 { font-family: var(--font-subhead); font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.5; margin: 0; }

.flow-line {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
}
.flow-note {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  font-size: 0.92rem;
  margin-top: 10px;
}

/* ---------- Highlight panel (Sobre / Tributário) ---------- */
.panel-solid {
  background: var(--terra);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(2, 44, 102, 0.25);
}

.panel-dark {
  background: var(--deepdark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.panel-dark .eyebrow { color: var(--sage); }
.panel-dark p { margin: 8px 0 0; font-size: 1.02rem; line-height: 1.5; }

/* ---------- Two-column layouts (Sobre) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.flowing-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 22px;
}

.about-hero {
  position: relative;
  background: url('../assets/vignette.jpg') center/cover no-repeat;
  overflow: hidden;
  padding: 88px 0;
}
.about-hero::after {
  content: '';
  position: absolute;
  right: -8%;
  top: 0;
  width: 55%;
  height: 100%;
  background: url('../assets/tree-watermark.png') right top/contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.about-hero .container { position: relative; z-index: 1; }

/* ---------- Somos / Não somos ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px;
}
.compare-card.light { background: var(--white); box-shadow: 0 4px 16px rgba(var(--shadow-color), 0.08); }
.compare-card.dark { background: var(--deepdark); color: var(--white); }
.compare-card ul { list-style: none; margin: 20px 0 0; padding: 0; }
.compare-card li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  font-family: var(--font-subhead);
  font-weight: 600;
  font-size: 1.02rem;
}
.dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.compare-card.light .dot { background: var(--terra); }
.compare-card.dark .dot { border: 2px solid var(--sage); }

/* ---------- Case cards ---------- */
.case-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(var(--shadow-color), 0.08); }
.case-card .sector { font-family: var(--font-ui); font-size: 0.82rem; color: var(--terra); margin: 2px 0 14px; }
.case-card .divider { width: 32px; height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 14px; }
.case-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ---------- Contact ---------- */
.contact-section {
  background: url('../assets/hero-gradient.jpg') center/cover no-repeat;
}
.contact-form { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(3, 112, 221, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-status { margin-top: 16px; font-family: var(--font-subhead); font-weight: 600; }
.form-status.success { color: var(--terra); }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #a9c2e6;
  padding: 48px 0 28px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-top img { height: 40px; margin-bottom: 12px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-5 { grid-template-columns: 1fr 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .card-grid.cols-5 { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 64px 20px 72px; }
  .hero__logo { width: 160px; }
}
