*,*::before,*::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }


/* ========== GRADIENT TEXT ========== */
.text-gradient {
    background: linear-gradient(135deg, #2b64ca, #2356b0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
    width: 56px; height: 4px;
    background: linear-gradient(90deg, #2b64ca, #2356b0);
    border-radius: 4px;
    margin-bottom: 16px;
}

/* ========== SECTION PILL ========== */
.section-pill {
    display: inline-block;
    background: #eff4fd; color: #2356b0;
    border: 1px solid #bcd4f0;
    padding: 4px 14px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 12px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #2b64ca, #2356b0);
    color: #fff; padding: 14px 28px; border-radius: 10px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    border: 2px solid transparent;
    transition: all .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(43,100,202,.35); }

.btn-outline-dark {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff; padding: 14px 28px; border-radius: 10px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    border: 2px solid rgba(255,255,255,.25);
    transition: all .25s ease;
}
.btn-outline-dark:hover { border-color: #2b64ca; color: #2b64ca; transform: translateY(-2px); }

/* Light hero variant */
.btn-outline-light {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #0f172a; padding: 14px 28px; border-radius: 10px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    border: 2px solid #e2e8f0;
    transition: all .25s ease;
}
.btn-outline-light:hover { border-color: #2b64ca; color: #2356b0; background: #eff4fd; transform: translateY(-2px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #2356b0; padding: 13px 28px; border-radius: 10px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    border: 2px solid #bcd4f0;
    transition: all .25s ease;
}
.btn-outline:hover { background: #eff4fd; border-color: #2b64ca; transform: translateY(-2px); }

/* ========== NAVBAR ========== */
/* Initial: over white hero → dark text */
#navbar { transition: all .3s ease; }
#navbar .nav-link  { color: #475569; }
#navbar .nav-link:hover { color: #2b64ca; }
#navbar .logo-text { color: #0f172a; }
#navbar .logo-sub  { color: #94a3b8; }

/* Scrolled: white bg, dark text */
#navbar.nav-scrolled {
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
}
#navbar.nav-scrolled .nav-link  { color: #475569; }
#navbar.nav-scrolled .nav-link:hover { color: #2356b0; }
#navbar.nav-scrolled .logo-text { color: #0f172a; }
#navbar.nav-scrolled .logo-sub  { color: #94a3b8; }

/* Mobile nav bg always solid */
#mobile-nav { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
#mobile-nav.open { max-height: 480px; }

/* Burger */
.burger-line { display: block; width: 20px; height: 2px; border-radius: 2px; transition: all .3s ease; }
#navbar .burger-line { background: #0f172a; }
#navbar.nav-scrolled .burger-line { background: #0f172a; }

/* ========== CARDS ========== */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: all .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.09); }

.card-featured {
    background: #0f172a;
    border: 2px solid #2b64ca;
    border-radius: 18px;
    transition: all .3s ease;
}
.card-featured:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(43,100,202,.2); }

/* ========== ICON CIRCLES ========== */
.icon-box {
    width: 52px; height: 52px;
    background: #eff4fd;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .25s ease;
}
.icon-box:hover, .group:hover .icon-box { background: #dce8f8; }

/* Dark variant — used in dark-bg sections */
.icon-box-dark {
    width: 52px; height: 52px;
    background: rgba(43,100,202,.1);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .25s ease;
}
.icon-box-dark:hover, .group:hover .icon-box-dark { background: rgba(43,100,202,.18); }

/* ========== SCROLL REVEAL ========== */
.reveal      { opacity:0; transform: translateY(28px);  transition: opacity .65s ease, transform .65s ease; }
.reveal-left { opacity:0; transform: translateX(-30px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right{ opacity:0; transform: translateX(30px);  transition: opacity .65s ease, transform .65s ease; }
.reveal.show, .reveal-left.show, .reveal-right.show { opacity:1; transform: none; }

.delay-100 { transition-delay: .1s }
.delay-200 { transition-delay: .2s }
.delay-300 { transition-delay: .3s }
.delay-400 { transition-delay: .4s }

/* ========== FAQ ========== */
.faq-body    { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.faq-body.open { max-height: 320px; }
.faq-chevron { transition: transform .3s ease; }
.faq-chevron.rotated { transform: rotate(180deg); }

/* ========== ANIMATIONS ========== */
@keyframes pulse-dot { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:.5} }
.pulse-dot { animation: pulse-dot 2s infinite; }

@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }
.bob { animation: bob 1.7s infinite; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #2b64ca; border-radius: 4px; }

/* ========== INPUTS ========== */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2b64ca !important;
    box-shadow: 0 0 0 3px rgba(43,100,202,.12);
}

/* ========== STATS STRIP ========== */
.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

/* ========== TESTIMONIAL CARD ========== */
.testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.1); }

/* Dark variant */
.testimonial-card-dark {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    transition: all .3s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.testimonial-card-dark:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }

/* Dark section pill */
.section-pill-dark {
    display: inline-block;
    background: rgba(43,100,202,.12); color: #2b64ca;
    border: 1px solid rgba(43,100,202,.25);
    padding: 4px 14px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 12px;
}

/* ========== PROBLEM PILL ========== */
.problem-row {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 14px; padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 14px;
}

/* ========== SOLUTION ROW ========== */
.solution-row {
    display: flex; align-items: center; gap: 14px;
}

/* ========== PAGE CONTENT TYPOGRAPHY (singular.php) ========== */
.page-content { color: #475569; font-size: 15px; line-height: 1.85; }
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: #0f172a; font-weight: 800; line-height: 1.25;
    margin-top: 2em; margin-bottom: .6em;
}
.page-content > h1:first-child,
.page-content > h2:first-child { margin-top: 0; }
.page-content h1 { font-size: 1.75rem; }
.page-content h2 { font-size: 1.25rem; padding-bottom: .5em; border-bottom: 1px solid #e2e8f0; }
.page-content h3 { font-size: 1.05rem; }
.page-content h4 { font-size: 1rem; color: #334155; }
.page-content p { margin-bottom: 1.2em; }
.page-content ul,
.page-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .45em; }
.page-content a { color: #2b64ca; text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: #2356b0; }
.page-content strong { color: #1e293b; font-weight: 700; }
.page-content em { font-style: italic; }
.page-content blockquote {
    border-left: 4px solid #2b64ca; background: #eff4fd;
    margin: 1.75em 0; padding: 1em 1.25em;
    border-radius: 0 10px 10px 0; color: #334155; font-style: italic;
}
.page-content hr { border: none; border-top: 1px solid #e2e8f0; margin: 2em 0; }
.page-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 14px; }
.page-content th,
.page-content td { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; }
.page-content th { background: #f8fafc; font-weight: 700; color: #1e293b; }
.page-content tr:nth-child(even) td { background: #f8fafc; }
.page-content code {
    background: #f1f5f9; color: #e11d48; padding: 2px 6px;
    border-radius: 5px; font-size: .875em; font-family: monospace;
}
.page-content pre {
    background: #1e293b; color: #e2e8f0; padding: 1.25em 1.5em;
    border-radius: 12px; overflow-x: auto; margin-bottom: 1.5em; font-size: 13px;
}
.page-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.page-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5em 0; }

/* ========== GALLERY PAGE ========== */
.gallery-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    display: block;
}
.gallery-item { overflow: hidden; border-radius: 16px; position: relative; cursor: zoom-in; }
.gallery-item:hover .gallery-img { transform: scale(1.06); }
.gallery-item .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.75) 0%, transparent 50%);
    opacity: 0; transition: opacity .35s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay-text {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 18px 20px; transform: translateY(8px);
    transition: transform .35s;
}
.gallery-item:hover .overlay-text { transform: translateY(0); }
.gallery-item::after {
    content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 12px; right: 14px;
    color: rgba(255,255,255,.7); font-size: 14px;
    opacity: 0; transition: opacity .3s;
    pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ---- Lightbox ---- */
#lightbox {
    display: none; position: fixed; inset: 0; z-index: 300;
    align-items: center; justify-content: center; padding: 16px;
}
#lightbox.lb-open { display: flex; }
#lb-backdrop {
    position: absolute; inset: 0;
    background: rgba(2,6,23,.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#lb-container {
    position: relative; z-index: 1;
    max-width: min(92vw, 1140px);
    display: flex; flex-direction: column; align-items: center;
    animation: lbIn .28s cubic-bezier(.34,1.18,.64,1);
}
@keyframes lbIn {
    from { opacity: 0; transform: scale(.93); }
    to   { opacity: 1; transform: none; }
}
#lb-img-wrap { position: relative; line-height: 0; border-radius: 14px; overflow: hidden; }
#lb-img {
    display: block; max-width: 100%; max-height: 80vh;
    object-fit: contain; border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0,0,0,.8);
    transition: opacity .22s ease;
}
#lb-spinner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15,23,42,.5); border-radius: 14px;
}
.lb-spin {
    width: 38px; height: 38px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: #f97316; border-radius: 50%;
    animation: lbSpin .7s linear infinite;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }
#lb-caption {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 2px 0; width: 100%;
}
#lb-close {
    position: fixed; top: 18px; right: 18px; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.15);
    color: #fff; font-size: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s;
}
#lb-close:hover { background: #f97316; border-color: #f97316; }
#lb-prev, #lb-next {
    position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.15);
    color: #fff; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
#lb-prev { left: 14px; }
#lb-next { right: 14px; }
#lb-prev:hover, #lb-next:hover { background: #f97316; border-color: #f97316; }
#lb-prev:disabled, #lb-next:disabled { opacity: .25; pointer-events: none; }
@media (max-width: 640px) {
    #lb-prev { left: 6px; width: 40px; height: 40px; }
    #lb-next { right: 6px; width: 40px; height: 40px; }
    #lb-img { max-height: 70vh; }
}
