/**
 * MOTIONREHAB BUDAPEST - Main Stylesheet
 * Architectural, warm, clinical, and human design system.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #FBFBF9;
  --bg-secondary: #F3F3EF;
  --bg-tertiary: #EAEAE4;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F7F7F4;
  --surface-tint: #EEF3F0;
  
  --text-main: #141716;
  --text-muted: #5A625E;
  --text-light: #818C86;
  --text-inverse: #FFFFFF;
  
  /* Brand Accent: Sophisticated Clinical Sage / Deep Moss */
  --brand-accent: #245849;
  --brand-accent-hover: #194034;
  --brand-accent-light: #E7EFEA;
  --brand-accent-glow: rgba(36, 88, 73, 0.12);
  
  --border-subtle: rgba(20, 23, 22, 0.08);
  --border-medium: rgba(20, 23, 22, 0.16);
  --border-strong: rgba(20, 23, 22, 0.3);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 20px 48px rgba(20, 23, 22, 0.09);

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 1040px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s ease-out;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Buttons & CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px var(--brand-accent-glow);
}

.btn-primary:hover {
  background-color: var(--brand-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-accent-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.btn-white:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-accent);
}

/* HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(251, 251, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom-color: var(--border-medium);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-inner {
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  text-decoration: none;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 8px var(--brand-accent-glow);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 600;
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.2rem;
  position: relative;
  white-space: nowrap; /* Prevent Hungarian hyphenation breakage in menu */
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* HERO SECTION */
.hero-section {
  padding-top: 140px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FBFBF9 0%, #F5F5F0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--brand-accent);
  display: block;
}

.hero-description {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

/* Floating Badge */
.hero-floating-card {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  max-width: 290px;
  z-index: 2;
  animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-card-pill {
  display: inline-block;
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.floating-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.floating-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* TRUST BAR */
.trust-bar {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background-color: var(--bg-secondary);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

/* SECTIONS COMMON */
.section {
  padding: 6.5rem 0;
  position: relative;
}

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* STATISTICS / NUMBERED HIGHLIGHTS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.04em;
}

.stat-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ABOUT / BEMUTATKOZAS */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.about-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.principle-item {
  border-left: 2px solid var(--brand-accent);
  padding-left: 1rem;
}

.principle-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

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

/* REHABILITATION AREAS */
.rehab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.rehab-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.rehab-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-medium);
}

.rehab-image-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-tertiary);
}

.rehab-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rehab-card:hover .rehab-image-wrap img {
  transform: scale(1.06);
}

.rehab-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rehab-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.rehab-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.rehab-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-accent);
  transition: gap 0.2s ease;
}

.rehab-card:hover .rehab-card-arrow {
  gap: 0.75rem;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-accent);
  margin-top: auto;
}

.service-link:hover {
  text-decoration: underline;
}

/* HOW IT WORKS / HOGYAN ZAJLIK (Vertical Step Timeline) */
.timeline-section {
  position: relative;
}

.timeline-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-accent) 0%, rgba(36, 88, 73, 0.15) 100%);
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: relative;
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--brand-accent);
  box-shadow: 0 4px 16px var(--brand-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-accent);
  z-index: 2;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.4rem;
  flex-grow: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.timeline-step-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.timeline-step-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* METHODS / MODSZEREINK INTERACTIVE */
.methods-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.method-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.method-btn:hover {
  background-color: var(--bg-secondary);
}

.method-btn.active {
  background-color: var(--brand-accent-light);
  border-color: rgba(36, 88, 73, 0.2);
}

.method-btn-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.method-btn.active .method-btn-title {
  color: var(--brand-accent);
}

.method-btn-snippet {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.methods-display-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-md);
}

.methods-display-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.methods-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 23, 22, 0.88) 100%);
  padding: 2.2rem;
  color: #fff;
}

.methods-overlay-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.methods-overlay-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

/* TEAM / SZAKEMBEREINK */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

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

.team-image-wrap {
  height: 280px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-image-wrap img {
  transform: scale(1.04);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* INDIVIDUAL APPROACH BANNER */
.individual-banner {
  background-color: var(--text-main);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 4.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.individual-banner::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(36, 88, 73, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.individual-banner .eyebrow {
  color: #79c4a8;
}

.individual-banner .eyebrow::before {
  background-color: #79c4a8;
}

.individual-banner h2 {
  color: var(--text-inverse);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.individual-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.65;
}

.individual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.individual-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.individual-list li svg {
  min-width: 22px;
  color: #79c4a8;
  margin-top: 2px;
}

/* FAQ SECTION (Accordion) */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-header {
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  width: 100%;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.faq-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
  color: var(--brand-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.8rem;
}

.faq-item.active .faq-body {
  max-height: 400px;
  padding-bottom: 1.5rem;
  transition: max-height 0.4s ease-in-out;
}

.faq-body p {
  font-size: 0.98rem;
  line-height: 1.6;
}

/* CTA BLOCK */
.cta-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 6.5rem 0;
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
}

.cta-box .section-title {
  margin-bottom: 1.2rem;
}

.cta-box .section-subtitle {
  margin-bottom: 2.25rem;
}

.cta-box .hero-cta-group {
  justify-content: center;
}

/* CONTACT PAGE SPECIFICS */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-card-info {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.2rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background-color: var(--brand-accent-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.98rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--brand-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-accent-glow);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.map-container {
  margin-top: 3.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* FOOTER */
.site-footer {
  background-color: #111413;
  color: #9AA39E;
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand p {
  color: #7E8783;
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1.3rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: #9AA39E;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #6C7571;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* INNER PAGE HERO (BREADCRUMB & HEADER) */
.page-hero {
  padding-top: 135px;
  padding-bottom: 50px;
  background: linear-gradient(180deg, #FBFBF9 0%, #F5F5F0 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-accent);
}

.page-hero-title {
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* CONTENT BLOCKS & LEGAL */
.legal-content-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: 1px solid var(--border-subtle);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content-wrap h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content-wrap h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
}

.legal-content-wrap p, .legal-content-wrap ul {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content-wrap ul {
  padding-left: 1.5rem;
}

.legal-content-wrap li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* SERVICE DETAIL SPECIFICS */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}

.service-highlight-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.service-highlight-box h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1080px) {
  .hero-title {
    font-size: 3rem;
  }
  .rehab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 868px) {
  .hero-grid,
  .about-grid,
  .methods-container,
  .banner-grid,
  .contact-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-floating-card {
    position: static;
    margin-top: -1.5rem;
    max-width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
  }

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

  .mobile-toggle {
    display: flex;
  }

  .timeline-center-line {
    left: 24px;
  }

  .timeline-node {
    width: 48px;
    min-width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .timeline-step {
    gap: 1.25rem;
  }

  .timeline-content {
    padding: 1.4rem;
  }

  .individual-banner {
    padding: 2.5rem 2rem;
  }

  .services-grid,
  .rehab-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .trust-grid,
  .stats-grid,
  .about-principles {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .page-hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 4.5rem 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
