/* Reusable components: cards, stats, steps, testimonials, CTA */

/* Scroll reveal (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card h3 { margin-bottom: 10px; }
.section-soft .card { border-color: transparent; }

/* Service cards */
.service-card { display: flex; flex-direction: column; gap: 6px; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-card p { flex: 1; margin-bottom: 14px; }
.icon-tile {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px;
  background: var(--gold-soft); border-radius: 18px;
}
.icon-tile img { width: 36px; height: 36px; }
.icon-tile.lg { width: 84px; height: 84px; border-radius: 24px; }
.icon-tile.lg img { width: 48px; height: 48px; }

/* Numbered cards */
.num { display: inline-block; font: 700 1rem/1 var(--font-head); color: var(--navy); background: var(--gold); border-radius: 999px; padding: 8px 12px; margin-bottom: 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--font-head); color: var(--gold); letter-spacing: -0.03em; }
.stat > span { display: block; margin-top: 8px; color: rgb(255 255 255 / 78%); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--gold); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 700 1.1rem/1 var(--font-head); }
.step h3 { margin-bottom: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Market pills */
.markets { display: flex; flex-wrap: wrap; gap: 12px; }
.markets li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; color: var(--white); font-weight: 500; }
.markets .icon { color: var(--gold); }
.markets.on-light li { border-color: var(--line); color: var(--navy); background: var(--white); }
.markets.on-light .icon { color: var(--navy); }

/* Testimonials: scroll-snap carousel, no library */
.testimonials { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 85%); gap: 24px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--navy) var(--line); }
.quote { scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; padding-top: 56px; }
.quote::before { content: "\201C"; position: absolute; top: 12px; left: 24px; font: 700 5rem/1 var(--font-head); color: var(--gold); }
.quote blockquote { color: var(--ink); font-size: 1.02rem; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { font-size: .9rem; }

/* Checklist */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist .icon { margin-top: 3px; padding: 3px; background: var(--gold); color: var(--navy); border-radius: 50%; width: 22px; height: 22px; stroke-width: 3; }

/* Detailed service rows */
.service-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row.is-flip { direction: rtl; }
.service-row.is-flip > * { direction: ltr; }
.service-row-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.service-row-head p { margin-bottom: 18px; font-size: 1.05rem; }
.service-row .checklist { padding: 32px; background: var(--soft); border-radius: var(--radius); }
@media (max-width: 860px) { .service-row, .service-row.is-flip { grid-template-columns: 1fr; gap: 24px; direction: ltr; } }

/* Contact cards */
.contact-card { text-align: left; }
.contact-card > .icon { color: var(--navy); margin-bottom: 16px; padding: 12px; width: 56px; height: 56px; background: var(--gold); border-radius: 16px; }
.contact-card p { margin-bottom: 14px; }
.contact-links { display: grid; gap: 4px; }
.contact-link, .contact-links a { font: 600 1.15rem/1.5 var(--font-head); color: var(--navy); word-break: break-word; }
.contact-link:hover, .contact-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* CTA band */
.cta-section { padding: clamp(48px, 7vw, 88px) 0; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; color: var(--navy);
  background: var(--gold) radial-gradient(circle at 100% 0, rgb(255 255 255 / 45%), transparent 55%);
}
.cta-band h2 { color: var(--navy); max-width: 560px; margin-bottom: 10px; }
.cta-band p { color: var(--navy); opacity: .85; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--navy); color: var(--white); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--navy-900); }
.cta-band .btn-ghost { border-color: var(--navy); color: var(--navy); }
.cta-band .btn-ghost:hover { background: rgb(51 51 101 / 10%); }
