/* ===== CSS Variables ===== */
:root {
  --primary: #DAA00E;
  --primary-light: #F2B824;
  --primary-dark: #B5840A;
  --primary-glow: rgba(218, 160, 14, 0.25);
  --secondary: #1A1A2E;
  --tertiary: #B9BABC;
  --bg-color: #f8f9fc;
  --bg-alt: #ffffff;
  --text-main: #2b2b2b;
  --text-light: #6e6e6e;
  --text-muted: #999;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(218, 160, 14, 0.15);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(218, 160, 14, 0.12);
  --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.1);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --female-color: #D4508B;
  --female-light: rgba(212, 80, 139, 0.1);
  --male-color: #3B82F6;
  --male-light: rgba(59, 130, 246, 0.1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Skip link for screen-reader / keyboard users */
.skip-link {
  position: fixed;
  top: -100px;
  right: 16px;
  z-index: 10001;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1,
h2,
h3,
h4 {
  color: var(--secondary);
  font-weight: 800;
  line-height: 1.3;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 30px;
  animation: pulse-loader 1.5s infinite;
}

.loader-logo .logo-l {
  color: var(--primary);
}

.loader-logo .logo-m {
  color: var(--tertiary);
  margin-right: -15px;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  animation: load-bar 1.5s ease-in-out forwards;
}

@keyframes load-bar {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes pulse-loader {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ===== Page System ===== */
.page {
  display: none;
  opacity: 0;
  animation: none;
}

.page.active {
  display: block;
  opacity: 1;
  animation: pageIn 0.5s ease forwards;
}

.page-section {
  padding-top: 120px;
  min-height: 100vh;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.logo:hover {
  transform: scale(1.03);
}

.logo-l {
  color: var(--primary);
}

.logo-m {
  color: var(--tertiary);
  margin-right: -10px;
}

.logo-text {
  font-size: 1.1rem;
  margin-right: 10px;
  color: var(--secondary);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 12px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
}

.nav-links a i {
  font-size: 0.85rem;
  opacity: 0;
  transition: var(--transition-fast);
  margin-left: -6px;
  width: 0;
}

.nav-links a:hover i,
.nav-links a.active i {
  opacity: 1;
  margin-left: 0;
  width: auto;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(218, 160, 14, 0.08);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(218, 160, 14, 0.12);
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #fff 0%, rgba(218, 160, 14, 0.04) 40%, rgba(185, 186, 188, 0.08) 100%);
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 12s infinite ease-in-out;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary-light);
  top: -150px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--tertiary);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 50%;
  left: 40%;
  opacity: 0.1;
  animation-delay: 6s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -40px) rotate(5deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-3deg);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(218, 160, 14, 0.1);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(218, 160, 14, 0.2);
}

.hero-badge i {
  color: var(--primary);
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 900;
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.hero-image {
  position: relative;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-img-inner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 12px 20px;
  border-radius: 60px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
  animation: float-badge 4s infinite ease-in-out;
  border: 1px solid rgba(218, 160, 14, 0.08);
}

.floating-badge i {
  color: var(--primary);
  font-size: 1.3rem;
}

.badge-1 {
  top: 10%;
  right: -20px;
}

.badge-2 {
  bottom: 20%;
  left: -20px;
  animation-delay: 1.5s;
}

@keyframes float-badge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-family: 'Tajawal', sans-serif;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  box-shadow: 0 8px 25px rgba(218, 160, 14, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(218, 160, 14, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #2a2a4a;
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== Section Headers ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(218, 160, 14, 0.08);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(218, 160, 14, 0.15);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Services ===== */
.services {
  background: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, rgba(218, 160, 14, 0.08), rgba(218, 160, 14, 0.15));
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  border-radius: 24px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.service-subtitle {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-details {
  list-style: none;
  text-align: right;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.service-details li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.service-details li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 3px;
  color: var(--primary);
  font-size: 0.75rem;
}

/* ===== Insurance ===== */
.insurance {
  background: var(--white);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.insurance-card {
  background: var(--bg-color);
  border-radius: var(--radius);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.insurance-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(218, 160, 14, 0.2);
}

.insurance-card img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(60%);
  opacity: 0.7;
  transition: var(--transition);
}

.insurance-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.insurance-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== About Section ===== */
.info {
  background: var(--bg-color);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-card-icon.male-icon {
  background: var(--male-light);
  color: var(--male-color);
  border: 3px solid rgba(59, 130, 246, 0.2);
}

.about-card-icon.female-icon {
  background: var(--female-light);
  color: var(--female-color);
  border: 3px solid rgba(212, 80, 139, 0.2);
}

.about-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.about-card>.about-card-content>p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.about-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-features span i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* About Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== Team Section ===== */
.team {
  background: var(--bg-color);
}

.team-category {
  margin-bottom: 40px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--male-light), rgba(59, 130, 246, 0.05));
  border-radius: var(--radius);
  border-right: 4px solid var(--male-color);
}

.category-header.female-header {
  background: linear-gradient(135deg, var(--female-light), rgba(212, 80, 139, 0.05));
  border-right-color: var(--female-color);
}

.category-header i {
  font-size: 1.3rem;
  color: var(--male-color);
}

.category-header.female-header i {
  color: var(--female-color);
}

.category-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Team Name Cards */
.team-names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.team-name-card {
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.team-name-card:hover {
  border-color: var(--primary-glow);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.team-name-card.active {
  border-color: var(--primary);
  background: rgba(218, 160, 14, 0.04);
}

.team-name-card.active .expand-icon {
  transform: rotate(180deg);
}

.name-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.name-avatar.male {
  background: var(--male-light);
  color: var(--male-color);
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.name-avatar.female {
  background: var(--female-light);
  color: var(--female-color);
  border: 2px solid rgba(212, 80, 139, 0.2);
}

.name-text {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
}

.expand-icon {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition);
}

/* Team Detail Panel */
.team-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.team-detail.active {
  max-height: 600px;
  opacity: 1;
  margin-top: 12px;
  margin-bottom: 12px;
}

.detail-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.detail-header.male-detail {
  border-bottom-color: rgba(59, 130, 246, 0.15);
}

.detail-header.female-detail {
  border-bottom-color: rgba(212, 80, 139, 0.15);
}

.detail-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.male-detail .detail-avatar {
  background: linear-gradient(135deg, var(--male-light), rgba(59, 130, 246, 0.2));
  color: var(--male-color);
  border: 3px solid rgba(59, 130, 246, 0.3);
}

.female-detail .detail-avatar {
  background: linear-gradient(135deg, var(--female-light), rgba(212, 80, 139, 0.2));
  color: var(--female-color);
  border: 3px solid rgba(212, 80, 139, 0.3);
}

.detail-info {
  flex: 1;
}

.detail-info h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.detail-title {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

.male-detail .detail-title {
  background: var(--male-light);
  color: var(--male-color);
}

.female-detail .detail-title {
  background: var(--female-light);
  color: var(--female-color);
}

.close-detail {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.close-detail:hover {
  background: #fee;
  color: #e53e3e;
}

.detail-qualifications {
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-qualifications li {
  position: relative;
  padding-right: 28px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.detail-qualifications li::before {
  content: '\f0da';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 3px;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: var(--bg-color);
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(218, 160, 14, 0.15);
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
  background: rgba(218, 160, 14, 0.1);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.work-hours-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-depts-box {
  background: linear-gradient(135deg, var(--secondary), #25254a);
  padding: 18px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(218, 160, 14, 0.15);
}

.work-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.work-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.work-dept {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-dept::before {
  content: '\f017';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-light);
  font-size: 0.85rem;
}

.work-time {
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.work-days-box {
  background: rgba(218, 160, 14, 0.06);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(218, 160, 14, 0.15);
}

.days-title {
  font-weight: 800;
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.days-text {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 600;
}

.off-day {
  margin-top: 8px;
  font-weight: 700;
  color: #c0392b;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.off-day::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
}

.contact-card.whatsapp-card {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.contact-card.whatsapp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

.contact-card.whatsapp-card .contact-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.contact-card.whatsapp-card h3,
.contact-card.whatsapp-card p {
  color: var(--white);
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  opacity: 0.9;
}

/* Map */
.map-container {
  height: 100%;
  min-height: 400px;
}

.glass-map {
  position: relative;
  border-radius: var(--radius-lg);
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.glass-map iframe {
  display: block;
}

.map-overlay-link {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 12px;
}

.footer-logo .logo-l {
  color: var(--primary);
}

.footer-logo .logo-m {
  color: var(--tertiary);
  margin-right: -10px;
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.5);
  max-width: 350px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-nav h4,
.footer-social h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--primary);
  padding-right: 8px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.7);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: fab-pulse 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(10px);
}

.fab-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  background: var(--secondary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  transform: translateX(20px);
}

@keyframes fab-pulse {

  0%,
  100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  }
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(218, 160, 14, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(218, 160, 14, 0.4);
}

/* ===== Scroll Animations ===== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .floating-badge {
    display: none;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about p {
    max-width: 100%;
  }

  .footer-nav {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    z-index: 999;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: 12px;
    width: 100%;
  }

  .nav-links a i {
    opacity: 1;
    margin-left: 0;
    width: auto;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-names-grid {
    grid-template-columns: 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .whatsapp-fab {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .page-section {
    padding-top: 100px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-badge {
    font-size: 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .insurance-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-card {
    padding: 28px 20px;
  }
}

/* ===== WhatsApp FAB hide-on-scroll (class-based, keeps hover intact) ===== */
.whatsapp-fab.fab-hidden {
  transform: scale(0);
}

/* ===== Image fallbacks (when an external image fails to load) ===== */
.insurance-card.logo-failed {
  min-height: 90px;
}

.insurance-card.logo-failed span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

.insurance-card.logo-failed::before {
  content: '\f3ed';
  /* fa-shield-halved */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--primary);
  opacity: 0.8;
}

.gallery-item.img-failed,
.main-card.img-failed .hero-img-inner,
.main-card.img-failed {
  background: linear-gradient(135deg, rgba(218, 160, 14, 0.12), rgba(185, 186, 188, 0.15));
}

.gallery-item.img-failed::before,
.main-card.img-failed::before {
  content: '\f21e';
  /* fa-heart-pulse */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.35;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.gallery-item.img-failed {
  display: flex;
  align-items: center;
  justify-content: center;
}