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

:root {
  --primary: #1a2f3f;
  --accent: #b08d57;
  --accent-light: #d4b882;
  --accent-bg: #faf6f0;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --white: #ffffff;
  --off-white: #fafbfc;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 4px 20px rgba(0,0,0,0.05);
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══ PARTICLE CANVAS ═══ */
#particle-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.5;
}

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s;
}
nav.scrolled {
  padding: 14px 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(176,141,87,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 600;
  color: var(--white); letter-spacing: -0.5px;
  transition: color 0.4s; text-decoration: none;
}
nav.scrolled .nav-logo { color: var(--primary); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.8px;
  transition: color 0.3s; text-transform: uppercase;
}
nav.scrolled .nav-links a { color: var(--gray-600); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 12px 28px !important; border-radius: 50px;
  font-weight: 700 !important; font-size: 14px !important;
  letter-spacing: 1px !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 15px rgba(176,141,87,0.3) !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(176,141,87,0.4) !important;
  background: #9a7a4a !important;
}
.mobile-menu { display: none; cursor: pointer; z-index: 101; }
nav.menu-open .nav-links { display: flex !important; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(26,47,63,1); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 32px; z-index: 9999; overflow-y: auto; }
nav.menu-open .nav-links a { color: white !important; font-size: 20px !important; }
nav.menu-open .mobile-menu { display: none !important; }
nav.menu-open .mobile-menu span { background: white; }
nav.menu-open .mobile-menu span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
nav.menu-open .mobile-menu span:nth-child(2) { opacity: 0; }
nav.menu-open .mobile-menu span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; }
nav.scrolled .mobile-menu span { background: var(--primary); }

/* ═══ HERO ═══ */
.hero {
  min-height: 85vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: #0e1c28;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/brighton-img/team-photo.jpg') center top/contain no-repeat,
    linear-gradient(135deg, #1a2f3f 0%, #0d9488 100%);
  transform: scale(1.02);
  animation: none;
}
@keyframes heroZoom { 0% { transform: scale(1.05); } 100% { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,47,63,0.88) 0%, rgba(14,28,40,0.7) 40%, rgba(13,148,136,0.2) 100%);
}
.hero-overlay::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,47,63,0.9) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto; padding: 0 60px;
  width: 100%; text-align: center;
  padding-top: 120px; padding-bottom: 80px;
}
.hero-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: rgba(255,255,255,0.6);
  margin-bottom: 32px; font-weight: 500;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.hero-breadcrumb a:hover { color: var(--accent-light); }
.hero-breadcrumb svg { opacity: 0.4; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -2px; color: white;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 20px; line-height: 1.8;
  color: rgba(255,255,255,0.7);
  max-width: 620px; margin: 0 auto;
}

/* ═══ SECTION UTILITIES ═══ */
.section-label {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 30px; height: 2px; background: var(--accent);
}
.section-label-center { justify-content: center; }
.section-label-center::after {
  content: ''; width: 30px; height: 2px; background: var(--accent);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -1.5px; color: var(--primary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 18px; line-height: 1.8;
  color: var(--gray-600); max-width: 620px;
}

/* ═══ DOCTORS GRID ═══ */
.doctors-section {
  padding: 140px 60px;
  max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 2;
}
.doctors-header { text-align: center; margin-bottom: 72px; }
.doctors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.doctor-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(176,141,87,0.12);
  border-radius: 28px; padding: 48px 36px 40px;
  text-align: center; position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}
.doctor-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s;
}
.doctor-card:hover::before { transform: scaleX(1); }
.doctor-card::after {
  content: ''; position: absolute; bottom: -80px; right: -80px;
  width: 200px; height: 200px; border-radius: 50%;
  opacity: 0.03; transition: opacity 0.5s;
}
.doctor-card:nth-child(odd)::after { background: var(--accent); }
.doctor-card:nth-child(even)::after { background: var(--teal); }
.doctor-card:hover::after { opacity: 0.08; }
.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.1);
  border-color: transparent;
  background: rgba(255,255,255,0.95);
}

/* Avatar */
.doctor-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 24px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 700; color: white;
  letter-spacing: -1px;
}
.doctor-avatar::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  z-index: -1;
  animation: avatarPulse 4s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.avatar-gold { background: linear-gradient(135deg, #b08d57, #9a7a4a); }
.avatar-teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.avatar-mixed { background: linear-gradient(135deg, #1a2f3f, #0d9488); }
.avatar-warm { background: linear-gradient(135deg, #b08d57, #c4956a); }
.avatar-deep { background: linear-gradient(135deg, #1a2f3f, #b08d57); }
.avatar-emerald { background: linear-gradient(135deg, #0d9488, #059669); }

.doctor-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 600; color: var(--primary);
  margin-bottom: 6px; line-height: 1.3;
}
.doctor-title {
  font-size: 15px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.doctor-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 24px;
}
.doctor-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(176,141,87,0.15);
  color: var(--gray-700);
  transition: all 0.3s;
}
.doctor-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.doctor-tag-teal { border-color: rgba(13,148,136,0.2); }
.doctor-tag-teal:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }

.btn-profile {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  color: var(--accent); background: transparent;
  border: 2px solid rgba(176,141,87,0.25);
  cursor: pointer; transition: all 0.3s;
  letter-spacing: 0.5px;
}
.btn-profile:hover {
  background: var(--accent); color: white;
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(176,141,87,0.3);
  transform: translateY(-2px);
}
.btn-profile svg { transition: transform 0.3s; }
.btn-profile:hover svg { transform: translateX(3px); }

/* ═══ EXPANDED PROFILE ═══ */
.doctor-profile {
  max-height: 400px; overflow: visible;
  opacity: 1; padding-top: 24px;
  transition: max-height 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s, padding 0.5s;
}
.doctor-card.expanded .btn-profile {
  background: var(--accent); color: white; border-color: var(--accent);
}
.profile-divider {
  width: 60px; height: 2px; margin: 0 auto 20px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
}
.profile-detail {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; text-align: left;
  padding: 0 8px;
}
.profile-detail-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; background: var(--gray-50);
}
.profile-detail-text {
  font-size: 15px; color: var(--gray-600); line-height: 1.6;
}
.profile-detail-text strong {
  display: block; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-400); margin-bottom: 2px;
}
.profile-languages {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;
}
.lang-tag {
  padding: 3px 10px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  background: var(--teal-light); color: var(--teal);
}

/* ═══ CTA ═══ */
.cta-section {
  padding: 80px 60px 140px;
  max-width: 1400px; margin: 0 auto;
  text-align: center; position: relative; z-index: 2;
}
.cta-box {
  background: var(--primary);
  border-radius: 32px; padding: 100px 60px;
  position: relative; overflow: hidden; color: white;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(176,141,87,0.2), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(13,148,136,0.15), transparent 60%);
}
.cta-canvas { position: absolute; inset: 0; pointer-events: none; }
.cta-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.cta-box h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-box p {
  font-size: 19px; color: rgba(255,255,255,0.7);
  margin-bottom: 44px; max-width: 520px;
  margin-left: auto; margin-right: auto;
  position: relative; z-index: 1; line-height: 1.8;
}
.cta-buttons {
  display: flex; gap: 16px; justify-content: center;
  position: relative; z-index: 1; flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9a7a4a);
  color: white; font-weight: 700; padding: 20px 44px;
  border-radius: 60px; text-decoration: none; font-size: 16px;
  transition: all 0.4s; box-shadow: 0 4px 30px rgba(176,141,87,0.4);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 50px rgba(176,141,87,0.5); }
.btn-white {
  background: white; color: var(--primary); font-weight: 700;
  padding: 20px 44px; border-radius: 60px; text-decoration: none;
  font-size: 16px; transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.btn-ghost {
  border: 2px solid rgba(255,255,255,0.3); color: white; font-weight: 600;
  padding: 20px 36px; border-radius: 60px; text-decoration: none;
  font-size: 16px; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ═══ FOOTER ═══ */
footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  padding: 80px 60px 40px; position: relative; z-index: 2;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 600; color: white;
  margin-bottom: 16px; display: block; text-decoration: none;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 16px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.5); }
footer h4 {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: white; margin-bottom: 20px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 12px; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 16px; transition: color 0.3s; }
footer a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-size: 15px; color: rgba(255,255,255,0.3);
}

/* ═══ SCROLL ANIMATIONS ═══ */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.9s, transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  nav { padding: 16px 24px; }
  .hero-content { padding: 0 24px; padding-top: 100px; padding-bottom: 60px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .doctors-section { padding: 80px 24px; }
  .doctors-grid { grid-template-columns: 1fr; }
  .cta-section, footer { padding-left: 24px; padding-right: 24px; }
  .cta-buttons { flex-direction: column; }
  .btn-white, .btn-ghost, .btn-primary { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .doctor-card { padding: 36px 24px 32px; }
}
.mobile-close { display: none; position: absolute; top: 20px; right: 24px; font-size: 34px; color: white; cursor: pointer; width: 44px; height: 44px; line-height: 44px; text-align: center; z-index: 10001; }
nav.menu-open .mobile-close { display: block; }
.footer-social{display:flex;gap:12px;margin-top:16px;}.footer-social a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.1);color:rgba(255,255,255,0.6);text-decoration:none;transition:all 0.3s;font-size:18px;}.footer-social a:hover{background:var(--accent);color:#fff;transform:translateY(-2px);}.lang-btn.active{background:#b08d57 !important;color:#fff !important;}nav.scrolled .lang-switcher{background:#f0ede8;}nav .lang-switcher{background:rgba(255,255,255,0.15);border-radius:20px;padding:2px;}
/* Source doctor profiles retain the existing card and portrait treatment. */
.doctors-grid { align-items: stretch; }
.doctor-background { color: #555; font-size: 16px; line-height: 1.8; }
.doctor-background summary { color: var(--primary); font-weight: 700; cursor: pointer; padding: 12px 0; }
.doctor-background summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.doctor-background p + p { margin-top: 12px; }

.doctors-grid .doctor-card { height: 100%; }
.doctors-grid .doctor-card > div:first-child { aspect-ratio: 3 / 4; }
.doctors-grid .doctor-card > div:first-child img { height: 100% !important; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
