/* yourOsteopath — standalone styles (no build step) */

:root {
  --ink: #0f2433;
  --ink-soft: #3a5366;
  --blue: #2f6a94;
  --blue-deep: #1a4563;
  --sage: #7d8b6e;
  --sage-soft: #c5d0b8;
  --mist: #e8eef2;
  --paper: #f5f8fa;
  --line: rgba(15, 36, 51, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(125, 139, 110, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 8%, rgba(47, 106, 148, 0.14), transparent 50%),
    linear-gradient(180deg, #eef3f6 0%, var(--paper) 42%, #e7eef2 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: color-mix(in srgb, var(--blue) 35%, white);
  color: var(--ink);
}

.font-display {
  font-family: var(--font-display);
}

.site-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(1152px, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1152px, calc(100% - 4rem));
  }
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo-link img {
  height: 2.25rem;
  width: auto;
}

@media (min-width: 768px) {
  .logo-link img {
    height: 2.75rem;
  }
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

.site-header.is-scrolled .logo-light,
.site-header.is-open .logo-light {
  display: none;
}

.site-header.is-scrolled .logo-dark,
.site-header.is-open .logo-dark {
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: #fff;
}

.site-header.is-scrolled .nav-desktop a {
  color: var(--ink-soft);
}

.site-header.is-scrolled .nav-desktop a:hover {
  color: var(--ink);
}

.nav-book {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 560;
  background: #fff;
  color: var(--ink) !important;
  transition: background 0.2s ease;
}

.nav-book:hover {
  background: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .nav-book {
  background: var(--blue-deep);
  color: #fff !important;
}

.site-header.is-scrolled .nav-book:hover {
  background: var(--blue);
}

.menu-toggle {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  color: var(--ink);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-bars {
  display: flex;
  width: 1.25rem;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-bars span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .menu-bars span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-open .menu-bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-bars span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 2rem 1.25rem;
}

.site-header.is-open .nav-mobile {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.95rem 1.55rem;
  font-size: 0.95rem;
  font-weight: 560;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 30px -16px rgba(15, 36, 51, 0.65);
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  padding: 0.95rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 520;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 520;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.section-rule {
  height: 1px;
  width: 4.5rem;
  background: var(--sage);
  transform-origin: left;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sage);
}

.section-title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.section {
  padding: 5.5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-mist {
  background: var(--mist);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  animation: soft-zoom 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 36, 51, 0.88), rgba(15, 36, 51, 0.62) 50%, rgba(15, 36, 51, 0.28)),
    linear-gradient(180deg, rgba(15, 36, 51, 0.25), transparent 35%, rgba(15, 36, 51, 0.55));
}

.hero-content {
  position: relative;
  padding: 7rem 0 5rem;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-brand em {
  font-style: italic;
}

.hero-title {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.95);
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.scroll-hint {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: drift 7s ease-in-out infinite;
}

.scroll-hint span:last-child {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .scroll-hint {
    display: flex;
  }
}

/* Care grid */
.care-grid {
  display: grid;
  gap: 2rem 2.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .care-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .care-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.care-item {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.care-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.care-item p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
  color: var(--blue);
  font-weight: 520;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--blue-deep);
}

.text-link span:last-child {
  transition: transform 0.2s ease;
}

.text-link:hover span:last-child {
  transform: translateX(4px);
}

/* Team */
.team-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.team-card .thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}

.team-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s ease;
}

.team-card:hover .thumb img {
  transform: scale(1.04);
}

.team-card h3 {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.team-card:hover h3 {
  color: var(--blue);
}

.team-card .role {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.team-card .summary {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Split sections */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

@media (min-width: 768px) {
  .split-media {
    aspect-ratio: 5 / 6;
  }
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust band */
.trust {
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
  color: #fff;
  text-align: center;
}

.trust-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.trust-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--blue-deep) 85%, transparent);
}

.trust-inner {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
}

.trust .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.trust .section-title {
  color: #fff;
}

.trust p {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.trust .note {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Testimonials */
.quotes {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.quote {
  margin: 0;
  border-left: 2px solid var(--sage);
  padding-left: 1.5rem;
}

.quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.quote footer {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-wrap {
  max-width: 48rem;
  margin-inline: auto;
}

.faq-list {
  margin-top: 2.5rem;
  border-block: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq-item button:hover {
  color: var(--blue);
}

.faq-item button .icon {
  color: var(--sage);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.is-open button .icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel > div {
  overflow: hidden;
}

.faq-panel p {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1.02rem;
}

/* Visit */
.visit-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .visit-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
  }
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hours {
  margin-top: 2.5rem;
}

.hours h3 {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--ink-soft) 70%, transparent);
  font-weight: 500;
}

.hours dl {
  margin: 1rem 0 0;
  max-width: 20rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.hours dt {
  color: var(--ink-soft);
}

.hours dd {
  margin: 0;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.address-block {
  margin-top: 2rem;
  color: var(--ink-soft);
}

.address-block strong {
  color: var(--ink);
  font-weight: 560;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 70svh;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.page-hero-content {
  position: relative;
  padding: 8rem 0 4rem;
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero h1 {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.02;
}

.page-hero p {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.conditions {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .conditions {
    grid-template-columns: 1fr 1fr;
  }
}

.conditions li {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 1.02rem;
}

.center-cta {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.center-cta .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Team member page */
.member-grid {
  display: grid;
  gap: 3rem;
  padding: 8rem 0 5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .member-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    padding-top: 10rem;
  }
}

.member-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.member-bio {
  margin: 2rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.also-team {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .also-team {
    grid-template-columns: 1fr 1fr;
  }
}

.also-team a h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.also-team a:hover h3 {
  color: var(--blue);
}

.also-team a p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-glow {
  pointer-events: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
}

.footer-glow-1 {
  right: -6rem;
  top: 0;
  width: 16rem;
  height: 16rem;
  background: color-mix(in srgb, var(--blue) 20%, transparent);
}

.footer-glow-2 {
  left: -4rem;
  bottom: 0;
  width: 12rem;
  height: 12rem;
  background: color-mix(in srgb, var(--sage) 20%, transparent);
}

.footer-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-grid .logo {
  height: 2.5rem;
  width: auto;
}

.footer-grid p {
  margin: 1rem 0 0;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.socials a:hover {
  color: #fff;
}

.footer-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-grid .address,
.footer-grid .contact-line {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid .subtle {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--sage-soft);
}

.footer-grid .subtle:hover {
  color: #fff;
}

.footer-phone {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.footer-phone:hover {
  color: var(--sage-soft);
}

.footer-base {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes soft-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.animate-rise {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-rise-1 {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.animate-rise-2 {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.animate-rise-3 {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-rise,
  .animate-rise-1,
  .animate-rise-2,
  .animate-rise-3,
  .animate-soft-zoom,
  .scroll-hint {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
