@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap');

:root {
    --primary:       #314C78;
    --primary-light: #4F678C;
    --accent:        #7FDBFD;
    --accent-light:  #B3EDFE;
    --pink:          #F185BF;
    --bg:            #FFFFFF;
    --text-dark:     #424242;
    --text-medium:   #757575;
    --fog:           rgba(255,255,255,.72);
}

body, .et_pb_text, p, li, a, h1, h2, h3, h4, h5, h6, .et-db #et-boc .et-l .et_pb_module {
    font-family: 'Lato', sans-serif;
}

/* -------------------------------------------------------------------------
   Typography as design element
------------------------------------------------------------------------- */
.mgc-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.mgc-hero-h1, .mgc-section-h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin: 0 0 20px;
}
.mgc-hero-h1 { font-size: clamp(2.6rem, 5vw + 1rem, 5.2rem); color: #ffffff; }
.mgc-section-h2 { font-size: clamp(2rem, 3vw + 1rem, 3.2rem); color: var(--primary); }
.mgc-section-h2.on-dark { color: #ffffff; }
.mgc-hero-h1 .word, .mgc-section-h2 .word { display: inline-block; overflow: hidden; }
.mgc-hero-h1 .word span, .mgc-section-h2 .word span { display: inline-block; }
.mgc-hero-h1 .word { opacity: 0; transform: translateY(110%); animation: mgc-word-up .8s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes mgc-word-up { to { opacity: 1; transform: translateY(0); } }

.mgc-body-measure { max-width: 62ch; line-height: 1.7; }

/* -------------------------------------------------------------------------
   Hero — aurora gradient mesh background
------------------------------------------------------------------------- */
.mgc-hero-bg {
    position: absolute;
    inset: -10% -5% -5% -5%;
    background:
        radial-gradient(ellipse 60% 50% at 18% 15%, rgba(127,219,253,.38) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 82% 75%, rgba(241,133,191,.26) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 105%, rgba(79,103,140,.35) 0%, transparent 65%),
        var(--primary);
    background-size: 200% 200%;
    animation: mgc-aurora 20s ease-in-out infinite;
    z-index: 0;
}
@keyframes mgc-aurora {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.mgc-hero-float {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    animation: mgc-float 7s ease-in-out infinite;
}
@keyframes mgc-float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-16px);} }

/* -------------------------------------------------------------------------
   Scroll reveal
------------------------------------------------------------------------- */
.mgc-reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.mgc-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------------------
   Card hover lift + shadow layering
------------------------------------------------------------------------- */
.et_pb_blurb, .mgc-trust-card, .mgc-service-card, .mgc-testimonial-card {
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.et_pb_blurb:hover, .mgc-trust-card:hover, .mgc-service-card:hover, .mgc-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 20px 40px -12px rgba(49,76,120,.28);
}

/* Animated underline links */
.mgc-link-underline { position: relative; text-decoration: none; }
.mgc-link-underline::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.mgc-link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* -------------------------------------------------------------------------
   Buttons
------------------------------------------------------------------------- */
.mgc-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: 6px; font-weight: 700; font-size: .92rem;
    letter-spacing: .04em; text-decoration: none; transition: all .3s cubic-bezier(.16,1,.3,1);
    border: 1.5px solid transparent;
}
.mgc-btn-primary { background: var(--accent); color: var(--primary); }
.mgc-btn-primary:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(127,219,253,.55); color: var(--primary); }
.mgc-btn-outline {
    position: relative; overflow: hidden; z-index: 1; color: #fff; border-color: rgba(255,255,255,.5);
}
.mgc-btn-outline::before {
    content: ''; position: absolute; inset: 0; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); z-index: -1;
}
.mgc-btn-outline:hover { color: var(--primary); border-color: var(--accent); }
.mgc-btn-outline:hover::before { transform: scaleX(1); }
.mgc-hero-btns, .mgc-cta-btns { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* -------------------------------------------------------------------------
   Stat band
------------------------------------------------------------------------- */
.mgc-stat { text-align: center; padding: 12px; }
.mgc-stat-num { display: block; font-size: clamp(2.4rem, 3vw + 1rem, 3.6rem); font-weight: 900; color: var(--accent); line-height: 1; }
.mgc-stat-label { display: block; margin-top: 10px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }

/* -------------------------------------------------------------------------
   Marquee trust strip
------------------------------------------------------------------------- */
.mgc-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); }
.mgc-marquee-track { display: flex; gap: 64px; width: max-content; align-items: center; animation: mgc-marquee 26s linear infinite; }
.mgc-marquee:hover .mgc-marquee-track { animation-play-state: paused; }
@keyframes mgc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mgc-marquee-item { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); font-size: .92rem; white-space: nowrap; opacity: .75; }

/* -------------------------------------------------------------------------
   Before/after slider (regenerative medicine / results)
------------------------------------------------------------------------- */
.mgc-ba-slider { position: relative; overflow: hidden; border-radius: 14px; --pos: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 20px 40px -12px rgba(0,0,0,.2); }
.mgc-ba-slider img { display: block; width: 100%; height: auto; }
.mgc-ba-before-wrap { position: absolute; inset: 0; width: var(--pos); overflow: hidden; }
.mgc-ba-before { width: 100%; max-width: none; }
.mgc-ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.4); }
.mgc-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.mgc-ba-label { position: absolute; top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(49,76,120,.75); padding: 5px 12px; border-radius: 4px; }
.mgc-ba-label.before { left: 14px; } .mgc-ba-label.after { right: 14px; }

/* -------------------------------------------------------------------------
   Testimonial spotlight
------------------------------------------------------------------------- */
.mgc-testimonial-quote { font-size: clamp(1.3rem, 1.6vw + 1rem, 1.8rem); font-weight: 400; font-style: italic; line-height: 1.5; color: var(--primary); max-width: 46ch; margin: 0 auto 22px; }
.mgc-testimonial-name { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; color: var(--text-medium); }
.mgc-stars { color: var(--pink); font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 18px; }

/* -------------------------------------------------------------------------
   Process steps / numbered pills
------------------------------------------------------------------------- */
.mgc-step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--primary); font-weight: 900; font-size: 1.1rem; margin-bottom: 16px; }

/* -------------------------------------------------------------------------
   Trust / compliance notice card
------------------------------------------------------------------------- */
.mgc-notice { border-left: 3px solid var(--accent); padding: 18px 22px; background: rgba(127,219,253,.08); border-radius: 4px; font-size: .86rem; line-height: 1.65; color: var(--text-medium); }
.mgc-notice strong { color: var(--primary); }

/* -------------------------------------------------------------------------
   Mobile sticky CTA bar
------------------------------------------------------------------------- */
.mgc-mobile-cta {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999999;
    background: var(--primary); box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}
.mgc-mobile-cta { display: flex; }
.mgc-mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem; }
.mgc-mcta-btn { background: var(--accent); color: var(--primary) !important; }
@media (min-width: 981px) { .mgc-mobile-cta { display: none !important; } }
body { padding-bottom: 0; }
@media (max-width: 980px) { body.et_fixed_nav .mgc-mobile-cta { display: flex; } }

/* -------------------------------------------------------------------------
   Ninja Forms restyle
------------------------------------------------------------------------- */
.nf-form-cont { border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 24px 48px -16px rgba(49,76,120,.22); padding: 40px 36px; position: relative; overflow: hidden; background: #fff; }
.nf-form-cont::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--pink), var(--accent)); background-size: 200% auto; animation: mgc-shimmer 4s linear infinite; }
@keyframes mgc-shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.nf-field-label label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.nf-field-element input, .nf-field-element textarea, .nf-field-element select {
    border: 1.5px solid #DDE6EF !important; border-radius: 8px !important; padding: 14px 16px !important;
    transition: border-color .2s, box-shadow .2s;
}
.nf-field-element input:focus, .nf-field-element textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(127,219,253,.18); outline: none; }
.nf-field-element input[type="submit"] {
    width: 100%; background: var(--primary) !important; color: #fff !important; border: none !important;
    border-radius: 6px !important; padding: 16px !important; font-weight: 700 !important; letter-spacing: .05em;
    text-transform: uppercase; font-size: .85rem !important; cursor: pointer; transition: transform .3s, box-shadow .3s;
}
.nf-field-element input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(49,76,120,.5); }
.nf-response-msg { background: var(--primary); color: #fff; border-left: 4px solid var(--accent); padding: 18px 20px; border-radius: 6px; }
.nf-error .nf-field-element input, .nf-error .nf-field-element textarea { border-color: #E53E3E !important; box-shadow: 0 0 0 3px rgba(229,62,62,.12); }

/* -------------------------------------------------------------------------
   Site header — dark utility bar (Book Now / Call, hidden on tablet/phone)
   above a sticky white bar with logo + hand-built nav. The nav's own styles
   live inline in the header code module (see victory_builder/build_theme_builder.py)
   — kept self-contained and deterministic rather than depending on Divi's
   native Menu module internals.
------------------------------------------------------------------------- */
.mgc-main-header.et_pb_section {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.mgc-top-bar .mgc-btn { border-radius: 5px; }

/* -------------------------------------------------------------------------
   Section background alternation helpers (used by code/section modules)
------------------------------------------------------------------------- */
.mgc-bg-tint { background-color: #F4F8FB; }

/* -------------------------------------------------------------------------
   Reduced motion guard
------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* -------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .mgc-hero-btns, .mgc-cta-btns { flex-direction: column; align-items: stretch; }
    .mgc-testimonial-quote { max-width: 100%; }
}
