/* Arken Corretora de Seguros — landing page */

:root {
  --navy: #0e296e;
  --navy-700: #0a1f55;
  --petrol: #0d4564;
  --ink: #05293d;
  --steel: #a9b7d4;
  --sky: #e8eef8;
  --paper: #f5f7fb;
  --white: #ffffff;
  --text: #16223a;
  --muted: #56647c;
  --line: #dde3ee;

  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --radius: 6px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--radius); }
.skip:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--steel); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-link { padding: 0 4px; color: var(--navy); }
.btn-link span { transition: transform .2s; }
.btn-link:hover span { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 168px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 28px; }
.nav ul a {
  position: relative;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
}
.nav ul a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav ul a:hover::after,
.nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--section); background: linear-gradient(to bottom, var(--white) 0%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--petrol); }
.hero .lead { margin: 24px 0 36px; font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-points li { position: relative; padding-left: 18px; font-size: 0.95rem; color: var(--muted); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--navy); transform: rotate(45deg); }

.hero-media { position: relative; }
.hero-media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-card {
  position: absolute;
  left: -32px; bottom: 36px;
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 340px;
  padding: 22px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(5, 41, 61, .35);
}
.hero-card img { flex: none; margin-top: 2px; }
.hero-card strong { display: block; font-family: var(--font-display); font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 6px; }
.hero-card span { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--petrol); color: #d7e1ec; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head > p:last-child { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p { color: var(--muted); }
.about-copy blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--navy);
}
.about-copy blockquote strong { font-weight: 600; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.pillars dt { font-family: var(--font-display); font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.pillars dd { font-size: 0.95rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { display: block; margin-bottom: 40px; font-family: var(--font-display); font-size: 0.85rem; color: var(--petrol); letter-spacing: .08em; }
.step h3 { margin-bottom: 12px; font-size: 1.4rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* Split (dark) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split h2 { margin-bottom: 24px; }
.numbered li { display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.numbered li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.numbered span { flex: none; font-family: var(--font-display); font-size: 0.85rem; color: var(--steel); padding-top: 4px; }
.numbered p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; color: #fff; }

/* Feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature-reverse .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.feature-copy h2 { margin-bottom: 22px; }
.feature-copy p { color: var(--muted); }
.feature-copy .btn { margin-top: 16px; }

.checks { margin-top: 28px; }
.checks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); font-weight: 500; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute; left: 4px; top: 50%;
  width: 12px; height: 7px;
  border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(-45deg);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.card:hover { border-color: var(--steel); }
.card h3 { margin: 20px 0 18px; }
.card li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.98rem; color: var(--muted); }
.card li strong { color: var(--text); font-weight: 600; }

.icon { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--steel); }
.timeline li { position: relative; padding-top: 40px; }
.timeline .dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); }
.timeline li:last-child .dot { background: var(--navy); }
.timeline .phase { margin-bottom: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); }
.timeline h3 { margin-bottom: 12px; font-size: 1.35rem; }
.timeline li > p:last-child { color: var(--muted); font-size: 0.98rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 32px clamp(24px, 6vw, 88px); }
.member { text-align: center; }
.member img { width: 168px; height: 168px; margin: 0 auto; object-fit: cover; object-position: center 25%; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(5, 41, 61, .45); }
.member figcaption { display: flex; flex-direction: column; padding-top: 20px; }
.member strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--navy); }
.member span { color: var(--muted); }

/* Contact */
.contact { background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-list { margin-top: 40px; }
.contact-list li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-list .icon { flex: none; stroke: var(--steel); margin-top: 2px; }
.contact-list span { display: block; font-size: 0.82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 2px; }
.contact-list a { color: #fff; text-decoration: none; font-size: 1.08rem; line-height: 1.5; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form { padding: clamp(28px, 4vw, 44px); background: #fff; border-radius: var(--radius); color: var(--text); }
.contact-form h3 { font-size: 1.45rem; margin-bottom: 26px; color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field.has-error input { border-color: #b3261e; }
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.form-note.is-error { color: #b3261e; }

/* Footer */
.site-footer { background: var(--ink); color: var(--steel); border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 44px; padding-bottom: 36px; }
.footer-inner img { width: 150px; }
.tagline { margin: 0; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase; }
.tagline strong { color: #fff; font-weight: 500; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { text-decoration: none; font-size: 0.95rem; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.credit a { color: #fff; text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1300px) { .footer-bottom { padding-bottom: 92px; } }

/* WhatsApp floating */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1faa53; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .nav ul { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
  .timeline li { border-top: 1px solid var(--steel); padding-top: 32px; }
  .timeline .dot { top: -8px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { width: 144px; }

  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--navy);
    transition: transform .25s, background-color .25s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before,
  .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
    overflow-y: auto;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; gap: 0; margin-bottom: 24px; }
  .nav ul a { display: block; padding: 16px 0; font-family: var(--font-display); font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav .btn { min-height: 52px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }

  .hero-grid,
  .about-grid,
  .split,
  .feature,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-media > img { aspect-ratio: 16 / 11; }
  .hero-card { position: relative; left: auto; bottom: auto; max-width: none; margin: -48px 16px 0; }
  .about-media img { aspect-ratio: 16 / 10; }
  .feature-reverse .feature-media { order: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero .lead { font-size: 1.08rem; }
  .hero-actions .btn-primary { width: 100%; }
  .hero-actions .btn-link { min-height: 40px; }
  .hero-points { flex-direction: column; gap: 8px; margin-top: 32px; }
  .hero-card { margin: -36px 12px 0; padding: 18px; }

  .pillars { grid-template-columns: 1fr; gap: 16px; }

  .steps { grid-template-columns: 1fr; }
  .step,
  .step + .step { padding: 28px 0 24px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step-num { margin-bottom: 14px; }

  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; gap: 0; }
  .timeline li { border-top: 0; border-left: 1px solid var(--steel); padding: 0 0 36px 28px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline .dot { top: 2px; left: -8px; }

  .team { grid-template-columns: 1fr; gap: 36px; }
  .member img { width: 136px; height: 136px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .numbered p { font-size: 1.08rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
