/* EMPOWER LIFE COACHING — CLEAN CERTIFICATE VIEWER */

.certificate-open{display:block;width:100%;padding:0;margin:0;border:0;background:transparent;cursor:pointer;text-align:center}
.certificate-open img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}

#certificateViewer{
 position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 margin:0;padding:70px 70px 55px;background:rgba(0,0,0,.96);
 overflow:hidden;z-index:2147483000;opacity:0;visibility:hidden;pointer-events:none;
 transition:opacity .18s ease,visibility .18s ease;
}
#certificateViewer.open{opacity:1;visibility:visible;pointer-events:auto}

#certificateViewer .certificate-viewer-content{
 position:relative;display:flex;align-items:center;justify-content:center;
 width:auto;height:auto;max-width:100%;max-height:100%;
 min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;
}
#certificateViewer #certificateViewerImage{
 display:block;width:auto;height:auto;
 max-width:calc(100vw - 140px);max-height:calc(100dvh - 125px);
 min-width:0;min-height:0;margin:0;padding:0;box-sizing:border-box;
 object-fit:contain;border:0;flex:0 1 auto;
}

#certificateClose{
 position:fixed;top:15px;right:18px;width:50px;height:50px;
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 margin:0;padding:0;z-index:2147483002;color:#fff;background:#142d4d;
 border:2px solid #d9a52a;border-radius:50%;font:34px/1 Arial,sans-serif;
 cursor:pointer;user-select:none;
}
#certificateClose:hover{transform:scale(1.05)}
#certificateClose:focus-visible{outline:3px solid #fff;outline-offset:3px}

#certificateViewer .certificate-viewer-help{
 position:fixed;left:50%;bottom:10px;transform:translateX(-50%);
 max-width:calc(100vw - 30px);margin:0;padding:0;z-index:2147483002;
 color:rgba(255,255,255,.8);font-size:12px;line-height:1.2;
 white-space:nowrap;pointer-events:none;
}

@media(max-width:900px){
 #certificateViewer{padding:62px 32px 48px}
 #certificateViewer #certificateViewerImage{
  max-width:calc(100vw - 64px);max-height:calc(100dvh - 110px)
 }
 #certificateClose{width:46px;height:46px;top:10px;right:12px;font-size:31px}
}
@media(max-width:600px){
 #certificateViewer{padding:58px 12px 44px}
 #certificateViewer #certificateViewerImage{
  max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px)
 }
 #certificateClose{width:44px;height:44px;top:8px;right:8px;font-size:29px}
 #certificateViewer .certificate-viewer-help{bottom:6px;font-size:10px}
}
@media(max-height:650px){
 #certificateViewer{padding-top:55px;padding-bottom:38px}
 #certificateViewer #certificateViewerImage{max-height:calc(100dvh - 92px)}
 #certificateClose{top:7px}
 #certificateViewer .certificate-viewer-help{bottom:5px}
}

/* =========================================================
   EMPOWER CERTIFICATE VIEWER - FINAL FIX
   ========================================================= */

.empowerCertificateViewer {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0, 0, 0, 0.96) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 70px 30px 30px !important;
    box-sizing: border-box !important;

    overflow: auto !important;

    z-index: 999999 !important;
}

/* Enlarged certificate */
.empowerCertificateViewer img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 94vw !important;
    max-height: 88vh !important;

    object-fit: contain !important;

    margin: auto !important;

    border-radius: 4px !important;

    box-shadow:
        0 0 25px rgba(255,255,255,.12),
        0 20px 60px rgba(0,0,0,.7) !important;
}

/* Close button */
.empowerCertificateViewer .certificateClose {
    position: fixed !important;

    top: 25px !important;
    right: 30px !important;

    width: 48px !important;
    height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

    background: rgba(20,35,55,.95) !important;

    border: 2px solid #FFD54D !important;

    color: #ffffff !important;

    font-size: 30px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 1000000 !important;

    box-shadow:
        0 0 15px rgba(255,213,77,.35) !important;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease !important;
}

.empowerCertificateViewer .certificateClose:hover {
    transform: scale(1.08) !important;

    background: #8B5DFF !important;

    box-shadow:
        0 0 25px rgba(139,93,255,.65) !important;
}


/* =========================================================
   MOBILE CERTIFICATE VIEWER
   ========================================================= */

@media (max-width: 768px) {

    .empowerCertificateViewer {
        padding: 65px 10px 20px !important;

        align-items: center !important;
        justify-content: center !important;

        overflow: auto !important;
    }

    .empowerCertificateViewer img {
        max-width: 96vw !important;
        max-height: 82vh !important;

        width: auto !important;
        height: auto !important;

        object-fit: contain !important;
    }

    .empowerCertificateViewer .certificateClose {
        top: 15px !important;
        right: 15px !important;

        width: 44px !important;
        height: 44px !important;

        font-size: 27px !important;
    }
}


/* Small phones */
@media (max-width: 480px) {

    .empowerCertificateViewer {
        padding: 60px 6px 15px !important;
    }

    .empowerCertificateViewer img {
        max-width: 98vw !important;
        max-height: 80vh !important;
    }

}


/* =========================================================
   EMPOWER — LIGHT / WHITISH THEME OVERRIDE
   Generated from the supplied dark-theme CSS.
   Keeps the original layout, animation, glow and hover effects,
   while converting surfaces, text, borders and links to a
   bright white / light-grey palette.
   ========================================================= */

:root{
  --bg:#f4f6f9;
  --bg2:#eef2f6;
  --surface:#ffffff;
  --surface-1:#fbfcfd;
  --surface-2:#f3f5f7;
  --surface-3:#e8ecf1;

  --glass:rgba(255,255,255,.78);
  --border:rgba(113,126,143,.22);
  --border-soft:rgba(113,126,143,.16);

  --blue:#2c83ff;
  --blue-light:#78b7ff;
  --purple:#7657e8;
  --purple-light:#a78bfa;
  --gold:#d49a22;
  --gold-light:#f3c85b;

  --teal:#087f80;
  --cyan:#19a8c8;
  --green:#20b95c;

  --text:#26313d;
  --text-soft:#4f5c69;
  --text-muted:#707c88;
  --white:#ffffff;

  --shadow:
    0 12px 38px rgba(37,52,69,.12),
    0 2px 10px rgba(37,52,69,.07);
}

html,body{
  background:
    radial-gradient(circle at 12% 8%,rgba(118,87,232,.08),transparent 30%),
    radial-gradient(circle at 88% 12%,rgba(44,131,255,.08),transparent 30%),
    linear-gradient(180deg,#eef2f6 0%,#f5f7f9 45%,#ffffff 100%) !important;
  color:var(--text) !important;
}

body{
  min-height:100vh;
}

/* ---------- Global links: no underlines + elegant light gradients ---------- */
a,
a:visited,
a:hover,
a:active{
  text-decoration:none !important;
}

a{
  color:#46566b;
  transition:
    color .28s ease,
    background-position .35s ease,
    filter .28s ease,
    transform .28s ease,
    text-shadow .28s ease;
}

a:hover{
  color:#2c83ff;
}

/* Text-gradient links where the original theme used luminous accents */
nav a,
.navigation a,
header a,
footer a,
.about-navigation a,
.terms-logo a,
.terms-content a,
.about-container a,
.certificates-container a,
.services-page a,
.terms-page a,
.contact-page a{
  background-image:linear-gradient(90deg,#6d737b 0%,#ffffff 48%,#7657e8 100%);
  background-size:220% 100%;
  background-position:0% 50%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent !important;
}

nav a:hover,
.navigation a:hover,
header a:hover,
footer a:hover,
.about-navigation a:hover,
.terms-logo a:hover,
.terms-content a:hover,
.about-container a:hover,
.certificates-container a:hover,
.services-page a:hover,
.terms-page a:hover,
.contact-page a:hover{
  background-position:100% 50%;
  filter:drop-shadow(0 2px 7px rgba(118,87,232,.20));
}

/* ---------- Header / navigation ---------- */
header,
.site-header,
.about-header,
.terms-header,
.main-header{
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.98) 0%,
      rgba(247,249,251,.96) 52%,
      rgba(238,242,247,.96) 100%) !important;
  color:var(--text) !important;
  border-color:rgba(113,126,143,.22) !important;
  box-shadow:
    0 8px 28px rgba(37,52,69,.09),
    inset 0 -1px 0 rgba(255,255,255,.9) !important;
}

header::after,
.site-header::after,
.about-header::after,
.terms-header::after{
  background:
    linear-gradient(90deg,
      transparent,
      #b7b9c0 18%,
      #ffffff 34%,
      #7657e8 50%,
      #ffffff 66%,
      #b7b9c0 82%,
      transparent) !important;
  box-shadow:
    0 0 7px rgba(255,255,255,.95),
    0 0 16px rgba(118,87,232,.22) !important;
}

/* ---------- Footer ---------- */
footer,
.site-footer{
  background:
    linear-gradient(180deg,
      #e3e7eb 0%,
      #edf0f3 30%,
      #f7f8f9 67%,
      #ffffff 100%) !important;
  color:#4b5662 !important;
  border-top:1px solid rgba(113,126,143,.24) !important;
  box-shadow:
    0 -8px 28px rgba(37,52,69,.08),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.site-footer a,
footer a{
  color:#505b68 !important;
}

/* Preserve the moving footer-light effect, but make it bright */
.footer-light{
  background:
    linear-gradient(90deg,
      transparent,
      #b9bdc3,
      #ffffff,
      #d8d0f2,
      #ffffff,
      #b9bdc3,
      transparent) !important;
  box-shadow:
    0 0 7px rgba(255,255,255,.98),
    0 0 15px rgba(118,87,232,.25),
    0 0 26px rgba(44,131,255,.15) !important;
}

/* ---------- Surfaces / cards / glass panels ---------- */
.card,
[class*="card"],
.panel,
[class*="panel"],
.glass,
.glass-card,
.contactCoachCard,
.contactCard,
.contactInfo,
.terms-content{
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.90),
      rgba(248,250,252,.78)) !important;
  border-color:rgba(113,126,143,.20) !important;
  box-shadow:
    0 14px 40px rgba(37,52,69,.10),
    0 2px 9px rgba(37,52,69,.06) !important;
  color:var(--text) !important;
}

/* Keep glass highlights / shine effects */
.card::before,
[class*="card"]::before{
  opacity:.28;
}

/* ---------- Text readability ---------- */
h1,h2,h3,h4,h5,h6,
.about-heading h1,
.about-heading h2,
.certificates-heading h2,
.terms-intro h2,
.terms-block h2,
.terms-agreement h2,
.contactCoachCard h2,
.contactHero h1{
  color:#202b37 !important;
  text-shadow:none !important;
}

p,
li,
span,
label,
.coach-story,
.terms-content,
.contact-page .contactCoachCard p,
.contact-page .contactHero p{
  color:var(--text-soft) !important;
}

small,
.muted,
.text-muted,
.terms-header-title p{
  color:var(--text-muted) !important;
}

strong,
b{
  color:#293442;
}

/* Accent headings retain original blue/purple/gold identity */
.about-label,
.certificates-heading > span{
  color:#7657e8 !important;
}

.about-heading h1 span{
  color:#7657e8 !important;
}

.about-heading-line{
  background:linear-gradient(90deg,#d9a52a,#f3c85b,#d9a52a) !important;
  box-shadow:0 0 14px rgba(212,154,34,.28) !important;
}

.terms-header-title h1{
  color:#b8790c !important;
}

.terms-header-title p{
  color:#7657e8 !important;
}

/* ---------- Borders / separators ---------- */
hr,
.terms-intro,
.section-divider{
  border-color:rgba(113,126,143,.20) !important;
}

/* ---------- Forms ---------- */
input,
select,
textarea{
  background:
    linear-gradient(180deg,#ffffff,#f7f9fb) !important;
  color:#26313d !important;
  border:1px solid #cbd2da !important;
  box-shadow:
    inset 0 1px 2px rgba(37,52,69,.035),
    0 2px 8px rgba(37,52,69,.035) !important;
}

input::placeholder,
textarea::placeholder{
  color:#8a949f !important;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#7657e8 !important;
  box-shadow:
    0 0 0 3px rgba(118,87,232,.10),
    0 8px 22px rgba(37,52,69,.08) !important;
}

/* ---------- Buttons: light gradient versions of dark luminous buttons ---------- */
button,
.btn,
.button,
.book-session-button{
  border-color:rgba(118,87,232,.35) !important;
  color:#39465a !important;
  background:
    linear-gradient(135deg,
      #ffffff 0%,
      #f1f3f6 48%,
      #e4e8ee 100%) !important;
  box-shadow:
    0 7px 20px rgba(37,52,69,.10),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease,
    filter .3s ease !important;
}

button:hover,
.btn:hover,
.button:hover,
.book-session-button:hover{
  transform:translateY(-2px);
  border-color:rgba(118,87,232,.55) !important;
  box-shadow:
    0 11px 27px rgba(37,52,69,.13),
    0 0 18px rgba(118,87,232,.12),
    inset 0 1px 0 rgba(255,255,255,1) !important;
  filter:brightness(1.015);
}

/* WhatsApp keeps its recognizable brand effect */
.contact-page .whatsappButton{
  color:#ffffff !important;
  background:linear-gradient(135deg,#25d366,#20b95c) !important;
}

/* ---------- Timeline / circular accents ---------- */
.circle{
  background:
    linear-gradient(145deg,#ffffff,#e9edf2) !important;
  border-color:#2c83ff !important;
  color:#31506d !important;
  box-shadow:
    0 0 15px rgba(44,131,255,.20),
    inset 0 1px 0 #fff !important;
}

.step.active .circle{
  background:linear-gradient(145deg,#ffffff,#e7f1ff) !important;
  color:#2c83ff !important;
  box-shadow:
    0 0 25px rgba(44,131,255,.25),
    0 0 50px rgba(44,131,255,.12) !important;
}

/* ---------- Image frames ---------- */
.coach-photo,
img[class*="certificate"],
.certificate-open img{
  border-color:rgba(113,126,143,.20) !important;
  box-shadow:
    0 18px 48px rgba(37,52,69,.14) !important;
}

/* ---------- Modal / certificate viewer: white shell, readable controls ---------- */
#certificateViewer{
  background:rgba(245,247,250,.96) !important;
}

#certificateViewer .certificate-viewer-content{
  background:#ffffff !important;
  border:1px solid rgba(113,126,143,.22) !important;
  box-shadow:0 20px 70px rgba(37,52,69,.18) !important;
}

#certificateViewer button,
#certificateViewer .close,
#certificateViewer a{
  color:#334155 !important;
  background:#ffffff !important;
  border-color:#cbd2da !important;
}

/* ---------- Services / terms teal identity ---------- */
.services-page,
.terms-page{
  color:var(--text) !important;
}

.services-page .terms-header,
.terms-page .terms-header{
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.98),
      rgba(241,249,249,.96)) !important;
}

.services-page a:hover,
.terms-page a:hover{
  color:#087f80 !important;
}

.services-page [class*="card"],
.terms-page [class*="card"]{
  border-color:rgba(8,127,128,.18) !important;
}

/* ---------- Generic dark-theme remnants: safe light conversions ---------- */
[style*="color:#fff"],
[style*="color:#ffffff"],
[style*="color:white"]{
  color:#26313d !important;
}

::selection{
  background:rgba(118,87,232,.18);
  color:#202b37;
}

:focus-visible{
  outline:2px solid rgba(118,87,232,.55);
  outline-offset:3px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-track{
  background:#edf0f3;
}

::-webkit-scrollbar-thumb{
  background:
    linear-gradient(180deg,#c6cbd2,#9ea6b0);
  border-radius:10px;
  border:2px solid #edf0f3;
}

::-webkit-scrollbar-thumb:hover{
  background:
    linear-gradient(180deg,#a9b0ba,#7f8995);
}
