/* ═══════════════════════════════════════════════════
   CAMP DOCTOR — THEME CSS v2
   Design only. Zero content. Zero hardcoded URLs.
   Colors match live site exactly.
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --black:      #0a0a0a;
  --dark:       #111410;
  --card:       #161a13;
  --border:     #2a2f24;
  --gold:       #c9971a;
  --gold-light: #e8b730;
  --red:        #e60000;
  --white:      #f0ede6;
  --muted:      #8a9080;
  --green-dark: #1a2214;
  --nav-h:      80px;
  --container:  1120px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; margin-top: 0 !important; }
#wpadminbar { display: none !important; }
body.admin-bar { padding-top: 0 !important; }
body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ── LAYOUT ── */
.cd-container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}
.cd-page-wrap {
  padding-top: 44px; /* accounts for dispatch bar */
  min-height: 70vh;
}
.cd-page-content {
  padding: 60px 0 80px;
}

/* ── HEADER ── */
.cd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

/* ── NAV ── */
.cd-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(10,10,10,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

/* Brand */
.cd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.cd-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.cd-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.cd-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--gold);
  white-space: nowrap;
}
.cd-brand-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop nav menu — WordPress outputs <ul class="cd-nav-links"> */
.cd-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.cd-nav-links li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.cd-nav-links li a:hover,
.cd-nav-links li.current-menu-item a,
.cd-nav-links li.current_page_item a {
  color: var(--gold);
}

/* Nav CTA button */
.cd-nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 12px 22px;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.cd-nav-cta:hover { background: var(--gold-light); }

/* Mobile toggle */
.cd-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cd-nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ── MOBILE MENU ── */
.cd-mobile-menu {
  display: none;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  background: rgba(10,10,10,.98);
  border-bottom: 1px solid var(--border);
}
.cd-mobile-menu.open { display: flex; }

/* WordPress outputs <ul class="cd-mobile-links"> inside mobile menu */
.cd-mobile-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style: none;
}
.cd-mobile-links li a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.cd-mobile-links li a:hover { background: #1a1f14; color: var(--gold); }
.cd-mobile-links li.current-menu-item a,
.cd-mobile-links li.current_page_item a { color: var(--gold); }

.cd-mob-cta {
  display: block;
  padding: 14px 16px;
  background: var(--gold);
  color: var(--black) !important;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
.cd-mob-text {
  display: block;
  padding: 14px 16px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

/* ── DISPATCH BAR ── */
.cd-dispatch {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--red);
  padding: 11px 1rem;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}
.cd-dispatch a { color: var(--white); text-decoration: underline; }

/* ── MAIN CONTENT AREA ── */
/* This is what surrounds the_content() output */
#cd-main {
  padding-top: calc(var(--nav-h) + 44px);
}

/* ── WORDPRESS CONTENT TYPOGRAPHY ── */
/* Styles the output of the_content() / WordPress editor */
.cd-page-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
}
.cd-page-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.05;
  margin: 2rem 0 .75rem;
}
.cd-page-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 1px;
  color: var(--white);
  margin: 1.5rem 0 .5rem;
}
.cd-page-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin: 1.25rem 0 .4rem;
}
.cd-page-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 1rem;
}
.cd-page-content p:last-child { margin-bottom: 0; }
.cd-page-content strong { color: var(--white); font-weight: 700; }
.cd-page-content a { color: var(--gold); text-decoration: underline; }
.cd-page-content a:hover { color: var(--gold-light); }
.cd-page-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.cd-page-content ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.cd-page-content li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: .35rem;
}
.cd-page-content img { max-width: 100%; height: auto; }
.cd-page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.cd-page-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--card);
  margin: 1.5rem 0;
  font-size: 16px;
  color: var(--muted);
}

/* Custom HTML blocks — no extra wrapper styling */
.cd-page-content .wp-block-html { display: block; }

/* Gutenberg block alignment */
.cd-page-content .alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.cd-page-content .alignwide {
  width: calc(100% + 4rem);
  margin-left: -2rem;
}

/* ── FOOTER ── */
.cd-footer {
  background: var(--black);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  padding-bottom: 80px; /* room for sticky bar on mobile */
}
.cd-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cd-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.cd-footer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--gold);
}

/* Footer nav — WordPress outputs <ul class="cd-footer-links"> */
.cd-footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
}
.cd-footer-links li a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color .2s;
}
.cd-footer-links li a:hover { color: var(--gold); }

.cd-footer-copy { font-size: 12px; color: var(--muted); }

/* ── STICKY MOBILE BAR ── */
.cd-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
}
.cd-sticky-call,
.cd-sticky-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
}
.cd-sticky-call { background: var(--gold); color: var(--black); }
.cd-sticky-text { background: var(--dark); color: var(--white); border-top: 1px solid var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cd-nav-links { gap: 1rem; }
  .cd-nav-links li a { font-size: 12px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .cd-nav-links { display: none; }
  .cd-nav-cta { display: none; }
  .cd-nav-toggle { display: inline-flex; }

  .cd-brand-name { font-size: 22px; }
  .cd-brand-sub { display: none; }
  .cd-brand-logo { width: 40px; height: 40px; }

  .cd-dispatch { font-size: 12px; letter-spacing: 1.5px; padding: 9px 1rem; }

  .cd-page-content { padding: 40px 0 100px; }

  .cd-footer { padding-bottom: 80px; }
  .cd-footer-inner { flex-direction: column; align-items: flex-start; }
  .cd-footer-links { gap: .5rem 1rem; }
}

@media (min-width: 769px) {
  .cd-sticky-bar { display: none; }
  .cd-footer { padding-bottom: 36px; }
}

/* Raw page output — no constraints, content controls its own width */
.cd-page-raw {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

/* Force WP to not constrain any content inside pages */
.cd-page-raw > * {
  max-width: none !important;
}
