/* ========================================
   PROCARE Spine and Sports Therapy
   Stylesheet
======================================== */

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

:root {
  --terracotta: #C0603A;
  --terracotta-dark: #A85535;
  --terracotta-deeper: #8B4528;
  --sand: #F5EDE3;
  --sand-light: #FAF6F1;
  --sand-dark: #E8DDD0;
  --cream: #FFFDF9;
  --text: #2D2018;
  --text-light: #6B5B50;
  --text-muted: #9B8B80;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(45, 32, 24, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 32, 24, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 32, 24, 0.12);
  --shadow-xl: 0 16px 60px rgba(45, 32, 24, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.938rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(192, 96, 58, 0.3);
}

.btn--primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192, 96, 58, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost-light:hover {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- Section --- */
.section {
  padding: 100px 0;
}

.section__header {
  max-width: 680px;
  margin-bottom: 60px;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__tag {
  display: inline-block;
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.063rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  transition: color var(--transition);
}

.nav.scrolled .nav__logo {
  color: var(--terracotta);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.938rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav__link:hover::after,
.nav__link:focus::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--white);
}

.nav.scrolled .nav__link {
  color: var(--text-light);
}

.nav.scrolled .nav__link:hover {
  color: var(--terracotta);
}

.nav__link--cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: all var(--transition);
}

.nav__burger::before,
.nav__burger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--white);
  left: 0;
  transition: all var(--transition);
}

.nav__burger::before { top: -7px; }
.nav__burger::after { top: 7px; }

.nav.scrolled .nav__burger { background: var(--text); }
.nav.scrolled .nav__burger::before,
.nav.scrolled .nav__burger::after { background: var(--text); }

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-menu__link:hover {
  color: var(--terracotta);
}

.mobile-menu__link--cta {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--terracotta);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 32, 24, 0.72) 0%,
    rgba(139, 69, 40, 0.55) 50%,
    rgba(192, 96, 58, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 120px 24px 80px;
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 640px;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.188rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__trust-item svg {
  color: var(--sand);
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}

.hero__scroll:hover {
  color: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Services --- */
.services {
  background: var(--sand-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192, 96, 58, 0.15);
}

.card--service {
  display: flex;
  flex-direction: column;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.card__desc {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.75;
  flex-grow: 1;
}

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__images {
  position: relative;
}

.about__img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about__img-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about__img-float {
  position: absolute;
  bottom: -32px;
  right: -24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.about__img-float img {
  width: 260px;
  height: 200px;
  object-fit: cover;
}

.about__stat {
  position: absolute;
  top: -20px;
  left: -16px;
  background: var(--terracotta);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.about__stat-label {
  font-size: 0.813rem;
  opacity: 0.85;
}

.about__content {
  max-width: 520px;
}

.about__text {
  font-size: 1.063rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--terracotta);
}

.about__feature strong {
  display: block;
  font-size: 0.938rem;
  color: var(--text);
  margin-bottom: 2px;
}

.about__feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Approach --- */
.approach {
  background: var(--sand-light);
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.approach__step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.approach__step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--sand-dark);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.approach__step:hover .approach__step-num {
  color: var(--terracotta);
}

.approach__step-title {
  font-size: 1.188rem;
  margin-bottom: 10px;
  color: var(--text);
}

.approach__step-desc {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.75;
}

.approach__step-connector {
  display: none;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--cream);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  border: 1px solid var(--sand-dark);
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(192, 96, 58, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--sand-dark);
  position: absolute;
  top: 16px;
  right: 24px;
}

.testimonial-card__text {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-card__name {
  display: block;
  font-size: 0.938rem;
  color: var(--text);
}

.testimonial-card__role {
  font-size: 0.813rem;
  color: var(--text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 40, 0.88) 0%,
    rgba(192, 96, 58, 0.82) 100%
  );
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner__text {
  font-size: 1.063rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Contact --- */
.contact {
  background: var(--sand-light);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__text {
  font-size: 1.063rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact__detail strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 4px;
}

.contact__detail span,
.contact__detail a {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact__detail a:hover {
  color: var(--terracotta);
}

.contact__map {
  overflow: hidden;
}

.contact__form-wrap {
  width: 100%;
}

.contact__form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact__form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact__form-desc {
  font-size: 0.938rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.938rem;
  color: var(--text);
  background: var(--sand-light);
  transition: all var(--transition);
  outline: none;
}

.form__input:hover {
  border-color: var(--terracotta);
}

.form__input:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.1);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5B50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__success {
  text-align: center;
  padding: 40px 20px;
}

.form__success-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #C0603A, #E8A87C);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}

.form__success-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form__success-text {
  font-size: 0.938rem;
  color: var(--text-light);
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.938rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.938rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--sand);
}

.footer__address {
  font-size: 0.938rem;
  line-height: 1.8;
  font-style: normal;
}

.footer__address a {
  transition: color var(--transition);
}

.footer__address a:hover {
  color: var(--sand);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.813rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .approach__step-connector {
    display: none;
  }

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

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .hero__content {
    margin-left: 0;
    padding: 140px 24px 100px;
    text-align: center;
  }

  .hero__headline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

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

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__img-float {
    right: 0;
    bottom: -24px;
  }

  .about__stat {
    left: 0;
    top: -16px;
  }

  .approach__steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form-card {
    padding: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }
}
