/* ============================================================
   site.css — Shared styles for jrubritz.com
   Link in every page's <head> BEFORE the page-specific <style> block:
   <link rel="stylesheet" href="/shared/site.css">
   ============================================================ */


/* ── 1. CSS Variables ── */
:root {
  --dark-green:    #1e3a34;
  --accent-green:  #2d5a4e;
  --teal:          #3d7a6a;
  --teal-light:    #4a9080;
  --navy:          #1a2744;
  --footer-blue:   #0f1923;
  --grey-light:    #e1e4e7;
  --grey-base:     #DCE0E6;
  --white:         #ffffff;
  --text-dark:     #1a1a1a;
  --text-gray:     #555555;
  --text-light:    #aaa9a9;
  --text-mid:      #555555;
  --text-muted:    #888888;
  --border:        #e2e6ea;
  --bg:            #DCE0E6;  /* replaces cream #f8f6f3 */
}


/* ── 2. Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--grey-light);
  line-height: 1.6;
}


/* ── 3. Header & Nav ── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--white);
  padding: 1rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text-dark);
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--dark-green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem; font-weight: 600;
}
.logo-name { font-size: 1rem; font-weight: 500; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  text-decoration: none; color: var(--text-gray);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--dark-green); }
nav a.active { color: var(--dark-green); font-weight: 600; }
.btn-primary {
  background: var(--dark-green);
  color: white !important;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
}
.btn-primary:hover { background: var(--accent-green); }


/* ── 4. Shared Typography Helpers ── */
.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}
.hero-lbl {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 1rem;
  display: block;
}


/* ── 5. Hero (shared pattern across all pages) ── */
.hero,
.case-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  padding: 8rem 8rem 4rem;
  color: var(--white);
}
.hero-inner,
.case-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.hero h1,
.case-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: white;
  line-height: 1.2;
  margin-bottom: 2rem;
}
.hero p,
.case-hero__subtitle {
  font-size: 1.2rem;
  color: #ffffffcc;
  max-width: 680px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 35px;
}

/* ── 6. Footer ── */
footer { background:var(--footer-blue); color: rgba(255,255,255,0.6); text-align: center; padding: 24px 40px; font-size: 13px;border-top:1px solid rgba(255,255,255,0.1);margin-top: auto; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--white); }


/* ── 7. Case study shared layout (BHE, TWC, USMC, BOX, etc.) ── */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 32px;
}
.meta-bar__item { padding-right: 32px; }
.meta-bar__label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 6px;
}
.meta-bar__value { font-size: 16px; font-weight: 600; color: var(--white); }
.case-body { max-width: 1300px; margin: 0 auto; padding: 0 80px; }
.case-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 72px 0;
  align-items: start;
}


/* ── 8. Sidebar (case study pages) ── */
.sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.sidebar-card__label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}


/* ── 9. Carousel (BHE, TWC, USMC, BOX) ── */
.carousel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 8px;
}
.carousel__slide { text-align: center; }
.carousel__slide img {
  max-width: 100%; max-height: 460px;
  border-radius: 8px; object-fit: contain;
  margin: 0 auto; display: block;
}
.carousel__caption {
  font-size: 12px; color: var(--text-muted);
  margin-top: 10px; font-style: italic;
}
.carousel__controls {
  display: flex; align-items: center;
  justify-content: center; gap: 16px; margin-top: 20px;
}
.carousel__btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  cursor: pointer; font-size: 16px; line-height: 1;
  color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.carousel__btn:hover { background: var(--bg); }
.carousel__dots { display: flex; gap: 6px; align-items: center; }
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  border: none; padding: 0; transition: background 0.2s;
}
.carousel__dot.active { background: var(--teal); }


/* ── 10. Scope bar (case study pages) ── */
.scope-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--white); margin-bottom: 32px;
}
.scope-bar__col { padding: 20px; border-right: 1px solid var(--border); }
.scope-bar__col--last { border-right: none; }
.scope-bar__label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.scope-bar__items { display: flex; flex-direction: column; gap: 6px; }
.scope-bar__items span { font-size: 13px; color: var(--text-mid); line-height: 1.5; }


/* ── 11. Main column prose (case study pages) ── */
.main-col h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 600;
  color: var(--text-dark); margin: 48px 0 20px;
}
.main-col h2:first-child { margin-top: 0; }
.main-col h3 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin: 24px 0 12px; }
.main-col p { font-size: 15px; line-height: 1.8; color: var(--text-mid); margin-bottom: 16px; }
.main-col ul { margin: 0 0 16px 20px; }
.main-col ul li { font-size: 15px; line-height: 1.8; color: var(--text-mid); margin-bottom: 6px; }
.main-col ul li strong { color: var(--text-dark); font-weight: 600; }
.main-col > * { min-width: 0; }


/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile & Tablet
   ══════════════════════════════════════════════ */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .case-body { padding: 0 40px; }
  .case-grid { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .meta-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .scope-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {

  /* Header */
  header { padding: 1rem 1.25rem; }
  nav { gap: 0.75rem; }
  nav a { font-size: 0.78rem; }
  .btn-primary { padding: 0.45rem 0.75rem; font-size: 0.78rem; }
  .coming-soon-banner { padding:12px 1.5rem; }
  .coming-soon-banner__text { font-size:13px; }
  /* Hero */
  .hero,
  .case-hero { padding: 6rem 1.5rem 3rem; }

  /* All section padding — catches every section across all pages */
  .framework, .purpose, .career, .cta,
  .intro-section, .offerings, .industries,
  .process, .note, .why, .design-portfolio,
  .case-body { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

  /* Grids → single column */
  .offerings-grid,
  .industry-grid,
  .why-grid,
  .career-grid,
  .steps-row,
  .process-steps,
  .case-grid { grid-template-columns: 1fr !important; }

  /* 2-col grids → stay 2 col but tighter */
  .meta-bar { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .scope-bar { grid-template-columns: repeat(2, 1fr) !important; }

  /* Sidebar unsticks */
  .sidebar { position: static; }

  /* Intro & note grids */
  .intro-inner,
  .note-inner,
  .design-portfolio-inner { grid-template-columns: 1fr !important; }

  /* Typography scale-down */
  .hero h1,
  .case-hero h1 { font-size: 2rem; }

  /* Carousel */
  .carousel { padding: 16px; }
  .carousel__slide img { max-height: 300px; }

  /* Footer */
  footer { padding: 2rem 1.5rem; }
}
