/* DigiBizPH public site visual system. Keep after each page's legacy styles. */
:root {
    --db-ink: #101d35;
    --db-muted: #5d6b80;
    --db-blue: #1558bd;
    --db-blue-deep: #0c397e;
    --db-amber: #f5b643;
    --db-paper: #f4f7fb;
    --db-line: #dce5f0;
    --db-radius: 24px;
}

html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body.site-home, body.site-interior, body.site-project {
    color: var(--db-ink);
    font-family: 'Exo', system-ui, sans-serif;
    background: var(--db-paper);
    overflow-x: hidden;
}
body.site-home a, body.site-interior a, body.site-project a { text-underline-offset: 3px; }
body.site-home h1, body.site-home h2, body.site-home h3,
body.site-interior h1, body.site-interior h2, body.site-interior h3,
body.site-project h1, body.site-project h2, body.site-project h3 {
    letter-spacing: -.035em;
    line-height: 1.13;
}
body.site-home h2, body.site-interior h2, body.site-project h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); }
body.site-home .container, body.site-interior .container, body.site-project .container { max-width: 1180px; }
body.site-home section:not(#home), body.site-interior section:not(.page-header), body.site-project section:not(.hero-section) { padding-top: clamp(72px, 8vw, 112px) !important; padding-bottom: clamp(72px, 8vw, 112px) !important; }
body.site-home .lazy-load, body.site-interior .lazy-load, body.site-project .lazy-load { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--db-amber) !important; outline-offset: 3px; }

/* Shared primary navigation */
body.site-home #navbar, .site-nav {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    right: 16px !important;
    width: calc(100% - 32px) !important;
    max-width: 1220px;
    margin: 0 auto;
    padding: 8px 10px !important;
    border: 1px solid rgba(215, 226, 240, .95);
    border-radius: 20px;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 16px 48px rgba(8, 36, 79, .13);
    backdrop-filter: blur(18px);
    z-index: 1100;
}
body.site-home #navbar .container, .site-nav .container { max-width: 1180px; }
body.site-home #navbar .navbar-brand img, .site-nav .navbar-brand img { height: 42px !important; width: auto; max-width: 190px; object-fit: contain; }
body.site-home #navbar .nav-link, .site-nav .nav-link {
    color: var(--db-ink) !important;
    font-size: .88rem;
    font-weight: 700;
    padding: .7rem .8rem;
    border-radius: 11px;
}
body.site-home #navbar .nav-link:hover, .site-nav .nav-link:hover,
body.site-home #navbar .nav-link.active, .site-nav .nav-link.active { color: var(--db-blue) !important; background: #edf4ff; }
body.site-home #navbar .nav-contact, .site-nav .nav-contact {
    color: #fff !important;
    background: var(--db-blue);
    padding: .75rem 1.15rem;
    margin-left: .35rem;
    border-radius: 12px;
}
body.site-home #navbar .nav-contact:hover, .site-nav .nav-contact:hover { color: #fff !important; background: var(--db-blue-deep); }
body.site-home #navbar .navbar-toggler, .site-nav .navbar-toggler { border: 0; box-shadow: none; padding: .45rem .6rem; }
body.site-home #navbar .navbar-toggler-icon, .site-nav .navbar-toggler-icon { filter: none !important; }

/* Home hero: existing services and reviews remain in place. */
body.site-home #home {
    min-height: min(790px, 100svh) !important;
    padding: 150px 0 86px !important;
    text-align: left;
    background: radial-gradient(circle at 84% 15%, #dbeaff 0, transparent 29%),
                radial-gradient(circle at 8% 85%, #eaf4ff 0, transparent 33%),
                linear-gradient(145deg, #f8fbff 0%, #eaf1fa 100%) !important;
    color: var(--db-ink);
    overflow: hidden;
}
body.site-home #home::before {
    z-index: 0;
    background: linear-gradient(rgba(24, 76, 141, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 76, 141, .045) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
    opacity: 1;
}
body.site-home #home .container { max-width: 1180px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(370px, .88fr); align-items: center; gap: clamp(36px, 6vw, 88px); width: 100%; }
.hero-eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--db-blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.hero-eyebrow::before, .section-kicker::before { content: ''; width: 22px; height: 2px; background: var(--db-amber); }
body.site-home #home h1 {
    max-width: 750px;
    margin: 22px 0 24px;
    color: var(--db-ink) !important;
    font-size: clamp(2.9rem, 5.3vw, 5.5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.06em;
}
body.site-home #home h1 span { color: var(--db-blue); }
body.site-home #home .hero-lead { max-width: 600px; color: #4d607b; font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
body.site-home .btn-primary, body.site-interior .btn-primary, body.site-project .btn-primary,
body.site-home .hero-primary {
    background: var(--db-blue); border-color: var(--db-blue); color: #fff;
}
body.site-home .btn-primary:hover, body.site-interior .btn-primary:hover, body.site-project .btn-primary:hover,
body.site-home .hero-primary:hover { background: var(--db-blue-deep); border-color: var(--db-blue-deep); color: #fff; }
body.site-home .btn, body.site-interior .btn, body.site-project .btn { font-weight: 700; border-radius: 12px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
body.site-home .btn:hover, body.site-interior .btn:hover, body.site-project .btn:hover { transform: translateY(-2px); }
.hero-actions .btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: .8rem 1.35rem; }
.hero-secondary { border: 1px solid #bdcee3; color: var(--db-ink); background: #fff; }
.hero-secondary:hover { border-color: var(--db-blue); color: var(--db-blue); }
.hero-reviews { margin-top: 28px; min-height: 48px; }
.hero-visual { position: relative; min-height: 475px; display: grid; place-items: center; }
.hero-orbit { position: absolute; width: 100%; max-width: 510px; aspect-ratio: 1; border: 1px solid #c7d8ed; border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ''; position: absolute; inset: 10%; border: 1px solid #c7d8ed; border-radius: 50%; }
.hero-orbit::after { inset: 22%; }
.hero-system-card {
    position: relative;
    z-index: 1;
    width: min(100%, 450px);
    padding: 24px;
    border: 1px solid #d6e2f0;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 30px 70px rgba(15, 66, 139, .19);
    transform: rotate(-3deg);
}
.hero-card-top { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--db-line); }
.hero-card-top img { width: 48px; height: 48px; object-fit: contain; }
.hero-card-top strong { display: block; font-size: 1rem; }
.hero-card-top small { color: var(--db-muted); }
.hero-live { margin-left: auto; color: #087f68; background: #def8ed; border-radius: 100px; padding: 5px 9px; font-weight: 800; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-card-title { margin: 22px 0 14px; font-size: .7rem; color: var(--db-muted); letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.hero-module { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border: 1px solid var(--db-line); border-radius: 15px; margin-top: 10px; background: #f8fbff; }
.hero-module i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e4efff; color: var(--db-blue); font-size: 1rem; }
.hero-module strong { display: block; font-size: .83rem; }
.hero-module small { display: block; color: var(--db-muted); font-size: .7rem; }
.hero-module .hero-arrow { margin-left: auto; color: #a4b4c7; }
.hero-float { position: absolute; z-index: 2; padding: 11px 15px; border-radius: 13px; background: var(--db-ink); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 12px 30px rgba(9, 28, 57, .22); }
.hero-float--top { top: 15px; right: -12px; }
.hero-float--bottom { bottom: 14px; left: -15px; background: #fff; color: var(--db-ink); }
.hero-float i { color: var(--db-amber); margin-right: 7px; }

/* Home sections */
body.site-home #about, body.site-home #services, body.site-home #faq { background: #fff !important; }
body.site-home #clients, body.site-home #specialties, body.site-home #socials { background: var(--db-paper) !important; }
body.site-home #about h2 { max-width: 620px; margin-bottom: 22px; }
body.site-home #about p { color: #4d5e75; line-height: 1.8; }
body.site-home #about .card { box-shadow: 0 26px 60px rgba(11, 41, 85, .14) !important; border-radius: var(--db-radius) !important; }
body.site-home #about .play-overlay { animation: none; background: var(--db-blue); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
body.site-home #socials .social-grid, body.site-home #socials .social-icons { gap: 16px; }
body.site-home #socials .social-icon, body.site-home #socials .social-item { background: #fff; border: 1px solid var(--db-line); border-radius: 18px; padding: 20px; color: var(--db-ink); }
body.site-home #clients .client-card, body.site-home #services .card {
    height: 100%; border: 1px solid var(--db-line) !important; border-radius: 22px !important;
    background: #fff; box-shadow: 0 12px 32px rgba(18, 57, 104, .06) !important;
    overflow: hidden;
}
body.site-home #clients .client-card:hover, body.site-home #services .card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(18, 57, 104, .12) !important; }
body.site-home #clients .client-card img { max-height: 110px; object-fit: contain; }
body.site-home #clients .client-card p, body.site-home #services .card-text { color: var(--db-muted); line-height: 1.65; }
body.site-home #services .card-img-top { height: 195px; object-fit: cover; background: #eaf1fa; }
body.site-home #services .card-img-top:hover { transform: none; }
body.site-home #services .card-body { padding: 26px; }
body.site-home #specialties .specialty-box { height: 100%; padding: 28px !important; border: 1px solid var(--db-line); border-radius: 18px !important; background: #fff; box-shadow: 0 10px 28px rgba(18, 57, 104, .05); }
body.site-home #specialties .specialty-box i { color: var(--db-blue); }
body.site-home #faq .accordion-item { border: 1px solid var(--db-line); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
body.site-home #faq .accordion-button { padding: 20px 22px; font-weight: 700; color: var(--db-ink); box-shadow: none; }
body.site-home #faq .accordion-button:not(.collapsed) { background: #edf4ff; color: var(--db-blue-deep); }
body.site-home #contact { background: radial-gradient(circle at 75% 20%, #1c66c1 0, transparent 35%), linear-gradient(135deg, #091d43, #104c9b) !important; }
body.site-home #contact h3 { max-width: 780px; margin-left: auto; margin-right: auto; font-size: clamp(2.2rem, 4vw, 3.8rem); }
body.site-home #contact p { max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.75; }
body.site-home #contact .btn { min-height: 52px; padding: .85rem 1.45rem; }

/* Interior pages: lists, search, articles and client detail pages. */
body.site-interior .page-header {
    position: relative; overflow: hidden; padding: 170px 0 95px !important;
    background: radial-gradient(circle at 78% 22%, rgba(50,131,230,.55), transparent 32%), linear-gradient(135deg, #0b234b, #0e4b99);
    text-align: left;
}
body.site-interior .page-header::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 42px 42px; }
body.site-interior .page-header .container { position: relative; z-index: 1; }
body.site-interior .page-header h1, body.site-interior .page-header h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); max-width: 900px; color: #fff; }
body.site-interior .page-header p { max-width: 730px; color: #dceaff; font-size: 1.06rem; line-height: 1.7; }
.article-eyebrow { margin-bottom: 16px; color: #b9d6ff !important; font-size: .78rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
body.site-interior .page-header img { max-width: 270px; max-height: 64px; object-fit: contain; margin: 0 0 22px; }
body.site-interior .page-header img { filter: brightness(0) invert(1); }
body.site-interior .page-header .d-flex.justify-content-center { justify-content: flex-start !important; }
body.site-interior section.bg-light { background: var(--db-paper) !important; }
body.site-interior .form-control, body.site-interior .form-select { min-height: 52px; border: 1px solid #cbd9e9; border-radius: 12px; padding: 12px 16px; box-shadow: none; }
body.site-interior .form-control:focus, body.site-interior .form-select:focus { border-color: var(--db-blue); box-shadow: 0 0 0 4px rgba(21,88,189,.11); }
body.site-interior #clientSearch { max-width: 520px; width: 100% !important; }
body.site-interior .directory-card { border: 1px solid var(--db-line); border-radius: 22px !important; background: #fff; box-shadow: 0 18px 40px rgba(15, 52, 103, .07) !important; text-align: left !important; }
body.site-interior .client-card { border: 1px solid var(--db-line); border-radius: 22px !important; box-shadow: 0 12px 30px rgba(15, 52, 103, .07) !important; text-align: left !important; }
body.site-interior .client-card img { height: 110px; width: 100%; object-fit: contain; object-position: left; }
body.site-interior .client-card p { color: var(--db-muted); }
body.site-interior .client-card .btn { align-self: flex-start; margin-top: auto !important; }
body.site-interior .table { --bs-table-bg: transparent; border-color: var(--db-line); margin: 16px 0; }
body.site-interior .table thead { --bs-table-bg: #102b58; --bs-table-color: #fff; }
body.site-interior .table td, body.site-interior .table th { padding: 15px 16px; vertical-align: middle; }
body.site-interior .table tbody tr:hover { background: #f2f7ff; }
body.site-interior .card { border-color: var(--db-line) !important; border-radius: 22px !important; overflow: hidden; }
body.site-interior .card-body { line-height: 1.75; }
body.site-interior .section-padding .card > .card-img-top { width: 100%; max-height: 440px !important; object-fit: cover; background: #e4ebf5; }
body.site-interior .section-padding .card > .card-body { padding: clamp(24px, 5vw, 56px) !important; }
body.site-interior footer, body.site-project footer { background: #0b1830 !important; color: #c7d4e6; }
body.site-interior footer a, body.site-project footer a { color: #fff; }

body.site-project .hero-section {
    min-height: 78vh !important;
    padding: 165px 20px 95px !important;
    background: radial-gradient(circle at 78% 22%, #216cc6 0, transparent 34%), linear-gradient(135deg, #0a2149, #0d4389) !important;
    overflow: hidden;
}
body.site-project .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
body.site-project .hero-section h1 { max-width: 850px; margin: 0 auto 18px; font-size: clamp(2.5rem, 4.8vw, 4.8rem); text-shadow: none; }
body.site-project .hero-section p { max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.7; text-shadow: none; }
body.site-project .hero-logo { width: auto !important; max-width: min(230px, 60%) !important; max-height: 120px; object-fit: contain; padding: 12px; background: #fff; border-radius: 16px !important; box-shadow: 0 16px 36px rgba(0,0,0,.14) !important; }
body.site-project section .container { max-width: 1120px; }
body.site-project .feature-card, body.site-project .card { border-radius: 20px !important; }
body.site-project section p { line-height: 1.75; }

body.site-home .footer-section, body.site-project .footer-section { background: #0b1830 !important; }
body.site-home footer p, body.site-project footer p { color: #c7d4e6; line-height: 1.75; }
body.site-home .footer-link, body.site-project .footer-link { color: #dbe6f5; }
body.site-home footer h6, body.site-project footer h6 { font-size: 1rem; }
body.site-home footer hr, body.site-project footer hr { border-color: #41516e !important; }

@media (max-width: 991px) {
    body.site-home #navbar .navbar-collapse, .site-nav .navbar-collapse { padding: 14px 0 6px; }
    body.site-home #navbar .navbar-nav, .site-nav .navbar-nav { align-items: stretch !important; }
    body.site-home #navbar .nav-link, .site-nav .nav-link { padding: 12px 14px; }
    body.site-home #navbar .nav-contact, .site-nav .nav-contact { margin: 7px 0 0; text-align: center; }
    .home-hero-grid { grid-template-columns: 1fr; }
    body.site-home #home { padding-top: 145px !important; }
    .hero-visual { min-height: 430px; }
}
@media (max-width: 600px) {
    body.site-home #navbar, .site-nav { top: 10px !important; left: 10px !important; right: 10px !important; width: calc(100% - 20px) !important; border-radius: 16px; }
    body.site-home #navbar .navbar-brand img, .site-nav .navbar-brand img { height: 34px !important; }
    body.site-home #home { padding: 130px 0 70px !important; min-height: auto !important; }
    body.site-home #home h1 { font-size: clamp(2.6rem, 10vw, 3.7rem); }
    .hero-visual { min-height: 385px; }
    .hero-system-card { width: calc(100% - 24px); padding: 18px; transform: none; }
    .hero-orbit { width: 92%; }
    .hero-float--top { right: 0; top: 0; }
    .hero-float--bottom { left: 0; bottom: 0; }
    body.site-interior .page-header { padding: 145px 0 72px !important; }
    body.site-interior .directory-card { padding: 18px !important; }
    body.site-interior .table td, body.site-interior .table th { padding: 11px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Accessible 2 second product carousel */
.hero-carousel { width: 100%; }
.hero-carousel-stage { min-height: 410px; }
.hero-slide[hidden] { display: none !important; }
.hero-slide.is-active { animation: hero-slide-in .3s ease both; }
.hero-product-logo { display: block; width: auto; height: 72px; max-width: min(100%, 430px); margin: 0 0 18px; object-fit: contain; object-position: left center; }
.hero-carousel-controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.hero-carousel-controls > button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--db-line); border-radius: 50%; background: #fff; color: var(--db-ink); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.hero-carousel-controls > button:hover { border-color: var(--db-blue); background: var(--db-blue); color: #fff; }
.hero-carousel-dots { display: flex; align-items: center; gap: 7px; margin: 0 3px; }
.hero-carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #b9c7d9; transition: width .2s ease, background .2s ease; }
.hero-carousel-dots button[aria-pressed="true"] { width: 24px; background: var(--db-blue); }
@keyframes hero-slide-in { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 991.98px) { .hero-carousel-stage { min-height: 0; } .hero-product-logo { margin-left: auto; margin-right: auto; object-position: center; } }
@media (max-width: 575.98px) { .hero-carousel-controls { justify-content: center; } .hero-product-logo { height: 60px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active { animation: none; } .hero-carousel-controls button, .hero-carousel-dots button { transition: none; } }
/* Lift hero artwork to use the empty upper-right space */
@media (min-width: 992px) {
    body.site-home #home .hero-system-card { transform: translateY(-140px) rotate(-3deg); }
    body.site-home #home .hero-float { transform: translateY(-140px); }
}