/* ============================================================
   DOCTOR DETAIL 805 — style.css
   Color scheme: High-vis lime green + red accents
   ============================================================ */

:root {
  --green: #AAFF00;
  --green-dim: #88CC00;
  --green-dark: #557700;
  --red: #E03030;
  --red-dark: #A81818;
  --bg: #f5f5f2;
  --bg2: #ecece7;
  --bg3: #e2e2dc;
  --surface: #ffffff;
  --text: #111110;
  --text2: #444440;
  --text3: #888880;
  --border: rgba(0,0,0,0.12);
  --nav-w: 56px;
  --nav-w-expanded: 180px;
  --radius: 10px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

[data-theme="dark"] {
  --bg: #111110;
  --bg2: #1a1a18;
  --bg3: #222220;
  --surface: #1e1e1c;
  --text: #f0f0ec;
  --text2: #b0b0a8;
  --text3: #666660;
  --border: rgba(255,255,255,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--nav-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  z-index: 100;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

#sidebar:hover {
  width: var(--nav-w-expanded);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--text);
  padding: 18px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo span { color: var(--green); }

.nav-links {
  list-style: none;
  width: 100%;
  padding: 8px 0;
  flex-shrink: 0;
}

.nav-links li { width: 100%; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 0;
  width: 100%;
  text-decoration: none;
  color: var(--text2);
  position: relative;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--green);
  background: rgba(170,255,0,0.07);
}

.nav-icon {
  width: var(--nav-w);
  min-width: var(--nav-w);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s 0.05s, transform 0.2s 0.05s;
  pointer-events: none;
}

#sidebar:hover .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.nav-spacer { flex: 1; }

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 0;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text3);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--green);
  background: rgba(170,255,0,0.07);
}

.theme-toggle .nav-label {
  font-size: 13px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main {
  margin-left: var(--nav-w);
  flex: 1;
  min-width: 0;
}

/* ============================================================
   HERO — compact banner
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg);
  padding: 0;
  overflow: hidden;
  border-bottom: 3px solid var(--green);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(170,255,0,0.04) 40px,
      rgba(170,255,0,0.04) 41px
    );
  pointer-events: none;
}

.hero-slash {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 400px;
  background: var(--green);
  transform: rotate(12deg);
  opacity: 0.06;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 40px 24px;
}

.hero-top-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-title-block {
  flex-shrink: 0;
}

.hero-contact-block {
  flex: 1;
  min-width: 260px;
}

.badge {
  display: inline-block;
  background: var(--green);
  color: #111;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.accent { color: var(--green); }

.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: 0.03em;
  color: var(--green);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s;
  text-shadow: 0 0 20px rgba(170,255,0,0.3);
  display: block;
}

.phone-number svg {
  width: 22px;
  height: 22px;
  fill: var(--green);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.phone-number:hover { color: #ccff44; }

.hero-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.4;
  margin-bottom: 14px;
}

.hero-bottom-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chips span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 3px;
}

/* Instagram link */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.ig-link svg {
  flex-shrink: 0;
}

.hero-ig {
  font-size: 14px;
  color: var(--text3);
}

.hero-ig svg { width: 20px; height: 20px; }

.hero-ig:hover { color: var(--green); }

.footer-ig {
  font-size: 15px;
  color: var(--text3);
  margin-bottom: 18px;
  display: inline-flex;
}

.footer-ig svg { width: 20px; height: 20px; }

.footer-ig:hover { color: var(--green); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  background: var(--bg2);
  padding: 80px 40px;
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 48px;
  border-left: 4px solid var(--green);
  padding-left: 20px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}

.section-header p {
  font-size: 16px;
  color: var(--text3);
  margin-top: 6px;
}

.services-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  min-height: 200px;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-dim);
}

.service-img {
  width: 320px;
  min-width: 320px;
  background-color: var(--bg3);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.service-img::after {
  content: '⤢';
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 18px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  pointer-events: none;
}

.service-img:hover::after { opacity: 1; }

.service-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
}

.service-img-fallback span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--green-dim);
  opacity: 0.6;
}

/* Hide fallback if image loads */
.service-img[style*="url("] .service-img-fallback {
  display: none;
}

.service-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.service-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.service-body h3::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--red);
  margin-top: 8px;
}

.service-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text2);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  background: var(--bg);
  padding: 80px 40px;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .badge { margin-bottom: 16px; }

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 28px;
  background: var(--green);
  color: #111;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: #ccff44;
  transform: translateY(-1px);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(170,255,0,0.25);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

#lightbox.open {
  display: flex;
}

#lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid var(--green);
}

#lb-caption {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 14px;
}

#lb-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#lb-close:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2);
  border-top: 2px solid var(--green);
  padding: 50px 40px 36px;
  text-align: center;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-phone svg {
  width: 22px;
  height: 22px;
  fill: var(--green);
  flex-shrink: 0;
}

.footer-phone a {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(170,255,0,0.25);
}

.footer-sub {
  font-size: 15px;
  color: var(--text3);
  margin-bottom: 14px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text3);
  opacity: 0.6;
  margin-top: 10px;
}

/* ============================================================
   MOBILE — snap nav to bottom, no expand
   ============================================================ */
@media (max-width: 768px) {
  body { flex-direction: column; }

  #sidebar {
    position: fixed;
    left: 0;
    bottom: 0;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 0;
    overflow: visible;
    z-index: 200;
  }

  #sidebar:hover { width: 100%; }

  .nav-logo { display: none; }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex: 1;
    padding: 0;
    justify-content: space-around;
  }

  .nav-links li { width: auto; }

  .nav-item {
    flex-direction: column;
    gap: 3px;
    padding: 10px 18px 8px;
    justify-content: center;
  }

  .nav-icon { width: auto; min-width: auto; }
  .nav-icon svg { width: 22px; height: 22px; }

  .nav-label,
  #sidebar .nav-label {
    opacity: 1;
    transform: none;
    font-size: 10px;
    pointer-events: auto;
  }

  #sidebar:hover .nav-label { opacity: 1; transform: none; }

  .nav-spacer { display: none; }

  .theme-toggle {
    flex-direction: column;
    gap: 3px;
    padding: 10px 18px 8px;
    border-top: none;
    border-left: 1px solid var(--border);
    justify-content: center;
    align-items: center;
  }

  .theme-toggle .nav-icon { width: auto; }
  .theme-toggle .nav-label { font-size: 10px; }

  #main {
    margin-left: 0;
    margin-bottom: 64px;
  }

  .hero-content { padding: 20px 18px 16px; }

  .hero-top-row { gap: 16px; }

  .hero h1 { white-space: normal; }

  .services-section, .about-section { padding: 40px 16px; }

  .service-card { flex-direction: column; min-height: auto; }

  .service-img {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }

  .service-img::after { opacity: 0.6; }

  .service-body { padding: 18px 16px; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
