/*
Theme Name: Polyclinique Bethesda
Theme URI: https://www.bethesdacm.info
Author: Polyclinique Bethesda de Bujumbura
Author URI: https://www.bethesdacm.info
Description: Thème professionnel pour la Polyclinique Bethesda de Bujumbura — Centre médical d'excellence au cœur du Burundi.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://www.bethesdacm.info
Text Domain: bethesda
Tags: medical, clinic, health, french, responsive, custom-menu, custom-logo
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cream:      #F5F0E8;
  --deep:       #0D2B2B;
  --teal:       #1A5C5C;
  --gold:       #C4A35A;
  --light-teal: #2E7A7A;
  --muted:      #7A8C8C;
  --white:      #FDFAF5;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;
  --transition:   .3s ease;
  --radius:       3px;
  --shadow-md:    0 12px 40px rgba(13,43,43,.1);
  --shadow-lg:    0 24px 80px rgba(13,43,43,.15);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--deep);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}
.display-title {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 300;
}
.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--deep);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-sub {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 520px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-pad { padding: 100px 0; }
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all .25s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--deep); }
.btn-primary:hover { background: var(--cream); }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-light { border: 1.5px solid rgba(245,240,232,.3); color: var(--cream); background: transparent; }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(253,250,245,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,163,90,.2);
  transition: box-shadow .3s;
}
#masthead.scrolled { box-shadow: 0 4px 24px rgba(13,43,43,.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-branding a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--deep);
  letter-spacing: .02em;
  line-height: 1.2;
}
.site-branding span { color: var(--gold); }
.site-branding .tagline {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
#primary-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
#primary-menu li a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all .2s;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item a { color: var(--gold); border-color: var(--gold); }
#primary-menu .menu-cta a {
  background: var(--teal);
  color: var(--white);
  padding: 9px 22px;
  border-radius: var(--radius);
  border: none;
}
#primary-menu .menu-cta a:hover { background: var(--gold); color: var(--deep); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none; border: none;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--deep);
  transition: all .3s;
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 72px;
}
.hero-left {
  background: var(--deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
}
.hero-left::after {
  content: '';
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 60px;
  background: var(--white);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(245,240,232,.65);
  max-width: 380px;
  margin-bottom: 44px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-right {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(26,92,92,.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196,163,90,.12) 0%, transparent 40%);
  pointer-events: none;
}
.hero-stats-card {
  position: relative; z-index: 2;
  background: var(--white);
  border-radius: 4px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  width: 340px;
  animation: floatUp .9s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,163,90,.12);
  border: 1px solid rgba(196,163,90,.3);
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '✦'; font-size: .5rem; }
.stats-card-label {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
}
.stat-label { font-size: .72rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* ============================================================
   TRUST BAR
   ============================================================ */
#trust-bar {
  background: var(--teal);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: .8rem;
  letter-spacing: .04em;
}
.trust-item .trust-icon { font-size: 1.1rem; }

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: var(--white); }
.services-header { margin-bottom: 60px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(13,43,43,.08);
}
.service-card {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { background: var(--deep); }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .service-title { color: var(--cream); }
.service-card:hover .service-desc { color: rgba(245,240,232,.6); }
.service-card:hover .service-icon { background: rgba(196,163,90,.15); }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(26,92,92,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
  transition: background var(--transition);
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.service-desc { font-size: .82rem; line-height: 1.7; color: var(--muted); transition: color var(--transition); }

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: var(--deep);
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--teal), var(--light-teal));
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-img-frame .about-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem; font-style: italic;
  color: rgba(255,255,255,.15);
}
.about-cross {
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
}
.cross-h, .cross-v {
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
}
.cross-h { width: 80px; height: 12px; top: 50%; transform: translateY(-50%); }
.cross-v { height: 80px; width: 12px; left: 50%; transform: translateX(-50%); }
.about-year-badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--gold);
  color: var(--deep);
  padding: 20px 28px;
  border-radius: var(--radius);
}
.about-year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}
.about-year-sub { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

.about-content .section-label { color: rgba(196,163,90,.8); }
.about-content .section-title { color: var(--cream); }
.about-content .section-title em { color: var(--gold); }
.about-desc { font-size: .88rem; line-height: 1.85; color: rgba(245,240,232,.6); margin-bottom: 32px; }
.about-values { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.value-row { display: flex; align-items: flex-start; gap: 14px; }
.value-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.value-text { font-size: .82rem; color: rgba(245,240,232,.7); line-height: 1.6; }
.value-text strong { color: var(--cream); font-weight: 500; }

/* ============================================================
   DOCTORS
   ============================================================ */
#doctors { background: var(--cream); }
.doctors-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--teal), var(--deep));
  position: relative;
  overflow: hidden;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,.18);
}
.doctor-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,43,43,.6));
}
.doctor-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--gold);
  color: var(--deep);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.doctor-info { padding: 22px 20px; }
.doctor-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 4px;
}
.doctor-role { font-size: .75rem; color: var(--muted); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(26,92,92,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--teal);
}
.contact-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-value { font-size: .88rem; color: var(--deep); line-height: 1.6; }
.contact-value a:hover { color: var(--teal); }

/* Contact Form */
.contact-form-wrap {
  background: var(--cream);
  padding: 48px;
  border-radius: var(--radius);
}
.form-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--deep);
  margin-bottom: 32px;
  font-weight: 400;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid rgba(13,43,43,.12);
  border-radius: 2px;
  font-size: .85rem;
  color: var(--deep);
  outline: none;
  transition: border-color .2s;
  font-family: var(--font-body);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--teal); }
.form-field textarea { resize: vertical; min-height: 100px; }
.wpcf7-submit { width: 100%; margin-top: 8px; }

/* WP Forms / CF7 overrides */
.wpcf7 .wpcf7-not-valid-tip { font-size: .75rem; color: #c0392b; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { font-size: .8rem; margin-top: 16px; padding: 12px 16px; border-radius: 2px; }
.wpcf7 .wpcf7-mail-sent-ok { background: rgba(26,92,92,.1); border-color: var(--teal); color: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--deep);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-brand-name span { color: var(--gold); }
.footer-desc { font-size: .8rem; line-height: 1.8; color: rgba(245,240,232,.45); max-width: 260px; }
.footer-widget-title {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 500;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-list a { font-size: .8rem; color: rgba(245,240,232,.5); transition: color .2s; }
.footer-nav-list a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: .72rem; color: rgba(245,240,232,.3); }
.footer-heart { color: var(--gold); }

/* ============================================================
   SINGLE / PAGE CONTENT
   ============================================================ */
.page-hero {
  background: var(--deep);
  padding: 120px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--cream);
  margin-bottom: 12px;
}
.page-hero .breadcrumb { font-size: .78rem; color: rgba(245,240,232,.5); }
.page-hero .breadcrumb a { color: var(--gold); }

.entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--deep);
}
.entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  margin: 40px 0 16px;
  color: var(--deep);
}
.entry-content p { margin-bottom: 20px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes floatUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 72px 0; }
  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 60px 24px; }
  .hero-left::after { display: none; }
  .hero-right { min-height: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-year-badge { bottom: 16px; left: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  #primary-menu { display: none; }
  #primary-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0;
    background: var(--white);
    padding: 32px 24px;
    gap: 24px;
    overflow-y: auto;
    z-index: 999;
  }
  .menu-toggle { display: flex; }
  .trust-inner { justify-content: center; }
  .doctors-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .hero-stats-card { width: 90%; max-width: 320px; }
}
