/* =====================================================================
   Inner pages redesign (Insurance, About, Contact, Quote) — photos + glass.
   Loaded after light.css.
   ===================================================================== */

/* ---------- Insurance: photo strip under the title ---------- */
.page-hero--ins { padding-bottom: clamp(40px, 6vw, 70px); }
.page-hero--ins::after { display: none; }
.ins-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(34px, 5vw, 56px); }
.ins-strip__card {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 26px;
  box-shadow: 0 30px 50px -28px rgba(22, 33, 63, .65);
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0));
  transition: transform .5s cubic-bezier(.34, 1.4, .5, 1), box-shadow .4s;
  animation: strip-in .9s calc(var(--i) * .09s + .2s) cubic-bezier(.2, .8, .2, 1) both;
}
.ins-strip__card:nth-child(1) { --tilt: -4deg; --lift: 18px; }
.ins-strip__card:nth-child(2) { --tilt: -2deg; --lift: 6px; }
.ins-strip__card:nth-child(4) { --tilt: 2deg; --lift: 6px; }
.ins-strip__card:nth-child(5) { --tilt: 4deg; --lift: 18px; }
@keyframes strip-in { from { opacity: 0; transform: translateY(60px) rotate(0deg) scale(.92); } }
.ins-strip__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(22, 33, 63, .85), rgba(22, 33, 63, .1) 55%, transparent);
}
.ins-strip__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ins-strip__card:hover { transform: rotate(0deg) translateY(-12px) scale(1.03); box-shadow: 0 40px 60px -26px rgba(22, 33, 63, .7); z-index: 2; }
.ins-strip__card:hover img { transform: scale(1.08); }
.ins-strip__label {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font-weight: 700; font-size: .92rem;
}
.ins-strip__label svg { width: 20px; height: 20px; }
.page-insurance .tabs__list { margin-top: 0; }

/* Photo banner at the top of each insurance panel */
.ins-detail__main { overflow: hidden; }
.ins-detail__photo { margin: calc(-1 * clamp(28px, 4vw, 44px)) calc(-1 * clamp(28px, 4vw, 44px)) 0; height: 260px; position: relative; }
.ins-detail__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: photo-settle 1.2s var(--ease) both; }
.ins-detail__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 55%); }
@keyframes photo-settle { from { transform: scale(1.14); filter: blur(6px); } to { transform: scale(1.04); filter: none; } }
.ins-detail__icon { position: relative; z-index: 1; margin-top: -40px; box-shadow: 0 14px 30px -12px rgba(22, 33, 63, .6); }

/* ---------- About: split hero with Darianna ---------- */
.about-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 60px); }
.about-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; margin-bottom: 22px; }
.about-hero__lead { font-size: 1.15rem; color: var(--text); max-width: 32em; }
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-hero__copy > * { animation: fade-up .9s var(--ease) both; }
.about-hero__copy > *:nth-child(2) { animation-delay: .1s; }
.about-hero__copy > *:nth-child(3) { animation-delay: .2s; }
.about-hero__copy > *:nth-child(4) { animation-delay: .3s; }

.about-hero__visual { position: relative; justify-self: center; width: min(100%, 420px); --mx: 0; --my: 0; }
.about-hero__ring {
  position: absolute; inset: -16px; border-radius: 260px 260px 44px 44px; padding: 3px;
  background: conic-gradient(from var(--angle, 0deg), #212f54, #6b9bdb, #c9daf3, #ffffff, #6b9bdb, #212f54);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 9s linear infinite;
}
.about-hero__photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 240px 240px 32px 32px;
  box-shadow: 0 40px 70px -30px rgba(22, 33, 63, .6);
  transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -8px)); transition: transform .3s ease-out;
  animation: reveal 1.3s .2s cubic-bezier(.7, 0, .2, 1) both;
}
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .72); border: 1px solid #fff; box-shadow: 0 18px 40px -20px rgba(22, 33, 63, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .84rem; font-weight: 700; color: var(--navy-700); white-space: nowrap;
  translate: calc(var(--mx) * 18px) calc(var(--my) * 12px); transition: translate .3s ease-out;
}
.about-chip svg { width: 18px; height: 18px; color: #4f86d6; }
.about-chip__stars { display: inline-flex; gap: 1px; color: #f5b83d; }
.about-chip__stars svg { width: 13px; height: 13px; color: inherit; }
.about-chip--a { top: 14%; left: -18%; animation: spring-in .9s 1s cubic-bezier(.34, 1.6, .5, 1) both, float 6s 2s ease-in-out infinite; }
.about-chip--b { top: 46%; right: -16%; animation: spring-in .9s 1.2s cubic-bezier(.34, 1.6, .5, 1) both, float 6s 2.4s ease-in-out infinite; }
.about-chip--c { bottom: 12%; left: -12%; animation: spring-in .9s 1.4s cubic-bezier(.34, 1.6, .5, 1) both, float 6s 2.8s ease-in-out infinite; }
.about-hero__sign {
  position: absolute; right: -6%; bottom: -34px; margin: 0; transform: rotate(-6deg);
  font-family: var(--font-hand); font-weight: 700; font-size: 2.6rem; color: var(--accent);
  animation: fade-up .9s 1.6s var(--ease) both;
}

/* Stats band */
.stats { padding: clamp(30px, 4vw, 50px) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  display: grid; gap: 4px; padding: 26px 24px; border-radius: 22px; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.stat strong { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span:not([data-count]) { color: var(--muted); font-weight: 600; font-size: .9rem; }
.stat strong span { background: inherit; -webkit-background-clip: text; background-clip: text; }

/* Story section uses the handshake photo */
.page-about .about__photo img { object-position: center; aspect-ratio: 4 / 4.4; }

/* ---------- Contact: Orlando photo hero ---------- */
.page-hero--photo {
  background:
    linear-gradient(180deg, rgba(22, 33, 63, .55), rgba(22, 33, 63, .78)),
    var(--photo) center 60% / cover;
  padding: clamp(80px, 10vw, 130px) 0 clamp(110px, 12vw, 150px);
}
.page-hero--photo::after { display: none; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo h1 em { background: var(--brand-grad-light); -webkit-background-clip: text; background-clip: text; }
.page-hero--photo .eyebrow { color: #c9daf3; }
.page-hero--photo .page-hero__lead { color: #dbe5f6; }
.page-contact .contact-cards { margin-top: clamp(-110px, -9vw, -80px); }
.page-contact .contact-card { background: rgba(255, 255, 255, .78); }
.office__map { position: relative; }
.office__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- Quote: photo card on the left ---------- */
.quote-page__intro--photo {
  position: relative; overflow: hidden; min-height: 600px; border-radius: 30px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(26px, 3.5vw, 40px);
  background:
    linear-gradient(0deg, rgba(22, 33, 63, .95) 18%, rgba(22, 33, 63, .45) 58%, rgba(22, 33, 63, .05)),
    url('/assets/img/photos/about-trust.jpg') 60% center / cover;
  box-shadow: 0 30px 60px -30px rgba(22, 33, 63, .6);
}
.quote-page__intro--photo h1 { color: #fff; }
.quote-page__intro--photo h1 em { background: var(--brand-grad-light); -webkit-background-clip: text; background-clip: text; }
.quote-page__intro--photo > p { color: #dbe5f6; }
.quote-page__intro--photo .quote-help {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); box-shadow: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.quote-page__intro--photo .quote-help strong { color: #fff; }
.quote-page__intro--photo .quote-help p { color: #dbe5f6; }
.quote-page__intro--photo .chip-link { background: rgba(255, 255, 255, .9); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about-chip--a { left: -6%; }
  .about-chip--b { right: -6%; }
  .about-chip--c { left: -4%; }
}
@media (max-width: 920px) {
  .ins-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); scrollbar-width: none; }
  .ins-strip::-webkit-scrollbar { display: none; }
  .ins-strip__card { flex: 0 0 44%; scroll-snap-align: center; --tilt: 0deg !important; --lift: 0 !important; }
  .about-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .about-hero__lead { margin-left: auto; margin-right: auto; }
  .about-hero__actions { justify-content: center; }
  .about-hero__visual { width: min(78%, 360px); margin-top: 10px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .quote-page__intro--photo { min-height: 420px; text-align: left; }
  .quote-page__intro--photo .quote-help { display: flex; }
}
@media (max-width: 640px) {
  .ins-strip__card { flex-basis: 62%; }
  .ins-detail__photo { height: 190px; }
  .about-chip { font-size: .74rem; padding: 8px 10px; }
  .about-hero__sign { font-size: 2rem; right: 0; }
}

/* ---------- Developer credit ---------- */
.footer__bottom { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; }
.footer__dev { opacity: .75; font-size: .8rem; }
.footer__dev strong { font-weight: 700; letter-spacing: .02em; }
