/*
Theme Name: Ascenso Standards
Theme URI: https://ascensostandards.co.nz/
Author: Ascenso Standards
Author URI: https://ascensostandards.co.nz/
Description: Custom WordPress theme for Ascenso Standards — quality consulting, training and audit for ISO 9001 & ISO 13485, built to match the Ascenso brand (navy #1B2A4A, gold #B8912F, slate #5B6B7F). Includes animated scroll reveals, a conversational lead-intake widget, and a floating live-chat launcher.
Version: 5.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ascenso-standards
*/
/* ==========================================================================
   Ascenso Standards — Design System & Base Styles
   Brand colours: gold #B8912F, navy #1B2A4A, slate #5B6B7F
   ========================================================================== */

:root{
  --mc-orange:#B8912F;
  --mc-orange-light:#D4B15E;
  --mc-gold-text:#80610E; /* brand gold darkened for TEXT on light backgrounds (WCAG AA 4.5:1) */
  --mc-brown:#1B2A4A;
  --mc-teal:#5B6B7F;
  --mc-teal-light:#7C8CA0;
  --mc-ink:#1A1A1A;
  --mc-ink-soft:#3A3A3A;
  --mc-grey:#6B6B6B;
  --mc-grey-light:#6F6A64;
  --mc-cream:#FAF8F5;
  --mc-cream-dim:#F1ECE4;
  --mc-line:#E4DDD2;
  --mc-white:#FFFFFF;

  --mc-grad-primary: linear-gradient(135deg, #9A7620 0%, var(--mc-brown) 100%); /* start colour deepened so white text keeps AA contrast */
  --mc-grad-teal: linear-gradient(135deg, var(--mc-teal-light) 0%, var(--mc-teal) 100%);
  --mc-grad-hero: radial-gradient(circle at 20% 20%, rgba(184,145,47,.18), transparent 45%),
                  radial-gradient(circle at 80% 0%, rgba(27,42,74,.14), transparent 40%),
                  radial-gradient(circle at 60% 90%, rgba(184,145,47,.10), transparent 45%);

  --mc-font-head: 'Sora', 'Segoe UI', sans-serif;
  --mc-font-body: 'Inter', 'Segoe UI', sans-serif;

  --mc-radius-sm: 10px;
  --mc-radius-md: 18px;
  --mc-radius-lg: 28px;
  --mc-shadow-sm: 0 2px 10px rgba(26,20,10,.06);
  --mc-shadow-md: 0 14px 36px rgba(26,20,10,.10);
  --mc-shadow-lg: 0 24px 60px rgba(26,20,10,.16);
  --mc-ease: cubic-bezier(.22,1,.36,1);
  --mc-header-h: 136px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html{ overflow-x:clip; } /* the closed off-canvas mobile nav must never create sideways scrolling (iOS Safari) */
body{
  margin:0;
  font-family:var(--mc-font-body);
  color:var(--mc-ink-soft);
  background:var(--mc-cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:var(--mc-font-head);
  color:var(--mc-ink);
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
h1{ font-size:clamp(2.4rem,4.6vw,4rem); font-weight:700; }
h2{ font-size:clamp(1.9rem,3.2vw,2.75rem); font-weight:700; }
h3{ font-size:1.35rem; font-weight:600; }
.hero-card h2{ font-size:1.35rem; font-weight:600; }
p{ margin:0 0 1em; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 24px; }
.section{ padding:104px 0; position:relative; }
.section--tight{ padding:72px 0; }
.section--dark{ background:var(--mc-ink); color:#D8D2C6; }
.section--dark h2, .section--dark h3{ color:#fff; }
.section--cream{ background:var(--mc-cream-dim); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--mc-gold-text); margin-bottom:16px;
}
.eyebrow::before{
  content:""; width:26px; height:2px; background:var(--mc-orange); display:inline-block;
}
.lede{ font-size:1.15rem; color:var(--mc-grey); max-width:640px; }
.section-head{ max-width:720px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px; border-radius:100px; font-weight:600; font-size:.98rem;
  border:1px solid transparent; transition:transform .35s var(--mc-ease), box-shadow .35s var(--mc-ease), background .35s var(--mc-ease), color .35s var(--mc-ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--mc-grad-primary); color:#fff; box-shadow:var(--mc-shadow-sm); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:var(--mc-shadow-md); }
.btn-outline{ background:transparent; border-color:rgba(26,26,26,.18); color:var(--mc-ink); }
.btn-outline:hover{ border-color:var(--mc-orange); color:var(--mc-gold-text); transform:translateY(-3px); }
.btn-ghost-light{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.28); color:#fff; }
.btn-ghost-light:hover{ background:rgba(255,255,255,.16); transform:translateY(-3px); }
.btn-sm{ padding:10px 20px; font-size:.86rem; }
.btn-block{ width:100%; }
.btn svg{ width:16px; height:16px; transition:transform .3s var(--mc-ease); }
.btn:hover svg{ transform:translate(3px,-3px); }

/* ---------------------------------- Header --------------------------------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:24px 0; transition:all .4s var(--mc-ease);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:1400px; }
.site-header.is-scrolled{
  padding:15px 0; background:rgba(250,248,245,.86); backdrop-filter:blur(14px) saturate(140%);
  box-shadow:0 8px 30px rgba(26,20,10,.08);
}
.brand{ display:flex; align-items:center; gap:14px; font-family:var(--mc-font-head); font-weight:700; font-size:1.5rem; color:var(--mc-ink); flex-shrink:0; }
.brand-logo{ height:88px; width:auto; display:block; transition:height .3s var(--mc-ease); }
.site-header.is-scrolled .brand-logo{ height:68px; }
.brand .mark{
  width:56px; height:56px; border-radius:14px; background:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--mc-shadow-sm);
  flex-shrink:0; padding:7px;
}
.brand .mark img{ width:100%; height:100%; object-fit:contain; }
.brand .mark svg{ width:22px; height:22px; }
.brand small{ display:block; font-family:var(--mc-font-body); font-weight:600; font-size:.76rem; color:var(--mc-gold-text); letter-spacing:.06em; text-transform:uppercase; }

.nav{ display:flex; align-items:center; gap:20px; }
.nav a{
  font-size:.87rem; font-weight:600; color:var(--mc-ink-soft); position:relative; padding:6px 0; white-space:nowrap;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--mc-orange);
  transition:width .3s var(--mc-ease);
}
.nav a:hover::after, .nav a.active::after{ width:100%; }
.nav a.active{ color:var(--mc-gold-text); }
.header-actions{ display:flex; align-items:center; gap:10px; }
/* The phone-number pill is a nice-to-have on very wide screens only — it's
   the first thing to give way so the enlarged logo and full nav never have
   to shrink or wrap on real laptop/desktop widths. */
@media (max-width:1300px){
  .header-actions a[href^="tel:"]{ display:none; }
}
.nav-toggle{
  display:none; width:44px; height:44px; border-radius:12px; border:1px solid var(--mc-line);
  background:#fff; align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.nav-toggle span{ width:20px; height:2px; background:var(--mc-ink); transition:all .3s var(--mc-ease); }
.nav-toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------------------------------- Hero --------------------------------- */
.hero{
  position:relative; padding:calc(var(--mc-header-h) + 76px) 0 90px; overflow:hidden;
  background:var(--mc-cream);
}
.hero::before{ content:""; position:absolute; inset:0; background:var(--mc-grad-hero); pointer-events:none; }
.hero-blob{
  position:absolute; border-radius:50%; filter:blur(60px); opacity:.55; z-index:0;
  animation:float 14s ease-in-out infinite;
}
.hero-blob.b1{ width:380px; height:380px; background:var(--mc-orange-light); top:-120px; right:-80px; }
.hero-blob.b2{ width:280px; height:280px; background:var(--mc-teal-light); bottom:-100px; left:-60px; animation-delay:3s; }
@keyframes float{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-20px,26px) scale(1.06);} }

.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center; }
.hero-copy h1{ margin-bottom:22px; }
.hero-copy h1 .accent{ background:var(--mc-grad-primary); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-actions{ display:flex; gap:14px; margin:34px 0 40px; flex-wrap:wrap; }
.hero-trust{ display:flex; gap:28px; flex-wrap:wrap; }
.hero-trust .stat{ display:flex; flex-direction:column; }
.hero-trust .stat b{ font-family:var(--mc-font-head); font-size:1.8rem; color:var(--mc-ink); }
.hero-trust .stat span{ font-size:.8rem; color:var(--mc-grey); font-weight:600; }

.hero-visual{ position:relative; }
.hero-card{
  background:#fff; border-radius:var(--mc-radius-lg); padding:32px; box-shadow:var(--mc-shadow-lg);
  border:1px solid var(--mc-line); position:relative; z-index:2;
}
.hero-card .ring{
  width:64px; height:64px; border-radius:50%; background:var(--mc-grad-teal); display:flex;
  align-items:center; justify-content:center; margin-bottom:18px; box-shadow:var(--mc-shadow-sm);
}
.hero-card .ring svg{ width:30px; height:30px; color:#fff; }
.hero-progress{ display:flex; flex-direction:column; gap:16px; margin-top:22px; }
.hero-progress .row{ display:flex; align-items:center; justify-content:space-between; font-size:.82rem; font-weight:600; color:var(--mc-ink-soft); }
.hero-points{ display:flex; flex-direction:column; gap:14px; margin-top:22px; }
.hero-point{ display:flex; gap:10px; align-items:flex-start; font-size:.86rem; font-weight:600; color:var(--mc-ink-soft); }
.hero-point svg{ flex-shrink:0; width:18px; height:18px; color:var(--mc-teal); margin-top:2px; }
.bar{ height:8px; border-radius:100px; background:var(--mc-cream-dim); overflow:hidden; margin-top:6px; }
.bar > span{ display:block; height:100%; border-radius:100px; background:var(--mc-grad-primary); width:0; transition:width 1.4s var(--mc-ease); }
.hero-float-badge{
  position:absolute; background:#fff; border-radius:16px; padding:14px 18px; box-shadow:var(--mc-shadow-md);
  border:1px solid var(--mc-line); display:flex; align-items:center; gap:10px; font-size:.82rem; font-weight:700;
  z-index:3; animation:bob 6s ease-in-out infinite;
}
.hero-float-badge.fb1{ top:-18px; right:-10px; }
.hero-float-badge.fb2{ bottom:-22px; left:-24px; animation-delay:2s; }
.hero-float-badge .dot{ width:10px; height:10px; border-radius:50%; background:var(--mc-teal); box-shadow:0 0 0 4px rgba(91,107,127,.18); }
@keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-10px);} }

/* Reveal on scroll */
.reveal{ opacity:0; transform:translateY(34px); transition:opacity .8s var(--mc-ease), transform .8s var(--mc-ease); }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-scale{ opacity:0; transform:scale(.92); transition:opacity .8s var(--mc-ease), transform .8s var(--mc-ease); }
.reveal-scale.in-view{ opacity:1; transform:scale(1); }
.reveal-left{ opacity:0; transform:translateX(-40px); transition:opacity .8s var(--mc-ease), transform .8s var(--mc-ease); }
.reveal-left.in-view{ opacity:1; transform:translateX(0); }
.reveal-right{ opacity:0; transform:translateX(40px); transition:opacity .8s var(--mc-ease), transform .8s var(--mc-ease); }
.reveal-right.in-view{ opacity:1; transform:translateX(0); }
.stagger > *{ transition-delay:calc(var(--i,0) * 90ms); }

/* Cards / grid */
.grid{ display:grid; gap:28px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:#fff; border:1px solid var(--mc-line); border-radius:var(--mc-radius-md); padding:34px 30px;
  transition:transform .4s var(--mc-ease), box-shadow .4s var(--mc-ease), border-color .4s var(--mc-ease);
  position:relative; overflow:hidden;
}
.card:hover{ transform:translateY(-8px); box-shadow:var(--mc-shadow-md); border-color:transparent; }
.card .icon{
  width:54px; height:54px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:var(--mc-cream-dim); margin-bottom:20px; color:var(--mc-gold-text); transition:all .4s var(--mc-ease);
}
.card:hover .icon{ background:var(--mc-grad-primary); color:#fff; transform:rotate(-6deg) scale(1.06); }
.card .icon svg{ width:26px; height:26px; }
.card h3{ margin-bottom:10px; }
.card p{ color:var(--mc-grey); font-size:.95rem; margin-bottom:0; }
.card .tag{ position:absolute; top:22px; right:24px; font-size:.72rem; font-weight:700; color:var(--mc-grey-light); }

.card-link{ margin-top:18px; display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:.86rem; color:var(--mc-gold-text); }
.card-link svg{ width:14px; height:14px; transition:transform .3s var(--mc-ease); }
.card:hover .card-link svg{ transform:translate(3px,-2px); }

/* Process / timeline */
.timeline{ position:relative; margin-top:20px; }
.timeline::before{
  content:""; position:absolute; left:27px; top:14px; bottom:14px; width:2px;
  background:linear-gradient(var(--mc-line),var(--mc-line)); background-image:repeating-linear-gradient(to bottom, var(--mc-line) 0 8px, transparent 8px 16px);
}
.t-step{ display:flex; gap:24px; padding:0 0 44px; position:relative; }
.t-step:last-child{ padding-bottom:0; }
.t-num{
  flex-shrink:0; width:56px; height:56px; border-radius:50%; background:#fff; border:2px solid var(--mc-line);
  display:flex; align-items:center; justify-content:center; font-family:var(--mc-font-head); font-weight:700;
  color:var(--mc-gold-text); position:relative; z-index:1; transition:all .4s var(--mc-ease);
}
.t-step.in-view .t-num{ background:var(--mc-grad-primary); color:#fff; border-color:transparent; box-shadow:0 0 0 6px rgba(184,145,47,.12); }
.t-body h3{ margin-bottom:6px; }
.t-body p{ color:var(--mc-grey); margin-bottom:0; max-width:520px; }

/* Stats */
.stats-band{ background:var(--mc-grad-primary); color:#fff; padding:64px 0; }
.stats-band .grid-4{ text-align:center; }
.stats-band .num{ font-family:var(--mc-font-head); font-size:clamp(2.1rem,4vw,3rem); font-weight:700; }
.stats-band .lbl{ font-size:.85rem; opacity:.85; font-weight:600; margin-top:6px; }

/* Testimonials */
.testi-wrap{ position:relative; max-width:760px; margin:0 auto; text-align:center; }
.testi-slide{ display:none; }
.testi-slide.active{ display:block; animation:fadeUp .6s var(--mc-ease); }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }
.testi-quote{ font-family:var(--mc-font-head); font-size:1.4rem; color:var(--mc-ink); font-weight:600; line-height:1.5; }
.testi-person{ margin-top:22px; display:flex; align-items:center; justify-content:center; gap:12px; }
.testi-avatar{ width:44px; height:44px; border-radius:50%; background:var(--mc-grad-teal); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-family:var(--mc-font-head); }
.testi-dots{ display:flex; gap:8px; justify-content:center; margin-top:30px; }
.testi-dots button{ width:9px; height:9px; border-radius:50%; background:var(--mc-line); border:none; padding:0; transition:all .3s var(--mc-ease); }
.testi-dots button.active{ background:var(--mc-orange); width:26px; border-radius:100px; }

/* CTA band */
.cta-band{
  border-radius:var(--mc-radius-lg); background:var(--mc-ink); color:#fff; padding:64px; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band::before{ content:""; position:absolute; inset:0; background:var(--mc-grad-hero); opacity:.6; }
.cta-band > *{ position:relative; z-index:1; }
.cta-band h2{ color:#fff; margin-bottom:10px; }
.cta-band p{ color:#C9C2B4; margin-bottom:0; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* Footer */
.site-footer{ background:var(--mc-ink); color:#B8B2A5; padding:80px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:60px; }
.footer-brand p{ color:#A9A397; font-size:.9rem; max-width:280px; }
.footer-col h2, .footer-col h3, .footer-col h4{ color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:18px; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col a{ font-size:.92rem; color:#B8B2A5; transition:color .25s; }
.footer-col a:hover{ color:var(--mc-orange-light); }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{ width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:var(--mc-orange); }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding-top:26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; color:#A39D90; }

/* Forms */
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.82rem; font-weight:700; color:var(--mc-ink); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; padding:14px 16px; border-radius:12px; border:1px solid var(--mc-line); background:#fff;
  font-family:inherit; font-size:.95rem; color:var(--mc-ink); transition:border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--mc-orange); box-shadow:0 0 0 4px rgba(184,145,47,.12);
}
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.chip-group{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ padding:9px 16px; border-radius:100px; border:1px solid var(--mc-line); font-size:.85rem; font-weight:600; background:#fff; transition:all .25s; }
.chip.selected, .chip:hover{ border-color:var(--mc-orange); color:var(--mc-gold-text); background:rgba(184,145,47,.06); }

/* ============================== Chat / Intake widget ============================== */
.mc-chat-panel{
  background:#fff; border-radius:var(--mc-radius-lg); border:1px solid var(--mc-line);
  box-shadow:var(--mc-shadow-lg); overflow:hidden; display:flex; flex-direction:column; height:560px;
}
.mc-chat-head{ background:var(--mc-grad-primary); color:#fff; padding:20px 24px; display:flex; align-items:center; gap:14px; }
.mc-chat-head .av{ width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; }
.mc-chat-head .av svg{ width:22px; height:22px; }
.mc-chat-head strong{ display:block; font-size:.98rem; }
.mc-chat-head span{ font-size:.78rem; opacity:.85; display:flex; align-items:center; gap:6px; }
.mc-chat-head span::before{ content:""; width:7px; height:7px; border-radius:50%; background:#4ADE80; display:inline-block; }

.mc-chat-body{ flex:1; padding:22px 20px; overflow-y:auto; display:flex; flex-direction:column; gap:14px; background:var(--mc-cream); }
.mc-msg{ max-width:82%; padding:13px 16px; border-radius:16px; font-size:.9rem; line-height:1.5; animation:msgIn .4s var(--mc-ease); }
@keyframes msgIn{ from{ opacity:0; transform:translateY(8px) scale(.98);} to{ opacity:1; transform:translateY(0) scale(1);} }
.mc-msg.bot{ background:#fff; border:1px solid var(--mc-line); border-bottom-left-radius:4px; align-self:flex-start; color:var(--mc-ink-soft); }
.mc-msg.user{ background:var(--mc-grad-primary); color:#fff; border-bottom-right-radius:4px; align-self:flex-end; }
.mc-typing{ display:flex; gap:4px; padding:14px 16px; background:#fff; border:1px solid var(--mc-line); border-radius:16px; border-bottom-left-radius:4px; align-self:flex-start; width:fit-content; }
.mc-typing span{ width:6px; height:6px; border-radius:50%; background:var(--mc-grey-light); animation:blink 1.2s infinite ease-in-out; }
.mc-typing span:nth-child(2){ animation-delay:.2s; } .mc-typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,80%,100%{ opacity:.25; transform:scale(.8);} 40%{ opacity:1; transform:scale(1);} }

.mc-chat-options{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.mc-opt-btn{ padding:9px 15px; border-radius:100px; border:1px solid var(--mc-orange); color:var(--mc-gold-text); background:#fff; font-size:.83rem; font-weight:700; transition:all .25s; }
.mc-opt-btn:hover{ background:var(--mc-orange); color:#fff; }

.mc-chat-input{ display:flex; gap:10px; padding:16px; border-top:1px solid var(--mc-line); background:#fff; }
.mc-chat-input input{ flex:1; border:1px solid var(--mc-line); border-radius:100px; padding:12px 18px; font-size:.9rem; font-family:inherit; }
.mc-chat-input input:focus{ outline:none; border-color:var(--mc-orange); }
.mc-chat-input button{ width:44px; height:44px; border-radius:50%; background:var(--mc-grad-primary); color:#fff; display:flex; align-items:center; justify-content:center; border:none; flex-shrink:0; transition:transform .25s; }
.mc-chat-input button:hover{ transform:scale(1.08); }
.mc-chat-input button svg{ width:18px; height:18px; }
.mc-chat-input.is-disabled{ opacity:.5; pointer-events:none; }

/* Floating live-chat launcher */
.mc-launcher{
  position:fixed; right:26px; bottom:26px; z-index:1400; width:64px; height:64px; border-radius:50%;
  background:var(--mc-grad-primary); box-shadow:0 12px 30px rgba(184,145,47,.4); display:flex; align-items:center;
  justify-content:center; border:none; color:#fff; transition:transform .3s var(--mc-ease);
}
.mc-launcher:hover{ transform:scale(1.08); }
.mc-launcher svg{ width:26px; height:26px; transition:opacity .2s, transform .2s; }
.mc-launcher .ico-close{ position:absolute; opacity:0; transform:rotate(-45deg) scale(.6); }
.mc-launcher.is-open .ico-chat{ opacity:0; transform:rotate(45deg) scale(.6); }
.mc-launcher.is-open .ico-close{ opacity:1; transform:rotate(0) scale(1); }
.mc-launcher .ping{
  position:absolute; top:-2px; right:-2px; width:16px; height:16px; border-radius:50%; background:var(--mc-teal);
  border:3px solid var(--mc-cream); display:flex; align-items:center; justify-content:center; font-size:.6rem; color:#fff; font-weight:800;
}
.mc-launcher .ping::before{ content:""; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--mc-teal); animation:pingring 2.4s ease-out infinite; }
@keyframes pingring{ 0%{ transform:scale(.7); opacity:.8;} 100%{ transform:scale(1.9); opacity:0;} }

.mc-float-panel{
  position:fixed; right:26px; bottom:104px; z-index:1399; width:370px; max-width:calc(100vw - 40px);
  height:520px; max-height:calc(100vh - 160px); border-radius:22px; overflow:hidden; box-shadow:var(--mc-shadow-lg);
  transform:translateY(24px) scale(.96); opacity:0; pointer-events:none; transition:all .35s var(--mc-ease);
}
.mc-float-panel.is-open{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
.mc-float-panel .mc-chat-panel{ height:100%; border-radius:0; border:none; box-shadow:none; }

/* Scroll progress bar */
.scroll-progress{ position:fixed; top:0; left:0; height:3px; background:var(--mc-grad-primary); z-index:2000; width:0%; }

/* Back to top */
.back-top{
  position:fixed; left:26px; bottom:26px; z-index:1300; width:48px; height:48px; border-radius:50%; background:#fff;
  border:1px solid var(--mc-line); box-shadow:var(--mc-shadow-sm); display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translateY(12px); pointer-events:none; transition:all .35s var(--mc-ease);
}
.back-top.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
.back-top svg{ width:18px; height:18px; color:var(--mc-gold-text); }

/* Counter chips row */
.approach-strip{ display:flex; gap:16px; flex-wrap:wrap; margin-top:30px; }
.approach-strip .pill{ display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:100px; background:#fff; border:1px solid var(--mc-line); font-size:.82rem; font-weight:700; }
.approach-strip .pill svg{ width:14px; height:14px; color:var(--mc-teal); }

/* ---- "Why Choose Ascenso Standards" section ---- */
.why-intro{ max-width:820px; }
.why-intro p{ color:var(--mc-ink-soft); font-size:1.02rem; line-height:1.75; margin-bottom:16px; }
.why-intro p:last-child{ margin-bottom:0; }
.why-block{ margin-top:52px; }
.why-block h3{ font-size:1.32rem; margin-bottom:10px; }
.why-block > p{ color:var(--mc-grey); max-width:760px; margin-bottom:4px; }
.why-note{ color:var(--mc-ink-soft); font-style:italic; margin-top:14px; max-width:760px; }
.why-block.alt{ background:var(--mc-cream-dim); border-radius:var(--mc-radius-lg); padding:40px 44px; }
.why-block.alt p{ color:var(--mc-ink-soft); max-width:840px; line-height:1.75; margin-bottom:14px; }
.why-block.alt p:last-child{ margin-bottom:0; }
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:22px 0; }
.why-item{
  display:flex; gap:10px; align-items:flex-start; font-size:.87rem; font-weight:600; color:var(--mc-ink-soft);
  background:#fff; border:1px solid var(--mc-line); border-radius:12px; padding:13px 14px; transition:all .25s var(--mc-ease);
}
.why-item:hover{ border-color:transparent; box-shadow:var(--mc-shadow-sm); transform:translateY(-3px); }
.why-check{ flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--mc-grad-teal); display:flex; align-items:center; justify-content:center; }
.why-check svg{ width:11px; height:11px; color:#fff; }
.why-banner{ margin-top:52px; background:var(--mc-grad-primary); border-radius:var(--mc-radius-lg); padding:44px 48px; color:#fff; text-align:center; }
.why-banner h3{ color:#fff; font-size:1.5rem; margin-bottom:12px; }
.why-banner p{ color:rgba(255,255,255,.92); max-width:760px; margin:0 auto; }

/* Page hero (inner pages) */
.page-hero{ padding:calc(var(--mc-header-h) + 64px) 0 70px; position:relative; overflow:hidden; background:var(--mc-cream); }
.page-hero::before{ content:""; position:absolute; inset:0; background:var(--mc-grad-hero); }
.page-hero .container{ position:relative; z-index:1; }
.breadcrumb{ display:flex; gap:8px; align-items:center; font-size:.82rem; color:var(--mc-grey); margin-bottom:20px; font-weight:600; }
.breadcrumb .sep{ color:var(--mc-line); }
.breadcrumb .cur{ color:var(--mc-gold-text); }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:420px; margin:0 auto; }
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ padding:44px 30px; }
}
/* Nav collapses to the fullscreen mobile menu earlier (1040px) than the rest
   of the responsive layout (760px) — a wider, enlarged logo plus the longer
   "Explore All Courses" label need more breathing room than the old short
   nav did, so tablet/small-laptop widths get the mobile nav instead of a
   squeezed inline one. */
@media (max-width: 1040px){
  .nav{ position:fixed; top:var(--mc-header-h); left:0; right:0; bottom:0; background:var(--mc-cream);
    flex-direction:column; padding:36px 24px; gap:8px; transform:translateX(100%); transition:transform .4s var(--mc-ease), visibility 0s linear .4s;
    overflow-y:auto; align-items:stretch; visibility:hidden; }
  .nav.is-open{ transform:translateX(0); visibility:visible; transition:transform .4s var(--mc-ease), visibility 0s; }
  .nav a{ font-size:1.1rem; padding:14px 4px; border-bottom:1px solid var(--mc-line); white-space:normal; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-sm{ display:none; }
}
@media (max-width: 760px){
  .grid-3, .grid-4, .grid-2{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .why-block.alt, .why-banner{ padding:30px 26px; }
  .field-row{ grid-template-columns:1fr; }
  .section{ padding:72px 0; }
  .stats-band .grid-4{ grid-template-columns:1fr 1fr; gap:28px; }
  .mc-float-panel{ right:16px; left:16px; width:auto; bottom:96px; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; margin-bottom:40px; }
  .site-footer{ padding-bottom:110px; } /* keep the last line clear of the floating chat / back-to-top buttons */
  .footer-grid > *{ min-width:0; }
  .footer-col a, .footer-brand p{ overflow-wrap:anywhere; }
}

/* Accessibility: skip link + visible keyboard focus */
.skip-link{ position:absolute; left:12px; top:-60px; z-index:10000; background:var(--mc-ink); color:#fff; padding:12px 18px; border-radius:8px; font-weight:700; transition:top .2s; }
.skip-link:focus{ top:12px; }
main:focus{ outline:none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible{ outline:3px solid var(--mc-gold-text); outline-offset:2px; }
.site-footer a:focus-visible, .cta-band a:focus-visible, .cta-band button:focus-visible{ outline-color:var(--mc-orange-light); }
