/*
Theme Name: Physio Modern
Theme URI: https://physiodelivered.com
Author: Physiotherapy Delivered
Description: A modern, warm redesign of the Physiotherapy Delivered in-home therapy website. Built around clean typography, soft color, and generous whitespace to feel calming and trustworthy while keeping every page and piece of content from the original site (Home, About, Services, Our Team, Price List, Blog, Contact, Book Appointment).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: physio-modern
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root {
  --color-teal-900: #0b3d3a;
  --color-teal-700: #0f766e;
  --color-teal-600: #14958a;
  --color-teal-500: #1aa89b;
  --color-teal-100: #e3f5f2;
  --color-teal-50: #f2faf9;

  --color-coral: #ff7a59;
  --color-coral-dark: #e85f3d;

  --color-ink: #14262b;
  --color-ink-soft: #3f5559;
  --color-mist: #6c8285;

  --color-cream: #fbf9f4;
  --color-white: #ffffff;
  --color-line: #e3e8e6;

  --shadow-sm: 0 1px 2px rgba(20, 38, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 61, 58, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 61, 58, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gap: clamp(1.25rem, 2vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

/* ==========================================================================
   1. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
svg { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
a { color: var(--color-teal-700); text-decoration: none; }
a:hover { color: var(--color-coral-dark); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; color: var(--color-ink-soft); }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
table { border-collapse: collapse; width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--teal { background: var(--color-teal-900); color: #eaf6f4; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal p { color: #bfe0da; }
.section--mint { background: var(--color-teal-50); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-teal-600);
  margin-bottom: .75rem;
}
.section--teal .eyebrow { color: var(--color-coral); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-coral); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-coral-dark); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-teal-700); }
.btn-outline:hover { background: var(--color-teal-700); color: #fff; border-color: var(--color-teal-700); }
.section--teal .btn-outline { color: #fff; }
.section--teal .btn-outline:hover { background: #fff; color: var(--color-teal-900); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-sm { padding: .55rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   3. Site header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}
.site-branding { display: flex; align-items: center; gap: .65rem; }
.site-branding__logo { display: block; line-height: 0; }
.site-branding__logo img { height: 44px; width: auto; max-width: none; }
.custom-logo-link img { height: 44px; width: auto; max-width: none; }
.site-branding__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--color-teal-600), var(--color-teal-900));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  flex-shrink: 0;
}
.site-branding__text { line-height: 1.2; }
.site-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.site-title a { color: var(--color-ink); }
.site-tagline { margin: 0; font-size: .72rem; color: var(--color-mist); letter-spacing: .04em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 1.6rem; }
.primary-nav a {
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding-block: .3rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--color-teal-700); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .15s ease; border: 1px solid var(--color-line);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: .55rem .75rem; border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--color-teal-50); }

.site-header__cta { display: flex; align-items: center; gap: .9rem; }
.header-phone { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--color-ink); font-size: .95rem; }
.header-phone svg { color: var(--color-coral); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--color-line); background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: all .2s ease; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--color-cream);
    flex-direction: column; align-items: stretch; padding: 1.5rem;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .site-header.is-open .primary-nav { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul li { border-bottom: 1px solid var(--color-line); }
  .primary-nav a { display: block; padding: .9rem .25rem; }
  .primary-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 1rem; display: none;
  }
  .primary-nav .menu-item-has-children.is-expanded .sub-menu { display: block; }
  .header-phone span { display: none; }
}
.submenu-toggle { display: none; }
@media (max-width: 900px) {
  .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; right: 0; top: 0; width: 44px; height: 44px;
    background: none; border: none; color: var(--color-ink-soft); cursor: pointer;
  }
  .menu-item-has-children.is-expanded .submenu-toggle svg { transform: rotate(180deg); }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, var(--color-teal-100), transparent 55%), var(--color-cream);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__badges { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  padding: .4rem .9rem; font-size: .8rem; font-weight: 600; color: var(--color-teal-700);
  box-shadow: var(--shadow-sm);
}
.hero h1 { margin-bottom: .6rem; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero__stats { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2.5rem; flex-wrap: wrap; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--color-teal-800, var(--color-teal-700)); }
.hero__stat span { font-size: .82rem; color: var(--color-mist); }
.hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-teal-600), var(--color-teal-900));
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-end; padding: 1.75rem;
  overflow: hidden;
}
.hero__art::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 45%);
}
.hero__art-card {
  position: relative; background: rgba(255,255,255,.96); border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-md); max-width: 260px;
}
.hero__art-card strong { display: block; font-family: var(--font-display); color: var(--color-teal-900); }
.hero__art-card span { font-size: .82rem; color: var(--color-mist); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { aspect-ratio: 16/10; }
}

/* ==========================================================================
   5. Cards / grids
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 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: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-teal-100); color: var(--color-teal-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.icon-tile svg { width: 26px; height: 26px; }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { flex: 1; }
.service-card .btn { align-self: flex-start; margin-top: .5rem; }

.reason-card { text-align: left; }

.team-card { text-align: center; }
.team-card__photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--color-teal-100), var(--color-teal-50));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 1rem;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initials { font-family: var(--font-display); font-size: 2.4rem; color: var(--color-teal-600); }
.team-card h3 { margin-bottom: .15rem; font-size: 1.1rem; }
.team-card .role { color: var(--color-coral-dark); font-weight: 600; font-size: .85rem; margin-bottom: .6rem; display: block; }
.team-card p { font-size: .92rem; }

.blog-card { display: flex; flex-direction: column; }
.blog-card__meta { font-size: .8rem; color: var(--color-mist); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.blog-card h3 a { color: var(--color-ink); }
.blog-card h3 a:hover { color: var(--color-teal-700); }

/* ==========================================================================
   6. Why-choose-us / stats band
   ========================================================================== */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-md); margin-top: -4.5rem; position: relative; z-index: 5;
}
.stat-band__item { text-align: center; }
.stat-band__item strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--color-teal-700); }
.stat-band__item span { font-size: .82rem; color: var(--color-mist); }
@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; } }

/* ==========================================================================
   7. Pricing tables
   ========================================================================== */
.pricing-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); overflow: hidden; }
.pricing-card__head { background: var(--color-teal-900); color: #fff; padding: 1.5rem; }
.pricing-card__head h3 { color: #fff; margin: 0; }
.pricing-card table { width: 100%; }
.pricing-card td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-line); }
.pricing-card tr:last-child td { border-bottom: none; }
.pricing-card td:last-child { text-align: right; font-weight: 700; color: var(--color-teal-700); white-space: nowrap; }
.pricing-card__foot { padding: 1.25rem 1.5rem; }
.pricing-note { background: var(--color-teal-50); border-radius: var(--radius-md); padding: 1.5rem; font-size: .92rem; }

/* generic content tables (Price List page content authored in the editor) */
.entry-content table { margin-bottom: 2rem; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.entry-content table th, .entry-content table td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--color-line); text-align: left; }
.entry-content table th { background: var(--color-teal-900); color: #fff; font-family: var(--font-display); font-weight: 600; }
.entry-content table tr:nth-child(even) td { background: var(--color-teal-50); }

/* ==========================================================================
   8. Forms
   ========================================================================== */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); border: 1px solid var(--color-line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--color-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-cream); color: var(--color-ink); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-teal-600); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .78rem; color: var(--color-mist); margin-top: .3rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-notice { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 600; font-size: .92rem; }
.form-notice--success { background: #e3f5e9; color: #1e6b3e; }
.form-notice--error { background: #fdeceb; color: #b3311b; }

/* ==========================================================================
   9. Testimonials
   ========================================================================== */
.testimonial-card { background: #fff; border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); }
.testimonial-card__stars { color: var(--color-coral); letter-spacing: .1em; margin-bottom: .75rem; font-size: 1rem; }
.testimonial-card__name { font-weight: 700; color: var(--color-ink); font-size: .92rem; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--color-teal-900); color: #cfe6e1; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: #cfe6e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid li { margin-bottom: .6rem; font-size: .92rem; }
.footer-brand__mark { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-coral); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .82rem; flex-wrap: wrap; gap: .75rem; color: #9dc4bd; }

/* ==========================================================================
   11. Sticky call button (mobile)
   ========================================================================== */
.call-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--color-coral);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.call-fab svg { width: 24px; height: 24px; }
@media (min-width: 901px) { .call-fab { display: none; } }

/* ==========================================================================
   12. Page banner (interior pages)
   ========================================================================== */
.page-banner { background: var(--color-teal-900); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.page-banner h1 { color: #fff; margin-bottom: .5rem; }
.breadcrumb { font-size: .85rem; color: #a9d3cc; }
.breadcrumb a { color: #a9d3cc; }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   13. Content defaults
   ========================================================================== */
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.5rem; color: var(--color-teal-700); }
.entry-content ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.1em; }
.entry-content ul li { margin-bottom: .4em; color: var(--color-ink-soft); }
.entry-content a { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sidebar-box { background: #fff; border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--color-line); margin-bottom: 1.5rem; }
.sidebar-box h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-teal-700); margin-bottom: 1rem; }
.sidebar-box li { margin-bottom: .6rem; }
.sidebar-box li a { display: block; padding: .35rem 0; border-bottom: 1px solid var(--color-line); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 640px; margin-inline: auto; }

.map-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.pagination { display: flex; gap: .5rem; margin-top: 2rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--color-line);
  color: var(--color-ink-soft); font-weight: 600; font-size: .9rem;
}
.pagination .current { background: var(--color-teal-700); color: #fff; border-color: var(--color-teal-700); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-teal-900); color: #fff; padding: .75rem 1.25rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }
