/* ═══════════════════════════════════════════════
   Healthwell Physical Therapy — Global Styles
   Palette: Nervous System Reset
   ═══════════════════════════════════════════════ */

:root {
  --primary: #B8A9C9;
  --primary-deep: #8B7BA8;
  --secondary: #9BB7D4;
  --bg: #F0EBF4;
  --accent: #C4A4B3;
  --text: #4A4453;
  --text-light: #6B6477;
  --white: #FFFFFF;
  --border: rgba(74, 68, 83, 0.08);
  --shadow: 0 1px 3px rgba(74,68,83,0.06), 0 4px 16px rgba(74,68,83,0.04);
  --shadow-lg: 0 4px 24px rgba(74,68,83,0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ── Location bar ── */
.location-bar {
  background: var(--primary-deep);
  text-align: center;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
}
.location-bar a {
  color: var(--white);
  text-decoration: none;
}
.location-bar a:hover { opacity: 0.85; }
@media (max-width: 550px) {
  .location-bar { font-size: 11px; padding: 7px 16px; }
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-xs) !important;
}
.nav-cta:hover { background: var(--primary-deep) !important; }
.nav-cta-secondary {
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--primary) !important;
  color: var(--text) !important;
  padding: 7px 18px !important;
  border-radius: var(--radius-xs) !important;
  background: transparent !important;
}
.nav-cta-secondary:hover { background: var(--bg) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--text);
  padding: 12px 26px;
}
.btn-outline:hover { background: var(--bg); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-small { padding: 10px 20px; font-size: 13px; }

/* ── Hero ── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 40px;
  background: var(--bg);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--text);
  color: var(--bg);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero .subtitle {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.hero-text {
  padding-bottom: 0;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  width: 100%;
  max-width: 600px;
  object-fit: contain;
}
@media (max-width: 800px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
  }
  .hero-text { padding-bottom: 0; }
  .hero-split .subtitle { margin-left: auto; margin-right: auto; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 280px; }
}

/* ── Sections ── */
.section {
  padding: 80px 24px;
}
@media (max-width: 550px) {
  .section { padding: 48px 16px; }
}
.section-alt { background: var(--bg); }
.section-dark { background: var(--text); color: var(--bg); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.section-dark .section-header h2 { color: var(--bg); }
.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-dark .section-header p { color: var(--primary); }

/* ── Trust strip ── */
.trust-strip {
  padding: 48px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-item .trust-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 4px;
}
.trust-item .trust-label {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cards-grid[style*="repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 800px) { .cards-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 550px) { .cards-grid { grid-template-columns: 1fr !important; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg);
  color: var(--primary-deep);
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-deep);
  margin-top: auto;
}

/* ── Service detail page ── */
.service-hero {
  padding: 60px 24px 40px;
  background: var(--bg);
}
.service-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.service-hero .breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.service-hero .breadcrumb a { color: var(--primary-deep); }
.service-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.service-hero .lead {
  font-size: 18px;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.6;
}

.service-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}
.service-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
}
.service-content h2:first-child { margin-top: 0; }
.service-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-content ul {
  margin: 0 0 20px 20px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 16px;
}
.service-content li { margin-bottom: 6px; }

/* Pricing card */
.pricing-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
}
.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row .price {
  font-weight: 700;
  color: var(--primary-deep);
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial-card cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-deep);
}
.testimonial-card .condition {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* Featured testimonial (big quote) */
.quote-strip {
  padding: 80px 24px;
  background: var(--text);
  text-align: center;
}
.quote-strip blockquote {
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--bg);
  font-style: italic;
}
.quote-strip cite {
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

/* ── CTA strip ── */
.cta-strip {
  padding: 80px 24px;
  text-align: center;
  background: var(--bg);
}
.cta-strip h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.cta-strip p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ── Team ── */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding: 40px 32px;
}
.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--bg);
}
.team-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.team-card .team-role {
  font-size: 14px;
  color: var(--primary-deep);
  font-weight: 600;
  margin-bottom: 16px;
}
.team-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}
.contact-detail .icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: var(--primary);
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 550px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
}
.footer h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a {
  font-size: 14px;
  color: var(--primary);
  transition: color 0.15s;
}
.footer li a:hover { color: var(--bg); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--accent);
  text-align: center;
}

/* ── Page header (for inner pages) ── */
.page-header {
  padding: 48px 24px;
  background: var(--bg);
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
