/* =====================================================================
   Ripple Public Adjusting — multi-page additions
   Loaded AFTER styles.css. Adds page heroes, photo layouts, service
   blocks, glossary and CTA bands used by the separate pages.
   ===================================================================== */
:root { --teal-ink: #17736d; } /* darker teal for small text on light backgrounds (AA contrast) */

.eyebrow { color: var(--teal-ink); }
.eyebrow-light { color: var(--teal-light); }
.about-copy .lead { color: var(--teal-ink); }
.primary-nav li a:hover, .primary-nav li a.active { color: var(--teal-ink); }
.primary-nav li a[aria-current="page"] { color: var(--navy); font-weight: 600; }
@media (min-width: 1000px) { .primary-nav li a[aria-current="page"]::after { transform: scaleX(1); } }

/* ---------- Home hero ---------- */
.hero-home .hero-inner { gap: 3rem; }
.hero-home h1 { max-width: 20ch; }
@media (min-width: 1000px) { .hero-home .hero-inner { grid-template-columns: 1.15fr 1fr; } }
.hero-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
@media (min-width: 1000px) { .hero-visual { justify-self: end; } }
.hero-photo { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.95); }
.hero-logo-card { position: absolute; left: -18px; bottom: -26px; background: #fff; border-radius: 22px; padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .9rem; max-width: 300px; }
.hero-logo-card img { width: 96px; height: auto; }
.hero-logo-card p { margin: 0; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.hero-logo-card strong { display: block; color: var(--navy); font-size: .95rem; }
@media (max-width: 560px) { .hero-logo-card { left: 10px; right: 10px; max-width: none; bottom: -30px; } .hero-logo-card img { width: 80px; } }
.hero-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.hero-brand .logo-badge { padding: 8px 10px; border-radius: 16px; }
.hero-brand .logo-badge img { height: 52px; width: auto; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(5rem, 9vw, 7rem); }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-hero .hero-sub { margin-bottom: 0; }
.page-hero .hero-ctas { margin: 1.75rem 0 0; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; color: rgba(255,255,255,.75); }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs a:hover { color: #fff; }

/* ---------- Intro split (home) ---------- */
.intro-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.intro-points li { display: flex; gap: .75rem; align-items: flex-start; color: #33465b; }
.intro-points svg { width: 22px; height: 22px; color: var(--teal); margin-top: .2rem; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover { color: var(--teal-ink); }
.text-link:hover::after { transform: translateX(4px); }
.photo-stack { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: end; }
.photo-stack img { width: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.photo-stack img:first-child { aspect-ratio: 3 / 4; }
.photo-stack img:last-child { aspect-ratio: 4 / 4.4; margin-bottom: 2.5rem; }

/* ---------- Damage snapshot (home) ---------- */
.snapshot { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .snapshot { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.snapshot-photo { position: relative; border-radius: 22px; overflow: hidden; min-height: 320px; box-shadow: var(--shadow); }
.snapshot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.snapshot-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; color: #fff; font-size: .92rem; background: linear-gradient(180deg, transparent, rgba(4,34,63,.85)); }
.snapshot-photos { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .snapshot-photos { grid-template-columns: 1fr 1fr; } }
.snapshot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.snapshot-list a { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; line-height: 1.3; }
.snapshot-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9dceb; }
.snapshot-list .icon-bubble { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--teal-light); flex-shrink: 0; }
.snapshot-list .icon-bubble svg { width: 22px; height: 22px; }
.snapshot-side { display: flex; flex-direction: column; gap: 1.25rem; }
.snapshot-side .claim-note { margin: 0; text-align: left; }

/* ---------- Services page ---------- */
.service-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 1rem; padding: 0; list-style: none; }
.service-nav a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .93rem; }
.service-nav a:hover { border-color: var(--teal); color: var(--teal-ink); }
.damage-block { display: grid; gap: 2rem; align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.damage-block:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .damage-block { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .damage-block:nth-of-type(even) .damage-media { order: 2; }
}
.damage-media { display: grid; grid-template-columns: 2fr 1fr; gap: .9rem; }
.damage-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-sm); }
.damage-media .main { grid-row: span 2; aspect-ratio: 4 / 5; }
.damage-media .thumb { aspect-ratio: 1 / 1; }
.damage-media.single { grid-template-columns: 1fr; }
.damage-media.single .main { aspect-ratio: 4 / 3; grid-row: auto; }
.damage-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); display: flex; align-items: center; gap: .8rem; }
.damage-copy h2 .icon-bubble { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--teal-light); }
.damage-copy p { color: #33465b; }
.damage-copy ul { padding-left: 1.2rem; color: #33465b; margin: 0 0 1rem; }
.damage-copy li { margin-bottom: .35rem; }
.damage-copy li::marker { color: var(--teal); }

.glossary { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 760px) { .glossary { grid-template-columns: repeat(2, 1fr); } }
.glossary div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.glossary dt { font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.glossary dd { margin: 0; color: #33465b; font-size: .98rem; }
.does-list { display: grid; gap: 1.25rem; counter-reset: does; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .does-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .does-list { grid-template-columns: repeat(3, 1fr); } }
.does-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.does-list h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.does-list p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Reviews ---------- */
.review-feature { max-width: 860px; margin: 0 auto 2rem; }
.review-feature blockquote { font-size: 1.12rem !important; }
.reviews-note { max-width: 46rem; margin: 2.5rem auto 0; text-align: center; color: var(--muted); font-size: .95rem; }
.home-reviews { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .home-reviews { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2.25rem, 5vw, 3.5rem); background: linear-gradient(150deg, var(--navy) 0%, #0b4d7a 70%, #0f6a85 100%); color: #fff; display: grid; gap: 1.75rem; align-items: center; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .hero-ctas { margin: 0; }
@media (min-width: 900px) { .cta-band .hero-ctas { justify-content: flex-end; } }
.cta-band .hero-ripples span { left: 88%; top: 50%; }

/* ---------- About page extras ---------- */
.fact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
@media (min-width: 640px) { .fact-list { grid-template-columns: 1fr 1fr; } }
.fact-list li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; }
.fact-list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.fact-list strong { color: var(--navy); }

/* ---------- Contact page ---------- */
.contact-page .contact { margin-top: 0; }
.next-steps { margin-top: 1.5rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.next-steps h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.next-steps ol { margin: 0; padding-left: 1.2rem; color: #33465b; font-size: .97rem; }
.next-steps li { margin-bottom: .35rem; }

/* Photo captions credit line */
.photo-credit { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 1.25rem; }

/* ---------- Fixes: let aspect-ratio win over width/height attributes ---------- */
.hero-photo, .photo-stack img, .damage-media img { height: auto; }
.damage-media .main { height: 100%; }
.snapshot-photo { margin: 0; min-height: 360px; }
@media (min-width: 900px) { .snapshot-photo { min-height: 420px; } }
.hero-photo { max-height: 640px; }
