/* =========================================================
   Raksha Friend — About Us page only (loaded by about.html)
   Uses tokens from styles.css; does not override shared components.
   ========================================================= */

.page-about { --ab-script: "Caveat", "Segoe Script", cursive; }

/* ---------- Hero ---------- */
.ab-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #d6e1ef;
  min-height: clamp(460px, 64vh, 620px); display: flex; align-items: center;
  padding-block: clamp(64px, 9vw, 110px); background: var(--navy-900);
}
.ab-hero__media { position: absolute; inset: 0; z-index: -2; }
.ab-hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%;
  clip-path: inset(0 0 0 100%); animation: abReveal 1.3s .15s var(--ease) forwards;
}
.ab-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,20,39,.97) 0%, rgba(11,31,58,.9) 36%, rgba(11,31,58,.55) 62%, rgba(4,120,87,.35) 100%),
    linear-gradient(0deg, rgba(7,20,39,.55), transparent 45%);
}
@media (max-width: 899px) {
  .ab-hero::before { background: linear-gradient(180deg, rgba(7,20,39,.78) 0%, rgba(11,31,58,.9) 55%, rgba(7,20,39,.97) 100%); }
}
.ab-hero__inner { position: relative; display: grid; gap: 32px; align-items: end; }
@media (min-width: 1000px) { .ab-hero__inner { grid-template-columns: 1fr auto; } }
.ab-hero__content > * { opacity: 0; transform: translateY(20px); animation: abRise .9s var(--ease) forwards; }
.ab-hero__content > :nth-child(2) { animation-delay: .1s; }
.ab-hero__content > :nth-child(3) { animation-delay: .2s; }
.ab-hero__content > :nth-child(4) { animation-delay: .32s; }
.ab-hero__content > :nth-child(5) { animation-delay: .44s; }
.ab-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.08; max-width: 17ch; margin-bottom: 20px; }
.ab-hero h1 span { color: var(--emerald-500); font-style: italic; }
.ab-hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: #c9d5e6; max-width: 580px; margin-bottom: 30px; }
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .ab-hero__actions .btn { flex: 1 1 100%; } }
.ab-hero a:focus-visible { outline-color: #fff; }
.ab-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald-500);
}
.ab-kicker::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: currentColor; animation: abLine .8s .5s var(--ease) forwards; }
@keyframes abLine { to { width: 28px; } }
.ab-kicker { position: relative; }
.ab-crumb ol { list-style: none; display: flex; gap: 8px; margin: 0 0 24px; padding: 0; font-size: .88rem; font-weight: 600; }
.ab-crumb li { display: inline-flex; gap: 8px; color: var(--emerald-500); }
.ab-crumb li + li::before { content: "/"; color: rgba(255,255,255,.4); }
.ab-crumb a { color: #c3d0e2; text-decoration: none; }
.ab-crumb a:hover { color: #fff; text-decoration: underline; }

.ab-script {
  display: none; margin: 0 0 8px; font-family: var(--ab-script); font-weight: 600; font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.05; color: #fff; transform: rotate(-7deg); text-shadow: 0 4px 24px rgba(0,0,0,.35);
  opacity: 0; animation: abFadeIn 1.2s .9s var(--ease) forwards; position: relative; padding-bottom: 18px;
}
.ab-script::after { content: ""; position: absolute; left: 20%; right: -6%; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); }
@media (min-width: 1000px) { .ab-script { display: block; } }

/* Floating leaves */
.ab-leaf { position: absolute; z-index: 0; color: var(--emerald-500); pointer-events: none; }
.ab-leaf--1 { width: 90px; height: 90px; left: -22px; top: 18%; opacity: .45; animation: abFloat 9s ease-in-out infinite; }
.ab-leaf--2 { width: 54px; height: 54px; left: 38%; bottom: 10%; opacity: .25; transform: rotate(40deg); animation: abFloat 11s ease-in-out -3s infinite; }
.ab-leaf--3 { width: 120px; height: 120px; right: -34px; bottom: -30px; opacity: .35; transform: rotate(160deg); animation: abFloat 12s ease-in-out -6s infinite; }
.ab-leaf--4 { width: 110px; height: 110px; right: -30px; top: -20px; opacity: .14; transform: rotate(200deg); animation: abFloat 12s ease-in-out infinite; }

@keyframes abRise { to { opacity: 1; transform: none; } }
@keyframes abFadeIn { to { opacity: 1; } }
@keyframes abReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes abFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- Story ---------- */
.ab-story { padding-block: clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #fff, var(--sky-50)); }
.ab-story__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .ab-story__grid { grid-template-columns: 1.05fr .95fr; } }
.ab-story__collage { position: relative; padding-bottom: 56px; }
.ab-story__main { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 19 / 14; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--navy-800), var(--emerald-700)); }
.ab-story__main img { width: 100%; height: 100%; object-fit: cover; }
.ab-story__minis { list-style: none; position: absolute; left: 6%; right: 6%; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ab-story__minis li {
  position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--emerald-700), var(--navy-800));
}
.ab-story__minis img { width: 100%; height: 100%; object-fit: cover; }
.ab-story__minis span {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: #fff; background: rgba(11,31,58,.82);
}
@media (min-width: 560px) { .ab-story__minis { left: auto; right: -12px; width: 64%; } }
.ab-story__text .title-lg { margin-bottom: 16px; }
.ab-story__text p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.ab-story__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ab-story__tags li { padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }

/* ---------- Founder ---------- */
.ab-founder { padding-block: clamp(56px, 7vw, 96px); }
.ab-founder__grid { display: grid; gap: clamp(32px, 4vw, 48px); align-items: center; }
@media (min-width: 760px) { .ab-founder__grid { grid-template-columns: minmax(260px, 380px) 1fr; } .ab-mv { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .ab-founder__grid { grid-template-columns: 340px 1fr 1fr; } .ab-mv { grid-column: auto; } }

.ab-portrait { position: relative; margin: 0 auto; width: 100%; max-width: 380px; padding: 0 0 22px 14px; }
.ab-portrait__frame {
  position: relative; z-index: 1; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #e9f1f7, #d3e6e4); box-shadow: 0 34px 60px -28px rgba(11,31,58,.55);
  border: 6px solid #fff;
}
.ab-portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ab-portrait__ring {
  position: absolute; z-index: 0; left: -2px; top: 16%; bottom: 8%; width: 70%;
  border-radius: 24px; background: linear-gradient(160deg, var(--emerald-500), var(--emerald-700));
  transform: translateX(-10px);
}
.ab-portrait__dots {
  position: absolute; z-index: 0; right: -16px; top: -16px; width: 110px; height: 110px;
  background-image: radial-gradient(var(--emerald-500) 1.6px, transparent 1.8px); background-size: 14px 14px; opacity: .45;
}
.ab-portrait__badge {
  position: absolute; z-index: 2; left: 0; bottom: 0; padding: 12px 20px 12px 18px; border-radius: 14px;
  font-family: var(--ab-script); font-size: 1.35rem; font-weight: 600; line-height: 1.05; color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); box-shadow: var(--shadow);
  border-left: 4px solid var(--emerald-500);
}
/* Photo reveal (triggered by .reveal → .is-visible from main.js) */
.js .ab-portrait .ab-portrait__frame { clip-path: inset(100% 0 0 0 round 24px); transition: clip-path 1.1s .1s var(--ease); }
.js .ab-portrait.is-visible .ab-portrait__frame { clip-path: inset(0 0 0 0 round 24px); }
.js .ab-portrait img { transform: scale(1.08); transition: transform 1.6s .1s var(--ease); }
.js .ab-portrait.is-visible img { transform: none; }

.ab-founder__text .title-lg { margin-bottom: 14px; }
.ab-founder__text p:not(.eyebrow) { color: var(--text); }
.ab-rule { display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--emerald-500); margin-bottom: 20px; }
.ab-signoff { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: .95rem; color: var(--navy-800); }
.ab-signoff strong { color: var(--emerald-700); }
.ab-signoff__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.ab-signoff__icon svg { width: 44px; height: 44px; }

.ab-mv { display: grid; gap: 18px; }
@media (min-width: 560px) and (max-width: 1199px) { .ab-mv { grid-template-columns: 1fr 1fr; } }
.ab-mv__card {
  position: relative; overflow: hidden; padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, #f3faf7, var(--emerald-50)); border: 1px solid var(--emerald-100);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ab-mv__card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(16,185,129,.08); }
.ab-mv__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ab-mv__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy-900); color: var(--emerald-500); margin-bottom: 14px; }
.ab-mv__icon svg { width: 26px; height: 26px; }
.ab-mv__card h3 { font-size: 1.2rem; }
.ab-mv__card p { margin: 0; color: var(--muted); }

.ab-quote {
  position: relative; margin: 22px 0 0; padding: 18px 20px 18px 56px; border-radius: 16px;
  background: var(--emerald-50); border-left: 4px solid var(--emerald-500);
  font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.45; color: var(--navy-900);
}
.ab-quote::before { content: "“"; position: absolute; left: 16px; top: 2px; font-size: 3.2rem; line-height: 1; color: var(--emerald-500); font-style: normal; }
.ab-quote p { margin: 0; color: var(--navy-900) !important; }

/* ---------- Services + Why ---------- */
.ab-services { padding-block: clamp(56px, 7vw, 96px); background: var(--sky-50); }
.ab-services__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 26px; }
.ab-services__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0; padding-left: 14px; border-left: 4px solid var(--emerald-500); }
.ab-services__head p { margin: 0; color: var(--muted); }
.ab-services__layout { display: grid; gap: 24px; }


.ab-svc-grid { list-style: none; display: grid; gap: 18px; }
@media (min-width: 640px) { .ab-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ab-svc-grid { grid-template-columns: repeat(4, 1fr); } }
.ab-svc {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ab-svc:hover, .ab-svc:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); }
.ab-svc__media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--emerald-700)); }
.ab-svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ab-svc:hover .ab-svc__media img { transform: scale(1.06); }
.ab-svc__icon {
  position: relative; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 18px; border-radius: 12px;
  display: grid; place-items: center; background: #fff; color: var(--emerald-600); box-shadow: var(--shadow);
}
.ab-svc__icon svg { width: 22px; height: 22px; }
.ab-svc__body { display: flex; flex-direction: column; flex: 1; padding: 12px 18px 20px; }
.ab-svc__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ab-svc__body p { font-size: .9rem; color: var(--muted); }
.ab-svc__insurers { list-style: none; display: grid; gap: 4px; margin-bottom: 14px; font-size: .86rem; color: var(--text); }
.ab-svc__insurers li { position: relative; padding-left: 14px; }
.ab-svc__insurers li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500); }
.ab-svc .link-arrow { margin-top: auto; font-size: .9rem; }

.ab-why {
  position: relative; overflow: hidden; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px 26px; min-height: 100%;
}
.ab-why__img { position: absolute; right: -40px; bottom: -30px; width: 170px; height: 220px; border-radius: 50% 50% 24px 24px; overflow: hidden; opacity: .9; }
.ab-why__img img { width: 100%; height: 100%; object-fit: cover; }
.ab-why__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.2) 60%); }
.ab-why__content { position: relative; z-index: 1; }
.ab-why h2 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; }
.ab-why__list { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .ab-why__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ab-why { padding: 30px 230px 30px 32px; } .ab-why__list { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.ab-why__list li { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; color: var(--muted); max-width: 250px; }
.ab-why__list li > span { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-50); color: var(--emerald-700); }
.ab-why__list svg { width: 19px; height: 19px; }
.ab-why__list strong { display: block; color: var(--navy-900); font-size: .95rem; }
@media (max-width: 999px) { .ab-why__img { width: 150px; height: 190px; } .ab-why__list li { max-width: 78%; } }
@media (min-width: 1000px) { .ab-why__list li { max-width: none; } .ab-why__img { width: 210px; height: 100%; bottom: 0; right: 0; border-radius: 0; } }
@media (max-width: 479px) { .ab-why__img { display: none; } .ab-why__list li { max-width: none; } }

.ab-disclaimer { margin: 22px 0 0; font-size: .8rem; color: var(--muted); max-width: 900px; }

/* ---------- Approach ---------- */
.ab-approach {
  position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 80px);
  background: linear-gradient(90deg, #f1f8f5, #fff 45%, #f1f8f5);
}
.ab-approach__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1100px) { .ab-approach__grid { grid-template-columns: 250px 1fr; } }
.ab-approach__intro h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 6px; }
.ab-approach__intro p { margin: 0; color: var(--muted); }
.ab-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .ab-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ab-steps { grid-template-columns: repeat(4, 1fr); gap: 34px; } }
.ab-step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
@media (min-width: 1000px) {
  .ab-step { background: transparent; border: 0; padding: 0; }
  .ab-step:not(:last-child)::after {
    content: ""; position: absolute; right: -26px; top: 17px; width: 16px; height: 16px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  }
}
.ab-step__icon { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-600); color: #fff; box-shadow: 0 0 0 6px var(--emerald-50); }
.ab-step__icon--navy { background: var(--navy-900); color: var(--emerald-500); }
.ab-step__icon { position: relative; }
.ab-step__icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--emerald-500); opacity: 0; }
.ab-step.is-visible .ab-step__icon::after { animation: abPulse 1.6s var(--ease) .3s 2; }
@keyframes abPulse { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
.ab-step__icon svg { width: 22px; height: 22px; }
.ab-step h3 { font-size: 1rem; margin: 4px 0 4px; }
.ab-step p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- CTA ---------- */
.ab-cta {
  position: relative; isolation: isolate; overflow: hidden; color: #c9d5e6; padding-block: clamp(56px, 7vw, 88px);
  background: var(--navy-900);
}
.ab-cta__bg { position: absolute; inset: 0; z-index: -2; }
.ab-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.ab-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 240px at 60% 120%, rgba(16,185,129,.4), transparent 70%),
    linear-gradient(90deg, rgba(7,20,39,.96) 0%, rgba(11,31,58,.9) 50%, rgba(4,120,87,.78) 100%);
}
.ab-leaf--5 { width: 100px; height: 100px; left: -26px; bottom: -24px; opacity: .3; transform: rotate(30deg); animation: abFloat 10s ease-in-out infinite; }
.ab-cta__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .ab-cta__inner { grid-template-columns: 1fr auto; } }
@media (min-width: 1200px) { .ab-cta__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 36px; } }
.ab-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.ab-cta__text p { max-width: 520px; }
.ab-cta__text p { margin: 0; }
.ab-cta__btn { min-height: 54px; padding-inline: 30px; font-size: 1.02rem; }
.ab-cta a:focus-visible { outline-color: #fff; }
.ab-cta__points { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 0; }
@media (max-width: 1199px) { .ab-cta__points { grid-column: 1 / -1; } }
.ab-cta__points li {
  flex: 1 1 150px; display: flex; align-items: center; gap: 10px; padding: 4px 14px; font-size: .86rem; color: #dbe5f3; line-height: 1.3;
  border-left: 1px solid rgba(255,255,255,.15);
}
.ab-cta__points svg { width: 30px; height: 30px; flex: none; color: #9fb0c6; }
@media (max-width: 559px) {
  .ab-cta__btn { width: 100%; }
  .ab-cta__points li { flex-basis: 100%; border-left: 0; padding-left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ab-hero__media img { animation: none; clip-path: none; }
  .ab-hero__content > *, .ab-script { animation: none; opacity: 1; transform: none; }
  .ab-script { transform: rotate(-7deg); }
  .ab-leaf { animation: none; }
  .ab-kicker::before { animation: none; width: 28px; }
  .ab-step.is-visible .ab-step__icon::after { animation: none; }
  .js .ab-portrait .ab-portrait__frame { clip-path: none; transition: none; }
  .js .ab-portrait img { transform: none; transition: none; }
  .ab-svc:hover, .ab-svc:focus-within, .ab-mv__card:hover { transform: none; }
}
