/* =====================================================================
   Site-wide v2 identity: deep navy + Florida sunset accents + handwriting.
   Loaded after styles.css and home.css.
   ===================================================================== */
:root { --sun-ink: #4f86d6; } /* darker coral for text on light backgrounds */

/* Accent words on light backgrounds */
h1 em, h2 em { color: var(--sun-ink); }
.eyebrow { color: var(--sun-ink); }
.eyebrow--light { color: var(--sun-2); }
.link-arrow { color: var(--sun-ink); }
.nav > a:not(.btn)::after { background: var(--sun); }
.scroll-progress { background: var(--sun-grad); }

/* ---------- Inner page heroes (Insurance, About, Contact) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #c9d3e8;
  background: radial-gradient(1000px 500px at 80% -20%, #2d4377, transparent 60%), var(--navy-900);
  padding: clamp(56px, 8vw, 100px) 0 clamp(56px, 7vw, 90px);
}
.page-hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 155, 219, .35), rgba(201, 218, 243, .1) 45%, transparent 70%);
  animation: glow 9s ease-in-out infinite;
}
.page-hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(420px, 60%); height: 3px; transform: translateX(-50%);
  background: var(--sun-grad); border-radius: 3px 3px 0 0;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--sun-2); }
.page-hero h1 { color: var(--white); }
.page-hero h1 em {
  background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero__lead { color: #b9c5de; }
.page-hero .split-word { transition-duration: .6s; }

/* ---------- Insurance page ---------- */
.tabs__list { background: var(--white); box-shadow: var(--shadow); margin-top: -64px; position: relative; z-index: 2; }
.tabs__tab[aria-selected="true"] { background: var(--sun-grad); color: #16213f; box-shadow: 0 10px 22px -10px rgba(107, 155, 219, .9); }
.tabs__tab svg { color: inherit; }
.ins-detail__main { position: relative; overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.ins-detail__main::after {
  content: ""; position: absolute; top: -80px; right: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 155, 219, .14), transparent 70%); pointer-events: none;
}
.ins-detail__icon { background: var(--sun-grad); color: #16213f; }
.checklist svg { background: #e8f0fb; color: var(--sun-ink); }
.ins-detail__side { background: linear-gradient(165deg, var(--navy-700), var(--navy-900)); border: 0; color: #c9d3e8; box-shadow: var(--shadow); }
.ins-detail__side h3 { color: var(--white); font-family: var(--font-hand); font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.ins-detail__side .pill-list li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #e6ecf8; }
.ins-detail__side .btn--primary { background: var(--sun-grad); color: #16213f; box-shadow: 0 12px 26px -10px rgba(107, 155, 219, .8); }
.ins-detail__side .btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); }
.ins-detail__side .btn--outline:hover { border-color: var(--white); }

/* FAQ accents */
.faq__item[open] { border-color: #c9daf3; }
.faq__item[open] .faq__icon { background: var(--sun-grad); color: #16213f; }

/* ---------- About page ---------- */
.page-about .about__photo::before { background: var(--sun-grad); opacity: .55; }
.about__badge { background: var(--sun-grad); color: #16213f; }
.about__badge strong { color: #16213f; }
.about__sign { font-family: var(--font-hand); font-style: normal; font-weight: 700; font-size: 2.6rem; color: var(--sun-ink); line-height: 1; }
.about__lead::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--sun-ink);
}
.value { position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--sun-grad); }
.value .feature__icon, .feature__icon { background: linear-gradient(135deg, #e8f0fb, var(--blue-100)); color: var(--navy-700); }
.big-quote svg { color: var(--sun); opacity: .5; }
.big-quote p { color: var(--navy-700); }

/* ---------- Contact page ---------- */
.contact-cards { margin-top: -64px; position: relative; z-index: 2; }
.contact-card { box-shadow: var(--shadow); border-color: transparent; }
.contact-card:hover { border-color: #c9daf3; }
.contact-card__icon { background: linear-gradient(135deg, #e8f0fb, var(--blue-100)); }
.contact-card:hover .contact-card__icon { background: var(--sun-grad); color: #16213f; }
.contact-card--whatsapp:hover .contact-card__icon { background: var(--wa); color: #fff; }
.contact-card__value { color: var(--sun-ink); }
.office { background: linear-gradient(165deg, var(--navy-700), var(--navy-900)); border: 0; color: #c9d3e8; box-shadow: var(--shadow-lg); }
.office h2 { color: var(--white); }
.office__address { color: var(--white); }
.office__address svg { color: var(--sun-2); }
.office .btn--primary { background: var(--sun-grad); color: #16213f; }
.office .btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); }

/* ---------- Quote page ---------- */
.quote-page {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 460px, var(--sand-50) 460px),
    radial-gradient(900px 420px at 85% -10%, #2d4377, transparent 60%),
    var(--navy-900);
}
.quote-page::before {
  content: ""; position: absolute; width: 560px; height: 560px; left: -200px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 155, 219, .3), transparent 70%); animation: glow 9s ease-in-out infinite;
}
.quote-page__inner { position: relative; }
.quote-page__intro h1 { color: var(--white); }
.quote-page__intro h1 em { background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote-page__intro > p { color: #b9c5de; }
.wizard__bar { background: var(--sun-grad); }
.type-option__check { background: var(--sun-grad); color: #16213f; }
.type-option input:checked + .type-option__box .type-option__icon { background: var(--sun-grad); color: #16213f; }
.type-option input:checked + .type-option__box { border-color: var(--sun); background: #f5f8fd; box-shadow: 0 0 0 4px rgba(107, 155, 219, .18); }
.chip input:checked + span { background: var(--navy-700); }
.wizard [data-submit] { background: var(--sun-grad); color: #16213f; box-shadow: 0 12px 26px -10px rgba(107, 155, 219, .8); }
.wizard__done-icon { background: var(--sun-grad); color: #16213f; }

/* ---------- Shared bits ---------- */
.review__avatar { background: var(--sun-grad); color: #16213f; }
.slider__dots button[aria-selected="true"] { background: var(--sun); }
.footer { border-top: 3px solid; border-image: var(--sun-grad) 1; }
.footer__title { color: var(--sun-2); }
.to-top:hover { background: var(--sun-grad); color: #16213f; border-color: transparent; }

@media (max-width: 920px) {
  .quote-page { background: linear-gradient(180deg, transparent 0 300px, var(--sand-50) 300px), var(--navy-900); }
  .quote-page__intro { padding-bottom: 12px; }
}
@media (max-width: 640px) {
  .tabs__list { margin-top: -48px; }
  .contact-cards { margin-top: -40px; }
}

/* ---------- Living logo ---------- */
.brand__text { position: relative; }
.brand__icon { overflow: visible; }
.logo__head, .logo__body, .logo__shield, .logo__shield-fill, .logo__check { transform-box: fill-box; transform-origin: 50% 50%; }
.logo__shield-fill { fill: #6b9bdb; fill-opacity: 0; transition: fill-opacity .35s, transform .45s cubic-bezier(.34, 1.56, .5, 1); }
.logo__shield { stroke-dasharray: 1; stroke-dashoffset: 0; transition: transform .45s cubic-bezier(.34, 1.56, .5, 1), stroke .3s; }
.logo__check { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s .12s var(--ease); }
.brand__arc {
  position: absolute; left: -3px; top: -9px; width: 34px; height: 10px; overflow: visible; pointer-events: none;
}
.brand__arc path { fill: none; stroke: var(--blue-400); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .3s; }
.brand--footer .brand__arc { display: none; }

/* Hover: shield fills with sunset, check appears, head nods, name shimmers */
.brand--live:hover .logo__shield-fill { fill-opacity: 1; transform: rotate(-8deg) scale(1.06); }
.brand--live:hover .logo__shield { transform: rotate(-8deg) scale(1.06); stroke: #6b9bdb; }
.brand--live:hover .logo__check { stroke-dashoffset: 0; }
.brand--live:hover .logo__head { animation: nod .7s ease-in-out; }
.brand--live:hover .logo__body { animation: breathe .7s ease-in-out; }
.brand--live:hover .brand__name {
  background-image: linear-gradient(100deg, var(--navy-700) 0 38%, #c9daf3 46%, #6b9bdb 52%, var(--blue-400) 62% 100%);
  background-size: 260% 100%; animation: shimmer .9s ease-out;
}
.brand--live:hover .brand__arc path { stroke: #6b9bdb; }
.brand--live:hover .brand__sub { letter-spacing: .38em; }
.brand__sub { transition: letter-spacing .4s var(--ease); }
@keyframes nod { 30% { transform: translateY(-3px) rotate(-10deg); } 60% { transform: translateY(1px) rotate(6deg); } }
@keyframes breathe { 40% { transform: scaleY(1.05); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Intro: plays once per visit (inline script adds .logo-intro to <html>) */
.logo-intro .brand--live .logo__head { animation: logo-drop .9s .1s cubic-bezier(.34, 1.7, .5, 1) both; }
.logo-intro .brand--live .logo__body { animation: logo-rise .6s .05s var(--ease) both; }
.logo-intro .brand--live .logo__shield { animation: logo-draw 1s .35s var(--ease) both; }
.logo-intro .brand--live .logo__shield-fill { animation: logo-flash .9s 1.3s ease-in-out; }
.logo-intro .brand--live .logo__check { animation: logo-check 1.1s 1.25s var(--ease); }
.logo-intro .brand--live .brand__name { animation: logo-reveal .9s .3s cubic-bezier(.7, 0, .2, 1) both; }
.logo-intro .brand--live .brand__sub { animation: logo-spread 1s .55s var(--ease) both; }
.logo-intro .brand--live .brand__arc path { animation: logo-draw .8s 1s var(--ease) both; }
@keyframes logo-drop { from { transform: translateY(-22px); opacity: 0; } }
@keyframes logo-rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes logo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes logo-flash { 50% { fill-opacity: 1; } }
@keyframes logo-check { 0% { stroke-dashoffset: 1; } 40%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes logo-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes logo-spread { from { letter-spacing: 1em; opacity: 0; } }
