/* ============================================
   Fiona Samuel Physiotherapy & Pilates
   Design tokens — matched to live site screenshots
   ============================================ */
:root {
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --paper-raised: #F4F3EF;
  --sand: #E4E2DA;
  --ink: #3B4B5E;        /* body copy — dark slate/navy-grey */
  --ink-soft: #6B7686;
  --heading: #141414;    /* near-black, headings */
  --nav-muted: #A9A08C;  /* warm taupe-grey nav text on light header */
  --nav-muted-dark: #8b8272;
  --accent: #1FCBE6;     /* bright cyan/turquoise accent */
  --accent-deep: #14A9C1;
  --line: rgba(20, 20, 20, 0.10);

  --heading-font: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--heading);
  line-height: 1.1;
  margin: 0 0 0.45em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--heading); color: #fff; padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header (default: sits on white) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}
.wordmark {
  font-family: var(--heading-font);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--nav-muted);
  text-decoration: none;
  letter-spacing: 0.005em;
  max-width: 220px;
  flex: 0 0 auto;
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
nav.main-nav a {
  color: var(--nav-muted);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
nav.main-nav a:hover { color: var(--accent-deep); }
nav.main-nav a.current { color: var(--heading); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #10181B !important;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); color: #10181B !important; }
.btn-ghost {
  background: transparent;
  color: var(--heading) !important;
  border: 2px solid var(--heading);
}
.btn-ghost:hover { background: var(--heading); color: #fff !important; }
.btn-small { padding: 9px 18px; font-size: 0.78rem; }

/* ---------- Homepage hero: transparent header over full-bleed duotone photo ---------- */
.home-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.home-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.home-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
}
.home-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,20,20,0.12);
}
.home-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.home-header.solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.home-header.solid .wordmark { color: var(--nav-muted); }
.home-header.solid nav.main-nav a { color: var(--nav-muted); }
.home-header.solid nav.main-nav a:hover,
.home-header.solid nav.main-nav a.current { color: var(--heading); }
.home-header.solid .nav-toggle { border-color: var(--line); color: var(--heading); }
.home-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 20px; gap: 24px;
}
.home-header .wordmark {
  color: var(--accent);
  max-width: 340px;
  font-size: 1.05rem;
}
.home-header nav.main-nav a { color: #fff; }
.home-header nav.main-nav a:hover, .home-header nav.main-nav a.current { color: var(--accent); }
.home-header .nav-toggle { border-color: rgba(255,255,255,0.4); color: #fff; }

.home-hero-content {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 40px 32px 64px;
  max-width: 1180px;
  width: 100%;
  margin-left: auto; margin-right: auto;
}
.home-hero-content h1 {
  color: #fff;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  max-width: 780px;
}
.home-hero-socials { display: flex; gap: 18px; margin: 18px 0 28px; }
.home-hero-socials a { color: #fff; display: inline-flex; }
.home-hero-socials a:hover { color: var(--accent); }

/* ---------- Section rhythm ---------- */
section { padding: 64px 0; }
.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.section-label {
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

/* two-column feature (objectives/philosophy style: label left, text right) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: none; }
.feature-row h2 { margin-bottom: 0; }

/* asymmetric split (used sparingly now — most heroes are stacked full-bleed) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 2px; }
.split-media.placeholder {
  aspect-ratio: 4/3;
  min-height: 240px;
  background: var(--sand);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.85rem; text-align: center; padding: 20px;
}

/* ---------- Simple text-only intro (Contact, Cancellation, Blog index/category/tag) ---------- */
.hero.no-image {
  padding: 56px 0 40px;
  max-width: 780px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: block;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Inner-page stacked hero: heading, then full-bleed photo, then copy ---------- */
.page-hero-heading {
  padding: 56px 0 0;
}
.page-hero-heading .wrap { max-width: 1180px; }
.page-hero-heading h1 { margin-bottom: 0; }

.full-bleed-photo {
  width: 100%;
  aspect-ratio: 21/6;
  min-height: 200px;
  max-height: 900px;
  background: var(--sand);
  overflow: hidden;
  margin: 40px 0 0;
}
.full-bleed-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Physiotherapy hero: source photo has two heads at different heights (Fiona
   standing, patient lying down) — needs a taller crop, biased toward the top,
   so neither head gets cut off. Exact crop matched to client-provided reference.
   Capped to the content width (rather than full viewport) so it doesn't get
   taller than necessary on wide screens — same crop, just scaled down together. */
.full-bleed-photo-tall {
  aspect-ratio: 1565/588;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.full-bleed-photo-tall img { object-position: center 19.3%; }

/* About page headshot: keep the top of Fiona's head in frame, head and shoulders
   filling the frame. Exact crop matched to client-provided reference. Same
   width-capping approach as the Physiotherapy hero, above. */
.full-bleed-photo-headshot {
  aspect-ratio: 1600/658;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.full-bleed-photo-headshot img { object-position: center 25.4%; }

.page-copy {
  padding: 48px 0;
}
.page-copy .wrap-narrow { max-width: 820px; }

/* ---------- Pull quote ---------- */
.pullquote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}
.pullquote p {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--heading);
  max-width: none;
  line-height: 1.4;
}
.pullquote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Services list ---------- */
.service-list {
  columns: 2;
  column-gap: 40px;
  max-width: 760px;
  padding-left: 0;
  list-style: none;
}
.service-list li {
  break-inside: avoid; margin-bottom: 12px; padding-left: 22px; position: relative;
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* Centered variant: single column, bullet sits inline before the text */
.service-list-center {
  columns: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.service-list-center li {
  padding-left: 0;
}
.service-list-center li::before {
  position: static;
  display: inline-block;
  vertical-align: middle;
  top: auto; left: auto;
  margin-right: 8px;
}

/* ---------- Carousel gallery (arrow navigation, matches live site) ---------- */
.carousel {
  position: relative;
  margin-top: 8px;
}
.carousel-track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .slide {
  flex: 0 0 auto;
  width: min(420px, 85vw);
  aspect-ratio: 4/3;
  scroll-snap-align: start;
  background: var(--sand);
  overflow: hidden;
}
.carousel-track .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; color: var(--heading);
  z-index: 5;
}
.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }
@media (max-width: 700px) {
  .carousel-arrow { display: none; }
}

/* ---------- Instagram grid ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.insta-grid blockquote.instagram-media { margin: 0 !important; width: 100% !important; }

/* ---------- Blog ---------- */
.post-list { display: flex; flex-direction: column; gap: 44px; margin-top: 8px; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.post-card .thumb {
  aspect-ratio: 4/3; background: var(--sand); overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { margin-bottom: 6px; }
.post-card h3 a { text-decoration: none; color: var(--heading); }
.post-meta { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 8px; }
.post-meta a { color: var(--ink-soft); }
.post-tags { font-size: 0.85rem; margin-top: 8px; }
.post-tags a { color: var(--accent-deep); margin-right: 4px; text-decoration: none; }
.post-tags a:hover { text-decoration: underline; }

.post-body { max-width: var(--measure); margin: 0 auto; }
.post-body h1 { text-align: left; }
.post-hero-img { width: 100%; aspect-ratio: 16/9; min-height: 220px; background: var(--sand); margin-bottom: 32px; overflow: hidden; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body ul { padding-left: 1.2em; }
.post-body li { margin-bottom: 0.5em; }
.post-body em { color: var(--heading); font-style: italic; }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.post-nav a { text-decoration: none; }
.post-nav .dir { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 4px; }
.post-nav .next { text-align: right; }

.tag-cloud a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 5px 14px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink);
}
.tag-cloud a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Contact ---------- */
.contact-block { max-width: 640px; }
.contact-detail { margin: 4px 0; font-size: 1.05rem; }
.practice-note {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--heading);
  background: var(--paper-raised);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 4px 0 28px;
  max-width: none;
}
.practice-note strong { color: var(--heading); }
.practice-note a { color: var(--accent-deep); text-decoration: none; }
.practice-note a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--paper-raised);
  color: var(--ink);
  padding: 56px 0 32px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--ink); }
footer.site-footer a:hover { color: var(--accent-deep); }
footer.site-footer .foot-grid {
  display: flex;
  justify-content: center;
  text-align: center;
}
footer.site-footer h4 {
  color: var(--heading); font-size: 0.95rem; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
footer.site-footer .socials { display: flex; gap: 14px; margin-top: 14px; justify-content: center; }
footer.site-footer .socials a { display: inline-flex; }
footer.site-footer .foot-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .post-card, .feature-row { grid-template-columns: 1fr; }
  .split-media { order: -1 !important; }
  .feature-row { gap: 12px; }
  .service-list { columns: 1; }
  .post-nav .next { text-align: left; }
  .home-hero { min-height: 560px; }
}

/* Nav collapses to a hamburger well before it would ever run out of room to
   fit on one line — avoids an awkward mid-width wrap of just one nav item. */
@media (max-width: 1150px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 28px 24px; gap: 16px;
  }
  nav.main-nav a { font-size: 0.85rem; white-space: normal; }
  .home-header nav.main-nav { background: rgba(20,20,20,0.92); }
  .home-header nav.main-nav a { color: #fff; }
  nav.main-nav.open { display: flex; }
  .site-header .wrap, .home-header .wrap { position: relative; flex-wrap: wrap; align-items: flex-start; }
  .home-header .wordmark { font-size: 0.82rem; max-width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
