/* =============================================================
   Clinical Growth Academy — Main Stylesheet
   ============================================================= */

/* Google Fonts loaded via functions.php */

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

:root {
  --navy:       #0d1f38;
  --navy-mid:   #162e52;
  --navy-light: #1e3d6e;
  --gold:       #b8902a;
  --gold-light: #cfa840;
  --gold-pale:  #f2e8d0;
  --white:      #ffffff;
  --off-white:  #f7f5f0;
  --text:       #0d1f38;
  --text-mid:   #3d4e62;
  --text-muted: #6b7b8d;
  --rule:       #ddd8ce;
  --error:      #b83030;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  margin: 0;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

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

/* ─── HEADER ─── */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid rgba(184,144,42,.2);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon { width: 36px; height: 36px; }

.logo-top {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: block;
  letter-spacing: .02em;
}

.logo-bottom {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

/* ─── NAV ─── */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

#primary-nav li a {
  font-size: .77rem;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

#primary-nav li a:hover,
#primary-nav li.current-menu-item > a,
#primary-nav li.current-page-ancestor > a { color: var(--gold-light); }

/* Dropdown */
#primary-nav li.menu-item-has-children { position: relative; }

#primary-nav li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: .35rem;
  vertical-align: middle;
}

#primary-nav li.menu-item-has-children ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(184,144,42,.22);
  min-width: 240px;
  padding: .4rem 0;
  z-index: 300;
  list-style: none;
}

#primary-nav li.menu-item-has-children:hover ul.sub-menu { display: block; }

#primary-nav ul.sub-menu li a {
  display: block;
  padding: .5rem 1.2rem;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .03em;
  text-transform: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

#primary-nav ul.sub-menu li a:hover { background: rgba(184,144,42,.1); color: #fff; }

/* CTA nav button */
#primary-nav li.nav-cta a {
  background: var(--gold);
  color: var(--navy) !important;
  padding: .5rem 1.3rem;
  font-weight: 500;
  letter-spacing: .1em;
  transition: background .2s;
}

#primary-nav li.nav-cta a:hover { background: var(--gold-light); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
}

/* ─── PAGE OFFSET (fixed header) ─── */
.site-content { padding-top: 68px; }

/* ─── SHARED COMPONENTS ─── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
}

.eyebrow-rule { width: 32px; height: 1px; background: var(--gold); flex-shrink: 0; }

.eyebrow span {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.section-title em { font-style: italic; color: var(--gold); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.75rem;
}

.breadcrumb a { color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { width: 16px; height: 1px; background: rgba(255,255,255,.2); }

/* ─── BUTTONS ─── */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--navy);
  padding: .85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .77rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}

.btn-solid:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184,144,42,.28);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--navy);
  color: #fff;
  padding: .85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .77rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: background .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}

.btn-navy:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184,144,42,.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--navy);
  padding: .85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .77rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rule);
  transition: border-color .2s, color .2s;
  cursor: pointer;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: rgba(255,255,255,.65);
  padding: .85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .77rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .2s, color .2s;
}

.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold-light); }

/* ─── FORMS ─── */
.cga-form label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mid);
  display: block;
  margin-bottom: .4rem;
}

.cga-form label .req { color: var(--gold); margin-left: .2rem; }

.cga-form input[type="text"],
.cga-form input[type="email"],
.cga-form input[type="tel"],
.cga-form input[type="number"],
.cga-form select,
.cga-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: .75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  border-radius: 0;
}

.cga-form input:focus,
.cga-form select:focus,
.cga-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,144,42,.1);
}

.cga-form input::placeholder,
.cga-form textarea::placeholder { color: var(--text-muted); }

.cga-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7b8d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.cga-form textarea { resize: vertical; min-height: 120px; line-height: 1.65; }

/* ─── PAGE HERO (shared across interior pages) ─── */
.page-hero {
  background: var(--navy);
  padding: 5rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  background: var(--navy-mid);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 700px;
}

.page-hero h1 em { font-style: italic; color: var(--gold-light); }

.page-hero-desc {
  font-size: .92rem;
  color: rgba(255,255,255,.55);
  line-height: 1.85;
  max-width: 520px;
  margin-top: 1.25rem;
}

/* ─── SECTION UTILITY ─── */
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-pad { padding: 6rem 2.5rem; }

.section-pad-sm { padding: 4rem 2.5rem; }

.bg-off { background: var(--off-white); }

.bg-navy {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.bg-navy-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 119px,
    rgba(255,255,255,.015) 119px, rgba(255,255,255,.015) 120px
  );
  pointer-events: none;
}

/* ─── CTA BAND ─── */
.cta-band { padding: 6rem 2.5rem; }

.cta-block {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}

.cta-block::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border: 1px solid rgba(184,144,42,.08);
  border-radius: 50%;
}

.cta-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}

.cta-block p { font-size: .88rem; color: rgba(255,255,255,.52); }

.cta-btns { display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0; }

/* ─── PROSE (blog / page content) ─── */
.prose { font-size: .95rem; color: var(--text-mid); line-height: 1.9; }
.prose p { margin-bottom: 1.4rem; }
.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 .75rem;
}

.prose strong { font-weight: 500; color: var(--navy); }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(184,144,42,.3); transition: border-color .2s; }
.prose a:hover { border-color: var(--gold); }

.prose blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--off-white);
}

.prose blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 0;
}

.prose ul, .prose ol { margin: 1rem 0 1.5rem 1.25rem; }
.prose li { margin-bottom: .6rem; font-size: .92rem; color: var(--text-mid); line-height: 1.75; }

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--off-white);
}

.callout-label {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
  display: block;
}

.callout p { font-size: .86rem; color: var(--text-mid); line-height: 1.8; margin: 0; }

/* Step list */
.step-list { list-style: none; margin: 1.5rem 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--rule); }
.step-list li { background: var(--white); padding: 1.25rem 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start; font-size: .88rem; color: var(--text-mid); line-height: 1.7; margin: 0; }
.step-list li:hover { background: var(--off-white); }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: rgba(184,144,42,.35); flex-shrink: 0; min-width: 28px; line-height: 1.4; }
.step-body strong { color: var(--navy); font-weight: 500; display: block; margin-bottom: .2rem; }

/* ─── FOOTER ─── */
#site-footer {
  background: #07111e;
  color: rgba(255,255,255,.5);
  padding: 5rem 2.5rem 2.5rem;
}

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.footer-brand-sub {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.1rem;
}

.footer-blurb { font-size: .8rem; line-height: 1.8; max-width: 260px; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: .6rem; }

.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }

.footer-col ul li a {
  font-size: .79rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .72rem;
}

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .2s;
}

.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* ─── WORDPRESS CORE ALIGNMENT ─── */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .75rem; color: var(--text-muted); margin-top: .4rem; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-block { grid-template-columns: 1fr; padding: 2.5rem; }
}

@media (max-width: 768px) {
  #primary-nav { display: none; }

  #primary-nav.open {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    position: fixed;

    top: 68px; left: 0; right: 0; bottom: 0;

    background: var(--navy);

    padding: 1.5rem 2rem 3rem;

    gap: 0;

    border-top: 1px solid rgba(184,144,42,.2);

    z-index: 199;

    list-style: none;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

  }



  #primary-nav.open > li {

    width: 100%;

    border-bottom: 1px solid rgba(255,255,255,.06);

  }



  #primary-nav.open > li > a {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 0;

    font-size: .82rem;

    color: rgba(255,255,255,.75) !important;

  }



  #primary-nav.open li.menu-item-has-children > a::after {

    content: '+';

    font-size: 1.2rem;

    color: var(--gold);

    font-weight: 300;

    transform: none;

    border: none;

    margin-left: auto;

  }



  #primary-nav.open li.menu-item-has-children.sub-open > a::after {

    content: '−';

  }



  #primary-nav.open li.menu-item-has-children ul.sub-menu {

    display: none;

    position: static;

    transform: none;

    min-width: 0;

    border: none;

    background: rgba(255,255,255,.04);

    padding: .25rem 0 .75rem 1rem;

  }



  #primary-nav.open li.menu-item-has-children.sub-open ul.sub-menu {

    display: block;

  }



  #primary-nav.open ul.sub-menu li a {

    padding: .6rem .75rem;

    font-size: .8rem;

    color: rgba(255,255,255,.55) !important;

    display: block;

  }



  #primary-nav.open li.nav-cta {

    margin-top: 1.5rem;

    border-bottom: none;

  }



  #primary-nav.open li.nav-cta a {

    background: var(--gold);

    color: var(--navy) !important;

    padding: .85rem 1.5rem;

    display: inline-block;

  }



  
  .nav-burger { display: flex; }
  .page-hero::before { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .section-pad { padding: 4rem 1.5rem; }
  .section-pad-sm { padding: 2.5rem 1.5rem; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
