/* ============================================================
   Dr. Stephane Gauthier — drstephanegauthier.com
   ============================================================ */

/* --- Variables --- */
:root {
  --green:        #2C5F2E;
  --green-light:  #3D7A40;
  --green-pale:   #EEF5EE;
  --cream:        #F8F4EE;
  --cream-dark:   #EDE5D8;
  --white:        #FFFFFF;
  --charcoal:     #1A1A1A;
  --text:         #333333;
  --muted:        #666666;
  --border:       #D8D0C4;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --max-w:        1140px;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Utility --- */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section     { padding: 5rem 0; }
.section-sm  { padding: 3rem 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); font-size: 0.9rem; }
.label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem;
}
.bg-cream  { background: var(--cream); }
.bg-pale   { background: var(--green-pale); }
.bg-green  { background: var(--green); }
.bg-green h2, .bg-green h3, .bg-green .label { color: var(--white); }
.bg-green p, .bg-green .text-muted { color: rgba(255,255,255,0.8); }
.bg-green .label { opacity: 0.7; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.75rem 1.75rem;
  background: var(--green); color: var(--white);
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s;
}
.btn:hover { background: var(--green-light); }
.btn-outline {
  display: inline-block; padding: 0.7rem 1.6rem;
  border: 2px solid var(--green); color: var(--green);
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-white {
  display: inline-block; padding: 0.75rem 1.75rem;
  background: var(--white); color: var(--green);
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-white:hover { background: var(--cream); }

/* --- Skip navigation link (accessibility) --- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green); color: var(--white);
  padding: 0.5rem 1rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; font-size: 0.9rem; z-index: 999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem; max-width: var(--max-w); margin: 0 auto;
}
.nav-brand {
  color: var(--white); font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700; line-height: 1.25;
}
.nav-brand small {
  display: block; font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 400; opacity: 0.75; letter-spacing: 0.04em;
}
.nav-list {
  display: flex; align-items: center; gap: 1.75rem; list-style: none;
}
.nav-list a {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500;
  transition: color 0.15s;
}
.nav-list a:hover, .nav-list a.active { color: var(--white); }
.lang-toggle { display: flex; gap: 0.2rem; margin-left: 0.5rem; }
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.65); font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 3px; cursor: pointer; transition: all 0.15s;
  font-family: var(--font-body);
}
.lang-btn.active, .lang-btn:hover {
  background: rgba(255,255,255,0.18); color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; min-height: 580px;
  background: var(--cream);
}
.hero-text {
  padding: 4rem 3rem 4rem 2rem;
  max-width: 560px; margin-left: auto;
}
.credential-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: var(--green-pale);
  border: 1px solid #b8d8b8; padding: 0.3rem 0.85rem;
  border-radius: 20px; margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 0.3rem; }
.hero-title {
  font-size: clamp(1rem, 2vw, 1.3rem); color: var(--muted);
  font-family: var(--font-body); font-weight: 400; margin-bottom: 0.4rem;
}
.hero-location { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.75rem; }
.referral-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--green); color: var(--white);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 2rem;
}
.referral-pill::before {
  content: ''; width: 8px; height: 8px;
  background: #7ED07F; border-radius: 50%; flex-shrink: 0;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { height: 100%; min-height: 520px; overflow: hidden; }
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--green); padding: 2.25rem 0; }
.trust-bar .container {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.trust-logo { height: 38px; display: flex; align-items: center; }
.trust-logo img {
  height: 38px; width: auto; max-width: 130px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8; transition: opacity 0.2s;
}
.trust-logo img:hover { opacity: 1; }
.trust-logo.cpso img { filter: none; opacity: 0.85; }

/* ============================================================
   ABOUT PREVIEW (homepage)
   ============================================================ */
.about-preview {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-preview-img {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
}
.about-preview-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ============================================================
   CARDS (services preview)
   ============================================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-icon {
  font-size: 1.75rem; margin-bottom: 1.25rem;
  width: 52px; height: 52px; background: var(--green-pale);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.card h3 { color: var(--green); }
.card p  { color: var(--muted); font-size: 0.92rem; }
.cards-cta { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   HOSPITALS (homepage)
   ============================================================ */
.hospitals-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.hospital-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 1.75rem;
}
.hospital-card .city {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 0.4rem;
}
.hospital-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.4rem; }
.hospital-card p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin: 0; }

/* ============================================================
   CONTACT STRIP
   ============================================================ */
.contact-strip { background: var(--cream-dark); padding: 2.5rem 0; }
.contact-strip .container {
  display: flex; gap: 3rem; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.ci { display: flex; align-items: center; gap: 0.85rem; }
.ci-icon {
  width: 40px; height: 40px; background: var(--green); color: var(--white);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.ci-text strong { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.1rem; }
.ci-text span { font-weight: 500; font-size: 0.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--charcoal); color: rgba(255,255,255,0.65);
  padding: 2.5rem 0; font-size: 0.875rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { font-family: var(--font-head); color: rgba(255,255,255,0.9); font-size: 1rem; font-weight: 700; }
.footer-brand small { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; opacity: 0.5; margin-top: 0.2rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.78rem; width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem; margin-top: 0.5rem; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header { background: var(--green); color: var(--white); padding: 4rem 0 3rem; text-align: center; }
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin: 0.5rem auto 0; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.bio-section { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; }
.bio-photo { border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; }
.bio-photo img { width: 100%; display: block; }

.timeline { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.timeline li { display: flex; gap: 1.25rem; align-items: flex-start; }
.tl-year {
  font-size: 0.78rem; font-weight: 800; color: var(--green);
  min-width: 42px; text-align: right; padding-top: 0.15rem; letter-spacing: 0.02em;
}
.tl-body strong { display: block; font-size: 0.95rem; color: var(--charcoal); line-height: 1.3; }
.tl-body span { font-size: 0.85rem; color: var(--muted); }

.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.comm-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.comm-card img { width: 100%; height: 200px; object-fit: cover; }
.comm-card-body { padding: 1.1rem 1.25rem; background: var(--cream); }
.comm-card-body h3 { font-size: 0.95rem; color: var(--green); margin-bottom: 0.3rem; }
.comm-card-body p  { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }

.aff-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.aff-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 0.6rem;
}
.aff-item img { height: 44px; width: auto; max-width: 130px; object-fit: contain; }
.aff-item a { font-size: 0.78rem; color: var(--green); font-weight: 600; }
.aff-item a:hover { text-decoration: underline; }
.aff-item p { font-size: 0.75rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-block {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-block:last-child { border-bottom: none; }
.svc-num {
  font-family: var(--font-head); font-size: 2.75rem;
  color: var(--cream-dark); line-height: 1; text-align: right;
}
.svc-content h3 { color: var(--green); font-size: 1.2rem; margin-bottom: 0.75rem; }
.svc-content p { color: var(--muted); }
.referral-box {
  background: var(--green); border-radius: var(--radius); padding: 2.5rem;
  margin-top: 3rem;
}
.referral-box h3 { color: var(--white); margin-bottom: 1rem; }
.referral-box p  { color: rgba(255,255,255,0.85); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.office-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.office-photo img { width: 100%; height: 260px; object-fit: cover; }
.info-block { margin-bottom: 2rem; }
.info-block h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.75rem; }
.info-block p, .info-block address { font-style: normal; line-height: 1.9; color: var(--text); }
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; }
.steps li { counter-increment: step; display: flex; gap: 1rem; align-items: flex-start; }
.steps li::before {
  content: counter(step);
  min-width: 30px; height: 30px; background: var(--green); color: var(--white);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.hosp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.hosp-item { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.hosp-item h4 { font-size: 0.9rem; color: var(--green); margin-bottom: 0.3rem; }
.hosp-item p  { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* --- Built-by badge --- */
.built-by {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.35); font-size: 0.75rem;
  text-decoration: none; transition: color 0.2s;
}
.built-by:hover { color: rgba(255,255,255,0.7); }
.built-by img { height: 20px; width: auto; opacity: 0.45; transition: opacity 0.2s; }
.built-by:hover img { opacity: 0.8; }

/* ============================================================
   BILINGUAL TOGGLE
   ============================================================ */
.fr-only { display: none; }
html.lang-fr .fr-only { display: revert; }
html.lang-fr .en-only { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { max-width: 100%; padding: 3rem 1.5rem 2rem; margin: 0; }
  .hero-image { min-height: 320px; max-height: 420px; order: -1; }
  .about-preview { grid-template-columns: 1fr; gap: 2rem; }
  .about-preview-img { aspect-ratio: 16/9; }
  .hospitals-grid { grid-template-columns: 1fr; }
  .bio-section { grid-template-columns: 1fr; }
  .bio-photo { position: static; max-width: 320px; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hosp-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-list {
    display: none; flex-direction: column; gap: 0; list-style: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green); border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 0.7rem 1.5rem; }
  .lang-toggle { margin-left: 0; padding: 0.5rem 1.5rem; }
  .burger { display: flex; }
  .site-header { position: relative; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .trust-bar .container { gap: 1.5rem; }
  .contact-strip .container { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .community-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 0.25rem; }
  .svc-num { display: none; }
}
