/* ============================================================
   Hope Physiotherapy Clinic — styles
   Mobile-first, lightweight, accessible
   ============================================================ */

:root {
  --green-700: #1f6f43;
  --green-600: #276749;
  --green-500: #2f855a;
  --green-100: #c6f6d5;
  --green-50: #e6f4ec;

  --blue-700: #2b6cb0;
  --blue-600: #3182ce;
  --blue-100: #bee3f8;
  --blue-50: #e3f0fb;

  --ink: #16211b;
  --ink-soft: #3d4c44;
  --muted: #5f7067;
  --line: #e3ece6;
  --bg: #ffffff;
  --bg-soft: #f6faf8;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(22, 33, 27, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(22, 33, 27, 0.18);
  --shadow-lg: 0 20px 45px -20px rgba(22, 33, 27, 0.25);

  --maxw: 1120px;
  --focus: 0 0 0 3px rgba(49, 130, 206, 0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-600);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-600);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--green-600);
  border-color: var(--green-500);
}

.btn-secondary:hover {
  background: var(--green-50);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  display: inline-block;
}

.brand-name em {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.brand-mark {
  flex-shrink: 0;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 8px 20px 20px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 12px 4px;
  color: var(--ink-soft);
  font-weight: 500;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--green-600);
  background: var(--green-50);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(1200px 600px at 100% -10%, var(--green-50), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 7.5vw, 3.6rem);
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-trust {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-trust li {
  position: relative;
  padding-left: 20px;
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--green-100);
  border: 3px solid var(--green-500);
}

.hero-art {
  margin: 0 auto;
  max-width: 480px;
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1000 / 667;
  object-fit: cover;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services {
  background: var(--bg-soft);
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}

.card-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-600);
  margin-bottom: 16px;
}

.card-icon path,
.card-icon circle,
.card-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  gap: 32px;
}

.why-media {
  margin: 0;
}

.why-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 800 / 640;
  object-fit: cover;
}

.why-content {
  display: grid;
  gap: 24px;
}

.text-link {
  font-weight: 600;
  color: var(--blue-600);
}

.text-link::after {
  content: " →";
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  margin-top: 2px;
}

.check-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 0.15em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 28px;
}

.about-copy p {
  color: var(--ink-soft);
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 3px solid var(--blue-600);
}

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 800 / 504;
  object-fit: cover;
}

.about-media figcaption {
  margin-top: 14px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  gap: 28px;
}

.contact-form-wrap,
.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: var(--focus);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c53030;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status.is-success {
  color: var(--green-600);
}

.form-status.is-error {
  color: #c53030;
}

.contact-info h3 {
  font-size: 1.2rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--green-600);
  margin-top: 3px;
}

.contact-icon path,
.contact-icon circle,
.contact-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.contact-list address {
  font-style: normal;
  color: var(--ink-soft);
}

.contact-list a {
  color: var(--ink-soft);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--green-600);
}

.hours {
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  gap: 28px;
}

.location-address {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.location-hours {
  color: var(--muted);
  margin-bottom: 20px;
}

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 260px;
  background: var(--green-50);
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5d0;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand-name em {
  color: #9fb3a8;
}

.footer-brand p {
  margin: 16px 0 0;
  color: #9fb3a8;
  max-width: 30em;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: #cbd5d0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col address {
  font-style: normal;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9fb3a8;
}

.footer-hours li span:last-child {
  color: #cbd5d0;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.socials a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
}

.socials a:hover {
  border-color: var(--green-500);
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
  color: #9fb3a8;
}

.legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

/* ---------- Responsive (tablet & up) ---------- */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 4px;
  }

  .nav-link {
    padding: 8px 14px;
  }

  .header-actions .btn {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .hero-art {
    max-width: none;
    margin: 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .location-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
