/* ==========================================================================
   Design Tokens & CSS Variables (Supports Accessibility & Theming)
   ========================================================================== */
:root {
  /* Color Palette - Warm, Calming, Professional Healthcare Aesthetic */
  --bg-primary: #fdfcf9;
  --bg-secondary: #f5f2eb;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f5;
  --bg-highlight: #eef3ef;
  
  --text-primary: #232b2b;
  --text-secondary: #4a5550;
  --text-muted: #6b7570;
  --text-inverse: #ffffff;

  --accent: #3d5a45;          /* Calming Deep Sage */
  --accent-hover: #2e4434;
  --accent-light: #e8efe9;
  --accent-gold: #9c7a4b;       /* Subtle warm gold accent */

  --border-color: #e5e0d8;
  --border-light: #f0ece5;

  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;

  /* Typography */
  --font-main: 'Assistant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: 'Alef', Georgia, serif;
  
  /* Font Scaling for Accessibility Widget */
  --font-scale: 1;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);

  /* Spacing */
  --container-max-width: 1140px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Accessibility Theme Overrides (Managed by accessibility.js)
   ========================================================================== */
body.a11y-high-contrast {
  --bg-primary: #000000 !important;
  --bg-secondary: #121212 !important;
  --bg-card: #1c1c1c !important;
  --bg-card-hover: #2a2a2a !important;
  --bg-highlight: #283618 !important;
  --text-primary: #ffff00 !important;   /* High visibility yellow */
  --text-secondary: #ffffff !important;
  --text-muted: #e0e0e0 !important;
  --border-color: #ffff00 !important;
  --border-light: #ffffff !important;
  --accent: #00ffff !important;         /* High visibility cyan */
  --accent-light: #1a332a !important;
}

body.a11y-monochrome {
  filter: grayscale(100%) !important;
}

body.a11y-invert {
  filter: invert(100%) hue-rotate(180deg) !important;
}

body.a11y-highlight-links a {
  text-decoration: underline 2px solid #ffcc00 !important;
  font-weight: 700 !important;
  color: #0b5394 !important;
  background-color: #fff9c4 !important;
}

body.a11y-readable-font {
  font-family: Arial, Tahoma, sans-serif !important;
}

body.a11y-stop-animations *,
body.a11y-stop-animations *::before,
body.a11y-stop-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus-visible {
  color: var(--accent-hover);
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253, 252, 249, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-primary);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.brand-link {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-link-highlight {
  background-color: var(--accent-light);
  color: var(--accent) !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav-link-highlight:hover {
  background-color: #dce7de;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin-block: 5px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger active animation */
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  min-height: 48px; /* Touch friendly accessibility standard */
  text-align: center;
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff !important;
  border-color: var(--whatsapp-color);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: #c9c2b6;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge-credential {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.text-accent {
  color: var(--accent);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-icon {
  color: var(--accent);
  font-weight: bold;
}

/* Hero Profile Media Card */
.hero-media {
  display: flex;
  justify-content: center;
}

.profile-card-decor {
  position: relative;
  padding: 16px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 100%;
}

.profile-image-container {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: linear-gradient(135deg, #e3ded6 0%, #d8cfc4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: inherit;
  transition: transform 0.4s ease;
}

.profile-card-decor:hover .profile-img {
  transform: scale(1.02);
}

.profile-placeholder {
  width: 320px;
  height: 380px;
  background: linear-gradient(135deg, #e3ded6 0%, #d8cfc4 100%);
  border-radius: calc(var(--radius-lg) - 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  opacity: 0.85;
}

.avatar-caption {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   Sections Common Components
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 50px;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-divider {
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 16px auto 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  background-color: var(--bg-card);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.about-card {
  background-color: var(--bg-secondary);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.styled-list {
  list-style: none;
}

.styled-list li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.styled-list li::before {
  content: '•';
  position: absolute;
  right: 6px;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

/* ==========================================================================
   Credentials & Experience Section
   ========================================================================== */
.credentials-section {
  background-color: var(--bg-primary);
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.credential-item {
  display: flex;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.credential-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.credential-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  border: 1px solid #d4e2d6;
}

.credential-info h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.credential-institution {
  display: block;
  font-size: 0.92rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.credential-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.credential-info .styled-list {
  margin-top: 10px;
  padding-right: 0;
}

.credential-info .styled-list li {
  font-size: 0.92rem;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   Services / Areas of Treatment Section
   ========================================================================== */
.services-section {
  background-color: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d1c9bd;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-tag {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--bg-secondary);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   Therapeutic Approach Section
   ========================================================================== */
.approach-section {
  background-color: var(--bg-card);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Poetic / Inspirational Quote Section
   ========================================================================== */
.quote-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #374e43 0%, #26382f 100%);
  color: #ffffff;
  text-align: center;
}

.quote-container {
  max-width: 800px;
}

.poetic-quote {
  position: relative;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.quote-text.poem-text {
  font-size: 1.25rem;
  line-height: 2.1;
  letter-spacing: 0.3px;
  display: inline-block;
  text-align: right;
  margin-bottom: 16px;
}

.quote-author {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: #cbd8cf;
  font-weight: 500;
  margin-top: 8px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-secondary);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  background-color: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card.highlight-card {
  border: 2px solid var(--whatsapp-color);
  background-color: #f7fdf9;
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-card-icon.whatsapp-color {
  background-color: #e6f9ed;
  color: var(--whatsapp-color);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.location-badge {
  background-color: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Accessibility Toolbar Widget
   ========================================================================== */
.a11y-widget {
  position: fixed;
  top: 140px;
  right: 0;
  z-index: 2000;
}

.a11y-toggle-btn {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.a11y-toggle-btn:hover {
  background-color: var(--accent-hover);
  transform: translateX(-4px);
}

.a11y-panel {
  position: absolute;
  top: 0;
  right: 56px;
  width: 320px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.a11y-panel-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.a11y-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.a11y-group {
  margin-bottom: 18px;
}

.a11y-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.a11y-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-a11y-action {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 10px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-fast);
}

.btn-a11y-action:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

.btn-a11y-action[aria-pressed="true"] {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.a11y-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.btn-a11y-reset {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-a11y-reset:hover {
  background-color: #fbebee;
  color: #c92a2a;
  border-color: #f0c5cb;
}

.a11y-statement-link {
  font-size: 0.85rem;
  text-align: center;
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   Accessibility Statement Modal Dialog
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--bg-card);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  z-index: 3001;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-body h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 18px;
  margin-bottom: 8px;
}

.modal-body ul {
  padding-right: 20px;
  margin-bottom: 16px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #212925;
  color: #e5ece7;
  padding: 60px 0 30px;
  border-top: 1px solid #313d37;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-title {
  display: block;
  font-size: 0.9rem;
  color: #a4b4aa;
  margin-top: 4px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #c2cfc7;
  max-width: 320px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: #c2cfc7;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-contact p {
  color: #c2cfc7;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #334038;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #9cb0a3;
}

.back-to-top-btn {
  background-color: #313d37;
  color: #ffffff;
  border: 1px solid #43544b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.back-to-top-btn:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   Floating Quick Action (WhatsApp)
   ========================================================================== */
.floating-contact {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1500;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.floating-tooltip {
  position: absolute;
  right: 70px;
  background-color: #232b2b;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-whatsapp-btn:hover .floating-tooltip,
.floating-whatsapp-btn:focus .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-highlights {
    justify-content: center;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-card);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 30px 24px;
    display: block;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .quote-text {
    font-size: 1.35rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .a11y-widget {
    top: auto;
    bottom: 96px;
    right: 0;
  }

  .a11y-panel {
    right: 12px;
    bottom: 56px;
    top: auto;
    width: calc(100vw - 24px);
    max-width: 320px;
  }
}
