/* =========================================================
   LUSSO ALTHEA CARE — Professional Health Care
   Shared stylesheet for all pages
   ========================================================= */

:root {
  --navy: #0e2e5c;
  --navy-dark: #081c3a;
  --navy-light: #16407f;
  --orange: #f26522;
  --orange-dark: #d4530f;
  --orange-light: #fdece1;
  /* Accessible variants: darker orange for text/icons on light backgrounds,
     and a lighter tint for orange text on navy backgrounds — both meet WCAG AA (4.5:1). */
  --orange-a11y: #ce4b0c;
  --orange-on-dark: #f37032;
  --gray-bg: #f6f7f9;
  --gray-line: #e2e5ea;
  --text: #1c2430;
  --text-muted: #5a6472;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(14, 46, 92, 0.10);
  --shadow-sm: 0 4px 14px rgba(14, 46, 92, 0.08);
  --max-width: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }

/* Screen-reader-only text (kept for accessible alternatives to icon-only content) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--gray-bg); }
.section-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}
.section-navy h2, .section-navy h3, .section-navy p { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-block;
  color: var(--orange-a11y);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-navy .eyebrow, .callout-navy .eyebrow { color: var(--orange-on-dark); }

.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange-a11y); color: #fff; box-shadow: 0 8px 20px rgba(206,75,12,0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.section-navy .btn-outline, .callout-navy .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.section-navy .btn-outline:hover, .callout-navy .btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--orange-light); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-line);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--navy); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { color: var(--orange-a11y); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav ul a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] {
  color: var(--orange-a11y);
  border-bottom-color: var(--orange-a11y);
}
.nav-cta { flex-shrink: 0; }

@media (max-width: 880px) {
  /* backdrop-filter would make the header the containing block for the fixed menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 70px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--gray-line); }
  .nav-cta { margin-top: 18px; }
  .nav-cta .btn { width: 100%; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, center 20%); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8,28,58,0.92) 10%, rgba(14,46,92,0.78) 45%, rgba(14,46,92,0.45) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 24px 90px;
}
.hero-inner.narrow { padding: 80px 24px; max-width: 900px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 720px; }
.hero .lede { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 560px; }
.hero .tagline { color: var(--orange-on-dark); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; display: block; }

/* Trust bar */
.trust-bar {
  background: var(--navy-dark);
  color: #fff;
  padding: 18px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.92;
}
.trust-bar span svg { flex-shrink: 0; color: var(--orange-on-dark); }

/* =========================================================
   Cards / Grids
   ========================================================= */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }
  .section-head { margin-bottom: 32px; }
  .nav-wrap { padding-inline: 18px; }
  .brand-text strong { font-size: 0.85rem; }
  .brand-text span { font-size: 0.55rem; }
  .hero-inner, .hero-inner.narrow { padding: 64px 18px; }
  .hero .lede { font-size: 1.05rem; }
  .btn { width: 100%; padding-inline: 20px; }
  .card { padding: 26px 22px; }
  .service-detail { gap: 16px; }
  .service-detail .icon { width: 50px; height: 50px; border-radius: 14px; }
  .callout { padding: 28px 20px; }
  form.contact-form { padding: 24px 20px; }
  .info-box { padding: 26px 20px; }
  .callout-list.two-col { columns: 1; }
  .price-list li { gap: 12px; }
  .final-cta { padding: 56px 0; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--orange-light);
  color: var(--orange-a11y);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { margin-bottom: 0; }
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--orange-a11y);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.card a.card-link svg { transition: transform 0.15s ease; }
.card a.card-link:hover { color: var(--orange-dark); }
.card a.card-link:hover svg { transform: translateX(3px); }

/* Service detail (services.html) */
.service-detail {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--orange-light);
  color: var(--orange-a11y);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.service-detail h3 { margin-bottom: 6px; font-size: 1.25rem; }
.service-detail p { margin-bottom: 0; }

/* Staff / team cards */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-line);
}
.team-card .photo { aspect-ratio: 4/5; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, center top); }
.team-card .body { padding: 22px 24px 26px; }
.team-card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.team-card .role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-a11y);
  margin-bottom: 10px;
}
.team-card ul { padding-left: 20px; margin: 12px 0 0; color: var(--text-muted); font-size: 0.94rem; }
.team-card ul li { margin-bottom: 4px; }

.values-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.value-pill {
  background: var(--gray-bg);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

/* Callout / package sections */
.callout {
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.callout-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; }
.callout-navy h2, .callout-navy p { color: #fff; }
.callout-navy p { color: rgba(255,255,255,0.85); }
.callout-white { background: #fff; border: 1px solid var(--gray-line); box-shadow: var(--shadow-sm); }
.callout-list { list-style: none; padding: 0; margin: 20px 0; }
.callout-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 600;
}
.callout-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ce4b0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.callout-navy .callout-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E");
}
.callout-white .callout-list li { color: var(--text); }
.callout img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, center 22%); box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .callout { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* Testimonials */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote { font-style: italic; color: var(--text); font-size: 1.02rem; }
.testimonial .who { font-weight: 700; color: var(--navy); margin-bottom: 0; font-style: normal; }
.testimonial .who span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.stars { color: var(--orange-a11y); margin-bottom: 10px; }
.stars span[aria-hidden] { display: inline-flex; gap: 3px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  border: none;
  padding: 0;
  background: var(--gray-bg);
}
.gallery-item picture { position: absolute; inset: 0; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, center top); transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(8,28,58,0.85), transparent);
  color: #fff;
  padding: 34px 14px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,28,58,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--orange); }
.lightbox-cap {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
}

/* Final CTA band */
.final-cta {
  text-align: center;
  padding: 70px 0;
  background: linear-gradient(135deg, var(--orange-a11y) 0%, #c94f0e 100%);
  color: #fff;
}
.final-cta h2, .final-cta p { color: #fff; }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-outline { border-color: #fff; color: #fff; }
.final-cta .btn-outline:hover { background: #fff; color: var(--orange-dark); }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { list-style: none; padding: 0; margin: 0 0 26px; }
.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-line);
}
.contact-info-list .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--orange-a11y);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-list strong { display: block; color: var(--navy); }
.contact-info-list a { color: var(--text-muted); text-decoration: none; }
.contact-info-list a:hover { color: var(--orange-a11y); }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease;
}
.social-row a:hover, .social-row a:focus-visible { background: var(--orange-a11y); }

form.contact-form {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--navy);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: #fcfcfd;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.form-hidden { position: absolute; left: -9999px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
.form-success {
  display: none;
  background: #e8f6ec;
  border: 1px solid #b6e3c2;
  color: #216534;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-weight: 600;
}
.form-success.show { display: block; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  margin-top: 22px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* =========================================================
   About page
   ========================================================= */
.about-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, center 20%); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .mission-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); padding: 60px 0 24px; }
.site-footer p { color: rgba(255,255,255,0.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: auto; flex-shrink: 0; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* 404 page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-page .code { font-size: 5rem; font-weight: 900; color: var(--orange); margin-bottom: 0; line-height: 1; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* WhatsApp button (recognisable brand colour, kept separate from the orange CTA system) */
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,0.35); }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-whatsapp svg { flex-shrink: 0; }

/* In-page quick navigation pills (About / long content pages) */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 8px; }
.anchor-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gray-bg);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--gray-line);
  transition: background 0.15s ease, color 0.15s ease;
}
.anchor-nav a:hover { background: var(--orange-a11y); color: #fff; border-color: var(--orange-a11y); }

/* Numbered process steps (How Our Care Process Works) */
.step-card { position: relative; padding-top: 8px; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-a11y);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* FAQ accordion (native <details>/<summary>, no JS required) */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 22px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -7px;
  border-right: 2px solid var(--orange-a11y);
  border-bottom: 2px solid var(--orange-a11y);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item summary:hover { color: var(--orange-a11y); }
.faq-item .faq-answer { padding: 0 22px 22px; color: var(--text-muted); }
.faq-item .faq-answer p { margin-bottom: 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Pricing note boxes (assessment fees, etc.) */
.price-list { list-style: none; padding: 0; margin: 16px 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-line);
  font-weight: 600;
  color: var(--navy);
}
.price-list li span:last-child { color: var(--orange-a11y); font-weight: 800; }

/* Boxed content containers (checklists, standards, training tags) */
.info-box { background: #fff; border: 1px solid var(--gray-line); box-shadow: var(--shadow-sm); border-radius: var(--radius); padding: 36px; }
.callout-list.two-col { columns: 2; column-gap: 32px; }
.callout-list.two-col li { break-inside: avoid; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag-row .value-pill { background: var(--gray-bg); }
.form-section-title { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-a11y); margin: 28px 0 14px; }
.form-section-title:first-child { margin-top: 0; }
fieldset.form-row { border: 0; padding: 0; min-width: 0; }
fieldset.form-row legend {
  display: block;
  width: 100%;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0;
}
.radio-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); cursor: pointer; }
.radio-row input { width: auto; }

@media (max-width: 480px) {
  .grid > *,
  .mission-grid > *,
  .contact-grid > * { min-width: 0; }
  .callout-list.two-col { columns: 1; }
}

/* =========================================================
   Storytelling hero carousel (homepage)
   ========================================================= */
.story-carousel {
  position: relative;
  background: var(--navy-dark);
  overflow: hidden;
}
.story-track { display: grid; }
.story-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.story-slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 0.6s ease, visibility 0s; }
/* The outgoing slide stays visible underneath while the new one wipes in */
.story-slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.js-story .story-slide:not(.is-active) { pointer-events: none; }

.story-copy {
  position: relative;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(242, 101, 34, 0.22) 0%, rgba(242, 101, 34, 0) 55%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 48px 84px max(96px, calc((100vw - var(--max-width)) / 2 + 24px));
}
.story-copy-inner { max-width: 560px; }
.story-copy .tagline {
  display: inline-block;
  color: var(--orange-on-dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.story-copy h1,
.story-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 14px;
}
.story-copy .lede { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; margin-bottom: 26px; }
.story-copy .cta-row { margin-top: 0; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.story-media { position: relative; width: 100%; overflow: hidden; min-height: 520px; }
.story-media picture { position: absolute; inset: 0; display: block; z-index: 1; }
/* Whole photo is shown (no cropping); a blurred copy fills any spare space */
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.story-backdrop {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.5) saturate(1.1);
  transform: scale(1.1);
}
.story-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 28, 58, 0.7) 0%, rgba(8, 28, 58, 0) 8%);
}

/* Motion: layered, direction-aware transitions on the active slide */
.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--orange) 0%, #f58a4f 100%);
  transform: scaleX(0);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js-story .story-slide.is-active .story-media picture {
    animation: story-wipe 1.15s cubic-bezier(0.77, 0, 0.18, 1) both;
  }
  .js-story .story-slide.is-active .story-media::after {
    animation: story-sweep 1.15s cubic-bezier(0.77, 0, 0.18, 1) both;
  }
  .js-story .story-carousel[data-dir="prev"] .story-slide.is-active .story-media picture { animation-name: story-wipe-prev; }
  .js-story .story-carousel[data-dir="prev"] .story-slide.is-active .story-media::after { animation-name: story-sweep-prev; }
  .story-slide.is-active .story-media img {
    animation: story-zoom-out 1.6s cubic-bezier(0.22, 0.75, 0.3, 1) both, story-pan 9s ease-out 1.6s forwards;
  }
  .story-slide.is-leaving .story-media img { transform: scale(1.02); filter: brightness(0.7); transition: filter 0.8s ease; }

  /* Eyebrow: accent line shoots out, then the label unmasks */
  .story-slide.is-active .story-copy .tagline { animation: story-unmask 0.8s cubic-bezier(0.77, 0, 0.18, 1) 0.45s both; }
  .story-slide.is-active .story-copy .tagline::before { animation: story-line 0.7s cubic-bezier(0.22, 0.75, 0.3, 1) 0.3s both; }
  /* Headline: each word flips up out of a mask, one after another */
  .js-story .story-word { display: inline-block; overflow: hidden; perspective: 600px; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .js-story .story-word > span { display: inline-block; transform-origin: 50% 100%; }
  .js-story .story-slide.is-active .story-word > span {
    animation: story-word 0.95s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
    animation-delay: calc(0.55s + var(--w, 0) * 0.075s);
  }
  .js-story .story-slide.is-active h1 .story-word:last-child > span,
  .js-story .story-slide.is-active h2 .story-word:last-child > span {
    animation-name: story-word, story-flash;
    animation-duration: 0.95s, 1.4s;
    animation-delay: calc(0.55s + var(--w, 0) * 0.075s), calc(0.9s + var(--w, 0) * 0.075s);
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.25, 1.15), ease-out;
    animation-fill-mode: both, none;
  }
  /* Supporting text wipes in left to right */
  .story-slide.is-active .story-copy .lede { animation: story-wipe-text 1s cubic-bezier(0.65, 0, 0.35, 1) 1s both; }
  /* Buttons spring in */
  .story-slide.is-active .story-copy .cta-row > * { animation: story-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .story-slide.is-active .story-copy .cta-row > *:nth-child(1) { animation-delay: 1.25s; }
  .story-slide.is-active .story-copy .cta-row > *:nth-child(2) { animation-delay: 1.37s; }
  /* Outgoing copy lifts away and blurs */
  .story-slide.is-leaving .story-copy-inner {
    animation: story-exit 0.55s cubic-bezier(0.55, 0, 0.75, 0.2) both;
  }
  .story-carousel[data-dir="prev"] .story-slide.is-leaving .story-copy-inner { animation-name: story-exit-prev; }

  .story-slide.is-active .story-copy::after { animation: story-glow 9s ease-in-out infinite alternate; }
}
/* Animated accent line before the eyebrow */
.story-copy .tagline { display: inline-flex; align-items: center; gap: 12px; }
.story-copy .tagline::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--orange-on-dark);
  transform-origin: left;
}
/* Slow-drifting warm glow behind the copy */
.story-copy::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.28) 0%, rgba(242, 101, 34, 0) 70%);
  pointer-events: none;
}
.story-copy-inner { position: relative; z-index: 1; }

@keyframes story-unmask {
  from { clip-path: inset(0 100% 0 0); opacity: 0.4; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes story-word {
  0% { transform: translateY(110%) rotateX(-75deg) skewY(6deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes story-flash {
  0%, 100% { color: inherit; text-shadow: none; }
  35% { color: var(--orange-on-dark); text-shadow: 0 0 24px rgba(242, 101, 34, 0.55); }
}
@keyframes story-wipe-text {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-16px); opacity: 0; }
  to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
}
@keyframes story-pop {
  from { transform: translateY(18px) scale(0.85); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes story-exit {
  to { transform: translate(-60px, -14px); opacity: 0; filter: blur(8px); }
}
@keyframes story-exit-prev {
  to { transform: translate(60px, -14px); opacity: 0; filter: blur(8px); }
}
@keyframes story-rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes story-pan {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}
@keyframes story-zoom-out {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@keyframes story-wipe {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes story-wipe-prev {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes story-sweep {
  0% { transform-origin: right; transform: scaleX(0); }
  45% { transform-origin: right; transform: scaleX(1); }
  55% { transform-origin: left; transform: scaleX(1); }
  100% { transform-origin: left; transform: scaleX(0); }
}
@keyframes story-sweep-prev {
  0% { transform-origin: left; transform: scaleX(0); }
  45% { transform-origin: left; transform: scaleX(1); }
  55% { transform-origin: right; transform: scaleX(1); }
  100% { transform-origin: right; transform: scaleX(0); }
}
@keyframes story-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes story-glow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(120px, -60px) scale(1.25); }
}

/* Controls: arrows on either side, small pause button in the corner */
.story-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.story-controls[hidden] { display: none; }
.story-controls > * { pointer-events: auto; }
.story-arrow,
.story-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 28, 58, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.story-arrow {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
}
.story-arrow svg { width: 24px; height: 24px; transition: transform 0.25s ease; }
.story-arrow[data-story-prev] { left: 20px; }
.story-arrow[data-story-next] { right: 20px; }
.story-arrow:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-50%) scale(1.08); }
.story-arrow[data-story-prev]:hover svg { transform: translateX(-3px); }
.story-arrow[data-story-next]:hover svg { transform: translateX(3px); }
.story-play { right: 24px; bottom: 22px; width: 38px; height: 38px; }
.story-play:hover { background: var(--orange); border-color: var(--orange); }
.story-play .icon-play { display: none; }
.story-play.is-paused .icon-pause { display: none; }
.story-play.is-paused .icon-play { display: block; }

@media (max-width: 980px) {
  .story-slide { grid-template-columns: 1fr; grid-template-rows: min(80vw, 520px) 1fr; }
  .story-media { order: -1; min-height: 0; height: auto; }
  .story-media::before {
    background: linear-gradient(180deg, rgba(8, 28, 58, 0) 88%, rgba(8, 28, 58, 0.6) 100%);
  }
  .story-copy { padding: 40px 24px 84px; }
  .story-copy-inner { max-width: none; }
  /* Arrows sit over the photo when the slide stacks */
  .story-arrow { top: calc(min(80vw, 520px) / 2); width: 46px; height: 46px; }
  .story-arrow[data-story-prev] { left: 14px; }
  .story-arrow[data-story-next] { right: 14px; }
}
@media (max-width: 480px) {
  .story-copy { padding: 32px 18px 80px; }
  .story-copy .lede { font-size: 1rem; }
  .story-slide { grid-template-rows: 100vw 1fr; }
  .story-arrow { top: 50vw; width: 40px; height: 40px; }
  .story-arrow svg { width: 20px; height: 20px; }
  .story-play { width: 34px; height: 34px; right: 18px; bottom: 18px; }
}

/* =========================================================
   Scroll reveal (progressive enhancement, motion-safe)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.75, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* =========================================================
   Service cards (services overview + related services)
   ========================================================= */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-bg); }
.service-card-media picture { position: absolute; inset: 0; display: block; }
.service-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--img-focus, center 30%);
  transition: transform 0.6s cubic-bezier(0.22, 0.75, 0.3, 1);
}
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-icon {
  position: absolute; left: 18px; bottom: -22px; z-index: 1;
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-a11y); color: #fff;
  box-shadow: 0 8px 18px rgba(206, 75, 12, 0.35);
}
.service-card-media:has(.service-card-icon) { overflow: visible; }
.service-card-media:has(.service-card-icon) picture { overflow: hidden; }
.service-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card-media:has(.service-card-icon) + .service-card-body { padding-top: 36px; }
.service-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card-body p { flex: 1; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange-a11y); font-weight: 700; font-size: 0.92rem;
}
.service-card .card-link svg { transition: transform 0.15s ease; }
.service-card:hover .card-link svg { transform: translateX(3px); }

/* =========================================================
   Individual service page
   ========================================================= */
.service-hero {
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(242, 101, 34, 0.2) 0%, rgba(242, 101, 34, 0) 55%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}
.service-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.service-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.service-hero .lede { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; margin-bottom: 26px; max-width: 560px; }
.service-hero-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); color: var(--orange-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-hero-icon svg { width: 28px; height: 28px; }
.service-hero-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.service-hero-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.service-hero-media picture { position: absolute; inset: 0; display: block; }
.service-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, center 30%); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; margin-bottom: 22px; color: rgba(255, 255, 255, 0.65); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-on-dark); text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

.service-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.service-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.service-body h3 { margin-top: 26px; }
.service-body .callout-list li { color: var(--text); }
.service-note { font-size: 0.95rem; border-left: 3px solid var(--orange-a11y); padding-left: 14px; }
.service-aside { position: sticky; top: 100px; }
.service-aside h3 { margin-top: 0; }
.service-aside .btn + .btn { margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .service-hero-copy > * { animation: story-rise 0.7s cubic-bezier(0.22, 0.75, 0.3, 1) both; }
  .service-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .service-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .service-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .service-hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .service-hero-media { animation: service-reveal 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both; }
  .service-hero-media img { animation: story-zoom-out 1.6s cubic-bezier(0.22, 0.75, 0.3, 1) 0.1s both; }
}
@keyframes service-reveal {
  from { clip-path: inset(0 0 0 100% round var(--radius)); }
  to { clip-path: inset(0 0 0 0 round var(--radius)); }
}

@media (max-width: 900px) {
  .service-hero-grid, .service-body { grid-template-columns: 1fr; gap: 32px; }
  .service-hero-media { aspect-ratio: 16 / 9; }
  .service-aside { position: static; }
}
