/* =========================================
   PHC PHYSIOTHERAPY - FINAL WEBSITE CSS
   Brand: #0255BD Blue + White
   Mobile-first optimized
========================================= */

:root {
  --primary: #0255BD;
  --primary-hover: #014396;
  --dark: #0f172a;
  --muted: #475569;
  --light: #F0F6FF;
  --border: #D1E4FF;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(2,85,189,.08);
  --shadow-hover: 0 18px 45px rgba(2,85,189,.14);
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.center {
  text-align: center;
}

h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  margin: 10px 0 16px;
  letter-spacing: -1.4px;
  color: var(--dark);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin: 8px 0 16px;
  letter-spacing: -.8px;
  color: var(--dark);
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--primary);
}

p {
  color: var(--muted);
}

.lead {
  font-size: 20px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 800;
  transition: .3s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(2,85,189,.25);
}

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

.btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn.secondary:hover {
  background: var(--light);
  border-color: var(--primary);
}

/* Header support */
.site-header img,
.logo img {
  border-radius: 0;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 90% 10%, rgba(2,85,189,.10), transparent 30%), linear-gradient(135deg, var(--light), var(--white));
  padding: 74px 0;
}

.hero-grid,
.two-col,
.cta-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.hero-img,
.two-col > img,
.service-banner img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  background: var(--white);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
}

.eyebrow.center {
  margin: 0 auto 16px;
  display: flex;
  width: max-content;
}

/* Trust Points */
.trust-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-points span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
  box-shadow: 0 6px 15px rgba(2,85,189,.06);
}

/* Sections */
.section {
  padding: 76px 0;
}

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

.section-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 18px;
  color: var(--muted);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-box {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: .3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-box p {
  margin-bottom: 0;
}

/* Services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: .3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4/5;
  object-fit: contain !important;
  background: var(--light);
  padding: 10px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

.service-card div,
.card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card p {
  margin-bottom: 14px;
}

.service-card a,
.text-link {
  color: var(--primary);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Conditions */
.condition-section {
  background: linear-gradient(135deg, var(--white), var(--light));
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.condition-grid div {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 800;
  color: var(--primary);
  transition: .3s ease;
}

.condition-grid div:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
}

/* Steps (Fixed Numbers Visibility) */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.steps div,
.step-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* UPDATED: Forces the background to be blue and text to be white */
.steps strong,
.step-number {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  background: var(--primary) !important;
  color: var(--white) !important;
  font-size: 18px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 85, 189, 0.2);
}

.steps h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Lists */
.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  margin: 10px 0;
  padding-left: 34px;
  position: relative;
  font-weight: 600;
  color: var(--dark);
}

.check-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

/* Areas */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.area-grid a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--dark);
  transition: .3s ease;
  box-shadow: var(--shadow);
}

.area-grid a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
}

/* CTA */
.cta-band {
  background: var(--white);
  padding: 0;
  margin: 40px 0;
}

.cta-grid {
  background: var(--primary);
  color: var(--white);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(2,85,189,.30);
}

.cta-grid h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-grid p {
  color: rgba(255,255,255,.9);
  font-size: 18px;
  max-width: 640px;
  margin: 0;
}

.cta-grid .btn.primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: none;
}

/* FAQ */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 12px 0;
  padding: 20px;
  transition: .3s ease;
  box-shadow: 0 6px 16px rgba(2,85,189,.05);
}

summary {
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--primary);
  font-size: 24px;
}

details[open] {
  border-color: var(--primary);
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 16px 0 0;
  color: var(--muted);
}

/* Inner Pages */
.inner-hero {
  background: linear-gradient(135deg, var(--light), var(--white));
  padding: 62px 0;
}

.content {
  max-width: 880px;
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

textarea {
  min-height: 120px;
}

/* Mobile */
@media(max-width:900px) {
  body {
    font-size: 15.5px;
    line-height: 1.6;
    padding-bottom: 76px;
  }

  .container {
    width: 91%;
  }

  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card-grid,
  .area-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .condition-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 52px 0;
  }

  h1 {
    font-size: 32px !important;
    line-height: 1.15;
    letter-spacing: -.8px;
  }

  h2 {
    font-size: 26px !important;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 16px !important;
  }

  .hero {
    padding: 38px 0 44px;
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .btn {
    width: 100%;
    text-align: center;
  }

  .trust-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .trust-points span {
    font-size: 13px;
    padding: 10px;
    justify-content: center;
    text-align: center;
  }

  .trust-points span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-img,
  .two-col > img,
  .service-banner img {
    max-width: 100%;
    aspect-ratio: 4/5;
    object-fit: contain;
    padding: 8px;
  }

  .section-intro {
    font-size: 15.5px;
    text-align: center;
  }

  .feature-box {
    padding: 24px 20px;
  }

  .condition-grid {
    gap: 12px;
  }

  .condition-grid div {
    padding: 14px 10px;
    font-size: 14px;
  }

  .steps div,
  .step-card {
    flex-direction: column;
    gap: 12px;
    padding: 22px 18px;
  }

  .steps strong,
  .step-number {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .area-grid a {
    padding: 16px;
  }

  .cta-grid {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  .cta-grid p {
    font-size: 15.5px;
  }

  summary {
    font-size: 16px;
    line-height: 1.4;
  }
}

@media(max-width:420px) {
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  .condition-grid div {
    font-size: 13.5px;
    padding: 13px 8px;
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .trust-points span:nth-child(3) {
    grid-column: auto;
  }
}