/* ================= CSS VARIABLES & RESET ================= */
:root {
  --bg-color: #EFF4EB;
  --text-color: #14331C;
  --text-light: #526655;
  --primary: #14331C;
  --primary-hover: #0E2614;
  --primary-light: #DFEAD9;
  --accent: #88A973;
  --accent-hover: #72915E;
  --surface: #FFFFFF;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  all: unset;
  box-sizing: border-box;
}

/* ================= TYPOGRAPHY & LAYOUT ================= */

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  color: var(--text-light);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

/* ================= UTILITIES & BUTTONS ================= */

.sub,
.sub-label,
.sub-white {
  display: inline-block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 16px;
}

.sub {
  color: var(--primary);
}

.sub-label {
  color: var(--accent);
}

.sub-white {
  color: rgba(255, 255, 255, 0.8);
}

.highlight {
  color: var(--primary);
}

.accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 8px 24px rgba(20, 51, 28, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20, 51, 28, 0.3);
}

.btn-secondary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 8px 24px rgba(136, 169, 115, 0.2);
}

.btn-secondary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(136, 169, 115, 0.3);
}

/* ================= HERO WRAPPER ================= */

.hero-wrapper {
  background-color: var(--primary);
  color: white;
  margin: 16px 16px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

/* ================= HEADER ================= */

.header {
  position: relative;
  z-index: 1000;
  padding: 24px 40px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: unset;
}

.header-logo img {
  height: 28px;
  filter: brightness(0) saturate(100%) invert(86%) sepia(16%) saturate(601%) hue-rotate(70deg) brightness(85%) contrast(85%);
  /* Matching the light green accent color approx */
}

.nav {
  display: flex;
  gap: 32px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a:hover,
.nav a.active {
  color: white;
}

.nav a.active .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.phone-link {
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.phone-link i {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================= HERO ================= */

.hero {
  position: relative;
  padding: 80px 40px 140px;
  min-height: auto;
  display: block;
  background: none;
}

.hero-text-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  max-width: 480px;
}

.hero-right h1 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 600;
}

.hero-right .accent {
  color: var(--accent);
}

/* ================= HERO CTA (replaces old hero form) ================= */

.hero-cta-btn {
  margin-top: 28px;
}

/* ================= HERO MEDIA SECTION ================= */
/* No contact form here — the photo is the hero, with a floating trust badge. */

.hero-media-section {
  position: relative;
  margin: 0 16px 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 40px 0;
  z-index: 10;
}

.hero-media-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  z-index: -1;
}

.hero-media-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mirror the hero photo when the page flips to Arabic (RTL) */
html[dir="rtl"] .hero-media-bg-img {
  transform: scaleX(-1);
}

.hero-media-container {
  max-width: 1140px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 2;
}

/* Trust Badge Overlay */
.trust-badge-float {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: start;
  gap: 12px;
  flex-direction: column;
}

.avatars {
  display: flex;
}

.avatars img,
.avatars .avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  object-fit: cover;
}

.avatars img:first-child,
.avatars .avatar-placeholder:first-child {
  margin-left: 0;
}

.avatar-placeholder {
  background: var(--primary-light);
}

.trust-text {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
}

/* ================= TRUST SECTION ================= */

.trust {
  padding-top: 120px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.trust-card {
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.trust-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.trust-card h3 {
  font-size: 1.25rem;
}

.trust-card p {
  font-size: 1rem;
}

/* ================= ABOUT ================= */

.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-text {
  margin-bottom: 32px;
}

.checklist {
  list-style: none;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-color);
  font-weight: 500;
}

.checklist i {
  color: var(--primary);
  background: var(--primary-light);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cta-note {
  margin-top: 16px;
  font-size: 0.875rem;
  opacity: 0.8;
}

.image-stack {
  position: relative;
}

.image-stack img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.img-bottom {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 60%;
  border: 12px solid var(--surface);
}

.orange-accent {
  display: none;
}

/* ================= SERVICES ================= */

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

.section-header {
  text-align: center;
  max-width: unset;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 24px;
  font-size: 1rem;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.service-link i {
  transition: var(--transition);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ================= BODY ADJUSTMENT ================= */

.body-adjustment {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/body-adjustment-bg.webp') center/cover fixed;
}

.adjustment-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20, 51, 28, 0.7);
  backdrop-filter: blur(4px);
}

.body-adjustment .container {
  position: relative;
  z-index: 1;
  height: 100%;
  align-content: center;
}

.body-adjustment h2 {
  color: white;
  margin: 0;
}

/* ================= STATS ================= */

.stats {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  gap: 24px;
  color: white;
}

.stat-card {
  text-align: center;
}

.stat-icon {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.stat-card h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

/* ================= PROFESSIONAL CARE ================= */

.professional-care {
  padding-top: 140px;
  background: var(--bg-color);
}

.care-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.care-item {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.care-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.care-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.care-icon.orange {
  background: rgba(136, 169, 115, 0.1);
  color: var(--accent);
}

.care-icon.teal {
  background: var(--primary-light);
  color: var(--primary);
}

.care-item h3 {
  margin-bottom: 16px;
}

.care-item p {
  font-size: 1rem;
}

/* ================= THERAPIST PROFILE ================= */

.therapist-profile {
  background: var(--surface);
  margin-top: 80px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.profile-image {
  position: relative;
}

.profile-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.profile-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--surface);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 600;
}

.profile-title {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.profile-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-color);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
}

.highlight-item i {
  color: var(--accent);
}

/* ================= TESTIMONIALS ================= */

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

.testimonials-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.testimonial-card p {
  flex-grow: 1;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.125rem;
}

.testimonial-author h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--text-light);
}

.orange-circle-accent {
  display: none;
}

/* ================= CTA ================= */

.cta {
  padding: 100px 0;
  background: var(--primary);
  color: white;
  text-align: center;
}

.cta-overlay h2 {
  color: white;
  max-width: 800px;
  margin: 0 auto 24px;
}

.cta-overlay p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.cta .btn-secondary:hover {
  background: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ================= FOOTER ================= */

footer {
  background: var(--surface);
  padding: 80px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo img {
  height: 24px;
  margin-bottom: 32px;
  filter: brightness(0) saturate(100%) invert(42%) sepia(41%) saturate(323%) hue-rotate(120deg) brightness(94%) contrast(90%);
  /* Adjust based on actual logo */
}

.footer-info h3,
.footer-appointment h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.contact-details i {
  color: var(--primary);
  width: 20px;
}

.contact-details a {
  color: var(--text-light);
  transition: var(--transition);
  cursor: pointer;
}

.contact-details a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
}

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

.footer-appointment p {
  margin-bottom: 32px;
}

.footer-bottom {
  padding: 32px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.95rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .hero-text-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
  }

  .hero-desc {
    margin: 0;
  }

  .hero-media-section {
    min-height: 480px;
  }

  .hero-media-container {
    flex-direction: column;
    align-items: end;
    gap: 20px;
  }

  .trust-badge-float {
    flex-direction: row;
    align-items: center;
    max-width: 440px;
  }

  .about-grid,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .img-bottom {
    display: none;
    /* Simplify on smaller screens */
  }

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

  .nav,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    right: 0;
    width: 40%;
    margin: 0 auto;
    background: var(--surface);
    padding: 32px;
    box-shadow: var(--shadow-md);
    gap: 24px;
    z-index: 999;
  }

  .nav.active a {
    color: var(--text-color);
  }

  .nav.active a:hover,
  .nav.active a.active {
    color: var(--primary);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .header {
    padding: 32px 0 16px;
  }

  .nav-wrapper {
    width: 90%;
    max-width: 1140px;
  }

  .hero {
    padding: 40px 0 60px;
    text-align: center;
  }

  .hero-right h1 {
    font-size: 2.5rem;
  }

  .hero-media-section {
    min-height: 380px;
    padding: 24px 0;
  }

  .hero-media-container {
    width: 90%;
    gap: 0;
    justify-content: center;
    align-items: center;
  }

  .trust-badge-float {
    flex-direction: row;
    width: 100%;
    max-width: 440px;
    align-items: center;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
  }

  .stats {
    margin-top: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 32px 0 16px;
  }

  .nav.active {
    width: 90%;
    left: 0;
  }

  .hero-wrapper {
    margin: 0;
    border-radius: 0;
  }

  .hero-media-section {
    margin: 0;
    border-radius: 0;
  }

  .hero-media-background {
    width: 100%;
    border-radius: 0;
  }

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

  .trust-grid,
  .services-grid,
  .care-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= LANGUAGE SWITCHER ================= */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-switch button {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch button[data-lang="ar"] {
  font-size: 1rem;
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button.active {
  background: var(--accent);
  color: var(--primary);
}

/* ================= RTL (ARABIC) SUPPORT ================= */
html[dir="rtl"] body {
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
  text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

@media (max-width: 1024px) {
  /* the lang switch lives outside .nav-actions so it stays visible on mobile */
  .nav-right {
    gap: 12px;
  }
}