/* ========================================
   SM Sports Therapy — Shared Stylesheet
   Mobile-first responsive design
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary: #1f7842;
  --primary-dark: #185f35;
  --bg: #EAFAF1;
  --secondary: #A9DFBF;
  --text: #2C3E50;
  --accent: #E67E22;
  --accent-dark: #CF6D17;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 1120px;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 {
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3rem 0;
}

.section-bg-white {
  background-color: var(--white);
}

.section-bg-mint {
  background-color: var(--bg);
}

.section-bg-primary {
  background-color: var(--primary);
  color: var(--white);
}

.section-bg-primary h2,
.section-bg-primary h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header p {
  color: #5D6D7E;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
}

/* Hamburger toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Mobile nav menu */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--primary);
  padding: 0.5rem 0 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-menu.active {
  display: block;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background-color: var(--primary-dark);
}

.nav-menu a.active-page {
  border-left: 3px solid var(--accent);
  padding-left: calc(1.5rem - 3px);
}

/* --- Hero Section --- */
.hero {
  background-color: var(--primary);
  padding: 3rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.hero .hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero .hero-divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 0 auto 1.5rem;
  border: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  text-align: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

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

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* --- Cards --- */
.card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-top: 3px solid var(--secondary);
}

.service-card .service-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.service-card .service-duration {
  font-size: 0.875rem;
  color: #5D6D7E;
  margin-bottom: 0.75rem;
}

.service-card .service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

/* --- Intro Offer Text --- */
.intro-offer {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-top: 0.375rem;
  margin-bottom: 0;
}

.intro-offer a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: text-decoration 0.2s ease;
}

.intro-offer a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

/* --- Offer Banner --- */
.offer-banner {
  background-color: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.offer-banner .offer-tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.offer-banner h3 {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.offer-banner p {
  color: #5D6D7E;
  margin-bottom: 1.25rem;
}

/* --- Trust / Feature Grid --- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.trust-item {
  text-align: center;
  padding: 1.25rem;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.trust-item h3 {
  margin-bottom: 0.375rem;
}

.trust-item p {
  font-size: 0.9375rem;
  color: #5D6D7E;
}

/* --- Areas List --- */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.area-tag {
  background-color: var(--white);
  border: 1px solid var(--secondary);
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

/* --- Philosophy/Quote Block --- */
.philosophy-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 0;
}

.philosophy-block blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.philosophy-block blockquote::before {
  content: '\201C';
  display: block;
  font-size: 3rem;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.philosophy-block p {
  color: #5D6D7E;
  font-size: 0.9375rem;
}

/* --- Reviews Section --- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.review-card {
  padding: 1.5rem;
  border-left: 3px solid var(--secondary);
}

.review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.625rem;
  letter-spacing: 0.1em;
}

.review-card .review-text {
  font-style: italic;
  color: #5D6D7E;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.review-card .review-author {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
}

/* --- Loyalty/Referral Teaser --- */
.teaser-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.teaser-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.teaser-card .teaser-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.teaser-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.teaser-card p {
  font-size: 0.875rem;
  color: #5D6D7E;
}

/* --- Final CTA Section --- */
.final-cta {
  text-align: center;
  padding: 3rem 0;
}

.final-cta h2 {
  margin-bottom: 0.75rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.footer-areas span {
  font-size: 0.8125rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.1875rem 0.625rem;
  border-radius: 100px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 0;
  transition: background-color 0.2s ease;
}

.footer-social a:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Calendly Placeholder --- */
.calendly-placeholder {
  text-align: center;
  background-color: var(--bg);
  border: 2px dashed var(--secondary);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.calendly-placeholder .placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.calendly-placeholder h3 {
  margin-bottom: 0.5rem;
}

.calendly-placeholder p {
  color: #5D6D7E;
  margin-bottom: 1.5rem;
}

.placeholder-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* --- Preparation Grid --- */
.prep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.prep-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.prep-item .prep-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.prep-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.prep-item p {
  font-size: 0.875rem;
  color: #5D6D7E;
}

/* --- Loyalty Card Image --- */
.loyalty-card-img {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.loyalty-caption {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary);
  margin-top: 1rem;
}

/* --- Intro Offer in Page Header --- */
.page-header .intro-offer {
  margin-top: 0.5rem;
}

.page-header .intro-offer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-header .intro-offer a:hover {
  color: var(--accent-dark);
}

/* --- Service Detail Blocks --- */
.service-detail {
  max-width: 720px;
  margin: 0 auto;
}

.service-detail h2 {
  margin-bottom: 0.75rem;
}

.service-detail > p {
  margin-bottom: 1.5rem;
  color: #5D6D7E;
}

.pricing-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pricing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-top: 3px solid var(--secondary);
}

.pricing-card .pricing-info .pricing-duration {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
}

.pricing-card .pricing-info .pricing-label {
  font-size: 0.875rem;
  color: #5D6D7E;
  margin-top: 0.125rem;
}

.pricing-card .pricing-amount {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

/* --- Scope Disclaimer --- */
.scope-note {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.9375rem;
  color: #5D6D7E;
  font-style: italic;
  line-height: 1.7;
}

.scope-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: normal;
}

.scope-note a:hover {
  color: var(--primary-dark);
}

/* --- Payment Info --- */
.payment-info {
  max-width: 720px;
  margin: 0 auto;
}

.payment-info h2 {
  margin-bottom: 0.75rem;
}

.payment-info p {
  color: #5D6D7E;
}

/* --- Loyalty Detail --- */
.loyalty-detail {
  max-width: 720px;
  margin: 0 auto;
}

.loyalty-detail h2 {
  margin-bottom: 1rem;
}

.loyalty-detail h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}

.loyalty-detail p {
  color: #5D6D7E;
}

.loyalty-detail .loyalty-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-style: italic;
}

/* --- Legal / Content Pages --- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--secondary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  list-style: disc;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

.legal-content .last-updated {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--secondary);
  font-size: 0.875rem;
  color: #5D6D7E;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--secondary);
  vertical-align: top;
}

.legal-content th {
  background-color: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}

.legal-content td {
  background-color: var(--white);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background-color: var(--primary);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* --- Story Block --- */
.story-block {
  max-width: 720px;
  margin: 0 auto;
}

.story-block .story-hook {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.story-block p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.story-block .story-closing {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* --- Photo Placeholder --- */
.photo-placeholder {
  background-color: #E0E0E0;
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9375rem;
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.link-accent {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-accent:hover {
  color: var(--accent-dark);
}

/* --- Focus states for accessibility --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ========================================
   Responsive — Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  section {
    padding: 4rem 0;
  }

  .pricing-pair {
    grid-template-columns: repeat(2, 1fr);
  }

  .prep-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .placeholder-actions {
    flex-direction: row;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teaser-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Responsive — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero .hero-sub {
    font-size: 1.125rem;
  }

  /* Desktop nav — inline */
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 0.25rem;
  }

  .nav-menu a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
  }

  .nav-menu a:hover,
  .nav-menu a:focus {
    background-color: rgba(255, 255, 255, 0.12);
  }

  .nav-menu a.active-page {
    border-left: none;
    padding-left: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
