/* ==========================================================================
   0) ROOT, RESET, BASE
   ========================================================================== */

:root{
  /* Colors */
  --color-background: #000000;          /* page background */
  --color-surface:    #0b0b0b;          /* section background */
  --color-elevated:   #111111;          /* cards/panels */
  --color-text:       #f3f4f6;          /* primary text */
  --color-muted:      #c6c6c6;          /* secondary text */
  --color-primary:    #D4AF37;          /* gold */
  --color-primary-20: rgba(212,175,55,.20);
  --color-primary-30: rgba(212,175,55,.30);
  --color-primary-40: rgba(212,175,55,.40);
  --color-border:     rgba(255,255,255,.10); /* subtle neutral line */
  --color-accent:     #2CA01C;          /* QuickBooks green */
  --color-charcoal: #1a1a1a;

  /* Layout, radii, shadows */
  --radius:           18px;
  --radius-sm:        10px;
  --shadow-soft:      0 8px 24px rgba(0,0,0,.35);
  --shadow-gold:      0 0 10px rgba(212,175,55,.15);
  --shadow-gold-strong: 0 0 16px rgba(212,175,55,.28);
  --container:        1000px;

  /* Hero image: change the path to your asset if needed */
  --hero-bg-image: url("../img/LogoBackground.png");
 
  --banner-h: 0px;
  --nav-h: 0px;
  --sticky-offset: 24px; /* fallback */

  --nav-offset: 6rem;
}
*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ 
  scroll-behavior: smooth; 
  scroll-padding-top: var(--sticky-offset);
}
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  /* subtle noise pattern */
  background-image:
    radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 10px 8px;
  overflow-x: hidden;
  padding-top: calc(var(--banner-h, 0px) + var(--nav-h, 0px));
}
img{ max-width: 100%; display: block; }
a{ color: var(--color-primary); text-decoration: none; }
a:hover{ text-decoration: underline; }
.hidden{ display: none !important; }
.qb-highlight{ 
  color: var(--color-accent); 
  font-weight: 700; 
  white-space: nowrap;        
  margin: 0 0.25ch;            /* visual space on both sides */
}
/* contained width for sections */
.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section-inner ul{
  display: inline-block;   /* shrink to content width */
  text-align: left;        /* keep text left-aligned inside */
  margin: 1em auto;        /* center the whole list block */
  padding-left: 1.2em;     /* keeps bullet indentation clean */
}
/* construction banner */



/* ==========================================================================
   1) NAVBAR
   ========================================================================== */

#navbar{
  position: fixed;
  top: var(--banner-h);
  left: 0; 
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: rgba(0,0,0,.6);
  background-color: rgba(17,17,17,.68);           /* translucent so blur can show */
  -webkit-backdrop-filter: saturate(160%) blur(9px); /* Safari */
  backdrop-filter: saturate(160%) blur(9px);         /* Standard */

  border-bottom: 1px solid var(--color-primary-30); /* gold line */
}
#navbar .logo-button{ display: flex; align-items: center; gap: .5rem; }
.logo{ height: 40px; }
#navbar .company-name{
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .15px;
  font-family: "Playfair Display", serif;
}
.nav-toggle{ display: none; cursor: pointer; }
.nav-toggle span{
  display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .2s;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
#nav-menu{ display: flex; gap: 1rem; align-items: center; }
#nav-menu a{ padding: .35rem .6rem; border-radius: 8px; }
#nav-menu a:hover{ background: rgba(255,255,255,.06); }
@media (max-width: 900px){
  .nav-toggle{ display: block; }
  #nav-menu{
    display: none;
    position: absolute;
    right: 1rem;
    top: 58px;
    background: #0f0f0f;
    padding: .75rem;
    border: 1px solid var(--color-primary-30);
    border-radius: 12px;
    flex-direction: column;
    gap: .35rem;
  }
  #nav-menu.active{ display: flex; }
  #navbar .logo-button{ gap: .4rem; }
}

@media (max-width: 940px) and (min-width: 881px){
#nav-menu{ gap: .5rem; font-size: .9rem; }

}
/* ==========================================================================
   2) HERO
   ========================================================================== */

#hero{
  position: relative;
  padding: 3rem 1rem 2.5rem;
  text-align: center;
  background-image: url("../img/LogoBackground.png");  /* ← your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-primary-30);
}
.hero-header + .hero-main{
  margin-top: .75rem; /* tighten gap between logo block and copy */
}
/* hero background image with dark overlay for readability */
#hero::before{
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)), var(--hero-bg-image); */
  background-size: cover;
  background-position: center;
  /* opacity: .88;           */
  z-index: -1;
}
.header-logo{ 
  height: 72px; 
  margin: 0 auto 4px; 
}

.hero__logo{
  display:block;
  margin: 0 auto 1rem;
  height: clamp(72px, 10vw, 110px);
  width: auto;                 
}

.hero-title{
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-family: "Playfair Display", serif;
  margin: 0 0 .6rem;
  letter-spacing: .2px;
  line-height: 1.2;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Buttons (anchors & buttons) */
.button-link, button{
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8c96a 0%, #D4AF37 60%, #b8962e 100%);
  color: #111;
  font-weight: 700;
  letter-spacing: .25px;
  box-shadow: var(--shadow-gold);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
}
.button-link:hover, button:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold-strong);
  text-decoration: none;
}
/* Stack the referral actions vertically and make them full-width */
.referral-actions{
  display: grid;                
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1rem;
  justify-items: stretch;   
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0.25rem 0;    
}
/* Compact, full-width buttons inside the referral block */
.referral-actions .button-link, .referral-actions button{
  width: 100%;
  padding: .8rem 1rem;
  font-size: 1rem;
  line-height: 1.1;
  border-radius: 12px;
  margin-bottom: 1rem;
}
/* Make the "Request Referral Cards" link a subtle ghost button */
.referral-actions a.button-link[href*="referral-cards"]{
  background: transparent;             
  color: var(--color-text);
  border: 1px solid var(--color-primary-30);
  box-shadow: none;
}
.referral-actions a.button-link[href*="referral-cards"]:hover{
  border-color: var(--color-primary);
}
.email-helper-text{
  margin: 0 0 .5rem;
  font-size: 1.5rem;
}
/* Mobile vertical spacing */
@media (max-width: 520px){
  #hero { padding: 2.75rem 1rem 2rem; }
  .header-logo { height: 64px; }
}

/* Referral Hub — wider section + balanced 2-column layout */
#referral-hub .section__inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#referral-hub .form-container{
  display: grid;
  grid-template-columns: 1fr;   /* stack on mobile */
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px){
  #referral-hub .form-container{
    /* Form gets ~70%, helper holds a comfortable min width */
    grid-template-columns: minmax(0, 2.2fr) minmax(360px, 1fr);
    gap: 2.5rem;
  }

  /* Ensure the form isn't capped by older rules */
  #referral-hub .referral-form{
    width: 100%;
    max-width: none;
  }

  /* Keep helper visible without stealing space */
  #referral-hub .email-helper{
    align-self: start;
    position: sticky;
    top: calc(var(--sticky-offset, 0px) + 8px);
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

#hero .button-link{ margin-top: .35rem; }
/* Soft brake that disappears on wider screens */
.hero-br{ display: inline; }
.hero-notes span{
  display: inline-block;
  opacity: .9;
}
/* ===== Hero Compact Variant ===== */
#hero.hero--compact .hero-header .company-name{ display: none; }
/* remove duplicate brand line in hero */
#hero.hero--compact .header-logo{ height: 56px; margin-bottom: 6px; }
/* Schedule page hero tuning */
#hero.hero--compact{
  padding: 1.25rem 1rem .75rem;
  background-position: center;
  background-size: cover;
}
/* Eyebrow (quiet line above headline) */
.eyebrow{
  text-transform: none;
  font-size: 1rem;
  opacity: .9;
  letter-spacing: .2px;
  margin: 0 0 .25rem;
  color: var(--color-accent, #2CA01C);
}
/* Headline: short, high-impact, tight line length */
.hero-title{
  font-size: clamp(1.8rem, 3.3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6rem;
  max-width: 24ch;               /* force compact line length */
  margin-left: auto; margin-right: auto;
}
/* One calm supporting line */
.hero-subtext{
  max-width: 58ch;
  margin: 0 auto .9rem;
  line-height: 1.5;
  opacity: .92;
  font-size: clamp(1rem, 2vw, 1.05rem);
}
/* Quiet “pills” instead of extra sentences */
.hero-pills{
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
  justify-content: center;
  margin: 0 auto 1rem;
  max-width: 620px;
}
.hero-pills span{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  padding: .32rem .6rem;
  border-radius: 999px;
  font-size: .9rem;
  opacity: .9;
}
/* Button spacing */
#hero .button-link{ margin-top: .25rem; }
/* Overall density */
#hero{ padding: 1.5rem 1rem 2.4rem; }
.hero-header + .hero-main{ margin-top: .5rem; }
/* On very small screens, hide the pills to reduce load */
@media (max-width: 480px){
  .hero-badges { display: none; }
  #hero { padding-top: 2.6rem; }
}
.herobtn{
  margin-bottom: 1.5rem;
}
/* ===== Intuit Certifications (badges in hero) ===== */
#proof-strip{
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
}
#proof-strip .proof-inner{
  max-width: var(--container, 1200px);
  margin: 0 auto;
  text-align: center;
  background-color: var(--color-surface);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 24px rgba(0,0,0,.25);
  padding: 1rem;
}
#proof-strip .proof-kicker{
  margin: 0 0 .6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--color-muted, #b8b8b8);
}
/* badges row — center, wrap, no bullets */
#proof-strip .badge-row{
  list-style: none;      /* remove bullets */
  margin: 0 auto;
  padding: 0;            /* remove default UL padding */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem 1.2rem;     /* row x column gap */
}
#proof-strip .badge-item{
  display: flex;
  align-items: center;
  justify-content: center;
}
/* normalize mixed badge artwork without distortion */
#proof-strip .badge-item img{
  height: 72px;
  width: auto;
  object-fit: contain;
  image-rendering: auto;
}
/* reassurance line + profile link */
#proof-strip .proof-note{
  margin: .75rem 0 0;
  font-size: .92rem;
  color: var(--color-muted, #b8b8b8);
}
#proof-strip .proof-note a{
  color: var(--color-link, #4da3ff);
  text-decoration: none;
}
#proof-strip .proof-note a:hover{ text-decoration: underline; }
/* optional: only include once in your CSS */
.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
/* mobile tweaks */
@media (max-width: 520px){
  #proof-strip .proof-inner { padding: .9rem; }
  #proof-strip .badge-item img { height: 60px; }
  #proof-strip .badge-row { gap: .6rem .8rem; }
}
/* tighten the gap between hero and badges */
header#hero{ 
  padding-bottom: 1rem !important;      
}
/* remove any extra top spacing on the badges section itself */
section#proof-strip{
  margin-top: 0 !important;             
  padding-top: 0 !important;           
}
/* optional: slightly tighter padding inside the panel */
#proof-strip .proof-inner{
  padding-top: .8rem;
  padding-bottom: .85rem;
}
/* Sticky CTA at bottom */
.sticky-cta{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none; 
}
/* Optional: shrink slightly on mobile */
@media (max-width: 600px){
  .sticky-cta {
    width: 90%;
    font-size: 1rem;
    padding: 0.85rem;
  }
}
/* Default: normal flow */
#main-cta{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: opacity 0.3s ease;
  
}
/* Sticky state (added via JS) */
#main-cta.sticky{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  margin-top: 0;
}
.sticky-cta-wrapper{
  height: 0; /* prevents breaking layout */
}
/* Hide sticky CTA by default on Who-We-Help pages */
.page-header ~ .sticky-cta-wrapper{ display: none; }
body.owners-page .sticky-cta-wrapper{ display: block; }
/* Page title header for who-we-help pages */
.page-header{
  background-image: url("../img/LogoBackground.png");
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-primary-30);
}
.page-header .page-title{
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}
/* ==========================================================================
   3) ABOUT
   ========================================================================== */

#about{ padding: 3rem 0; border-top: 1px solid var(--color-primary-30); text-align: center; }
#about h2{ margin: 0 0 .5rem; text-align: center; }
#about p{ max-width: 800px; margin-left: auto; margin-right: auto; }
/* ==========================================================================
   4) SERVICES / WHAT WE DO
   ========================================================================== */

/* #what-we-do{
  padding: 1rem 0;
  border-top: 1px solid var(--color-primary-30);
  text-align: center;
}
#what-we-do h1{
  margin: 0 0 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  text-align: center;
}
#what-we-do h2{ margin: 0 0 1rem; }
#what-we-do ul{ margin: 0; padding-left: 1.25rem; }
#what-we-do li{ margin: .35rem 0; }
#what-we-do .section-subtext{ 
  max-width: 800px; 
  margin-left: auto; 
  margin-right: auto; 
  font-size: 1rem;
  padding-bottom: 1rem;
}
#what-we-do li{
  margin: .5rem 0;            
}
#what-we-do .section-title{
  margin: 0 0 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  text-align: center;
}
*/


/* .what-we-do-button{
  margin-bottom: 1rem;
}
*/

/* ——— Branded bullet icons ——— */

.checks-list, #what-we-do ul{
  display: inline-block;
  text-align: left;
  list-style: none;         
  padding-left: 0;          
  margin: 0 auto 1rem;
  max-width: 62ch;
}
.checks-list li{
  padding-bottom: 1rem; 
}
.checks-list li, #what-we-do li{
  position: relative;
  padding-left: 1.6rem;
}
.checks-list li::before, #what-we-do li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: .15rem;
  font-weight: 800;
  opacity: .95;
}
/* Gold Check Marks */
.checks-gold{
  list-style: none;
  padding-left: 0;
}
.checks-gold li{
  position: relative;
  padding-left: 1.6rem;
}
.checks-gold li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: .15rem;
  font-weight: 800;
  opacity: .95;
  color: var(--color-primary);
}
.section-subtext{
  text-align: center;
}
.section-subtext-bottom{
  padding-bottom: 2rem;
}
/* shared CTA band */
.section-cta{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 2.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-primary-30);
}
.section-cta .button-link{ 
  padding: 0.75rem 1.5rem; 
  display: inline-block;
  text-align: center;
}
#what-we-do .section-inner{
  margin-top: 2rem;
}
.section-cta .section-cta-text{
  padding-top: 0;
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: bold;
}
.section-cta .pricing-note{
  max-width: 58ch;
  margin: .6rem auto 0;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--color-muted);
  opacity: .95;
}
.mission-statement{
  /* border: 1px solid var(--color-primary);
  padding: 2rem;
  text-align:center;
  border-radius: 10px;
  background-color: var(--color-elevated); */
}
/* Specific to the sticky CTA */
#main-cta.button-link{
  padding: .65rem 1.2rem;     
  font-size: .95rem;          
  line-height: 1.2;           
}
/* ==========================================================================
   WHO WE HELP (section-specific styles)
   ========================================================================== */

/* .who-we-help{
  padding: 2.75rem 1rem 2.25rem;
}
*/

/* .who-inner{
  max-width: 1100px;
  margin: 0 auto;
}
*/

#what-changes{
  padding-top: 1.5rem;  
}

/* Who We Help — clean 1 → 2 → 4 grid (no 3-up rows) */
#who-we-help .tiles{
  display:grid;
  grid-template-columns: 1fr;     /* 1 x 1 (mobile) */
  gap: 1.25rem;
  align-items: stretch;
}

/* 2 x 2 (tablet) */
@media (min-width: 680px){
  #who-we-help .tiles{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 4 x 4 (desktop+) — only when it truly fits to avoid 3+1 */
@media (min-width: 1360px){
  #who-we-help .tiles{
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tile structure helpers */
#who-we-help .tile-link{ display:block; height:100%; }
#who-we-help .tile{ display:flex; flex-direction:column; height:100%; }
#who-we-help .tile__note{ margin-top:auto; }

/* Wider container just for this section */
#who-we-help .section__inner{
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* .who-title{
  margin: 0 0 1.25rem;
  padding-bottom: 1.5rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  line-height: 1.2;
}
*/

/* Grid */
/* .who-grid{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}
*/

/* Card */
/* .who-card{
  height: 100%;                   /
  display: flex;
  justify-content: space-between;  
  padding: 2rem;
  border-radius: 14px;
  background: var(--color-dark);
  transition: outline 0.3s ease;
  text-align: center;
}
*/

/* HARD RESET: many sites fade h3s; ensure full contrast here */
/* .who-card h3{
  margin: 0 0 .45rem;
  font-size: clamp(1.06rem, .6vw + 1rem, 1.28rem);
  line-height: 1.25;
  font-weight: 700;
  color: #111 !important;
  opacity: 1 !important;
  letter-spacing: 0;
}
*/

/* .who-card p{
  margin: 0;
  font-size: clamp(.95rem, .3vw + .9rem, 1rem);
  line-height: 1.55;
  color: rgba(0,0,0,.82);
}
*/

/* .who-card-link{
  display: block;
  height: 100%;
  text-decoration: none;
  border-radius: 14px;       
}
*/

/* .who-card-link:hover{
  text-decoration: none;      
  outline: 2px solid var(--color-primary);  
  outline-offset: 4px;        
}
*/

/* .who-cta-note{
  display: block;
  margin-top: 0.75rem;     
  font-size: 0.9rem;       
  font-style: italic;      
  color: var(--color-primary); 
  text-align: center;      
  transition: color 0.3s ease;
}
*/

/* .who-card-link:hover .who-cta-note{
  color: var(--color-dark); 
}
*/

/* Tablet: 2 columns */
/* @media (min-width: 640px){
  .who-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
*/

/* Tablet & up: 2 columns */
/* @media (min-width: 640px){
  .who-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
*/

/* Optional: widen spacing on large desktops if you want balance */
/* @media (min-width: 1200px){
  .who-grid {
    grid-template-columns: repeat(2, 1fr); 
    max-width: 1000px; 
    margin: 0 auto;
  }
}
*/

/* Hover polish */
/* @media (hover: hover){
  .who-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .who-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    border-color: rgba(0,0,0,.18);
  }
}
*/

/* Dark theme pass (keeps contrast against black background) */
/* @media (prefers-color-scheme: dark){
  .who-card {
    background: #151515;
    box-shadow: 0 8px 22px rgba(0,0,0,.45);
  }
  .who-card h3 {
    color: #f1f1f1 !important;
  }
  .who-card p {
    color: rgba(255,255,255,.86);
  }
}
*/

/* ==========================================================================
   5) HOW IT WORKS
   ========================================================================== */

#how-it-works{ 
  padding: 2rem 0; 
  text-align: center; 
  border-top: 1px solid var(--color-primary-30);
}
#how-it-works h2{ margin: 0 0 .75rem; text-align: center; font-family: "Playfair Display", serif; font-size: 1.75rem;}
#how-it-works ol{ display: inline-block; text-align: left; list-style: decimal outside; max-width: 62ch; margin: 0 auto 1rem; padding-left: 1.25rem;}
#how-it-works li{ margin: .5rem 0;}
/* ==========================================================================
   6) FAQS
   ========================================================================== */

.faq-section{ padding: 2rem 0; border-top: 1px solid var(--color-primary-30); }
.faq-question{
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--color-text);
  border: none;
  outline: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 1rem 2rem 1rem 2rem;
  cursor: pointer;
  white-space: normal;
}
.faq-item.open{
  box-shadow:
    0 0 0 1px rgba(212,175,55,.25),
    0 6px 18px rgba(0,0,0,.35);
}
.faq-item.open .faq-answer{
  max-height: 520px;
  padding: 1rem 1.25rem 1.25rem 1.5rem;
}
@media (max-width: 600px){
.faq-question{ padding-left: 1.1rem; padding-right: 1.1rem; }

}
/* ==========================================================================
   7) SPECIALIST SECTION
   ========================================================================== */



/* ==========================================================================
   8) TESTIMONIALS / CAROUSEL
   ========================================================================== */

.carousel-container{ padding: 2rem 0; border-top: 1px solid var(--color-primary-30); }
.testimonials-heading{ text-align: center; margin: 0 0 1rem; font-family: "Playfair Display", serif;}
.carousel-container .testimonials-subtext{
  text-align: center;
  max-width: 780px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
.carousel-box{
  position: relative;
  margin: 0 auto;
  max-width: 860px;
  background: var(--color-elevated);
  border-radius: var(--radius);
  padding: 1rem 1rem 3.25rem;
  border: 1px solid var(--color-primary-20); /* gold edge */
  box-shadow: var(--shadow-soft);
}
.carousel-inner{
  display: grid;
  place-items: center;
  min-height: 280px;
  padding-bottom: 3.25rem;
}
.testimonial{
  display: none;
  width: 100%;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}
.testimonial.active{ display: block; }
.testimonials-heading{
  font-size: 1.75rem;
}
.testimonials-subtext{
  text-align: center;
  margin: 0 auto;
  max-width: 700px; /* optional, for better readability */
}
.Heading{ font-size: 1.5rem; font-weight: 700; margin: 0 0 .35rem; padding-bottom: 1.5rem;}
.quote{ margin: .35rem auto; max-width: 900px; }
.client{ opacity: .85; margin-top: .35rem; }
.read-more{
  display: inline-flex;
  margin: .75rem auto 0;
}
.carousel-controls{
  position: absolute;
  left: 0; right: 0; bottom: .6rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.25rem;
}
.carousel-controls .prev, .carousel-controls .next{
  background: #1a1a1a; color: #fff;
  border: 1px solid var(--color-primary-20);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.carousel-dots{ display: flex; gap: .4rem; align-items: center; justify-content: center; }
.carousel-dots .dot{ width: 8px; height: 8px; border-radius: 50%; background: #444; display: inline-block; cursor: pointer; }
.carousel-dots .dot.active{ background: var(--color-primary); }
.section-subtext .carousel{
  padding-bottom: 2rem;
  font-size: 1.25rem;
  text-align: center;
}
@media (max-width: 600px){
  .carousel-controls{ padding: 0 .5rem; }
  .carousel-controls .prev{ left: .25rem; }
  .carousel-controls .next{ right: .25rem; }
}
/* ==========================================================================
   9) REFERRAL SECTION & FORM
   ========================================================================== */

#referral-section{ padding: 2rem 0; border-top: 1px solid var(--color-primary-30); text-align: center; scroll-margin-top: var(--sticky-offset)}
/* Keep referral section content centered and constrained */
#referral-section > .section-inner{
  max-width: var(--content-max, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}
#referral-section h2{
  margin: 0 0 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
}
.form-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.referral-form{
  background: #0f0f0f;
  border: 1px solid var(--color-primary-20);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
#referral-section .referral-form{
  margin-bottom: 2.5rem;   /* adjust as needed */
}
#referral-section .form-container{
  padding-bottom: 2.5rem;  /* ensures container also has spacing */
}
.input-group{ position: relative; margin: 1rem 0; }
.input-group input{
  width: 100%;
  padding: 1rem .9rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #0b0b0b;
  color: var(--color-text);
  outline: none;
}
.input-group label{
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-muted);
  transition: all .15s ease;
  background: transparent;
  padding: 0 .25rem;
}
.input-group input:focus{ border-color: var(--color-primary); }
.input-group input:not(:placeholder-shown) + label, .input-group input:focus + label{
  top: .4rem; transform: none; font-size: .75rem; color: var(--color-primary);
}
.error-message{ display: block; margin-top: .35rem; color: #ff6b6b; font-size: .85rem; }
.referral-actions{ display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; justify-content: center; }
.email-helper{ margin-top: 2rem; padding-top: 2rem; text-align: center; border-top: 1px solid var(--color-primary-30); }
.spinner{
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}

@media (max-width: 900px){
  .form-container{ grid-template-columns: 1fr; gap: 1.25rem; }
}
/* focus ring + label float */
.input-group select:focus{ border-color: var(--color-primary); }
/* when a valid option is chosen, float the label just like inputs */
.input-group select:valid + label, .input-group select:focus + label{
  top: .4rem;
  transform: none;
  font-size: .75rem;
  color: var(--color-primary);
}
/* default label position when nothing is selected */
.input-group select:required:invalid + label{
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--color-muted);
}
/* When the browser scrolls an input into view (e.g., after closing login), keep the field below the header as well */
.input-group input, .input-group select, .input-group textarea{
  scroll-margin-top: calc(var(--sticky-offset) + 12px);
}
/* on mobile, physically push content below the fixed header stack */
@media (max-width: 900px){
  body.has-fixed-header-offset { padding-top: var(--sticky-offset); }
}
/* Also use the dynamic offset for the sticky CTA on desktop */
@media (min-width: 901px){
  .email-helper { top: calc(var(--sticky-offset) + 8px); }
}
/* Checkbox group styled to match inputs */
.choice-group{
  margin: 1rem 0;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #0b0b0b;
  padding: .85rem .9rem 1rem;
}
.choice-group legend{
  padding: 0 .25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-left: .1rem;
}
.legend-hint{ font-weight: 400; color: var(--color-muted); }
.choice-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem .9rem;
  margin-top: .5rem;
}
.choice{ display: flex; align-items: center; gap: .5rem; line-height: 1.3; }
.choice input[type="checkbox"]{ accent-color: var(--color-primary); }
/* widen to two columns on medium+ screens */
@media (min-width: 520px){
  .choice-grid { grid-template-columns: 1fr 1fr; }
}
/* textarea styled like your inputs */
.input-group textarea{
  width: 100%;
  min-height: 96px;
  padding: 1rem .9rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #0b0b0b;
  color: var(--color-text);
  resize: vertical;
  outline: none;
}
.input-group textarea:focus{ border-color: var(--color-primary); }
.input-group textarea:not(:placeholder-shown) + label, .input-group textarea:focus + label{
  top: .4rem;
  transform: none;
  font-size: .75rem;
  color: var(--color-primary);
}
/* Two-column layout (>=901px): top-align + sticky right column, no divider */
@media (min-width: 901px){
  .form-container {
    /* make the form flexible and the CTA a steady width */
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 2rem;
    align-items: start;         /* override earlier centering */
  }
  .email-helper {
    align-self: start;          /* align tops */
    position: sticky;
    top: calc(var(--sticky-offset) + 8px);                 /* adjust if you have a fixed header */
    margin-top: 0;
    padding-top: 0;
    border-top: none;           /* divider only for one-column layout */
  }
}
@media (prefers-reduced-motion: reduce){
*{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* When the Netlify Identity modal is open on mobile */
@media (max-width: 900px){
  body.identity-open {
    overflow: hidden;          /* stop background scroll */
    position: fixed;           /* freeze the page */
    width: 100%;
  }
  body.identity-open #navbar,
  body.identity-open #construction-banner {
    display: none !important;  /* remove overlap while modal is up */
  }
}
:focus-visible{ outline: 2px solid var(--color-primary); outline-offset: 2px; }
.button-link:focus-visible, button:focus-visible{
  box-shadow: 0 0 0 3px rgba(212,175,55,.45);
}
.form-center{
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.form-center .form-container{
  width: 100%;
}
/* PARTNERSHIP: center the register form block */
#partner-register .section-inner{
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers heading + subtext */
  text-align: center;
}
/* center the form container and its child form */
#partner-register .form-container{
  display: flex;               /* turn into a flex row */
  justify-content: center;     /* center child horizontally */
  width: 100%;
}
/* cap width + remove any stray left margins from global rules */
#partner-register .referral-form{
  max-width: 780px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* Partnership form: wider, still centered */
#partner-register .form-center, #partner-register .referral-form{
  max-width: 1000px;   /* increase from 780px */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* Add spacing below the partner register form */
#partner-register{
  margin-bottom: 4rem;   /* space before footer */
  padding-bottom: 2rem;  /* extra inside spacing if needed */
}
/* ==========================================================================
   10) FOOTER
   ========================================================================== */

footer{
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-primary-30);
  text-align: center;
  background: #0b0b0b;
}
.footer-title{ font-family: "Playfair Display", serif; font-size: 1.4rem; margin: 0 0 .25rem; }
.footer-subtitle{ color: var(--color-muted); margin: .25rem 0 1.25rem; }
.footer-nav{ display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem; }
.footer-nav a{ color: var(--color-muted); }
.footer-nav a:hover{ color: #fff; text-decoration: none; }
.bullet{ opacity: .35; }
.footer-linkedin a{
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.footer-bottom p{ margin: .35rem 0; }
.footer-contact strong{ color: #fff; }
.footer-verify a{
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;

}
/* ==========================================================================
   11) MEDIA & MOTION PREFERENCES
   ========================================================================== */

@media (prefers-reduced-motion: reduce){
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto;
  }
}
/* === BEGIN PATCH: subtle separation for #who-we-help === */
#who-we-help{
  background: var(--color-surface);
  border-top: 1px solid var(--color-primary-30);
  border-bottom: 1px solid var(--color-primary-30);
}
/* === END PATCH === */

.alt-bg{
  background: var(--color-elevated);
  border-top: 1px solid var(--color-primary-30);
  border-bottom: 1px solid var(--color-primary-30);
}

.alt-bg-1 {
  background: var(--color-elevated);
}
/* ===============================
   Referral Cards (dark theme)
   =============================== */

.refcards-page{max-width:var(--container);margin:0 auto;padding:2.25rem 1.25rem;text-align: center;}
.refcards-hero{font-size: 1.25rem; font-family:"Playfair Display",serif; text-align: center;}
.refcards-hero h1{font-family:"Playfair Display",serif;font-size:clamp(1.75rem,2.6vw,2.25rem);line-height:1.2;margin:0 0 .5rem;}
.refcards-hero p{color:var(--color-muted);margin:0 0 1.25rem;}
.cards-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin:1rem 0 2rem;}
.cards-preview figure{background:var(--color-elevated);border:1px solid var(--color-primary-20);border-radius:var(--radius);padding:.85rem;box-shadow:var(--shadow-soft);}
.cards-preview img{width:100%;height:auto;border-radius:var(--radius-sm);display:block;}
.cards-preview figcaption{text-align:center;font-size:.92rem;color:var(--color-muted);margin-top:.5rem;}
.refcards-form{background:var(--color-elevated);border:1px solid var(--color-primary-20);border-radius:var(--radius);padding:1rem 1.25rem 1.25rem;box-shadow:var(--shadow-soft);}
.refcards-form .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.refcards-actions #submitBtn{ margin-top:1rem; display: block; margin: 1.5rem auto 0;}
/* floating inputs */
.input-group{position:relative;margin:.9rem 0;}
.input-group input, .input-group select, .input-group textarea{
  width:100%;background:#0b0b0b;color:var(--color-text);border:1px solid var(--color-border);
  border-radius:12px;padding:1rem .9rem .9rem;font:inherit;outline:none;
}
.input-group label{
  position:absolute;left:.9rem;top:50%;transform:translateY(-50%);pointer-events:none;
  color:var(--color-muted);transition:all .15s ease;padding:0 .25rem;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus{
  border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary-20);
}
.input-group input:not(:placeholder-shown)+label, .input-group textarea:not(:placeholder-shown)+label, .input-group textarea:focus+label{
  top:.4rem;transform:none;font-size:.75rem;color:var(--color-primary);
}
.input-group textarea{min-height:110px;resize:vertical;}
/* Quantity pills */
.qty-block{margin:.9rem 0 1.1rem;}
.qty-pills input[type="radio"]{position:absolute;left:-9999px;}
.qty-pills label{
  display: inline-block;
  cursor: pointer;

  /* cross-browser user-select */
  -webkit-user-select: none; /* Safari / iOS */
  -moz-user-select: none;    /* old Firefox (safe no-op on modern) */
  -ms-user-select: none;     /* legacy Edge/IE */
  user-select: none;         /* standard */

  padding: .55rem .9rem;
  border-radius: 999px;
  background: #0b0b0b;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qty-pills input[type="radio"]:checked + label{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary-20);}
/* Address block */
.refcards-form fieldset{border:1px dashed var(--color-primary-30);border-radius:12px;padding:1rem;margin:.75rem 0 1rem;}
.refcards-form legend{padding:0 .4rem;color:var(--color-text);font-weight:600;}
/* Terms & actions */
.terms{display:grid;grid-template-columns:1.2rem auto;align-items:start;gap:.6rem;margin:.5rem 0 1rem;}
.terms input{margin-top:.2rem;}
.refcards-actions{display:flex;gap:.75rem;align-items:center;justify-content:flex-start;}
#formMsg{margin-top:.5rem;color:var(--color-muted);}
/* Utilities */
.hp{position:absolute;left:-9999px;}
/* Responsive */
@media (max-width:760px){
  .cards-preview{grid-template-columns:1fr;}
  .refcards-form .grid{grid-template-columns:1fr;}
  .qty-pills{gap:.45rem;}
  .qty-pills label{padding:.5rem .8rem;}
}
.save-privacy{
  margin-top: .6rem;
  text-align: center;
  color: var(--color-muted);
  font-size: .9rem;
}
.save-privacy .link-clear{
  background: transparent;
  border: 1px solid var(--color-primary-30);
  color: var(--color-text);
  padding: .45rem .8rem;
  border-radius: 10px;
  cursor: pointer;
}
.save-privacy .link-clear:hover{ border-color: var(--color-primary); }
.save-privacy .hint{ display:block; margin-top:.35rem; opacity:.8; }
/* ===== Schedule page: inline scheduler panel ===== */
#schedule{ 
  padding: 2.25rem 1.25rem; 
  border-top: 1px solid var(--color-primary-30);
}
#schedule .section-inner{
  max-width: var(--container, 1200px);
  margin: 0 auto;
}
.scheduler-box{
  margin-top: 2rem;
  background: var(--color-surface, #0f0f0f);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 24px rgba(0,0,0,.25);
  padding: 0;
  margin: 1rem auto;  
  min-height: 720px;     /* stable while widget loads */
  overflow: hidden;  
  width: min(90%, 1100px);    /* rounded corners on embed */
  
}
.schedule-intro{
  max-width: 740px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-text);
}
.schedule-intro h3{
  font-size: 1.5rem;
  margin-bottom: .5rem;
  font-family: "Playfair Display", serif;
}
.schedule-intro p{
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0.5rem 0;
  color: var(--color-muted);
}
/* Make sure Calendly iframe stretches properly */
.calendly-inline-widget, .calendly-inline-widget iframe{
  width: 100% !important;
  min-height: 820px !important;   /* safety on shorter screens */
  min-height: 1200px !important;
}
@media (max-width: 600px){
  .calendly-inline-widget, .calendly-inline-widget iframe{
    height: 1400px !important;
    min-height: 1400px !important;
  }
}
.hero-main{
  display: flex !important;
  flex-direction: column;
  align-items: center !important;   /* centers the title block itself */
}
/* Keep the compact, narrow title block centered */
.hero-title{
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-testimonial{
  max-width: 720px;
  margin: 1rem auto 0;
  margin-bottom:2rem;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--color-primary);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-muted);
  text-align: center;
}
.hero-testimonial blockquote{ margin:0 0 .45rem; }
.hero-testimonial cite{
  display:block; font-style:normal; font-weight:600; color:var(--color-primary);
}
@media (max-width:520px){
  .hero-testimonial{ font-size:.95rem; padding:.75rem 1rem; }
}
/* ===== Migrated inline <style> blocks ===== */
@media (max-width:520px){
  .hero-testimonial{ font-size:.95rem; padding:.75rem 1rem; }
}
/* Removed invalid @media @font-face block; use @font-face at root level if needed */
/* .hero-main p, .hero-notes span, .hero-pills span{ */
/* Removed incomplete selector to fix CSS error */
/* Remove invalid @media @font-face block, font-face should not be inside @media */
.hero-pills span:nth-child(1){ animation-delay: 0.6s; }
.hero-pills span:nth-child(2){ animation-delay: 0.8s; }
/* Removed invalid @media @keyframes fadeUp block */
/* ===== referral-thanks migrated styles ===== */

    body{margin:0;background:#0b0b0b;color:#e9e9e9;font-family:ui-sans-serif,system-ui,Segoe UI,Roboto,Arial}
.wrap{max-width:800px;margin:0 auto;padding:0 18px;text-align:center}
h1{font-family:"Playfair Display",Georgia,serif;margin:0 0 12px}
@keyframes fadeUp{
  to{
    opacity: 1;
    transform: none;
  }
}

.referral-thanks .wrap{
  padding-top: calc(var(--banner-h, 0px) + var(--nav-h, 0px) + 24px);
}
.referral-thanks h1{
  margin-top: 2rem; 
}
/*-----------------------------------------------------------------
----------------------------BLOG-----------------------------------
-------------------------------------------------------------------
*/

/* Blog / Posts */
.posts-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}
.post-card{background:rgba(255,255,255,.03);border:1px solid var(--color-primary-20);border-radius:16px;padding:1rem;transition:transform .15s ease, box-shadow .15s ease}
.post-card:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(0,0,0,.25)}
.post-card-link{
  display: flex;                 /* use flexbox */
  flex-direction: column;        /* stack text vertically */
  justify-content: center;       /* center vertically */
  align-items: center;           /* center horizontally */
  text-align: center;            /* center the text itself */
  
  height: 100%;
  padding: 2rem;                 /* give breathing room */
  margin-bottom: 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  transition: outline 0.3s ease, box-shadow 0.3s ease;
}
.post-card-link:hover{
  text-decoration: none; /* remove underline */
  outline: 2px solid var(--color-primary-30); /* gold border */
  outline-offset: 4px;
}
.post-title{font-family:var(--font-serif, "Playfair Display", serif);font-size:1.25rem;line-height:1.3;margin:0 0 .35rem; color:var(--color-primary);}
.post-excerpt{color:var(--color-muted);margin:0 0 .5rem}
.post-meta{display:flex;align-items:center;gap:.5rem;color:var(--color-muted-2)}
.post-meta .dot{opacity:.6}
/* Single post */
.post-page .post-title{font-size:clamp(1.4rem,3vw,2.1rem);margin:.25rem 0 .25rem}
.post-content{max-width:760px}
.post-content .lede{font-size:1.05rem;color:var(--color-muted);margin:.5rem 0 1rem}
.post-content h2{margin:1.25rem 0 .5rem; color:var(--color-primary)}
.post-rule{border:none;border-top:1px solid var(--color-primary-20);margin:1.25rem 0}
.post-cta{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
/* Prevent blog headers from hiding under navbar */
.blog-page .page-header, .post-page .page-header{
  padding-top: var(--nav-offset);
}
.blog-page .hero--compact, .post-page .hero--compact{
  --nav-h: 48px;                 /* set the value you want for these pages */
  padding-top: calc(var(--nav-h) + 8px);
}
/* Blog post CTA wrapper */
.post-cta{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  border-top: 1px solid var(--color-primary-30); /* gold-toned border */
  margin-top: 2.5rem;   /* extra breathing room above */
  padding-top: 2rem;    /* space between border and CTA content */
  margin: 2rem 0 2.5rem;
}
/* Make the main post title clearly largest */
.post-page .page-header h1, .post-page h1.post-title{
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  text-align: center;
}
/* Meta line under the title */
.post-page .post-meta{
  color: var(--color-muted, #aaa);
  font-size: 1rem;
  margin: 0 0 1.25rem;
  justify-content: center; /* centers dots/date when flex */
  text-align: center;
}
/* Core reading area */
.post-page .post-content{
  max-width: 70ch;                 /* ideal line length (keeps your 760px feel) */
  margin: 0 auto;
  font-size: clamp(1.05rem, 0.3vw + 1rem, 1.2rem);
  line-height: 1.7;
}
/* Paragraph rhythm */
.post-page .post-content p{ margin: 0 0 1rem; }
/* Section headings inside article */
.post-page .post-content h2{
  font-size: clamp(1.25rem, 0.9vw + 1rem, 1.6rem); 
  line-height: 1.35;
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
}
.post-page .post-content h3{
  font-size: clamp(1.25rem, 1vw + 0.9rem, 1.6rem);
  line-height: 1.3;
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
}
/* Lists */
.post-page .post-content ul, .post-page .post-content ol{
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.post-page .post-content li + li{ margin-top: 0.5rem; }
/* Soft divider */
.post-page .post-content hr, .post-page .post-rule{
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.35), transparent);
  margin: 1.5rem 0;
}
/* Optional: nicer blockquotes/images if you use them */
.post-page .post-content blockquote{
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-primary);
  background: rgba(255,255,255,0.03);
  font-style: italic;
}
.post-page .post-content img, .post-page .post-content figure{
  display: block;
  max-width: 100%;
  margin: 1.25rem auto;
  border-radius: 10px;
}
body.post-page #hero.hero--compact{
  padding-top: 3rem;   /* adjust to taste */
}
body.post-page .post-content{
  margin-top: 2rem;   /* gives breathing room */
}
.post-content .lede{
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 2rem;
  line-height: 1.7;
}
/* ——— Section dividers ——— */
.section-divided{
  border-top: 1px solid var(--color-primary-30);
  border-bottom: 1px solid var(--color-primary-30);
}
/* tighten inner vertical rhythm when divided */
.section-divided .section-inner{
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
/* optional: a thin gold <hr> utility for “between two sections” moments */
.hr-gold{
  height: 0;
  border: 0;
  border-top: 1px solid var(--color-primary-30);
  margin: 1.25rem auto;
  width: min(92%, 900px);
  opacity: .9;
}
/* ——— Page header overlay ——— */
.page-header{
  position: relative;
  overflow: hidden; /* keeps overlay tidy on corners */
}
.page-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  opacity: .85;
  z-index: 0;
}
.page-header .section-inner{
  position: relative;
  z-index: 1; /* text above overlay */
}
/* ——— Partner form polish ——— */
#partner-register .referral-form{
  border-radius: var(--radius);
  border: 1px solid var(--color-primary-20);
  background: var(--color-elevated);
  box-shadow: var(--shadow-soft);
}
/* stronger, but still subtle, focus feedback */
#partner-register .input-group input:focus, #partner-register .input-group select:focus, #partner-register .input-group textarea:focus{
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-20);
}
/* ——— FAQ chevron indicators ——— */
.faq-question{
  position: relative;
  padding-right: 2rem; 
}
.faq-question::after{
  content: "›";                 
  position: absolute;
  color: var(--color-primary);
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .25s ease;
  opacity: .9;
}
.faq-item.open .faq-question::after{
  transform: translateY(-50%) rotate(90deg);
}
.program-router .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:.75rem}
.program-router .tile{border:1px solid var(--color-primary-30);border-radius:16px;padding:1rem;background:rgba(255,255,255,.03)}
/* Give the footer breathing room when the fixed CTA is present */
body:has(#main-cta) footer{
  /* 96px ≈ CTA height + its 20px offset + a little air */
  padding-bottom: calc(2rem + 96px + env(safe-area-inset-bottom));
}
/* ------------ Services/Owners Page - Before and After Cleanup -------------*/
.before-after-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.before-after-grid .card{
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02); /* subtle bg tint */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.before-after-grid h3{
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.before-after-grid ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
.before-after-grid li{
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}
/* Before list items */
.before-after-grid .before li::before{
  content: "✘";
  position: absolute;
  left: 0;
  color: #d9534f; /* bootstrap red */
  font-weight: bold;
}
/* After list items */
.before-after-grid .after li::before{
  content: "✔";
  position: absolute;
  left: 0;
  color: #28a745; /* bootstrap green */
  font-weight: bold;
}
/* =========================
   BEM FOUNDATION (non-breaking)
   ========================= */

/* Sections */
.section{ 
  padding: 2rem 0; 
}

.section--shadowed {
  background-color: #000;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.9),
    inset 0 0 120px rgba(0,0,0,0.6);
}

.section--divided__bottom {
  border-bottom: 1px solid var(--color-primary-30);
}

.section__inner{ 
  max-width: var(--container); 
  margin: 0 auto; 
  padding: 0 1.25rem; 
}
/* Center a list block under headings; keep items left-aligned */
.section__inner .list{ display: block; }
/* overrides legacy .section-inner ul */
.list--narrow{
  max-width: 62ch;
  margin: 0 auto 1rem;
  text-align: left;
}
/* Headings */
.heading{ 
  font-family: "Playfair Display", serif; 
  line-height: 1.2; 
}
.heading--lg{ 
  font-size: 2.5rem; 
}
/* Buttons */
.btn{
  appearance: none; 
  border: 0; 
  cursor: pointer; 
  display: inline-flex;
  align-items: center; 
  justify-content: center;
  padding: .9rem 1.25rem; 
  border-radius: 999px; 
  font-weight: 700; 
  letter-spacing: .25px;
  text-decoration: none; 
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn--primary{
  background: linear-gradient(180deg, #e8c96a 0%, #D4AF37 60%, #b8962e 100%);
  color: #111; box-shadow: var(--shadow-gold);
}
.btn--primary:hover{ 
  transform: translateY(-1px); 
  box-shadow: var(--shadow-gold-strong); 
  text-decoration: none; 
}
/* Lists (reusable) */
.list{ 
  list-style: none; 
  margin: 0; 
  padding-left: 0; 
}
.list__item{ 
  position: relative; 
  padding-left: 1.6rem; 
  margin: .5rem 0; 
}
.list__item::before{
  content: "✓"; 
  position: absolute; 
  left: 0; 
  top: .15rem; 
  font-weight: 800; 
  opacity: .95;
}
.list--checks-gold .list__item::before{ 
  color: var(--color-primary); 
}
/* Cards (generic) */
.card{ 
  border-radius: 14px; 
  background: var(--color-elevated); 
  box-shadow: var(--shadow-soft); 
}
.card--outlined-strong{
  border: 1px solid var(--color-primary);       
}
/* Hero (example BEM wrapper for later) */
.hero{ 
  text-align: center; 
}
.hero__title{ 

}
.hero__subtext{ 

}
/* Who-we-help cards as component */
.tiles{ 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}
.tile{ 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  padding: 2rem; 
  border-radius: 14px; 
  text-align: center; 
  background: var(--color-elevated);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile--outlined{ 
  border: 1px solid var(--color-primary-20); 
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tile-link{ 
  display: block; 
  text-decoration: none; 
  color: inherit; 
}
.tile-link:hover .tile{ 
  transform: translateY(-2px); 
  box-shadow: 0 8px 28px rgba(0,0,0,.25); 
}
.tile-link:link, .tile-link:visited, .tile-link:hover, .tile-link:focus{
  text-decoration: none;
  color: inherit
}
/* Accessible focus ring on the whole card */
.tile-link:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 6px;
  border-radius: 14px;
}
/* Promote border to gold on hover/focus */
.tiles .tile-link:hover .tile--outlined, .tiles .tile-link:focus-visible .tile--outlined{
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
/* Move the focus ring to the card instead of the link */
.tiles .tile-link:focus-visible{ outline: none; }
.tiles .tile-link:focus-visible .tile--outlined{
  box-shadow: 0 0 0 3px var(--color-primary-30), 0 8px 28px rgba(0,0,0,.25);
}
/* Keep tile links unstyled (no underline) */
.tiles .tile-link, .tiles .tile-link:link, .tiles .tile-link:visited, .tiles .tile-link:hover, .tiles .tile-link:focus{
  text-decoration: none;
  color: inherit;
}
.tile__title{ 
  margin: 0 0 .45rem; 
  font-weight: 700; 
}
.tile__note{ 
  margin-top: .75rem; 
  font-style: italic; 
  color: var(--color-primary); 
}
/* =========================
   COMPATIBILITY BRIDGE
   (old classes keep working)
   ========================= */

/* ===== BEM BRIDGE: navbar + hero + buttons (non-breaking) ===== */

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; font-weight:700; border-radius:999px; text-decoration:none; }
.btn--primary{ background: linear-gradient(180deg,#e8c96a 0%,#D4AF37 60%,#b8962e 100%); color:#111; box-shadow: var(--shadow-gold); }
.btn--primary:hover{ transform: translateY(-1px); box-shadow: var(--shadow-gold-strong); text-decoration:none; }
/* Make existing .button-link behave as a BEM button too */
.button-link{ /* already styled in your CSS */ }
/* Navbar */
.nav{ /* alias your existing navbar */ }
#navbar.nav{ /* keep your current look via the ID */
  /* no visual change; BEM is just an extra hook */
}
.nav__logo{ }
.nav__toggle{ }
.nav__menu{ }
.nav__link{ }
/* Hero */
.hero{ text-align:center; }
#hero.hero{ /* keep current look (you already style #hero) */ }
.hero__logo{ }
.hero__title{ }
.hero__subtext{ }
.hero__pills{ display:flex; flex-wrap:wrap; gap:.4rem .5rem; justify-content:center; }
.hero__pill{ border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.03); padding:.32rem .6rem; border-radius:999px; font-size:.9rem; opacity:.9; }
.hero__cta{ }
.hero__quote{ }
.hero__citation{ }
.badges{ text-align:center; }
.badges__row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.9rem 1.2rem; padding:0; margin:0; list-style:none; }
.badges__item{ display:flex; align-items:center; justify-content:center; }
.badges__note{ font-size:.92rem; color: var(--color-muted); margin:.75rem 0 0; }
/* (We’ll add more BEM blocks as we move down the page.) */

/* Links: inline variant (keeps underline behavior consistent sitewide) */
.link{ 
  color:inherit; 
  text-decoration:none; 
}
.link--inline:hover{ 
  text-decoration:underline; 
}
.text-link{ 
  @supports not (selector(:where(*))){ } 
}
/* keep for legacy; or simply alias: */

.text-link{ 
  text-decoration:none; 
  font-weight: bold;
}
/* if you still use .text-link */

/* Section container (global) */
.section{ 
  padding:2rem 0; 
}
/* Center the checks list as a block, keep items left-aligned */
.section .checks-list{
  display: block;            /* override inline-block */
  max-width: 62ch;           /* your existing width cap */
  margin: 0 auto 1rem;       /* centers the block */
  text-align: left;          /* preserves left-aligned items */
}
.section--alt{ 
  background:var(--color-surface); 
  border-top:1px solid var(--color-primary-30); 
  border-bottom:1px solid var(--color-primary-30); 
}
.section__inner{ 
  max-width:var(--container); 
  margin:0 auto; 
  padding:0 1.25rem; 
}
/* Existing container alias */
.section-inner{ /* exists already */ }
.section-inner{ /* make it an alias of .section__inner */
  max-width: var(--container);
}
/* Reusable section title (matches your old look) */
.section-title{
  margin:0 0 1.25rem;
  text-align:center;
  font-family:"Playfair Display", serif;
  font-size:1.5rem;
  line-height:1.2;
  font-weight:700;
}
.section-subtitle{
  display:block; 
  margin:0 auto 1rem; 
  text-align:center; 
  max-width:62ch;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  font-weight: 600; 
  letter-spacing:.2px; 
  line-height:1.5;
  color: var(--color-muted);
}
/* Reusable section text paragraph */
.section-text{
  display:block;
  margin:0 auto 1rem;
  text-align:center;
  max-width:62ch;
  line-height:1.55;
  opacity:.92;
  font-size:clamp(1rem,2vw,1.06rem);
}
.section-text--muted{ 
  color: var(--color-muted); 
  opacity: .95; 
}
.section-text--gold{
  color: var(--color-primary);
}
.section-heading{
  margin: 1.25rem 0 .75rem;
  text-align: center;
  font-weight: 800;
  font-size:clamp(1.05rem,1.4vw,1.15rem);
}
.heading--lg{ 
font-size: clamp(1.6rem, 2.4vw, 2rem); 
}
.list{ 
  list-style:none; 
  margin:0 auto 1rem; 
  padding-left:0; 
  max-width:62ch; 
}
.list__item{ 
  position:relative; 
  padding-left:1.6rem; 
  margin:.5rem 0; 
}
.list__item::before{
  content:"✓"; 
  position:absolute; 
  left:0; 
  top:.15rem; 
  font-weight:800; 
  opacity:.95;
}
.list--checks-gold .list__item::before{ 
  color:var(--color-primary); 
}
/* Narrow, centered list block (reusable) */
.list--narrow{
  max-width: 62ch;
  margin: 0 auto 1rem;  /* center block; keep items left-aligned */
  text-align: left;
}
.stack-16 > *{ 
  margin-top: 0; 
  margin-bottom: 0; 
}
.stack-16 > * + *{
  margin-top: 1rem;
}
/* Buttons: let .button-link behave as .btn .btn--primary */
.button-link{ /* already styled in your CSS; ensure parity */ }
.button-link{ /* alias to BEM for migration */
  /* no change needed; we only add BEM classes in HTML */
}
.checks-gold{ 
  list-style:none; 
  padding-left:0; 
}
.checks-gold li{ 
  position:relative; 
  padding-left:1.6rem; 
}
/* Make any 'checks-gold' OR BEM variant turn checks gold */
.checks-gold li::before{ 
  color: var(--color-primary); 
}
/* Padding utilities */
.pad-24{ 
  padding: 1.5rem; 
}
.pad-32{ 
  padding: 2rem; 
}
/* ===== Steps (What to Expect) ===== */
.steps{
  list-style: decimal outside;          /* keep numbered look */
  max-width: 62ch;
  margin: 0 auto 1rem;
  padding-left: 1.25rem;                /* space for numbers */
  text-align: left;
}
.steps__item{ 
  margin: .75rem 0; 
}
.steps__title{
  margin: 0 0 .25rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.steps__text{ 
  margin: 0 0 .4rem; 
  line-height: 1.55; 
}
.steps__link{ 
  font-weight: 600; 
}
/* Lists: keep your current selectors working, but allow BEM */
/* .wedo-list, #what-we-do ul{ 
  list-style: none; 
  padding-left: 0; 
}
.wedo-list li, #what-we-do li{ 
  position: relative; 
  padding-left: 1.6rem; 
}
.wedo-list li::before, #what-we-do li::before{
  content: "✓"; 
  position: absolute; 
  left: 0; 
  top: .15rem; 
  font-weight: 800; 
  opacity: .95;
}
*/

/* Reusable badges/proof strip */
.badges{ 
  text-align: center; 
}
.badges__row{
  display:flex; 
  flex-wrap:wrap; 
  align-items:center; 
  justify-content:center;
  gap:.9rem 1.2rem; 
  padding:0; margin:0; 
  list-style:none;
}
.badges__item{ 
  display:flex; 
  align-items:center; 
  justify-content:center; 
}
.badges__note{ 
  margin-top:.75rem; 
}
/* Cap badge display size while keeping intrinsic dims for CLS */
.badges__item img{ 
  height:72px; width:auto; 
}
@media (min-width: 720px){
.badges__item img{ 
    height:84px; 
  }

}
/* === FAQ (global, reusable) === */
.faq .accordion{ 
  max-width:62ch; 
  margin:0 auto; 
}

.faq__item{
  border:1px solid var(--color-primary-20);
  border-radius:12px;
  border: 1px solid var(--color-primary-30);
  margin: 0 0 .75rem;
  overflow: hidden;                 
  background: transparent;
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
}

@media (min-width: 720px){
  .badges__item img{ 
    height:84px; 
  }
}

.faq__question{
  display: block;
  cursor:pointer;
  list-style:none;
  font-weight:700;
  font-size:1.05rem;
  outline:none;
  padding: 1rem 1.25rem 1rem 1.25rem;
}
.faq__question::-webkit-details-marker{ 
  display:none; 
}
.faq__question::after{
  content:"▸";
  float:right;
  transform:translateY(1px) rotate(0deg);
  transition: transform .15s ease;
  opacity:.75;
}
.faq__item[open] .faq__question::after{ 
  transform:translateY(1px) rotate(90deg); 
}

.faq__item.open {
  box-shadow: 
    0 0 0 1px rgba(212,175,55,.25),
    0 6px 18px rgba(0,0,0,.28);
}

.faq__item.open .faq__answer {
  max-height: 520px;
  padding: 0.75rem 1.25rem 1.25rem 1.25rem;
}

.faq__question:focus-visible{
  outline:2px solid var(--color-primary);
  outline-offset:4px;
  border-radius:8px;
}
.faq__answer{ 
  margin-top:.5rem; 
  max-height: 0;
  padding: 0 1.25rem;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.faq__answer a{ 
  text-decoration:underline; 
}

/* SHOW ANSWER — for native <details open> */
.faq__item[open] .faq__answer{
  max-height: 520px;
  padding: 0.75rem 1.25rem 1.25rem;
}

.faq__list { 
  max-width: 900px; 
  margin: 0 auto; 
}

@media (max-width: 600px){
  .faq__question{ padding-left: 1.1rem; padding-right: 1.1rem; }
  .faq__item[open] .faq__answer,
  .faq__item.open .faq__answer{
    padding: 0.75rem 1.1rem 1.1rem;
  }
}

/* ===== Profile (Specialist) — BEM ===== */
.profile{ 
  padding: 3rem 0; 
  border-top: 1px solid var(--color-primary-30); 
  border-bottom: 1px solid var(--color-primary-30); 
}
.profile__grid{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.profile__media, .profile__content{
  flex: 1 1 45%;
  min-width: 280px;
}
.profile__media{
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile__photo{
  max-width: 240px;
  border: 2px solid rgba(212,175,55,.35);
  border-radius: var(--radius);
  margin-left: auto;
  margin-right: auto;
}
.profile__name{ margin: .5rem 0 .25rem; }
.profile__role{ color: var(--color-muted); margin: .25rem 0 .15rem; }
.profile__tagline{ font-style: italic; opacity: .9; margin-top: 0; }
/* keep spacing only; let .section-text control font-size/line-height/colors */
.profile__content p{ 
  margin: .35rem 0; 
  padding-bottom: 1rem; 
}
@media (max-width: 900px){
  .profile__grid{ gap: 1rem; text-align: center; }
}
/* === Who We Help: integrated fixes (BEM) === */

/* 1) Make grid cells stretch their children */
.tiles{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;   /* center the grid items */
}
/* 2) Make the whole card clickable & fill the grid cell */
@media (max-width: 900px){
  .profile__grid{ gap: 1rem; text-align: center; }
}
/* 3) True equal-height cards with bottom-anchored CTA line */
.tile{
  height: 100%;
  display: flex;                        /* stack content vertically */
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  /* keep your existing visuals (border/bg/radius) untouched */
}
/* 4) Title/text rhythm inside the card */
.tile__title{
  margin: 0 0 .5rem;
  font-weight: 700;
}
/* keep your existing .section-text styles; just add spacing for consistency */
.tile .section-text{
  margin: 0 0 1rem;
}
/* 5) Anchor the CTA line to the bottom for perfect rows */
.tile__note{
  margin-top: auto;                     /* <-- key: pushes CTA to bottom */
  padding-top: .5rem;                   /* small breathing room above */
  font-style: italic;
  color: var(--color-primary);
}
/* 6) Optional: at very wide screens, allow 4-up if you want it */
@media (min-width: 1400px){
  .tiles { grid-template-columns: repeat(4, minmax(280px, 1fr)); }
}
/* Center tiles on wide/zoomed layouts by using fixed track widths */
@media (min-width: 1000px){
  .tiles {
    /* fixed track width prevents “stretch-left” rows */
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    justify-content: center;           /* center the tracks as a group */
    gap: clamp(16px, 2vw, 28px);       /* keeps spacing graceful while zooming */
  }
}
/* Guarantee equal heights + full-click cards (sits with your existing rules) */
.tile-link{ height: 100%; display: block; }
.tile{ height: 100%; display: flex; flex-direction: column; }
.tile__note{ margin-top: auto; }
/* ===== Diagnostic overrides (place at end of style.css) ===== */

/* Widen intro copy + keep centered */
#what-we-do .section-title, #what-we-do .section-subtitle, #what-we-do .section-text{
  max-width: 72ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
/* Center the gold-check list itself (not the bullets) */
#what-we-do ul.checks-list, #what-we-do ul.checks-gold, #what-we-do .checks-list, #what-we-do .checks-gold{
  display: block !important;           /* override the inline-block */
  max-width: 46ch !important;          /* a centered column */
  margin: 1.25rem auto !important;     /* center the list block */
  text-align: left;                    /* bullets/text stay left inside */
  padding-left: 0;
}
/* Comfortable spacing for each bullet row */
#what-we-do .checks-list li, #what-we-do .checks-gold li{
  margin: 0.65rem 0;
  padding-left: 1.6rem;
}
/* Callout box: open it up but keep your look */
#what-we-do .mission-statement{
  max-width: 72ch;
  margin: 2rem auto 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--color-primary-30);
  border-radius: 14px;
  background: var(--color-elevated);
  text-align: center;
}
/* Center all diagnostic content and recentre the checks block */
#what-we-do .section__inner{
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers every child, including the UL with gold checks */
  gap: 1.25rem;
}

.padding-bottom {
  padding-bottom: 1.5rem;
}

.padding-top {
  padding-top: 1.5rem;
}

.form-container{
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}
.form-container > .partnership-form{
  width: min(100%, 820px);
}

/* Wide modifier for hero/headers */
.section__inner--wide {
  max-width: 1400px;      /* give it more breathing room */
  padding-left: 2rem;     /* keep safe padding on edges */
  padding-right: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;     /* keep headers centered */
}

/* Container width utilities (override the --container used by .section-inner) */
.container--lg  { --container: 1200px; }
.container--xl  { --container: 1400px; }
.container--2xl { --container: 1600px; }
.container--full{
  --container: 100vw;               /* let it span full viewport width */
}

/* Optional: keep safe gutters when widening */
.container-pad {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Contact form tweaks */
.contact-page .referral-form {
  max-width: 700px;   /* widen overall form — default was closer to 500px */
  margin: 0 auto;
}

.contact-page .referral-form textarea {
  min-height: 200px;  /* more vertical space */
  resize: vertical;   /* let users expand if needed */
  line-height: 1.5;
}

/* Contact page form width */
.contact-page .form-center {
  max-width: 1000px;   /* increase from 780px */
}

.contact-page .referral-form {
  width: 100%;
  max-width: none;     /* remove any cap */
}

/* Center the submit button on contact page */
.contact-page .referral-form button[type="submit"] {
  display: block;
  margin: 1.5rem auto 0;  /* top margin for breathing room, auto centers horizontally */
}

.email-output-panel textarea {
  width: 100%;
  min-height: 16rem;
  line-height: 1.5;
  padding: 0.75rem;
  border-radius: 0.5rem;
  resize: vertical;
}
.email-output-panel .btn { margin-top: 0.25rem; }

/* Mirror the Referral Hub layout on other pages that use #referral-section */
#referral-section .form-container{
  display: grid;
  grid-template-columns: 1fr;        /* stack on mobile / narrow */
  gap: 2rem;
  align-items: start;
}

/* Same balanced two-column layout as #referral-hub at desktop widths */
@media (min-width: 900px){
  #referral-section .form-container{
    grid-template-columns: minmax(0, 2.2fr) minmax(360px, 1fr);
    gap: 2.5rem;
  }
  /* Match the sticky helper behavior */
  #referral-section .email-helper{
    align-self: start;
    position: sticky;
    top: calc(var(--sticky-offset) + 8px);
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

.border-top {
  border-top: 1px solid var(--color-primary-30);
}