/* =========================================================
   🔒 FROZEN FILE
   File: contact.css
   Status: Layout + typography locked
   Last reviewed: 2025-12-29
   Changes require explicit unfreeze
   ========================================================= */

/* ============================
   CONTACT PAGE (page-only)
   Relies on global marketing.css + marketing-cards.css (.cm-card)
   ============================ */

.cm-page--contact .cm-contact-main{
  padding-top: 40px;
}

/* Wider hero rhythm on Contact */
.cm-page--contact .cm-hero-title,
.cm-page--contact .cm-hero-subtitle{
  max-width: 46rem;
}

/* ============================
   CONTACT CHANNELS (ICE band)
   ============================ */

.cm-page--contact .cm-contact-channels-subtitle{
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive vertical padding so content sits nicely in the band */
.cm-page--contact .cm-contact-channels{
  padding-top: clamp(2.5rem, 5vw, 4.25rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 4.25rem) !important;
}

/* Remove any hairline gap/seam between ICE and WHITE bands */
.cm-page--contact .cm-contact-channels + .cm-contact-formband{
  margin-top: -1px !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

/* 1-col on mobile, 3-col on desktop */
.cm-page--contact .cm-contact-pillar-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0;          /* replaced by padding for better balance */
  padding-top: 1.25rem;   /* space between heading and cards */
}

@media (min-width: 768px){
  .cm-page--contact .cm-contact-pillar-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

/* Pillar card content */
.cm-page--contact .cm-contact-pillar-card{
  text-align: left;
  padding: 1.15rem 1.2rem; /* override .cm-card padding slightly for this page */
}

.cm-page--contact .cm-contact-pillar-title{
  font-size: .96rem;
  font-weight: 600;
  color: var(--cm-ink);
  margin: 0 0 .25rem;
  line-height: 1.25;
}

.cm-page--contact .cm-contact-pillar-text{
  font-size: .86rem;
  color: var(--cm-muted);
  line-height: 1.6;
  margin: 0 0 .6rem;
}

.cm-page--contact .cm-contact-pillar-meta{
  font-size: .8rem;
  color: var(--cm-muted-strong);
  margin: 0;
}

/* ============================
   FORM BAND
   ============================ */

.cm-page--contact .cm-form-inner{
  max-width: 1120px; /* lets embedded form hit 2-col layouts */
  margin: 0 auto;
  width: 100%;
}

.cm-page--contact .cm-form-card{
  overflow: hidden; /* critical for iframe + rounded corners */
}

/* Make sure the iframe can never cause horizontal scroll */
.cm-page--contact #cm-form-frame{
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
  overflow: hidden;
}

/* Clamp only typical overflow offenders */
.cm-page--contact .cm-form-card img,
.cm-page--contact .cm-form-card video,
.cm-page--contact .cm-form-card iframe{
  max-width: 100%;
}

/* Anchor jump feels better under sticky nav */
.cm-page--contact #contact-form{
  scroll-margin-top: 90px;
}

/* Vertically center form within band on larger screens */
@media (min-width: 992px){
  .cm-page--contact .cm-contact-formband{
    display: flex;
    align-items: center;
  }
  .cm-page--contact .cm-contact-main{
    width: 100%;
  }
}

/* ============================
   “How we handle messages” section
   ============================ */

.cm-page--contact .cm-contact-lead{
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 42rem;
}

.cm-page--contact .cm-contact-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--cm-muted-strong);
}

.cm-page--contact .cm-contact-bullets li{
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.cm-page--contact .cm-contact-bullets li span:first-child{
  margin-top: 0.05rem;
}

/* Checklist alignment + divider (scoped) */
.cm-page--contact .cm-section--band-slate{
  --cm-title-baseline-offset: 0.35rem;
}

.cm-page--contact .cm-section--band-slate .cm-contact-checklist{
  padding-left: 24px;
  padding-top: var(--cm-title-baseline-offset);
  border-left: 2px solid rgba(255,255,255,0.08);
}

.cm-page--contact .cm-section--band-slate .cm-contact-checklist .cm-contact-bullets{
  margin: 0;
  padding: 0;
}

/* ============================
   FOOTER CTA (CONTACT ONLY)
   Band: BRAND
   - Make it feel like an intentional “final step”
   - No global band changes
   ============================ */

/* Give the band more breathing room on this page only */
.cm-page--contact .cm-section--band-brand{
  padding-top: clamp(2.25rem, 4.5vw, 3.75rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
}

/* Turn the row into a soft CTA panel (still Bootstrap-safe) */
.cm-page--contact .cm-contact-footer-row{
  align-items: center;
  margin: 0; /* avoid odd overflow from negative row margins when we add padding */
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  border-radius: 16px;

  /* subtle “glass” panel over brand band */
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Restore Bootstrap gutters inside the padded row */
.cm-page--contact .cm-contact-footer-row > [class*="col-"]{
  padding-left: 15px;
  padding-right: 15px;
}

/* Typography rhythm */
.cm-page--contact .cm-contact-footer-title{
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.cm-page--contact .cm-contact-footer-text{
  margin: 0;
  max-width: 40rem; /* a touch wider reads better in this band */
  opacity: 0.92;
}

/* Action column */
.cm-page--contact .cm-contact-footer-action{
  margin-top: 14px;
}

/* Button: larger + more premium, without changing global .cm-btn-primary */
.cm-page--contact .cm-contact-footer-action .cm-btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  line-height: 1;
  border-radius: 12px;

  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
  transform: translateY(0);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.cm-page--contact .cm-contact-footer-action .cm-btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.26);
  filter: brightness(1.02);
}

.cm-page--contact .cm-contact-footer-action .cm-btn-primary:focus{
  outline: none;
}

.cm-page--contact .cm-contact-footer-action .cm-btn-primary:focus-visible{
  outline: 3px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
}

/* Desktop: right align, no extra top margin */
@media (min-width: 768px){
  .cm-page--contact .cm-contact-footer-action{
    margin-top: 0;
    text-align: right;
  }
}

/* ✅ OPTION A (requested)
   Desktop (Bootstrap 3 md = 992px+):
   - Make CTA row flex so button can be vertically centered
   - Remove floats inside this row only
   - Keep md-8 / md-4 proportions
*/
@media (min-width: 992px){
  .cm-page--contact .cm-contact-footer-row{
    display: flex;
    align-items: center;
  }

  .cm-page--contact .cm-contact-footer-row > [class*="col-"]{
    float: none;
  }

  .cm-page--contact .cm-contact-footer-row > .col-md-8{
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
  }

  .cm-page--contact .cm-contact-footer-row > .col-md-4{
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }

  .cm-page--contact .cm-contact-footer-action{
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
  }
}

/* Mobile: make the CTA feel decisive (full width button) */
@media (max-width: 767px){
  .cm-page--contact .cm-contact-footer-action{
    text-align: left;
  }
  .cm-page--contact .cm-contact-footer-action .cm-btn-primary{
    width: 100%;
  }
}

/* ============================
   CONTACT – Footer CTA polish (card + links + animation-ready)
   ============================ */

/* Make the CTA feel like a premium “card” inside the brand band */
.cm-page--contact .cm-contact-footer-row.cm-cta-card{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

/* Better layout rhythm */
.cm-page--contact .cm-cta-left{
  padding-right: 14px;
}

@media (min-width: 992px){
  .cm-page--contact .cm-cta-left{ padding-right: 22px; }
}

/* Eyebrow w/ icon */
.cm-page--contact .cm-contact-footer-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;

  color: rgba(15, 23, 42, 0.70);
  margin-bottom: 0.45rem;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cm-page--contact .cm-cta-eyebrow-icon{
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
}

/* Animate eyebrow when in view */
.cm-page--contact .cm-cta-inview .cm-contact-footer-eyebrow{
  opacity: 1;
  transform: translateY(0);
}

/* Secondary links: make them visible + intentional */
.cm-page--contact .cm-cta-links{
  margin-top: 0.85rem; /* keeps it away from the bottom edge */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cm-page--contact .cm-contact-footer-secondary{
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.70);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.22);
  padding-bottom: 2px;
  transition: color 140ms ease, border-color 140ms ease;
}

.cm-page--contact .cm-contact-footer-secondary:hover{
  color: rgba(15, 23, 42, 0.92);
  border-color: rgba(15, 23, 42, 0.45);
}

.cm-page--contact .cm-cta-links-dot{
  opacity: 0.45;
}

/* Button: slightly more premium */
.cm-page--contact .cm-cta-primary{
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

/* Make right side sit nicely on desktop */
@media (min-width: 768px){
  .cm-page--contact .cm-cta-right{
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

/* ============================
   CTA button baseline alignment (premium)
   ============================ */

@media (min-width: 768px){
  .cm-page--contact .cm-cta-right{
    align-items: flex-start;        /* stop vertical centering */
    padding-top: 0.35rem;           /* aligns with h2 first-line baseline */
  }
}
