/* OnlyPaw web — modern, clean, fast. No build step.
   Brand palette: primary indigo, warm cream surface, slate ink. */

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-bg: #EEF2FF;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --surface: #FFFFFF;
  --cream: #FAF8F4;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--ink); background: var(--cream); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--ink); }
.paw { font-size: 22px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.cta-sm { background: var(--primary); color: white !important; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.cta-sm:hover { background: var(--primary-dark); color: white !important; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse at top, rgba(99,102,241,0.12), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(99,102,241,0.08), transparent 50%),
              var(--cream);
  padding: 80px 40px 100px;
}
.hero-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; background: var(--primary-bg); color: var(--primary);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; line-height: 1.1;
  margin: 0 0 20px; letter-spacing: -0.02em;
}
.lede {
  font-size: 19px; color: var(--ink-soft); max-width: 660px; margin: 0 auto 36px;
}
.cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px;
}
.cta-primary, .cta-secondary {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s;
}
.cta-primary {
  background: var(--ink); color: white !important; box-shadow: var(--shadow);
}
.cta-primary:hover { background: #1e293b; color: white !important; transform: translateY(-1px); }
.cta-secondary {
  background: white; color: var(--ink) !important; border: 1px solid var(--border);
}
.cta-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
/* Official App Store / Google Play badges (artwork in /assets/badges/, T19) */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { display: block; height: 48px; width: auto; }

.trust-row {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}

/* ── Services grid ──────────────────────────────────────── */
.services { padding: 80px 40px; max-width: 1180px; margin: 0 auto; }
.services h2, .how h2, .provider-cta h2, .legal h2, .blog-index h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; text-align: center; margin: 0 0 48px;
  letter-spacing: -0.02em;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ── How it works ───────────────────────────────────────── */
.how { padding: 80px 40px; background: white; }
.steps {
  max-width: 920px; margin: 0 auto; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: white; font-weight: 800;
  margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ── Provider CTA ───────────────────────────────────────── */
.provider-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 40px; color: white; text-align: center;
}
.provider-cta-inner { max-width: 720px; margin: 0 auto; }
.provider-cta h2 { color: white; }
.provider-cta p { font-size: 18px; opacity: 0.95; margin: 0 0 32px; }
.provider-cta .cta-primary {
  background: white; color: var(--primary) !important;
}
.provider-cta .cta-primary:hover { background: #f1f5f9; color: var(--primary) !important; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: #cbd5e1; padding: 60px 40px 30px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer .brand { color: white; margin-bottom: 8px; }
.footer h4 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.footer a { display: block; color: #cbd5e1; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: white; }
.small { color: #94a3b8; font-size: 13px; margin: 0; }
.copyright {
  border-top: 1px solid #1e293b; padding-top: 24px; margin: 40px 0 0;
  text-align: center; color: #64748b; font-size: 13px;
}
.company-note { text-align: center; color: #64748b; font-size: 12px; margin: 6px 0 0; }

/* ── Legal & long-form pages ────────────────────────────── */
.legal {
  max-width: 820px; margin: 0 auto; padding: 60px 40px;
  background: white; box-shadow: var(--shadow); border-radius: var(--radius-lg);
  margin-top: 40px; margin-bottom: 60px;
}
.legal h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; text-align: left; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal ul, .legal ol { color: var(--ink-soft); font-size: 16px; }
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }

/* ── Blog ───────────────────────────────────────────────── */
.blog-index { max-width: 1180px; margin: 60px auto; padding: 0 40px; }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.blog-filters a {
  padding: 8px 16px; border-radius: 999px; background: white; border: 1px solid var(--border);
  color: var(--ink-soft); font-size: 13px; font-weight: 600;
}
.blog-filters a:hover { background: var(--primary-bg); color: var(--primary); border-color: var(--primary); }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.blog-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: transform .15s, box-shadow .15s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card .tag {
  display: inline-block; background: var(--primary-bg); color: var(--primary);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.blog-card h3 { font-size: 18px; margin: 12px 0 8px; line-height: 1.3; color: var(--ink); }
.blog-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.blog-card .meta { color: var(--muted); font-size: 12px; margin-top: 12px; }

.post {
  max-width: 720px; margin: 60px auto; padding: 0 40px;
}
.post h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.post .meta { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.post p, .post ul, .post ol { font-size: 17px; color: var(--ink-soft); }
.post h2 { font-size: 24px; margin: 36px 0 12px; }
.post h3 { font-size: 19px; margin: 24px 0 8px; }
.post img { max-width: 100%; border-radius: var(--radius); margin: 24px 0; }

/* ── RTL for Arabic posts ───────────────────────────────── */
html[dir="rtl"] body { font-family: 'Tajawal', 'Inter', sans-serif; }
html[dir="rtl"] .nav { direction: rtl; }
html[dir="rtl"] .legal h2, html[dir="rtl"] .legal h3 { text-align: right; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .topbar { padding: 14px 20px; }
  .nav { gap: 12px; }
  .nav a:not(.cta-sm) { display: none; }
  .hero { padding: 50px 20px 70px; }
  .services, .how, .provider-cta, .legal, .blog-index, .post { padding-left: 20px; padding-right: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ── Hero polish ────────────────────────────────────────── */
.hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--primary);
}
.hero h1 .hl::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 4px; height: 14px;
  background: var(--primary-bg); z-index: -1; border-radius: 4px;
  transform: rotate(-1deg);
}
.section-sub {
  text-align: center; color: var(--ink-soft); margin: -32px auto 40px;
  max-width: 560px; font-size: 17px;
}

/* ── Stats row ──────────────────────────────────────────── */
.stat-row {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin: 0 0 24px; padding: 24px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Card link ──────────────────────────────────────────── */
.card-link {
  display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700;
  color: var(--primary);
}
.card-link:hover { color: var(--primary-dark); }

/* ── Testimonials ───────────────────────────────────────── */
.testimonials { padding: 80px 40px; background: var(--surface); }
.testimonials h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; text-align: center;
  margin: 0 0 48px; letter-spacing: -0.02em;
}
.testimonial-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.testimonial-grid blockquote {
  margin: 0; background: var(--cream); border-radius: var(--radius-lg);
  padding: 28px; border-left: 4px solid var(--primary);
}
.testimonial-grid p {
  margin: 0 0 16px; font-style: italic; color: var(--ink); font-size: 16px; line-height: 1.65;
}
.testimonial-grid cite {
  font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  max-width: 820px; margin: 60px auto; padding: 0 40px;
}
.faq h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; text-align: center;
  margin: 0 0 40px; letter-spacing: -0.02em;
}
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; padding: 18px 24px; transition: box-shadow 0.15s;
}
.faq details:hover { box-shadow: var(--shadow); }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--primary); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16px; color: var(--ink);
  list-style: none; outline: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after {
  content: '+'; font-size: 22px; color: var(--primary); font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7;
}

/* ── Card hover lift ────────────────────────────────────── */
.card { cursor: pointer; }
.card:hover h3 { color: var(--primary); }

/* ── Accessibility: focus rings ─────────────────────────── */
:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px;
}

/* ── Smooth scroll polish ───────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .card, .cta-primary, .cta-secondary, .blog-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
}

/* ── Print styles for legal pages ───────────────────────── */
@media print {
  .topbar, .footer, .provider-cta { display: none; }
  body { background: white; color: black; }
  .legal { box-shadow: none; border: none; }
}

/* ═══════════════════════════════════════════════════════════
   UI polish — SEO/UX v2 additions (July 2026)
   Additive only — nothing above this line is changed.
   ═══════════════════════════════════════════════════════════ */

/* Smoother card hover: lift + shadow, no color flash */
.card {
  transition: transform 0.22s cubic-bezier(.16,.84,.44,1), box-shadow 0.22s;
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15,23,42,.10), 0 3px 8px rgba(15,23,42,.06);
}
.card .card-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-weight: 700; font-size: 14px;
  margin-top: 12px; transition: gap 0.2s;
}
.card:hover .card-link { gap: 8px; }

/* Testimonial cards: subtle border-left accent + hover */
.testimonials blockquote {
  border-left: 3px solid var(--primary);
  transition: border-color 0.2s, transform 0.2s;
}
.testimonials blockquote:hover {
  border-left-color: var(--primary-dark);
  transform: translateX(2px);
}
.testimonials blockquote::before {
  content: '★★★★★';
  display: block;
  color: #F59E0B;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* Trust bar — new pill row under hero CTAs */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 40px;
}
.trust-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: white;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.trust-item .trust-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary-bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.trust-item h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); font-weight: 700; }
.trust-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Hero stat numbers: tabular alignment, gradient shine */
.stat-num {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* CTA buttons: subtle glow on primary */
.cta-primary {
  box-shadow: 0 6px 20px rgba(15,23,42,.15), 0 1px 3px rgba(15,23,42,.10);
}
.cta-primary:hover {
  box-shadow: 0 10px 30px rgba(15,23,42,.22), 0 2px 6px rgba(15,23,42,.12);
}

/* Blog cards: tag pill sharpen, image-caliber shadow */
.blog-card {
  transition: transform 0.22s, box-shadow 0.22s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
}
.blog-card .tag {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: inline-block;
}

/* FAQ: expand animation smoother */
.faq details {
  transition: background 0.2s;
}
.faq details[open] {
  background: rgba(99,102,241,0.03);
  border-radius: var(--radius);
  padding: 4px 16px;
  margin-left: -16px; margin-right: -16px;
}

/* Section heading polish */
section h2 {
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Provider CTA — richer gradient */
.provider-cta {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}
.provider-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(99,102,241,0.15), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(139,92,246,0.12), transparent 50%);
  pointer-events: none;
}

/* Newsletter footer band */
.newsletter-band {
  background: var(--primary);
  color: white;
  padding: 40px 24px;
  text-align: center;
}
.newsletter-band h3 {
  color: white; margin: 0 0 8px;
  font-size: 22px; font-weight: 800;
}
.newsletter-band p {
  color: rgba(255,255,255,0.9);
  margin: 0 0 20px; font-size: 14px;
}
.newsletter-form {
  display: inline-flex; gap: 8px; max-width: 480px; width: 100%;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1; min-width: 200px;
  padding: 12px 16px; border-radius: 999px;
  border: none; font-size: 14px; outline: none;
}
.newsletter-form button {
  background: var(--ink); color: white;
  border: none; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: black; }

/* Rating strip — social proof under hero */
.rating-strip {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px;
  margin-top: 20px;
  font-size: 13px; color: var(--ink-soft);
}
.rating-strip .stars { color: #F59E0B; letter-spacing: 1px; }
.rating-strip strong { color: var(--ink); }

/* Mobile refinements */
@media (max-width: 640px) {
  .trust-strip { padding: 0 20px; margin-top: 40px; }
  .newsletter-band { padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   RTL support for Arabic (and future RTL languages)
   ═══════════════════════════════════════════════════════════ */
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .brand { flex-direction: row-reverse; }
[dir="rtl"] .cta-row { flex-direction: row-reverse; }
[dir="rtl"] .trust-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .trust-item div { text-align: right; }
[dir="rtl"] .card { text-align: right; }
[dir="rtl"] .steps li { text-align: right; }
[dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .card-link::after {
  content: '';
}
[dir="rtl"] .card-link {
  display: inline-flex;
  transform: scaleX(-1);
}
[dir="rtl"] .card-link {
  transform: none;
}
[dir="rtl"] blockquote {
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-right: 20px;
  padding-left: 0;
}
[dir="rtl"] .testimonials blockquote:hover { transform: translateX(-2px); }
[dir="rtl"] .stat-row { flex-direction: row-reverse; }

/* Language selector polish */
.nav select {
  appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23334155' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ═══════════════════════════════════════════════════════════
   +300% UI upgrade — hero art, spotlight, animated counters,
   sticky mobile CTA, dark mode, custom SVG paw prints, and
   depth-rich shadows. Purely additive.
   ═══════════════════════════════════════════════════════════ */

/* Hero: layered background pattern + depth */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(99,102,241,0.06) 0%, transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(139,92,246,0.05) 0%, transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(245,158,11,0.04) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

/* Floating paw decorations for hero */
.hero::after {
  content: '🐾';
  position: absolute;
  top: 15%; right: 8%;
  font-size: 40px;
  opacity: 0.15;
  transform: rotate(-15deg);
  animation: floaty 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50% { transform: rotate(-10deg) translateY(-8px); }
}

/* Hero H1 refined typography */
.hero h1 {
  font-weight: 900;
  letter-spacing: -0.035em;
}
.hero h1 .hl {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 2px;
}

/* Stat animated pop-in */
.stat {
  animation: statIn 0.6s cubic-bezier(.16,.84,.44,1) both;
}
.stat:nth-child(1) { animation-delay: 0.1s; }
.stat:nth-child(2) { animation-delay: 0.2s; }
.stat:nth-child(3) { animation-delay: 0.3s; }
.stat:nth-child(4) { animation-delay: 0.4s; }
@keyframes statIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trust cards: bolder, more visual depth */
.trust-item {
  padding: 24px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F4 100%);
  border: 1px solid rgba(99,102,241,0.08);
  transition: transform 0.28s cubic-bezier(.16,.84,.44,1), box-shadow 0.28s;
}
.trust-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 40px rgba(99,102,241,0.14), 0 3px 8px rgba(15,23,42,.08);
  border-color: rgba(99,102,241,0.2);
}
.trust-icon {
  width: 48px !important; height: 48px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important;
  font-size: 26px !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}

/* Service cards richer */
.card {
  border-radius: 18px !important;
  padding: 28px !important;
  border: 1px solid rgba(226,232,240,0.6);
  background: white;
}
.card .icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #EEF2FF 0%, #FDF4FF 100%);
  font-size: 30px;
  margin-bottom: 16px;
  transition: transform 0.28s;
}
.card:hover .icon {
  transform: rotate(-6deg) scale(1.08);
}
.card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

/* Provider spotlight — new section */
.spotlight {
  padding: 80px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.02) 50%, transparent 100%);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto 0;
}
.provider-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.28s, box-shadow 0.28s;
}
.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15,23,42,.08);
}
.provider-avatar {
  width: 88px; height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF2FF 0%, #FDF4FF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(99,102,241,0.18);
}
.provider-name {
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--ink);
}
.provider-service {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.provider-badges {
  display: flex; gap: 6px; justify-content: center;
  margin: 12px 0 8px; flex-wrap: wrap;
}
.provider-badge {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.provider-quote {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
  font-style: italic;
  line-height: 1.5;
}
.provider-rating {
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* Testimonial with SVG face */
.testimonials blockquote {
  background: white;
  border-radius: 20px !important;
  padding: 32px 28px !important;
  border-left: none !important;
  border: 1px solid var(--border) !important;
  position: relative;
}
.testimonials blockquote::before {
  content: '★★★★★';
  display: block;
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.testimonials blockquote p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.testimonials cite {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.testimonials cite::before {
  content: '';
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  display: inline-block;
  flex-shrink: 0;
  background-image:
    radial-gradient(circle at 30% 40%, white 3px, transparent 4px),
    radial-gradient(circle at 70% 40%, white 3px, transparent 4px),
    radial-gradient(ellipse 8px 4px at 50% 65%, white, transparent 6px),
    linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
}

/* Sticky mobile bottom CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(15,23,42,.06);
}
.sticky-mobile-cta a {
  display: block;
  text-align: center;
  background: var(--ink);
  color: white !important;
  padding: 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(15,23,42,.15);
}
@media (max-width: 720px) {
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* Press mentions strip */
.press-strip {
  padding: 32px 24px;
  background: rgba(15,23,42,0.02);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.press-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
}
.press-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  opacity: 0.7;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}

/* Section h2 with paw accent */
section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 0;
}
section > h2::before {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #8B5CF6 100%);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.testimonials h2, .faq h2, .services h2, .how h2, .spotlight h2 {
  text-align: center;
}


/* Improved footer with gradient top */
.footer {
  position: relative;
  padding-top: 60px !important;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #8B5CF6 50%, #F59E0B 100%);
}

/* Subtle scroll-triggered reveal (CSS-only via animation-timeline where supported) */
@supports (animation-timeline: view()) {
  .card, .trust-item, .provider-card, .testimonials blockquote {
    animation: fadeInUp 0.8s both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ═══════════════════════════════════════════════════════════
   Website spec, Oct 2026 (T01, T02, T13, T14, T18, T20, T21).
   Existing colours and type scale only. Additive.
   ═══════════════════════════════════════════════════════════ */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header: menu button (shown on phones), language picker, one-line CTA */
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex-shrink: 0; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.cta-sm { white-space: nowrap; }
.nav .lang-select { padding: 6px 26px 6px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; background-color: white; color: var(--ink-soft); cursor: pointer; font-family: inherit; }
@media (max-width: 1100px) and (min-width: 761px) {
  .topbar { padding-left: 24px; padding-right: 24px; }
  .nav { gap: 14px; }
}
@media (max-width: 760px) {
  .topbar { padding: 8px 16px; }
  .menu-toggle { display: block; margin-inline-start: auto; }
  .nav, [dir="rtl"] .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 16px 16px; z-index: 50;
    box-shadow: 0 12px 24px rgba(15,23,42,.08); max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .nav.open, [dir="rtl"] .nav.open { display: flex; }
  .nav a, .nav a:not(.cta-sm), .nav select { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
  .nav a:not(.cta-sm) { border-bottom: 1px solid var(--border); }
  .nav .lang-select { order: 10; margin-top: 12px; width: 100%; font-size: 16px; }
  .nav .cta-sm { order: 11; margin-top: 12px; justify-content: center; }
}

/* Breadcrumbs (T13) */
.crumbs { max-width: 1180px; margin: 0 auto; padding: 12px 40px 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.crumbs .sep { margin: 0 4px; }
.post .crumbs, .crumbs + .post { margin-top: 24px; }

/* Photos (T02): layout is reserved by width/height + aspect-ratio, so no shift */
.hero-photo, .post-photo { margin: 28px 0 0; }
.hero-photo img, .post-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 0; }
@media (min-width: 900px) {
  .hero.has-photo .hero-inner { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 48px; align-items: center; text-align: left; }
  .hero.has-photo .hero-inner > * { grid-column: 1; }
  .hero.has-photo .hero-photo { grid-column: 2; grid-row: 1 / span 12; margin: 0; }
  .hero.has-photo .eyebrow { justify-self: start; }
  .hero.has-photo .lede { margin-left: 0; }
  .hero.has-photo .cta-row, .hero.has-photo .trust-row, .hero.has-photo .stat-row { justify-content: flex-start; }
  .hero.has-photo .hero-search { margin-left: 0; }
  [dir="rtl"] .hero.has-photo .hero-inner { text-align: right; }
}
.card.has-photo { padding: 0 !important; overflow: hidden; }
.card.has-photo .card-photo { display: block; }
.card.has-photo .card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card.has-photo .icon { display: none; }
.card.has-photo h3, .card.has-photo p, .card.has-photo .card-link { margin-left: 24px; margin-right: 24px; }
.card.has-photo h3 { margin-top: 18px; }
.card.has-photo .card-link { margin-bottom: 20px; }

/* Count-aware grids (T20): 4 columns for 4/8 items, 3 for 3/6/9 */
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1100px; }
@media (max-width: 1000px) {
  .grid.cols-4, .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .steps:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; }
  .grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.card.card-sm { padding: 18px 20px !important; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; }
.card.card-sm h3 { font-size: 16px; margin: 0; }
.card.card-sm .card-link { margin: 0; }
.sub-h { font-size: 20px; text-align: center; margin: 40px 0 16px; }

/* Homepage: London / USA lead, "More cities" chips (T04) */
.lead-cities { padding-top: 56px; padding-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border-radius: 999px; background: var(--primary-bg); color: var(--primary); font-size: 14px; font-weight: 600; }
.chip:hover { background: var(--primary); color: white; }
.more-cities { padding-top: 56px; padding-bottom: 56px; }

/* Hero search (T18) */
.hero-search { display: flex; gap: 8px; max-width: 680px; margin: 0 auto 28px; background: white; padding: 8px; border-radius: 999px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-search select, .hero-search input { min-height: 48px; border: 0; background-color: transparent; font-size: 16px; color: var(--ink); padding: 0 14px; font-family: inherit; }
.hero-search select { flex: 0 0 auto; max-width: 40%; border-inline-end: 1px solid var(--border); cursor: pointer; }
.hero-search input { flex: 1 1 auto; min-width: 0; outline: none; }
.hero-search button { flex: 0 0 auto; border: 0; cursor: pointer; min-height: 48px; padding: 0 24px; font-family: inherit; }
.search-note { max-width: 720px; margin: 24px auto 0; padding: 14px 18px; background: white; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--ink-soft); }
@media (max-width: 640px) {
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); padding: 10px; }
  .hero-search select, .hero-search input { width: 100%; max-width: none; border: 1px solid var(--border); border-radius: 12px; background-color: white; }
  .hero-search button { width: 100%; }
}

/* Blog: "Find a [service] in [city]" (T14) */
.find-box { margin: 40px 0 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: white; }
.find-box h2 { margin-top: 0; }
.find-box .find-more { font-size: 15px; }
.find-box ul.find-links { columns: 2; column-gap: 24px; padding-left: 18px; }

/* Tap targets on phones (T21): ≥44px, ≥8px apart */
@media (max-width: 760px) {
  .footer a { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; padding: 0; margin-inline-end: 18px; }
  .footer-inner > div { grid-column: 1 / -1; }
  .footer-inner > div h4, .footer-inner > div h3 { margin-bottom: 4px !important; }
  .faq summary { min-height: 44px; }
  .chip { min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .post li > a:only-child, .find-box a { display: inline-block; padding: 10px 0; }
  .card-link { min-height: 24px; }
  .section-sub a { display: inline-block; padding: 10px 0; }
  .stat-row { gap: 20px; }
}

/* Phones: shorter sections (homepage target < 7,000 px at 375 px, T04) */
@media (max-width: 640px) {
  .services, .how, .provider-cta { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding: 32px 16px 44px; }
  .hero h1 { margin-bottom: 14px; }
  .lede { font-size: 17px; margin-bottom: 24px; }
  .cta-row { margin-bottom: 24px; }
  .stat-row { padding: 14px 0; gap: 18px; }
  .stat-num { font-size: 26px; }
  .services h2, .how h2, .provider-cta h2, .faq h2 { margin-bottom: 24px; }
  section > h2::before { margin-bottom: 14px; }
  .section-sub { margin-bottom: 24px; font-size: 15px; }
  .faq { margin: 40px auto; padding-left: 16px; padding-right: 16px; }
  .provider-cta p { font-size: 16px; margin-bottom: 24px; }
  .footer { padding: 40px 16px 24px; }
  .footer-inner { gap: 16px; }
  .copyright { margin-top: 24px; }
  /* Homepage service cards: two per row, photo (or icon) + name */
  #services .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #services .card { padding: 16px !important; }
  #services .card p, #services .card .card-link { display: none; }
  #services .card h3 { font-size: 16px; margin: 0; }
  #services .card .icon { width: 44px; height: 44px; font-size: 24px; margin-bottom: 10px; }
  #services .card.has-photo { padding: 0 !important; }
  #services .card.has-photo h3 { margin: 10px 12px 12px; }
  .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .hero .stat-row ~ .trust-row { display: none; }
  .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 11px; text-align: center; }
  .faq details { padding: 14px 16px; }
  .lead-cities { padding-top: 32px; padding-bottom: 16px; }
  .more-cities { padding-top: 40px; padding-bottom: 40px; }
}
