/* ═══════════════════════════════════════════════════════════════════════════
   Kayan Center for Physical Therapy — Custom Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --primary: #1a828b;
  --primary-light: #23a8b3;
  --primary-dark: #126168;
  --primary-rgb: 26, 130, 139;
  --secondary: #5e6263;
  --secondary-rgb: 94, 98, 99;
  --bg: #ffffff;
  --bg-dark: #0f1b1d;
  --bg-section: #f5fafb;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #7c8293;
  --border-color: #e8eef1;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a828b 0%, #23a8b3 100%);
  --gradient-hero: linear-gradient(
    135deg,
    rgba(15, 27, 29, 0.85) 0%,
    rgba(26, 130, 139, 0.7) 100%
  );
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f5fafb 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 30px rgba(var(--primary-rgb), 0.25);

  /* Typography */
  --font-ar: "Tajawal", sans-serif;
  --font-en: "Inter", sans-serif;

  /* Spacing */
  --section-padding: 100px 0;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-ar);
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="ltr"] {
  font-family: var(--font-en);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

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

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

/* ─── Section Base ───────────────────────────────────────────────────────── */
.section-padding {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.kayan-navbar {
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
  z-index: 1050;
}

.kayan-navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-md);
}

/* Logo */
.kayan-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff !important;
  transition: var(--transition);
}

.kayan-navbar.scrolled .kayan-logo {
  color: var(--primary) !important;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kayan-navbar.scrolled .logo-icon {
  background: var(--gradient-primary);
  color: #fff;
}

/* Nav Links */
.kayan-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.kayan-navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 1px;
}

.kayan-navbar .nav-link:hover::after,
.kayan-navbar .nav-link.active::after {
  width: 50%;
}

.kayan-navbar .nav-link:hover {
  color: #fff;
}

.kayan-navbar.scrolled .nav-link {
  color: var(--text-body);
}

.kayan-navbar.scrolled .nav-link:hover {
  color: var(--primary);
}

.kayan-navbar.scrolled .nav-link::after {
  background: var(--primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 3px;
  backdrop-filter: blur(10px);
}

.kayan-navbar.scrolled .lang-switcher {
  background: var(--bg-section);
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.kayan-navbar.scrolled .lang-btn {
  color: var(--text-muted);
}

.kayan-navbar.scrolled .lang-btn.active {
  color: #fff;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(var(--primary-rgb), 0.4);
}

.btn-cta i {
  font-size: 1.15rem;
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: 6px;
  font-size: 1.4rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.kayan-navbar .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.kayan-navbar.scrolled .navbar-toggler-icon {
  filter: none;
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
  .kayan-navbar {
    background: rgba(15, 27, 29, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
  }

  .kayan-navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
  }

  .navbar-collapse {
    padding: 16px 0;
  }

  .kayan-navbar .navbar-nav {
    text-align: center;
  }

  .kayan-navbar .nav-link {
    display: inline-block;
  }

  .navbar-actions {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: center;
    gap: 16px !important;
  }

  .navbar-actions .btn-cta {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

  .kayan-navbar.scrolled .navbar-actions {
    border-top-color: var(--border-color);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-badge i {
  color: var(--primary-light);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-hero-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-stat .stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Hero floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  animation: floatShape 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: -50px;
  left: 10%;
  animation-delay: 2s;
}

.hero-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@media (max-width: 767.98px) {
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-stat .stat-number {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 18px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  text-align: center;
}

[dir="rtl"] .about-accent-box {
  right: auto;
  left: 20px;
}

.about-accent-box .accent-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-accent-box .accent-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 32px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-highlight:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-highlight h6 {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.about-highlight p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: center;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.service-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.kayan-footer {
  position: relative;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
}

.footer-wave {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: 80px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.footer-about-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-heading {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-inline-start: 6px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--primary-light);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-address {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 27, 29, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  transform: translateY(100%);
  transition: var(--transition-slow);
  border-top: 1px solid rgba(var(--primary-rgb), 0.2);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.cookie-icon {
  font-size: 1.5rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.btn-cookie {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cookie:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}
.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY HELPERS
   ═══════════════════════════════════════════════════════════════════════════ */

.text-primary-kayan {
  color: var(--primary) !important;
}

.bg-primary-kayan {
  background: var(--gradient-primary) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE FINE-TUNING
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
  .section-header h2 {
    font-size: 2rem;
  }

  :root {
    --section-padding: 70px 0;
  }
}

@media (max-width: 767.98px) {
  .section-header h2 {
    font-size: 1.7rem;
  }

  :root {
    --section-padding: 60px 0;
  }

  .about-accent-box {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    display: inline-block;
    margin-top: 16px;
  }

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

  .cookie-text {
    flex-direction: column;
  }
}

/* ─── Contact Info, Hours, & Map Styles ────────────────────────────────── */
.contact-info-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition);
}

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

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.hours-time {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.hours-list li.closed .hours-time {
  color: var(--secondary);
  font-weight: 500;
  opacity: 0.7;
}

.contact-map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 400px;
  position: relative;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ─── Compact Services ───────────────────────────────────────────────── */
.services-compact {
  padding: 70px 0;
}

.services-compact .section-header {
  margin-bottom: 40px;
}

.service-card-compact {
  padding: 24px 20px;
}

.service-card-compact .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-card-compact h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.service-card-compact p {
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ─── Insurance Partners Grid ────────────────────────────────────────── */
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.insurance-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  transition: var(--transition);
  text-align: center;
  flex: 0 1 260px; /* Fixed elegant width, centers last row if items are odd */
}

.insurance-logo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.insurance-logo-card img {
  width: 160px;
  height: 120px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: var(--transition);
}

.insurance-logo-card:hover img {
  filter: grayscale(0%);
}

.insurance-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 991.98px) {
  .insurance-logo-card {
    flex: 0 1 200px;
  }
}

@media (max-width: 575.98px) {
  .insurance-logo-card {
    flex: 0 1 160px;
    padding: 24px 16px;
  }

  .insurance-logo-card img {
    width: 120px;
    height: 90px;
  }
}

/* ─── Contact Form Inputs ────────────────────────────────────────────── */
.kayan-input {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-section);
}

.kayan-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
  background: var(--bg);
}

.kayan-input::placeholder {
  color: var(--text-muted);
}

/* ─── Contact Form Button Mobile Width ─────────────────────────────────── */
@media (max-width: 767.98px) {
  #contactForm .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT TABS
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.contact-tab-nav::-webkit-scrollbar {
  display: none;
}

.contact-tab-nav .nav-item {
  flex: 1;
  min-width: 0;
}

.contact-tab-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.contact-tab-nav .nav-link i {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-tab-nav .nav-link:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

.contact-tab-nav .nav-link.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

@media (max-width: 575.98px) {
  .contact-tab-nav {
    gap: 8px;
    padding: 8px;
  }
  .contact-tab-nav .nav-item {
    flex: 0 0 auto; /* Allow natural width instead of shrinking */
  }
  .contact-tab-nav .nav-link {
    flex-direction: row;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .contact-tab-nav .nav-link i {
    font-size: 1.15rem;
  }
  .contact-tab-nav .nav-link span {
    display: none !important;
  }
}

/* ─── Contact Details List ────────────────────────────────────────────── */
.contact-details-list {
  margin: 0;
  padding: 0;
}

.contact-details-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-details-list li > div:last-child {
  min-width: 0; /* Critical flexbox fix to allow content wrapping */
  flex: 1;
}

.contact-details-list li:last-child {
  border-bottom: none;
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-icon.whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.contact-detail-icon.email {
  background: rgba(234, 67, 53, 0.1);
  color: #ea4335;
}

.contact-detail-icon.location {
  background: rgba(66, 133, 244, 0.1);
  color: #4285f4;
}

.contact-detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-details-list a,
.contact-details-list span {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all; /* Break emails and long text gracefully on tiny screens */
  overflow-wrap: break-word;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER LOCATION BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.footer-location-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-location-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.footer-directions-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-directions-btn:hover {
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SERVICES CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */

.services-mobile-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-mobile-carousel::-webkit-scrollbar {
  display: none;
}

.services-carousel-slide {
  flex: 0 0 80%;
  max-width: 80%;
  scroll-snap-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSURANCE MARQUEE (MOBILE)
   ═══════════════════════════════════════════════════════════════════════════ */

.insurance-marquee-wrapper {
  overflow-x: auto;
  position: relative;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  scroll-behavior: auto;
  touch-action: pan-x;
}

.insurance-marquee-wrapper::-webkit-scrollbar {
  display: none;
}

.insurance-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-right: 16px; /* Space for seamless scroll */
}

.insurance-marquee-item {
  flex: 0 0 auto;
  width: 300px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE OVERFLOW FIX
   ═══════════════════════════════════════════════════════════════════════════ */

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

.container,
.container-fluid,
section,
footer,
nav {
  max-width: 100%;
}

.row {
  margin-left: 0;
  margin-right: 0;
}
