/* Relief Motion — clinic homepage */

:root {
  --navy: #0a3478;
  --navy-deep: #07285e;
  --teal: #149d91;
  --teal-light: #3db8ae;
  --paper: #fbfcfc;
  --teal-tint: #e7f6f4;
  --ink: #222222;
  --ink-soft: #5a5a5a;
  --line: #dce4e4;
  --white: #ffffff;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.15rem, 3.5vw, 3.75rem);
  --max: 72rem;
  --nav-h: 4.6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -3rem;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  padding: 0.45rem 0.8rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 0.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding: 0 0.7rem 0 var(--pad);
  background: var(--navy-deep);
}

.topbar-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 0.8rem, #000 calc(100% - 0.8rem), transparent);
}

.topbar-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  color: #d5dee3;
  font-size: 0.82rem;
  white-space: nowrap;
  animation: topbar-marquee 36s linear infinite;
}

.topbar-track a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.topbar-track a:hover {
  color: var(--teal-light);
}

.topbar:hover .topbar-track {
  animation-play-state: paused;
}

@keyframes topbar-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.topbar-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--white);
  text-decoration: none;
}

.topbar-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.topbar-icon:hover {
  color: var(--teal-light);
  text-decoration: none;
}

.topbar-contact {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 0.45rem;
  text-decoration: none;
}

.topbar-contact:hover {
  color: var(--teal-light);
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--nav-h);
  padding: 0 var(--pad);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 2.55rem;
  object-fit: contain;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
}

.brand-name span {
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--white);
  border: 1px solid var(--teal);
  font: 600 0.92rem/1 var(--display);
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #0e7a72;
  border-color: #0e7a72;
  color: var(--white);
  text-decoration: none;
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--teal-tint);
  border-color: var(--teal-tint);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  align-self: center;
}

.menu-toggle {
  display: none;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  margin: 0 auto;
  background: var(--navy);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.nav-drawer {
  display: none;
}

.hero {
  background: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: stretch;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
}

.hero-copy {
  width: 100%;
  max-width: 38rem;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3.5vw, 3.25rem) clamp(1.75rem, 4vw, 2.75rem) var(--pad);
}

.hero-photo {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  background: var(--teal-tint);
}

.hero-photo img {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1024 / 682;
  object-fit: cover;
  display: block;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

.lede {
  margin-top: 0.85rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  align-items: center;
}

.hero-points {
  margin-top: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.hero-points span {
  color: var(--navy);
}

.treat-cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: var(--max);
  margin-inline: auto;
}

.treat-cards li {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  border-radius: 0.75rem;
}

.treat-cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.treat-cards h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 28, 53, 0.88));
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.quote-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.quote-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  cursor: pointer;
}

.quote-dots button[aria-current="true"] {
  background: var(--teal);
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
  scroll-margin-top: calc(var(--nav-h) + 2.4rem);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}

.section.tint,
.section.navy,
.cta {
  max-width: none;
}

.section.tint {
  background: var(--teal-tint);
}

.section.navy {
  background: var(--navy-deep);
  color: #d5dee3;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

.section h2,
.cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section.navy h2 {
  color: var(--white);
}

.section-head p {
  color: var(--ink-soft);
}

.section-head p + p {
  margin-top: 0.7rem;
}

.section.tint .section-head,
.section.navy .section-head {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section.navy .why,
.section.tint .areas,
.section.tint .social-row {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section.navy .section-head p {
  color: #b7c4cb;
}

.visit-steps,
.team,
.why,
.reviews,
.areas {
  list-style: none;
}

.visit-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.visit-steps li {
  counter-increment: step;
}

.visit-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.visit-steps h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.visit-steps p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.team li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 7.25rem;
}

.team img {
  width: 6.25rem;
  height: 6.25rem;
  max-width: 6.25rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  background: #1a120c;
}

.team img.team-photo-high {
  object-position: 50% 10%;
}

.team h3 {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
}

.team p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.why {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
}

.why li {
  grid-column: span 2;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.why h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.why p {
  color: #b7c4cb;
  font-size: 0.95rem;
  line-height: 1.5;
}

.quote-carousel {
  max-width: 38rem;
}

.reviews {
  list-style: none;
  position: relative;
  min-height: 10rem;
}

.reviews li {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.reviews li.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.reviews p {
  color: var(--navy);
  font-size: 1.2rem;
}

.reviews footer {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.quote-carousel {
  max-width: 40rem;
}

.quote-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.quote-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.quote-arrow svg {
  width: 1.15rem;
  height: 1.15rem;
}

.quote-arrow:hover {
  background: var(--navy);
  color: var(--white);
}

.quote-dots {
  margin-top: 0;
  flex: 1;
  justify-content: center;
}

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.areas li {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.55rem 0.9rem;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.social-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}

.social-row a:hover {
  color: var(--teal);
  border-color: var(--teal);
  text-decoration: none;
}

.social-row svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cta {
  background: var(--teal);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5rem) var(--pad);
}

.cta h2 {
  color: var(--white);
}

.cta p {
  max-width: 32rem;
  margin: 0.4rem 0 1.5rem;
  font-size: 1.08rem;
}

.cta .btn-ghost {
  border-color: var(--white);
  color: var(--white);
}

.cta .btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.site-footer {
  background: var(--navy-deep);
  color: #c2ced4;
}

.footer-lockup {
  background: var(--paper);
  padding: 1.5rem var(--pad);
}

.footer-lockup img {
  width: min(20rem, 78%);
}

.footer-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem var(--pad);
}

.footer-about {
  max-width: 26rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: #c2ced4;
}

.site-footer a:hover {
  color: var(--teal-light);
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 var(--pad);
  padding: 1rem 0 1.4rem;
  font-size: 0.8rem;
  color: #8b9ba3;
}

.nav-links a[aria-current="page"] {
  color: var(--teal);
}

.contact-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: var(--max);
}

.contact-cards article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.2rem;
}

.contact-cards h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.contact-cards p,
.contact-cards li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-cards ul {
  margin: 0.7rem 0 0 1.1rem;
}

.contact-cards li + li {
  margin-top: 0.35rem;
}

.line-cards,
.path-grid,
.prose-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.line-cards article,
.path-grid article,
.panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.2rem;
}

.path-grid article {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.5rem 1.45rem;
}

.path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  color: var(--teal);
}

.path-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.path-list {
  margin: 0.95rem 0 1.4rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.path-list li + li {
  margin-top: 0.45rem;
}

.path-grid .visit-steps {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.line-cards h3,
.path-grid h3,
.panel-card h3 {
  color: var(--navy);
  font-size: 1.12rem;
  margin: 0.35rem 0 0.5rem;
}

.line-cards p,
.path-grid p,
.panel-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.line-cards .btn,
.panel-card .btn {
  margin-top: 1rem;
}

.path-grid .btn {
  margin-top: auto;
  padding: 1rem 1.2rem;
  width: 100%;
}

.invite-grid article .hero-kicker {
  margin-bottom: 0.15rem;
}

.flag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
}

.flag-live {
  background: var(--teal-tint);
  color: var(--teal);
}

.flag-talk {
  background: #eef2f4;
  color: var(--ink-soft);
}

.page-lead {
  padding: clamp(2.2rem, 5vw, 3.4rem) var(--pad) 0;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}

.page-lead .crumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.page-lead .crumb a {
  color: var(--ink-soft);
}

.page-lead h1 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.page-lead .lede {
  margin-top: 0.85rem;
  max-width: 42rem;
}

.page-lead .lede + .lede {
  margin-top: 0.7rem;
}

.tagline {
  margin-top: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mission {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem 1.6rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.7rem 1.55rem;
}

.mission-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  color: var(--teal);
}

.mission-mark svg {
  width: 1.85rem;
  height: 1.85rem;
}

.mission p {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 40rem;
}

.prose {
  max-width: 40rem;
}

.prose p + p,
.prose ul + p,
.prose h2 + p {
  margin-top: 0.9rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.55rem;
}

.prose ul {
  margin: 0.7rem 0 0 1.15rem;
  color: var(--ink-soft);
}

.prose li + li {
  margin-top: 0.35rem;
}

.enquire {
  display: grid;
  gap: 0.85rem;
}

.enquire label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.enquire input,
.enquire select,
.enquire textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.enquire textarea {
  min-height: 7rem;
  resize: vertical;
}

.enquire .btn {
  justify-self: start;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (max-width: 1320px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-drawer {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--pad) 1.1rem;
  }

  .nav-drawer.open {
    display: block;
  }

  .nav-drawer a {
    display: block;
    padding: 0.75rem 0;
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid var(--line);
  }

  .nav-drawer .btn {
    margin-top: 0.8rem;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
    padding: 1.75rem var(--pad) 1.5rem;
  }

  .hero-photo {
    height: auto;
  }

  .treat-cards,
  .visit-steps,
  .why,
  .line-cards,
  .path-grid,
  .prose-grid,
  .contact-cards,
  .footer-body {
    grid-template-columns: 1fr 1fr;
  }

  .why li {
    grid-column: auto;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding-left: var(--pad);
  }

  .topbar-track {
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .treat-cards,
  .visit-steps,
  .why,
  .line-cards,
  .path-grid,
  .prose-grid,
  .contact-cards,
  .footer-body,
  .mission {
    grid-template-columns: 1fr;
  }

  .team {
    gap: 1.25rem 1.5rem;
  }
}
