/* ==========================================================================
   /assets/css/site.css — Jenn’s Health site branding (overrides)
   Color: #b479b4 (logo + buttons)
   ========================================================================== */

:root{
  --jhm-purple: #b479b4;
  --jhm-purple-dark: #9b5f9b;
  --jhm-ink: #1b1b1f;
  --jhm-surface: #f7f3f8;
}

/* IMPORTANT:
   Do NOT force body flex layouts unless your pages wrap content in <main>.
   That "sticky footer" trick breaks layouts on pages without <main>.
*/
html, body{
  margin: 0;
  padding: 0;
  height: auto;
}

/* Force the template kit to use your vibe */
body.jhm-body{
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header */
.jhm-header{ background: #fff; }

.jhm-topbar{
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #ffffff;
}

.jhm-topbar-inner{
  width: min(100% - 2rem, var(--container-max, 1180px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  gap: 1rem;
  position: relative;
}

/* Brand block */
.jhm-brand{
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 120px;
  min-height: 86px;
}

.jhm-logo-wrap{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  overflow: hidden;
  margin-top: 24px; /* overlap */
}

.jhm-logo-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.jhm-brand:hover .jhm-logo-wrap img{
  transform: scale(1.05);
}

/* Brand text */
.jhm-brand-text{
  display: grid;
  line-height: 1.05;
}
.jhm-brand-name{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 1.15rem;
  color: var(--jhm-ink);
  text-transform: uppercase;
}
.jhm-brand-tag{
  font-weight: 800;
  font-size: .88rem;
  color: rgba(27,27,31,.62);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Center nav */
.jhm-nav{
  display: none;
  gap: .35rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 992px){
  .jhm-nav{ display: inline-flex; }
}

.jhm-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 15px;
  color: rgba(27,27,31,.70);
  text-transform: uppercase;
}
.jhm-link:hover{
  background: rgba(180,121,180,.12);
  color: rgba(27,27,31,.92);
}
.jhm-link.is-active{
  background: rgba(180,121,180,.18);
  color: rgba(27,27,31,.95);
}

/* Right actions */
.jhm-actions{
  display: flex;
  justify-content: end;
  gap: .65rem;
  align-items: center;
}

.jhm-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}

.jhm-btn--primary{
  background: var(--jhm-purple);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}
.jhm-btn--primary:hover{
  background: var(--jhm-purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0,0,0,.16);
}

.jhm-btn--ghost{
  background: #fff;
  color: rgba(27,27,31,.92);
  border-color: rgba(27,27,31,.14);
}
.jhm-btn--ghost:hover{
  background: rgba(27,27,31,.04);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.jhm-mobile-toggle{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 2px solid rgba(27,27,31,.14);
  background: #fff;
  font-weight: 900;
  font-size: 20px;
}

/* Mobile nav drawer */
.jhm-mobile-nav{
  width: min(100% - 2rem, var(--container-max, 1180px));
  margin: 0 auto 16px auto;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.jhm-mobile-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(27,27,31,.82);
  margin-bottom: 6px;
  background: rgba(180,121,180,.08);
}
.jhm-mobile-link:hover{
  background: rgba(180,121,180,.14);
}
.jhm-mobile-link--cta{
  background: var(--jhm-purple);
  color: #fff;
}

/* Section headings CAPS (your choice) */
.jhm-section-title{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.jhm-subtitle{
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 900;
  color: rgba(27,27,31,.60);
  font-size: .95rem;
}

/* Footer */
.jhm-footer{
  background: #101018;
  color: rgba(255,255,255,.90);
  padding: 54px 0 22px 0;
  margin: 0;            /* IMPORTANT: no random gap */
}

.jhm-footer-inner{
  width: min(100% - 2rem, var(--container-max, 1180px));
  margin-inline: auto;
}

.jhm-footer-grid{
  display: grid;
  gap: 24px;
}
@media (min-width: 992px){
  .jhm-footer-grid{
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
  }
}

.jhm-footer-title{
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jhm-footer-muted{
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.jhm-footer-links{
  display: grid;
  gap: 8px;
}

.jhm-footer-link{
  color: rgba(255,255,255,.86);
}
.jhm-footer-link:hover{
  color: #fff;
  text-decoration: underline;
}

.jhm-footer-bottom{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 10px;
}
@media (min-width: 992px){
  .jhm-footer-bottom{
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.jhm-footer-small{
  color: rgba(255,255,255,.62);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Contact form big inputs */
.jhm-form .form-control{
  min-height: 56px;
  font-size: 18px;
  border-radius: 18px;
}
.jhm-form textarea.form-control{
  min-height: 160px;
}
.jhm-form label{
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(27,27,31,.70);
}

/* Keep logo overlap nice on small screens */
@media (max-width: 575px){
  .jhm-topbar-inner{
    grid-template-columns: 1fr auto;
  }
  .jhm-brand{
    padding-left: 104px;
  }
  .jhm-logo-wrap{
    width: 96px;
    height: 96px;
    margin-top: 18px;
  }
  .jhm-brand-name{ font-size: 1.05rem; }
  .jhm-brand-tag{ font-size: .82rem; }
}

/* Hide brand text – logo only */
.jhm-brand-text{
  display: none;
}
