
/* ------------------------------------------------------------------
   DEMO PAGE ONLY — do NOT copy this block into your site.
   It just gives this file the tokens your pages already have,
   plus a button so you can preview the modal.
   ------------------------------------------------------------------ */



/* ==================================================================
   PASTE 1 of 3 — CSS
   Copy everything between this line and "END OF PASTE 1"
   into your existing <style> block, at the bottom.
   ================================================================== */

/* --- Overlay ------------------------------------------------------ */
.cm{
  position:fixed;inset:0;z-index:1000;
  display:grid;place-items:center;padding:20px;
  visibility:hidden;opacity:0;
  transition:opacity .4s var(--ease),visibility .4s var(--ease);
}
.cm.is-open{visibility:visible;opacity:1}
.cm__scrim{
  position:absolute;inset:0;background:rgba(20,12,13,.58);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}

/* --- The box ------------------------------------------------------ */
.cm__box{
  position:relative;width:min(460px,100%);max-height:min(680px,92vh);
  background:var(--white);border-radius:var(--r);overflow:hidden;
  box-shadow:0 40px 90px rgba(20,12,13,.34);
  transform:translateY(22px) scale(.985);
  transition:transform .45s var(--ease);
  display:flex;flex-direction:column;
}
.cm.is-open .cm__box{transform:none}

.cm__x{
  position:absolute;top:14px;right:14px;z-index:5;
  width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.16);color:var(--white);
  display:grid;place-items:center;
  transition:background .3s var(--ease),transform .3s var(--ease);
}
.cm__x:hover{background:rgba(255,255,255,.3);transform:rotate(90deg)}
.cm__x svg{width:15px;height:15px}

.cm__grid{display:flex;flex-direction:column;min-height:0;flex:1}

/* --- Left: the call side (the one solid maroon moment) ------------ */
.cm__call{
  background:var(--maroon);color:var(--white);
  padding:clamp(30px,3.6vw,46px);position:relative;overflow:hidden;
  display:flex;flex-direction:column;
}
.cm__call::before{
  content:"";position:absolute;inset:0;opacity:.14;pointer-events:none;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.55) 0 2px,transparent 2px 24px);
}
.cm__call > *{position:relative;z-index:1}

.cm__eyebrow{
  display:inline-flex;align-items:center;gap:11px;
  font-size:.68rem;font-weight:500;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(255,255,255,.74);margin-bottom:16px;
}
.cm__eyebrow::before{content:"";width:3px;height:13px;background:var(--white);flex:none}

.cm__call h2{
  font-family:var(--display);font-weight:500;font-size:clamp(1.5rem,2.4vw,1.95rem);
  line-height:1.18;margin-bottom:10px;
}
.cm__call p{font-size:.9rem;color:rgba(255,255,255,.78);line-height:1.65;margin-bottom:26px}

/* The number is the hero of this modal */
.cm__num{
  font-family:var(--display);font-weight:500;
  font-size:clamp(1.75rem,3.4vw,2.5rem);line-height:1.1;
  color:var(--white);display:inline-block;letter-spacing:.005em;
  border-bottom:1px solid rgba(255,255,255,.32);padding-bottom:6px;
  transition:border-color .35s var(--ease),opacity .35s var(--ease);
}
.cm__num:hover{border-color:var(--white);opacity:.92}

/* Live open / closed indicator */
.cm__status{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:.83rem;
  color:rgba(255,255,255,.82)}
.cm__dot{width:8px;height:8px;border-radius:50%;background:#8A8A8A;flex:none;position:relative}
.cm__dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;
  border:1.5px solid currentColor;opacity:0}
.cm__status.is-open .cm__dot{background:#57D081;color:#57D081}
.cm__status.is-open .cm__dot::after{animation:cmPing 2.4s var(--ease) infinite}
@keyframes cmPing{0%{opacity:.9;transform:scale(.5)}80%,100%{opacity:0;transform:scale(1.8)}}

.cm__hours{font-size:.78rem;color:rgba(255,255,255,.6);margin-top:8px}

.cm__acts{display:flex;flex-wrap:wrap;gap:11px;margin-top:auto;padding-top:30px}
.cm__btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:13px 24px;border-radius:6px;border:1px solid transparent;
  font-size:.74rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  cursor:pointer;transition:background .35s var(--ease),color .35s var(--ease),
    border-color .35s var(--ease),transform .3s var(--ease);
}
.cm__btn:hover{transform:translateY(-2px)}
.cm__btn svg{width:15px;height:15px;flex:none}
.cm__btn--white{background:var(--white);color:var(--maroon)}
.cm__btn--white:hover{background:rgba(255,255,255,.9)}
.cm__btn--ghost{background:transparent;color:var(--white);border-color:rgba(255,255,255,.4)}
.cm__btn--ghost:hover{background:rgba(255,255,255,.12);border-color:var(--white)}

/* --- Mobile ------------------------------------------------------- */
@media (max-width:860px){
  .cm{padding:0;place-items:stretch}
  .cm__box{width:100%;max-height:100vh;height:100%;border-radius:0}
  .cm__grid{overflow-y:auto}
  .cm__call{padding-top:60px}
  .cm__acts{padding-top:24px}
  .cm__btn{flex:1 1 100%}
  .cm__x{background:rgba(255,255,255,.2)}
}
@media (prefers-reduced-motion:reduce){
  .cm,.cm__box{transition:none}
  .cm__dot::after{animation:none}
}

/* ================= END OF PASTE 1 ================= */








