/* =================================================================
   Bubba Hub Stylesheet - Main Theme & Layout
   ================================================================ */

/* --- 1. CSS Variables & Design Tokens --- */
:root {
  --bh-primary: #416651;
  --bh-secondary: #3c8e96;
  --bh-dark: #144400;
  --bh-light: #f7fbf8;
  --bh-text: #2f4036;
  --bh-text-muted: #617261;
  --bh-border: #ced7c7;
  --bh-content-width: 1200px;
  --bh-shadow: 0 10px 30px rgba(20, 68, 0, 0.08);
  --bh-pale: #d8e6db;
  --bh-soft: #9fb7a5;
}

/* --- 2. Global Resets & Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--bh-text);
  background-color: var(--bh-light);
  line-height: 1.6;
}

/* --- Typography / Headings --- */
h1 {
  color: var(--bh-dark);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* --- 3. Header & Navigation Styles --- */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--bh-border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  background-image: url('/images/logos/gemini_generated_image_pq5i56pq5i56pq5i-removebg-preview-20260930-190428-b9e652.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--bh-text);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--bh-secondary);
}

.btn-sign-in {
  background-color: var(--bh-primary);
  color: var(--bh-pale);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.btn-sign-in:hover {
  opacity: 0.9;
}

/* Header Search Toolbar */
.header-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--bh-border);
}

.header-search-bar input,
.header-search-bar select {
  padding: 8px 14px;
  border: 1px solid var(--bh-border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--bh-text);
}

.header-search-bar input {
  flex: 1;
  min-width: 160px;
  max-width: 250px;
}

.header-search-bar select {
  cursor: pointer;
}

.header-search-bar .search-btn {
  background-color: var(--bh-primary);
  color: var(--bh-pale);
  border: none;
  cursor: pointer;
  padding: 8px 22px;
  font-weight: 600;
  border-radius: 20px;
  font-size: 13px;
  transition: opacity 0.2s ease;
}

.header-search-bar .search-btn:hover {
  opacity: 0.9;
}

/* --- 4. Main Content Layout --- */
.main-content {
  width: min(var(--bh-content-width), calc(100% - 32px));
  max-width: var(--bh-content-width);
  margin: 32px auto;
  min-height: 60vh;
}

/* --- 5. Footer Layout & Branding --- */
.site-footer {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--bh-border);
  margin-top: 40px;
  padding: 24px 16px;
}

.footer-inner {
  width: min(var(--bh-content-width), 100%);
  max-width: var(--bh-content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--bh-text-muted);
  font-size: 13px;
  align-items: center;
}

.site-footer strong {
  color: var(--bh-primary);
}

.footer-logo {
  width: 60px;
  height: 60px;
  background-image: url('/images/logos/gemini_generated_image_pq5i56pq5i56pq5i-removebg-preview-20260930-190428-b9e652.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
}

/* ================================================================
   ADD CLASS — LEADER WIZARD
   Single source of truth for leader/new.html.
   ================================================================ */

.bh-new{
  max-width:1100px;
  margin:28px auto;
  padding:0 18px;
}
.bh-new-hero{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:end;
  margin-bottom:22px;
}
.bh-new-hero h1{
  color:var(--bh-dark);
  font-size:clamp(34px,5vw,52px);
  margin:4px 0;
}

.bh-card{
  background:#fff;
  border:1px solid var(--bh-border);
  border-radius:28px;
  box-shadow:var(--bh-shadow);
  overflow:hidden;
}

/* Steps */
.bh-steps{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  background:#f5faf6;
}
.bh-step{
  padding:16px 8px;
  border:0;
  border-bottom:4px solid transparent;
  background:transparent;
  font-weight:800;
  color:var(--bh-text-muted);
  cursor:pointer;
}
.bh-step span{
  display:block;
  font-size:12px;
}
.bh-step.active{
  color:var(--bh-primary);
  background:#e8f3eb;
  border-bottom-color:var(--bh-secondary);
}
.bh-step.complete{
  color:var(--bh-primary);
}

/* Form and fields */
.bh-form{padding:28px}
.bh-panel{display:none}
.bh-panel.active{display:block}
.bh-panel h2{
  color:var(--bh-dark);
  font-size:28px;
}
.bh-intro{
  color:var(--bh-text-muted);
  margin:4px 0 24px;
}
.bh-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.bh-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.bh-field.full{grid-column:1/-1}
.bh-field label{
  font-weight:800;
  color:var(--bh-dark);
}
.bh-field small{color:var(--bh-text-muted)}
.bh-field input,
.bh-field select,
.bh-field textarea{
  width:100%;
  min-height:48px;
  padding:11px 13px;
  border:1px solid var(--bh-border);
  border-radius:14px;
  background:#fff;
  color:var(--bh-dark);
  font:inherit;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.bh-field input:focus,
.bh-field select:focus,
.bh-field textarea:focus{
  outline:none;
  border-color:var(--bh-secondary);
  box-shadow:0 0 0 3px rgba(60,142,150,.12);
}
.bh-field textarea{min-height:130px}
.bh-required{color:#a8445a}

/* Category and tag pickers */
.bh-picker{position:relative}
.bh-picker-input{
  box-sizing:border-box;
  margin-top:8px!important;
  min-height:50px!important;
  padding-right:44px!important;
  background:#fbfdfb!important;
  border:1px solid #cbd9cf!important;
  box-shadow:inset 0 0 0 1px rgba(65,102,81,.02)!important;
}
.bh-picker-input::placeholder{color:#718078}
.bh-picker-input:focus{
  background:#fff!important;
  border-color:#3c8e96!important;
  box-shadow:0 0 0 4px rgba(60,142,150,.11)!important;
}
.bh-picker::after{
  content:"⌄";
  position:absolute;
  right:15px;
  top:14px;
  color:#416651;
  font-size:19px;
  font-weight:800;
  pointer-events:none;
  transition:transform .18s ease;
}
.bh-picker.open::after{transform:rotate(180deg)}
.bh-picker-options{
  display:none;
  position:absolute;
  z-index:100;
  left:0;
  right:0;
  top:calc(100% + 6px);
  margin:0;
  padding:7px;
  max-height:250px;
  overflow:auto;
  background:#fff;
  border:1px solid #cbd9cf;
  border-radius:16px;
  box-shadow:0 14px 35px rgba(18,63,49,.14);
}
.bh-picker.open .bh-picker-options{display:block}
.bh-option{
  display:block;
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border:0;
  border-radius:11px;
  background:transparent;
  text-align:left;
  color:#416651;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.bh-option:hover,
.bh-option:focus{
  background:#e8f3eb;
  color:#144400;
  outline:none;
}
.bh-option-empty{
  color:#718078!important;
  font-weight:600!important;
  cursor:default!important;
  background:transparent!important;
}
.bh-selected{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-height:48px;
  padding:7px;
  border:0;
  background:transparent;
}
.bh-selected:empty{display:none}
.bh-selected-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#d8e6db;
  color:#416651;
  border:1px solid rgba(65,102,81,.12);
  border-radius:999px;
  padding:7px 10px;
  font-weight:800;
  box-shadow:0 2px 5px rgba(18,63,49,.05);
}
.bh-selected-chip button{
  width:20px;
  height:20px;
  display:inline-grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(65,102,81,.12);
  color:inherit;
  padding:0;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
.bh-selected-chip button:hover{
  background:#416651;
  color:#d8e6db;
}
.bh-field:has(.bh-picker)>label{margin-bottom:1px}
.bh-field:has(.bh-picker) .bh-inline{margin-top:5px}
.bh-field:has(.bh-picker)>small{
  display:block;
  margin-top:5px;
  line-height:1.45;
}
.bh-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bh-chip{
  border:1px solid rgba(60,142,150,.2);
  background:#edf7f6;
  color:var(--bh-primary);
  padding:7px 11px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease,background .15s ease;
}
.bh-chip:hover{
  transform:translateY(-1px);
  background:#d8e6db;
}

/* Rich description editor */
.bh-rich-toolbar{
  display:flex;
  gap:6px;
  padding:8px;
  background:#f5faf6;
  border:1px solid var(--bh-border);
  border-bottom:0;
  border-radius:12px 12px 0 0;
}
.bh-rich-toolbar button{
  border:1px solid var(--bh-border);
  background:#fff;
  border-radius:8px;
  padding:7px 11px;
  cursor:pointer;
}
.bh-rich-editor{
  min-height:150px;
  padding:13px;
  border:1px solid var(--bh-border);
  background:#fff;
  border-radius:0 0 12px 12px;
}
.bh-rich-editor:empty:before{
  content:attr(data-placeholder);
  color:var(--bh-text-muted);
}

/* Pricing, checkboxes and inline controls */
.bh-price{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:12px;
}
.bh-radio{
  display:inline-flex;
  gap:7px;
  align-items:center;
  padding:10px 13px;
  border:1px solid var(--bh-border);
  border-radius:14px;
}
.bh-radio input{
  width:auto;
  min-height:0;
}
.bh-checks{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.bh-check{
  display:flex;
  gap:8px;
  align-items:center;
  padding:11px;
  background:#f4f8f5;
  border-radius:14px;
}
.bh-check input{
  width:auto;
  min-height:0;
}
.bh-inline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.bh-inline input{
  flex:1;
  min-width:180px;
}
.bh-age{
  font-weight:800;
  color:var(--bh-secondary);
}

/* Schedule */
.bh-schedule{
  display:grid;
  gap:12px;
}
.bh-row{
  display:grid;
  grid-template-columns:1fr 1fr 1fr auto;
  gap:10px;
  padding:14px;
  background:#f5faf6;
  border-radius:16px;
  align-items:end;
}
.bh-remove{
  border:0;
  background:#f9e8ec;
  color:#a8445a;
  border-radius:12px;
  padding:11px;
  font-weight:800;
}

/* Photos and review */
.bh-photos{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.bh-photo{
  background:#edf4ef;
  border-radius:16px;
  overflow:hidden;
  position:relative;
}
.bh-photo img{
  width:100%;
  height:130px;
  object-fit:cover;
}
.bh-photo button{
  position:absolute;
  right:7px;
  top:7px;
  border:0;
  border-radius:50%;
  width:30px;
  height:30px;
}
.bh-review{
  display:grid;
  gap:12px;
  margin-top:20px;
}
.bh-review-card{
  padding:18px;
  background:#f5faf6;
  border-radius:18px;
}
.bh-review-card h3{margin-top:0}
.bh-review-card strong{color:var(--bh-dark)}
.bh-review-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* Wizard actions and messages */
.bh-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:20px 28px;
  background:#f7fbf8;
  border-top:1px solid var(--bh-border);
}
.bh-right{
  display:flex;
  gap:10px;
}
.bh-editor-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.bh-actions #formMessage{margin-right:auto}
.bh-error{
  color:#a8445a;
  font-weight:800;
}
.bh-ok{
  color:#356d4e;
  font-weight:800;
}

/* Section overview / edit mode */
.bh-section-overview{padding:30px}
.bh-overview-head{margin-bottom:22px}
.bh-overview-head h2{
  margin:4px 0 6px;
  color:var(--bh-dark);
  font-size:30px;
}
.bh-overview-head p{
  margin:0;
  color:var(--bh-text-muted);
  max-width:700px;
}
.bh-section-list{
  display:grid;
  gap:14px;
}
.bh-section-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:20px 22px;
  background:#f7fbf8;
  border:1px solid var(--bh-border);
  border-radius:20px;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.bh-section-card:hover{
  transform:translateY(-1px);
  box-shadow:var(--bh-shadow);
  border-color:var(--bh-secondary);
}
.bh-section-card-copy{min-width:0}
.bh-section-kicker{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--bh-secondary);
}
.bh-section-card h3{
  margin:3px 0 4px;
  color:var(--bh-dark);
  font-size:21px;
}
.bh-section-card p{
  margin:0 0 7px;
  color:var(--bh-text-muted);
}
.bh-section-card small{
  display:block;
  color:var(--bh-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:700px;
}
.bh-section-card-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.bh-section-status{
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  background:#e8f3eb;
  color:var(--bh-primary);
}
.bh-section-card.not-started .bh-section-status{
  background:#eef2ef;
  color:var(--bh-text-muted);
}
.bh-section-card.in-progress{border-left:4px solid var(--bh-secondary)}
.bh-section-card.complete{border-left:4px solid var(--bh-primary)}
.bh-accessibility-empty{
  padding:16px;
  border:1px dashed var(--bh-border);
  border-radius:14px;
  color:var(--bh-text-muted);
  background:#f7fbf8;
}
.bh-form.bh-editing{padding-top:28px}
.bh-form.bh-editing .bh-actions{
  margin-left:-28px;
  margin-right:-28px;
}

/* Mobile */
@media(max-width:720px){
  .bh-new{
    padding:0 10px;
    margin-top:18px;
  }
  .bh-new-hero{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .bh-new-hero h1{font-size:36px}
  .bh-steps{
    grid-template-columns:repeat(7,100px);
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  .bh-step{
    min-width:100px;
    padding:14px 8px;
  }
  .bh-card{border-radius:22px}
  .bh-form{padding:20px 15px}
  .bh-grid,
  .bh-checks,
  .bh-review-grid{
    grid-template-columns:1fr;
  }
  .bh-field.full{grid-column:auto}
  .bh-price{grid-template-columns:1fr}
  .bh-row{grid-template-columns:1fr 1fr}
  .bh-row .bh-remove{grid-column:1/-1}
  .bh-photos{grid-template-columns:1fr 1fr}
  .bh-actions{
    padding:15px;
    position:sticky;
    bottom:0;
    z-index:5;
    flex-wrap:wrap;
  }
  .bh-section-overview{padding:20px 15px}
  .bh-section-card{
    align-items:flex-start;
    padding:17px;
    flex-direction:column;
  }
  .bh-section-card-actions{
    width:100%;
    justify-content:space-between;
  }
  .bh-section-card small{white-space:normal}
  .bh-editor-actions{
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
  }
  .bh-form.bh-editing .bh-actions{
    margin-left:-15px;
    margin-right:-15px;
  }
  .bh-picker-options{max-height:210px}
  .bh-picker-input{font-size:15px}
}

/* Narrow phones */
@media(max-width:430px){
  .bh-new-hero h1{font-size:32px}
}

/* End Add Class — Leader Wizard */
