/* =========================
   ClinicGrowth Core v1 - base layout
   ========================= */

.cg-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}

.cg-grid{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:24px;
  align-items:start;
}

.cg-card{
  border:1px solid #e6e6e6;
  border-radius:16px;
  padding:16px;
  background:#fff;
}

.cg-thumb{
  border-radius:16px;
  overflow:hidden;
}

.cg-btn{
  display:inline-block;
  padding:12px 14px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid #111;
  transition: all 0.2s ease;
}

.cg-archive-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.cg-archive-item{
  display:block;
  text-decoration:none;
  border:1px solid #e6e6e6;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  padding:14px;
  transition: all 0.25s ease;
}

.cg-archive-body{
  padding:14px;
}

/* Small typography helpers */
.cg-muted{ color:#555; }
.cg-h1{ margin:0 0 8px; }
.cg-h2{ margin:0 0 12px; font-size:18px; }
.cg-m0{ margin:0; }

/* Responsive */
@media (max-width: 960px){
  .cg-grid{ grid-template-columns:1fr; }
  .cg-archive-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 640px){
  .cg-wrap{ padding:16px; }
  .cg-archive-grid{ grid-template-columns:1fr; }
}

/* =========================
   Treatment page (mobile-first)
   ========================= */

.cg-readable{
  max-width: 820px;
  margin: 0 auto;
}

/* Improve scan + hierarchy */
.cg-readable h2{
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 22px;
}

.cg-readable ul{
  margin-bottom: 12px;
}

/* Hero */
.cg-hero{
  margin-bottom: 20px;
}

.cg-hero h1{
  margin: 0 0 6px;
}

.cg-hero-sub{
  margin: 0 0 12px;
  font-size: 18px;
}

.cg-cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
  margin-bottom: 22px;
}

/* Primary button */
.cg-btn.is-primary{
  background:#111;
  color:#fff;
}

/* Quick Summary */
.cg-summary{
  margin: 18px 0 22px;
  background:#f8f9fa;
  border:1px solid #e6e6e6;
}

.cg-summary ul{
  margin:0;
  padding-left:18px;
  line-height:1.7;
}

/* Sections */
.cg-section{
  margin-top: 18px;
}

/* =========================
   Hover States (Premium subtle)
   ========================= */

.cg-btn:hover{
  background:#111;
  color:#fff;
  transform: translateY(-1px);
}

.cg-btn.is-primary:hover{
  opacity:0.85;
}

.cg-archive-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.cg-card{
  transition: box-shadow 0.2s ease;
}

.cg-card:hover{
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

/* =========================
   FAQ Accordion (clean, Kadence-proof)
   ========================= */

.cg-title{
  margin: 0 0 12px;
}

.cg-content{
  line-height: 1.9;
}

.cg-mb12{ margin-bottom:12px; }
.cg-note{ margin-top:12px; margin-bottom:0; }
.cg-center{ text-align:center; }
.cg-center-row{ justify-content:center; }

.cg-faq{
  margin-top: 6px;
}

/* each item */
.cg-faq-item{
  border-top: 1px solid #eee;
  padding: 0;
}

.cg-faq-item:last-child{
  border-bottom: 1px solid #eee;
}

/* summary = clickable row (RESET all theme button styles) */
.cg-faq-q{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  margin: 0;
  padding: 14px 0;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  color: #111;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.cg-faq-q::-webkit-details-marker{
  display:none;
}

/* hover */
.cg-faq-q:hover{
  opacity: 0.9;
}

/* focus (premium, not ugly blue) */
.cg-faq-q:focus{
  outline: none;
}

.cg-faq-q:focus-visible{
  outline: 3px solid rgba(0,0,0,0.12);
  outline-offset: 6px;
  border-radius: 10px;
}

/* answer */
.cg-faq-a{
  padding: 0 0 14px;
  color: #555;
  line-height: 1.85;
  font-size: 16px;
}

/* + / - icon */
.cg-faq-ico{
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 16px;
}

.cg-faq-ico::before,
.cg-faq-ico::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:14px;
  height:2px;
  background:#111;
  transform: translate(-50%, -50%);
  border-radius:2px;
}

.cg-faq-ico::after{
  width:2px;
  height:14px;
}

/* open -> minus */
.cg-faq-item[open] .cg-faq-ico::after{
  opacity: 0;
}

.cg-faq-q{ cursor:pointer !important; }
.cg-faq-q *{ cursor:pointer !important; }


/* =========================
   Sticky mobile CTA bar
   ========================= */

.cg-stickybar{
  display:none;
}

@media (max-width: 768px){
  .cg-hero-sub{ font-size:16px; }

  .cg-stickybar{
    display:flex;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9999;
    gap:8px;
    padding:10px;
    background:#fff;
    border-top:1px solid #e6e6e6;
  }

  .cg-stickybar a{
    flex:1;
    text-align:center;
    padding:12px 10px;
    border-radius:12px;
    text-decoration:none;
    border:1px solid #111;
  }

  .cg-stickybar a.is-primary{
    background:#111;
    color:#fff;
  }

  /* prevent content hidden behind sticky bar */
  body{
    padding-bottom: 78px;
  }
}

/* =========================
   Kadence Header CTA Button (Book Appointment)
   Put this at END of CSS
   ========================= */

/* Target the link by URL + by label (Kadence/WP menu markup varies) */
.kadence-header-wrapper a[href*="book-appointment"],
.kadence-header-wrapper a[href$="/book-appointment/"],
.kadence-header-wrapper a[href$="/book-appointment"],
#primary-menu a[href*="book-appointment"],
#primary-menu a[href$="/book-appointment/"],
#primary-menu a[href$="/book-appointment"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 10px 16px !important;
  border-radius: 12px !important;

  background: #111 !important;
  color: #fff !important;

  border: 1px solid #111 !important;
  text-decoration: none !important;

  line-height: 1.1 !important;
  font-weight: 600 !important;

  transition: transform .15s ease, opacity .15s ease !important;
}

/* Hover */
.kadence-header-wrapper a[href*="book-appointment"]:hover,
#primary-menu a[href*="book-appointment"]:hover{
  opacity: .9 !important;
  transform: translateY(-1px) !important;
}

/* Remove Kadence underline / pseudo styles if any */
.kadence-header-wrapper a[href*="book-appointment"]::after,
#primary-menu a[href*="book-appointment"]::after{
  display: none !important;
}

/* Sometimes Kadence applies padding/bg to the LI or span — reset wrapper noise */
.kadence-header-wrapper li.menu-item a[href*="book-appointment"]{
  background: #111 !important;
}

/* =========================
   Book Appointment page – visual polish (Kadence-safe)
   ========================= */

/* Page rhythm */
.cg-appt-hero{
  margin: 10px 0 24px;
  text-align: left;
}

.cg-appt-hero .cg-h1{
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cg-hero-sub{
  max-width: 62ch;
  line-height: 1.7;
}

/* Top CTA row */
.cg-appt-cta{
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 14px;
}

/* Give buttons consistent “button” feel */
.cg-btn{
  font-weight: 600;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
}

.cg-btn.is-primary{
  background:#111;
  color:#fff;
}

.cg-btn.is-wa{
  background: #fff;
  color: #111;
}

/* Button hover: subtle, consistent */
.cg-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.cg-btn.is-primary:hover{
  opacity: 0.92;
}

/* Meta row (phone/email) */
.cg-appt-meta{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  padding-top: 6px;
  border-top: 1px solid #eee;
  margin-top: 8px;
}

.cg-appt-meta strong{ color:#111; }

/* Main grid */
.cg-appt-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 18px;
  align-items: start;
}

/* Card polish */
.cg-card{
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #e9e9e9;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.cg-card h2.cg-h2{
  font-size: 20px;
  margin: 0 0 10px;
}

/* Form section – make the “not connected yet” message nicer */
.cg-appt-form .cg-card{
  border-radius: 14px;
}

.cg-appt-form code{
  padding: 2px 6px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

/* Form embed spacing */
.cg-form-embed{
  margin-top: 14px;
}

.cg-form-embed :where(input, select, textarea){
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  padding: 12px 12px;
  box-shadow: none;
}

.cg-form-embed :where(input, select, textarea):focus{
  outline: none;
  border-color: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

/* Sidebar – make it feel structured */
.cg-appt-info{
  position: sticky;
  top: 24px;
}

.cg-appt-info-block{
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.cg-appt-info-block:last-of-type{
  border-bottom: none;
  padding-bottom: 0;
}

/* Mini headings */
.cg-appt-mini{
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #666;
}

/* Links (phone/WA) look better than raw blue underline */
.cg-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.18);
}

.cg-link:hover{
  border-bottom-color: rgba(0,0,0,0.45);
}

/* Map button becomes a full-width CTA */
.cg-appt-map{
  width: 100%;
  text-align: center;
  margin-top: 6px;
  background: #111;
  color: #fff;
  border-color: #111;
}

.cg-appt-map:hover{
  opacity: .92;
}

/* “What happens next” note block */
.cg-appt-info .cg-muted{
  line-height: 1.75;
}

/* Mobile */
@media (max-width: 960px){
  .cg-appt-grid{
    grid-template-columns: 1fr;
  }
  .cg-appt-info{
    position: static;
  }
  .cg-card{
    padding: 18px;
  }
}

@media (max-width: 640px){
  .cg-appt-cta{
    gap: 10px;
  }
  .cg-btn{
    width: 100%;
    justify-content: center;
  }
}

