/* ==========================================================================
   Tribas Insurance — site styles
   Brand tokens live in :root. Change colors there, not inline.
   ========================================================================== */

:root {
  /* Brand (from the logo) */
  --cyan: #22C9EE;        /* logo cyan — fills, icons, accents */
  --cyan-deep: #0A7A94;   /* cyan for text on white (4.9:1) */
  --cyan-tint: #EAF9FD;   /* hero / tint backgrounds */
  --pink: #F9478A;        /* logo pink — decorative only */
  --pink-cta: #E0246C;    /* buttons with white text (4.5:1) */
  --pink-cta-hover: #C81A5A;
  --pink-deep: #C2185B;   /* pink for text on white (5.9:1) */
  --pink-tint: #FFF1F6;
  --pink-line: #F6C9DA;

  /* Neutrals */
  --navy: #0B1D2E;        /* ink + dark bands */
  --ink-2: #4A5A69;       /* body copy, muted (7.1:1) */
  --ink-3: #8FA3B5;       /* footer small print on navy */
  --line: #E3EAF0;
  --line-soft: #EEF2F6;
  --ground: #F6FAFC;
  --chip: #F2F6F9;
  --on-navy: #C9D6E2;

  /* Type */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-card: 0 24px 60px rgba(11, 29, 46, 0.12);

  --wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); }
a:hover { color: #065F75; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; color: var(--navy); }
h1 { font-weight: 800; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.05; }
h2 { font-weight: 800; font-size: clamp(30px, 3vw, 40px); }
h3 { font-weight: 800; font-size: 22px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-deep); }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: #fff; border: 1px solid #BFEAF5; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--cyan-deep);
}

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* Icons: stroke sprite symbols, sized by font-size */
.ic { width: 1.125em; height: 1.125em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--bold { stroke-width: 3; }
.ic--cyan { color: var(--cyan); }
.ic--cyan-deep { color: var(--cyan-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-md);
  font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink-cta); color: #fff; }
.btn-primary:hover { background: var(--pink-cta-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Utility bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.topbar__muted { color: var(--on-navy); }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.topbar__phone:hover { color: var(--cyan); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.nav__logo img { height: 56px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav__links a { color: var(--navy); text-decoration: none; }
.nav__links a:hover { color: var(--cyan-deep); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
.lang-toggle .ic { color: var(--cyan-deep); font-size: 15px; }
.lang-toggle:hover { border-color: var(--navy); background: var(--ground); }
.nav__toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; font-size: 20px;
}
.nav__toggle-close { display: none; }
.nav--open .nav__toggle-open { display: none; }
.nav--open .nav__toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cyan-tint); padding: 80px 0 88px; }
.hero__art { position: absolute; right: -40px; top: -30px; width: 560px; opacity: 0.07; pointer-events: none; }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__copy .lead { font-size: 19px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 600; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }

/* Quote form */
.quote {
  flex: 0 1 440px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.quote__head { display: flex; flex-direction: column; gap: 4px; }
.quote__title { font-size: 22px; }
.quote__sub { font-size: 14px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles legend { grid-column: 1 / -1; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 84px; padding: 12px 8px; border-radius: var(--r-md); border: 2px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s;
}
.tile .ic { font-size: 23px; color: var(--cyan-deep); }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tile:hover { border-color: #BFEAF5; }
.tile:has(input:checked) { border-color: var(--cyan); background: var(--cyan-tint); }
.tile:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid #CBD5DF;
  font-family: inherit; font-size: 15px; color: var(--navy); background: #fff;
}
.field input::placeholder { color: #8A97A3; }
.field input:focus { border-color: var(--cyan); }
.field input[aria-invalid="true"] { border-color: var(--pink-deep); }
.quote__status { display: none; font-size: 14px; font-weight: 600; text-align: center; }
.quote__status.is-visible { display: block; }
.quote__status.is-error { color: var(--pink-deep); }
.quote__status.is-success { color: var(--cyan-deep); }
.quote__fine { font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: center; }

/* ---------- Carriers & trust ---------- */
.proof { background: #fff; border-bottom: 1px solid var(--line); }
.proof__inner { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.carriers { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.carriers__label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.carriers__list { display: flex; flex-wrap: wrap; gap: 12px; }
.carriers__list li {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--ground);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
}
.trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; border-top: 1px solid var(--line-soft); padding-top: 24px; }
.trust li { flex: 1 1 220px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.trust__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm); background: var(--cyan-tint); color: var(--cyan-deep); font-size: 18px;
}
.trust__icon--pink { background: var(--pink-tint); color: var(--pink-deep); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.section__head--split { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--split > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section__aside { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 400px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--cyan-tint); color: var(--cyan-deep); font-size: 25px;
}
.card__icon--pink { background: var(--pink-tint); color: var(--pink-deep); }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--pink-tint); color: var(--pink-deep); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 48px; font-size: 14px; }
.chips__label { font-weight: 700; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--chip); font-weight: 600; }

/* How it works */
.how { background: var(--ground); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--pink-cta); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px;
}

/* Spanish band */
.espanol { background: var(--pink-tint); }
.espanol__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.espanol__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.espanol__copy .lead { max-width: 600px; line-height: 1.65; }
.points { flex: 0 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.points li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--pink-line); border-radius: 16px; font-size: 16px; font-weight: 600; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.faq__item { border-top: 3px solid var(--cyan); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.faq__item h3 { font-weight: 700; font-size: 19px; }
.faq__item p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--cyan); padding: 80px 0; }
.cta__art { position: absolute; right: -80px; bottom: -110px; width: 560px; opacity: 0.18; pointer-events: none; }
.cta__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta__inner > div:first-child { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta .lead { color: var(--navy); max-width: 560px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--on-navy); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 56px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__brand img { height: 56px; width: auto; align-self: flex-start; }
.footer__brand p { font-size: 15px; line-height: 1.65; max-width: 360px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 2px; }
.footer__col a { color: var(--on-navy); text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__contact p, .footer__contact a { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer__contact .ic { margin-top: 3px; }
.footer__contact p, .footer__contact a { white-space: nowrap; }
.footer__hours { display: flex; flex-direction: column; gap: 2px; }
.topbar__sep { margin: 0 6px; }
.footer__strong { color: #fff !important; font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav--open .nav__links { display: flex; }
  .nav__call { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__logo img { height: 46px; }
  .hero { padding: 48px 0 56px; }
  .hero__art { display: none; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .quote { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .cards, .steps, .faq__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
  .card { padding: 24px; }
  .quote { padding: 22px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1 1 200px; }
  .cta__art { display: none; }
  .topbar__inner { justify-content: center; text-align: center; }
}
