/* =============================================
   DR I. CHAMISA – LASER PROCTOLOGY
   Stylesheet – matching PPEV.co.za aesthetic
   Navy + Gold + White | Playfair + Source Sans
   ============================================= */

:root {
  --navy:      #1a2e4a;
  --navy-dark: #0f1e33;
  --gold:      #b8972a;
  --gold-light:#d4af37;
  --cream:     #f5f0e8;
  --light-bg:  #f7f9fc;
  --white:     #ffffff;
  --text:      #333333;
  --text-mid:  #555555;
  --text-light:#888888;
  --border:    #dde3ee;
  --radius:    4px;
  --shadow:    0 4px 18px rgba(26,46,74,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy-dark);
  color: #ccc;
  font-size: 0.8rem;
  padding: 6px 24px;
  display: flex;
  justify-content: center;
  gap: 3rem;
  letter-spacing: 0.03em;
}

/* ── HEADER / NAV ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo a { display: flex; align-items: center; gap: 14px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  color: #d8e4f0;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  transition: color 0.2s, background 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-dark);
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
  flex-direction: column;
  border-top: 2px solid var(--gold);
}
.has-dropdown:hover .dropdown { display: flex; }
.dropdown li a {
  padding: 9px 18px;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-appt {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.btn-appt:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.2rem;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 560px;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.hero-text { max-width: 520px; }
.hero-kicker {
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.hero-sub { color: #c5d8eb; font-size: 1.05rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-box {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #1e3d62 0%, #2d5a8a 60%, #1a2e4a 100%);
  border-radius: 6px;
  border: 2px solid rgba(184,151,42,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
  .hero-image-col { display: none; }
  .hero-text { max-width: 100%; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-2px); }

.btn-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 28px;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: var(--gold-light); background: rgba(212,175,55,0.1); color: var(--gold-light); }

.btn-primary-light {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-primary-light:hover { background: var(--cream); color: var(--navy); }

.btn-outline-navy {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 24px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── INTRO STRIP ── */
.intro-strip {
  background: var(--navy);
  padding: 2.2rem 0;
  border-top: 3px solid var(--gold);
}
.intro-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.intro-stat { color: var(--white); padding: 0.5rem; }
.intro-stat .stat-icon { display: block; font-size: 1.5rem; color: var(--gold-light); margin-bottom: 0.4rem; }
.intro-stat strong { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; }
.intro-stat p { font-size: 0.82rem; color: #a8c0d8; margin: 0; }

/* ── SECTION UTILS ── */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--light-bg); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: #c5d8eb; }

.section-kicker {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.text-center { text-align: center; }

.divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

/* ── TWO COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-text .credentials {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}
.col-text h2 { margin-bottom: 0.3rem; }

/* ── PLACEHOLDERS ── */
.img-placeholder {
  background: linear-gradient(135deg, #dde5ef 0%, #c8d5e8 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}
.img-placeholder--tall { min-height: 380px; }
.img-placeholder--medium { min-height: 280px; }
.img-placeholder--short { min-height: 180px; }

.credential-badge {
  margin-top: 1rem;
}
.badge-logo-placeholder {
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.75rem;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── BENEFITS GRID ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.benefit-icon {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-card p { margin: 0; font-size: 0.9rem; }

/* ── CONDITIONS GRID ── */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.condition-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.condition-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.condition-img-placeholder {
  background: linear-gradient(135deg, #d5e0f0 0%, #bfcfe8 100%);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
  padding: 1rem;
  text-align: center;
}
.condition-card h3 { margin: 1.2rem 1.2rem 0.5rem; color: var(--navy); font-size: 1rem; }
.condition-card p { margin: 0 1.2rem 0.8rem; font-size: 0.88rem; color: var(--text-mid); flex: 1; }
.card-link { display: block; color: var(--gold); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.8rem 1.2rem; border-top: 1px solid var(--border); margin-top: auto; }
.condition-card:hover .card-link { color: var(--navy); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--navy);
  border-top: 4px solid var(--gold);
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-inner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-inner p { color: #a8c0d8; margin: 0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.page-hero p { color: #a8c0d8; margin: 0; font-size: 1rem; }
.breadcrumb { font-size: 0.8rem; color: #6a8aaa; margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--gold-light); }

/* ── CONTENT BLOCK ── */
.content-block { margin-bottom: 3.5rem; }
.content-block h2 { border-bottom: 2px solid var(--border); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.content-block h3 { color: var(--navy); margin: 1.5rem 0 0.5rem; }

/* ── TREATMENT ENTRY ── */
.treatment-entry {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.treatment-entry:last-child { border-bottom: none; }
.treatment-entry.reverse { direction: rtl; }
.treatment-entry.reverse > * { direction: ltr; }
.treatment-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.treatment-entry ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.treatment-entry ul li { margin-bottom: 0.4rem; font-size: 0.92rem; }

/* ── VIDEO GRID ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.video-placeholder {
  background: linear-gradient(135deg, #1a2e4a 0%, #2d4f73 100%);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-style: italic;
  gap: 0.75rem;
}
.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(184,151,42,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}
.video-card h3 { padding: 1rem 1.2rem 0.4rem; font-size: 0.95rem; }
.video-card p { padding: 0 1.2rem 1rem; font-size: 0.85rem; color: var(--text-mid); margin: 0; }

/* ── FAQ ── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.faq-question::after { content: '+'; color: var(--gold); font-size: 1.3rem; flex-shrink: 0; margin-top: -2px; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; margin-top: 1rem; color: var(--text-mid); font-size: 0.95rem; }
.faq-item.open .faq-answer { display: block; }

/* ── CANCER / ENDOSCOPY CARDS ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.service-card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.service-card ul { padding-left: 1.4rem; }
.service-card ul li { margin-bottom: 0.4rem; font-size: 0.92rem; }

/* ── SIDEBAR LAYOUT ── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.sidebar-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: sticky;
  top: 100px;
}
.sidebar-box h4 { color: var(--navy); margin-bottom: 1rem; font-size: 1rem; }
.sidebar-box ul { list-style: none; }
.sidebar-box ul li { border-bottom: 1px solid var(--border); }
.sidebar-box ul li a { display: block; padding: 8px 0; font-size: 0.88rem; color: var(--text-mid); }
.sidebar-box ul li a:hover { color: var(--gold); }
.sidebar-box .appt-block { background: var(--navy); padding: 1.5rem; border-radius: var(--radius); text-align: center; margin-top: 1.5rem; }
.sidebar-box .appt-block p { color: #a8c0d8; font-size: 0.85rem; margin-bottom: 1rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-dark);
  color: #a8c0d8;
  padding: 3.5rem 0 0;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-col p { color: #8aa5be; font-size: 0.84rem; line-height: 1.7; margin: 0; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #8aa5be; font-size: 0.84rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.78rem;
  color: #5a7a96;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .intro-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar-box { position: static; }
  .treatment-entry { grid-template-columns: 1fr; }
  .treatment-entry.reverse { direction: ltr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-dark);
    overflow-y: auto;
    z-index: 999;
    padding: 1rem 0;
  }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open .dropdown { display: flex; position: static; box-shadow: none; }
  .mobile-toggle { display: block; margin-left: auto; }
  .btn-appt { display: none; }
  .conditions-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-strip-inner { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .intro-strip-inner { grid-template-columns: 1fr; }
  .hero { min-height: 450px; }
}
