/* ==========================================================================
   Ownzura site — main website + division sub-sites
   Division colours come from admin as CSS variables: --d1 (primary), --d2 (secondary)
   ========================================================================== */

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    /* One brand palette for the whole website (main pages + every division site) */
    --d1: #2563eb;
    --d2: #7c3aed;
}
.text-brand { color: var(--brand); }

body { font-family: 'Inter', system-ui, sans-serif; }

/* ---------- Buttons ---------- */
.btn-brand {
    display: inline-flex; align-items: center;
    background: var(--brand); color: #fff;
    padding: .65rem 1.25rem; border-radius: .75rem;
    font-weight: 600; font-size: .9rem;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }

.btn-outline {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--line); color: var(--ink); background: #fff;
    padding: .65rem 1.25rem; border-radius: .75rem; font-weight: 600; font-size: .9rem;
    transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

/* ---------- Main header ---------- */
.site-contactbar { color: #fff; font-size: .82rem; padding: .45rem 0; }
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-nav-link {
    display: inline-flex; align-items: center;
    padding: .55rem .85rem; border-radius: .6rem;
    font-size: .92rem; font-weight: 500; color: #334155;
    transition: color .2s, background .2s;
}
.site-nav-link:hover { color: var(--brand); background: #eff6ff; }
.site-nav-link.is-active { color: var(--brand); font-weight: 600; }

.mega-menu {
    position: absolute; top: calc(100% + 8px); left: 50%;
    width: 620px; transform: translate(-50%, 6px);
    background: #fff; border: 1px solid var(--line); border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .12);
    opacity: 0; visibility: hidden; transition: all .2s ease;
}
.mega-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.group:hover > .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-menu-right { left: auto; right: 0; transform: translateY(6px); }
.group:hover > .mega-menu-right { transform: translateY(0); }
.mega-item {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .75rem; border-radius: .75rem; transition: background .2s;
}
.mega-item:hover { background: #f8fafc; }
.mega-icon {
    flex: none; width: 38px; height: 38px; border-radius: .6rem;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--d1), var(--d2));
}

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .25s; }
.mobile-drawer-panel {
    position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw);
    background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease;
}
.mobile-drawer.is-open { pointer-events: auto; }
.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }

/* ---------- Sections & type ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
@media (max-width: 768px) { .section { padding: 3.5rem 0; } .container-pro { padding: 0 16px; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand);
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.section-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* ---------- Solution (division) boxes ---------- */
.sol-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 1.25rem;
    padding: 1.75rem; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sol-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--d1), var(--d2));
}
.sol-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 50px -12px rgba(15, 23, 42, .18); }
.sol-icon {
    width: 56px; height: 56px; border-radius: 1rem; display: grid; place-items: center;
    font-size: 1.4rem; color: #fff;
    background: linear-gradient(135deg, var(--d1), var(--d2));
    box-shadow: 0 10px 24px -8px var(--d1);
}
.sol-chip {
    display: inline-block; font-size: .72rem; font-weight: 500;
    padding: .25rem .6rem; border-radius: 999px;
    background: #f1f5f9; color: #475569;
}
.sol-link { color: var(--d1); font-weight: 600; font-size: .9rem; }
.sol-card:hover .sol-link i { transform: translateX(4px); }
.sol-link i { transition: transform .2s; }

/* ---------- Generic cards ---------- */
.card-soft {
    background: #fff; border: 1px solid var(--line); border-radius: 1rem;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(15, 23, 42, .18); }

.form-field {
    width: 100%; padding: .6rem .8rem; border: 1px solid #d1d5db; border-radius: .6rem;
    font-size: .9rem; background: #fff;
}
.form-field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.field-error { color: #dc2626; font-size: .75rem; margin-top: .25rem; }

.footer-social {
    width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
    background: #1e293b; color: #cbd5e1; transition: background .2s, color .2s;
}
.footer-social:hover { background: var(--brand); color: #fff; }

/* Quick connect buttons */
.quick-connect { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; }
.qc-btn {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-size: 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); transition: transform .2s;
}
.qc-btn:hover { transform: scale(1.08); }
.qc-whatsapp { background: #25D366; }
.qc-mail { background: #2563eb; }
@media (max-width: 768px) { .quick-connect { right: 14px; bottom: 14px; } .qc-btn { width: 48px; height: 48px; font-size: 19px; } }

/* ==========================================================================
   Division sub-site — same chrome and brand palette as the main site.
   ========================================================================== */
.dv { --dv-bg: #ffffff; --dv-ink: #0f172a; --dv-muted: #64748b; --dv-card: #ffffff; --dv-line: #e2e8f0; --dv-soft: #f8fafc; }
.dv { background: var(--dv-bg); color: var(--dv-ink); }


.dv-text-muted { color: var(--dv-muted); }
.dv-accent { color: var(--d1); }
.dv-gradient-text {
    background: linear-gradient(90deg, var(--d1), var(--d2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dv-soft { background: color-mix(in srgb, var(--d1) 4%, var(--dv-soft)); }
.dv-soft-accent { background: color-mix(in srgb, var(--d1) 10%, #fff); color: var(--d1); font-weight: 600; }

/* Division header (extends .site-header) */
.dv-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--d1), var(--d2));
}
.dv-brand-mark {
    flex: none; width: 40px; height: 40px; border-radius: .7rem; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--d1), var(--d2));
    box-shadow: 0 8px 18px -8px var(--d1);
}
.dv-nav-link {
    position: relative; display: inline-flex; align-items: center; padding: .55rem .75rem; border-radius: .6rem;
    font-size: .9rem; font-weight: 500; color: #334155; transition: color .2s, background .2s; white-space: nowrap;
}
.dv-nav-link:hover { color: var(--d1); background: color-mix(in srgb, var(--d1) 8%, #fff); }
.dv-nav-link.is-active { color: var(--d1); font-weight: 600; }
.dv-nav-link.is-active::after {
    content: ''; position: absolute; left: .75rem; right: .75rem; bottom: -1px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--d1), var(--d2));
}

.dv-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; width: 340px; padding: .4rem; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .14); opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}
.dv-dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.group:hover > .dv-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dv-dropdown a { display: flex; gap: .65rem; align-items: center; padding: .5rem .6rem; border-radius: .6rem; font-size: .88rem; color: var(--ink); }
.dv-dropdown a:hover { background: color-mix(in srgb, var(--d1) 8%, #fff); }

.btn-dv {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.25rem; border-radius: .75rem; font-weight: 600; font-size: .9rem; color: #fff;
    background: linear-gradient(135deg, var(--d1), var(--d2));
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-dv:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px var(--d1); filter: brightness(1.05); }
.btn-dv-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.25rem; border-radius: .75rem; font-weight: 600; font-size: .9rem;
    color: var(--dv-ink); border: 1.5px solid var(--dv-line); background: transparent; transition: border-color .2s, color .2s;
}
.btn-dv-ghost:hover { border-color: var(--d1); color: var(--d1); }

/* Division hero */
.dv-hero {
    position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem;
    background: linear-gradient(135deg, #eff6ff, #ffffff 50%, #eef2ff);
}
.dv-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 300px at 85% 10%, color-mix(in srgb, var(--d2) 22%, transparent), transparent 70%),
        radial-gradient(700px 360px at 10% 90%, color-mix(in srgb, var(--d1) 18%, transparent), transparent 70%);
}
.dv-hero-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--dv-line) 1px, transparent 1px), linear-gradient(90deg, var(--dv-line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.dv-hero-sm { padding: 3.5rem 0 3rem; }
.dv-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    color: var(--d1); background: color-mix(in srgb, var(--d1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--d1) 25%, transparent);
}

.dv-card {
    background: var(--dv-card); border: 1px solid var(--dv-line); border-radius: 1.1rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.dv-card:hover, .dv-card.is-hover:hover {
    transform: translateY(-5px); border-color: color-mix(in srgb, var(--d1) 45%, transparent);
    box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--d1) 55%, transparent);
}
.dv-card-top { position: relative; overflow: hidden; }
.dv-card-top::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--d1), var(--d2)); }
.dv-icon {
    width: 48px; height: 48px; border-radius: .85rem; display: grid; place-items: center; font-size: 1.15rem;
    color: var(--d1); background: color-mix(in srgb, var(--d1) 12%, transparent);
}
.dv-icon-solid { color: #fff; background: linear-gradient(135deg, var(--d1), var(--d2)); }

.dv-stat-value { font-size: 1.6rem; font-weight: 800; }
.dv-chip {
    display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 500;
    background: #fff; border: 1px solid color-mix(in srgb, var(--d1) 20%, var(--dv-line)); color: var(--dv-ink);
}
.dv-step-num {
    width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
    font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--d1), var(--d2));
}
.dv-cta {
    border-radius: 1.5rem; padding: 3rem; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--d1), var(--d2));
}
@media (max-width: 640px) { .dv-cta { padding: 2rem 1.5rem; } }

.dv-prose { color: var(--dv-ink); line-height: 1.8; }
.dv-prose p { margin-bottom: 1rem; color: var(--dv-muted); }
.dv-prose h2, .dv-prose h3 { font-weight: 700; margin: 1.5rem 0 .75rem; color: var(--dv-ink); }
.dv-prose h2 { font-size: 1.4rem; } .dv-prose h3 { font-size: 1.15rem; }
.dv-prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; color: var(--dv-muted); }
.dv-prose ol { list-style: decimal; padding-left: 1.25rem; margin-bottom: 1rem; color: var(--dv-muted); }
.dv-prose a { color: var(--d1); text-decoration: underline; }

/* Empty states on division listing pages */
.dv-empty {
    text-align: center; padding: 3.5rem 1.5rem; border-radius: 1.25rem;
    border: 1.5px dashed color-mix(in srgb, var(--d1) 30%, var(--dv-line));
    background: color-mix(in srgb, var(--d1) 3%, #fff);
}

/* ---------- FAQ accordion (every page) ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 1rem; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: 0 14px 30px -18px rgba(37, 99, 235, .45); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-toggle {
    flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: .75rem;
    color: var(--brand); background: #eff6ff; transition: transform .25s, background .25s, color .25s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); color: #fff; background: linear-gradient(135deg, var(--d1), var(--d2)); }
.faq-a { padding: 0 1.25rem 1.2rem; color: var(--muted); line-height: 1.75; }

/* Home hero: "Our Expertise" service logos */
.expertise-tile { display: block; text-align: center; padding: .75rem .25rem; border-radius: .9rem; transition: background .2s; }
.expertise-tile:hover { background: #f8fafc; }


/* Home "What are you looking for?" boxes: service logo instead of the icon */
.sol-logo { height: 46px; width: auto; align-self: flex-start; filter: drop-shadow(0 8px 14px rgba(15, 23, 42, .18)); transition: transform .25s ease; }
.sol-card:hover .sol-logo { transform: translateX(3px); }

/* ==========================================================================
   Mobile-first UX: less scrolling, thumb-friendly actions
   ========================================================================== */
@media (min-width: 768px) { .section { padding: 4.5rem 0; } }

@media (max-width: 767px) {
    .section { padding: 2.75rem 0; }
    .section-sm { padding: 2rem 0; }
    .section-title { font-size: 1.6rem; }
    .section-lead { font-size: .95rem; line-height: 1.6; }
    .dv-hero { padding: 2.5rem 0 2.25rem; }
    .dv-hero-sm { padding: 2rem 0 1.75rem; }
    .dv-cta { padding: 1.75rem 1.25rem; border-radius: 1.25rem; }
    .sol-card { padding: 1.4rem; }

    /* Swipeable rows instead of long vertical stacks; the next card peeks in */
    .m-swipe {
        display: flex !important; gap: 14px !important; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
        margin-left: -16px; margin-right: -16px; padding: 4px 16px 16px; scroll-padding-left: 16px;
    }
    .m-swipe::-webkit-scrollbar { display: none; }
    .m-swipe > * { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; }
    .m-swipe.m-swipe-sm > * { flex-basis: 40%; max-width: 170px; }
    .m-swipe.m-swipe-md > * { flex-basis: 62%; }

    .m-hide { display: none !important; }

    /* Sticky bottom action bar replaces the floating bubbles on phones */
    body { padding-bottom: 64px; }
    .quick-connect { display: none; }
}
@media (min-width: 768px) { .m-only { display: none !important; } }

.m-swipe-hint { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }

.mobile-actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}
.mobile-actionbar a, .mobile-actionbar button {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    height: 46px; border-radius: .8rem; font-weight: 600; font-size: .85rem;
}
.mab-call { background: #eff6ff; color: var(--brand); }
.mab-wa { background: #dcfce7; color: #15803d; }
.mab-consult { color: #fff; background: linear-gradient(135deg, var(--d1), var(--d2)); }

/* Footer columns collapse on phones */
.footer-col > summary { list-style: none; }
.footer-col > summary::-webkit-details-marker { display: none; }
.footer-col > summary .fc-chevron { display: none; }
@media (max-width: 767px) {
    .footer-col { border-bottom: 1px solid #1e293b; }
    .footer-col > summary { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; cursor: pointer; }
    .footer-col > summary h3 { margin: 0 !important; }
    .footer-col > summary .fc-chevron { display: inline-block; transition: transform .2s; }
    .footer-col[open] > summary .fc-chevron { transform: rotate(180deg); }
    .footer-col > ul { padding-bottom: 1rem; }
}
@media (min-width: 768px) { .footer-col > summary { pointer-events: none; } }

/* FAQ: first five questions, the rest on request */
.faq-list:not(.is-expanded) > .faq-item:nth-child(n+6) { display: none; }

/* Older pages use .section-pro (100–120px padding) — align with the rest of the site */
.section-pro { padding: 4.5rem 0; }
@media (max-width: 767px) { .section-pro { padding: 2.75rem 0; } }


/* <details data-m-collapse open>: open on desktop, collapsed (tap to open) on phones */
.m-collapse > summary::-webkit-details-marker { display: none; }
.m-collapse[open] .m-collapse-chevron { transform: rotate(180deg); }
.m-collapse-chevron { transition: transform .2s; }
@media (min-width: 768px) { .m-collapse > summary { pointer-events: none; } }
