/* ============================================================
   Jay Digital — Global Stylesheet
   Rebrand the whole site by editing the variables below.
   ============================================================ */

:root {
    --primary-color: #2547f4;      /* Cobalt — actions, links, emphasis */
    --primary-dark: #1a37c8;       /* Hover state for primary */
    --secondary-color: #0a1633;    /* Deep ink navy — dark sections, headings */
    --accent-color: #00d5a0;       /* Signal green — growth accents */
    --dark-color: #0a1633;
    --light-color: #f4f6fc;        /* Cool light section background */
    --white-color: #ffffff;
    --text-color: #2a3040;
    --muted-color: #5d6678;
    --border-color: #e3e8f4;

    --font-display: "Manrope", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(10, 22, 51, 0.06);
    --shadow-md: 0 10px 30px rgba(10, 22, 51, 0.10);
    --container-max: 1200px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--white-color);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-color); }
.text-muted-jd { color: var(--muted-color); }

a { color: var(--primary-color); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.section { padding: 5rem 0; }
.section-light { background: var(--light-color); }
.section-dark { background: var(--secondary-color); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p { color: var(--white-color); }
.section-dark .text-muted-jd { color: rgba(255, 255, 255, 0.72); }

/* Eyebrow label — small caps marker used above headings */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: .75rem;
}
.eyebrow::before {
    content: "";
    width: 22px; height: 2px;
    background: var(--accent-color);
    display: inline-block;
}
.section-dark .eyebrow { color: var(--accent-color); }

.lead-jd { font-size: 1.125rem; color: var(--muted-color); max-width: 46rem; }

/* ---------- Accessibility ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Buttons ---------- */

.btn-jd {
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: .8rem 1.6rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-jd:hover { transform: translateY(-2px); }

.btn-jd-primary { background: var(--primary-color); border: 2px solid var(--primary-color); color: #fff; }
.btn-jd-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-jd-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-jd-outline:hover { background: var(--primary-color); color: #fff; }

.btn-jd-light { background: #fff; border: 2px solid #fff; color: var(--secondary-color); }
.btn-jd-light:hover { background: var(--accent-color); border-color: var(--accent-color); color: var(--secondary-color); }

.btn-jd-accent { background: var(--accent-color); border: 2px solid var(--accent-color); color: var(--secondary-color); }
.btn-jd-accent:hover { filter: brightness(1.06); color: var(--secondary-color); box-shadow: var(--shadow-md); }

/* ---------- Top bar ---------- */

.topbar {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    padding: .45rem 0;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent-color); }
.topbar .bi { color: var(--accent-color); margin-right: .3rem; }

/* ---------- Navbar ---------- */

.navbar-jd {
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
    padding: .8rem 0;
    transition: box-shadow .2s ease, padding .2s ease;
}
.navbar-jd.is-sticky { box-shadow: var(--shadow-md); padding: .5rem 0; }

.navbar-jd .navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: .55rem;
}
.navbar-jd .navbar-brand .brand-mark {
    width: 34px; height: 34px;
    display: inline-flex;
}
.navbar-jd .navbar-brand span.brand-accent { color: var(--primary-color); }

.navbar-jd .nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-color);
    padding: .55rem .85rem;
    border-radius: var(--radius-sm);
}
.navbar-jd .nav-link:hover,
.navbar-jd .nav-link:focus { color: var(--primary-color); }
.navbar-jd .nav-link.active { color: var(--primary-color); }

.navbar-jd .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    min-width: 15rem;
}
.navbar-jd .dropdown-header {
    font-family: var(--font-display);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-color);
    padding: .35rem .75rem .15rem;
}
.navbar-jd .dropdown-item {
    border-radius: var(--radius-sm);
    padding: .45rem .75rem;
    font-weight: 500;
}
.navbar-jd .dropdown-item:hover { background: var(--light-color); color: var(--primary-color); }

.mega-menu { min-width: 640px; padding: 1rem 1.25rem; }
.mega-menu.show { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.mega-menu .mega-col { min-width: 150px; }
@media (max-width: 991.98px) {
    .mega-menu { min-width: 0; }
    .mega-menu.show { flex-direction: column; gap: .75rem; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--secondary-color);
    color: #fff;
    overflow: hidden;
    padding: 5.5rem 0 6rem;
}
.hero h1 { color: #fff; }
.hero .lead-jd { color: rgba(255, 255, 255, .8); }

/* Signature growth-grid backdrop */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}
.hero .hero-glow {
    position: absolute;
    right: -180px; top: -180px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(37, 71, 244, 0.45), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
}

.hero-visual { position: relative; }

/* Inner-page hero (smaller) */
.page-hero { padding: 3.5rem 0 3rem; }

/* Breadcrumbs */
.breadcrumb-jd {
    font-size: .85rem;
    margin-bottom: 1rem;
}
.breadcrumb-jd a { color: rgba(255, 255, 255, .75); }
.breadcrumb-jd a:hover { color: var(--accent-color); }
.breadcrumb-jd .sep { color: rgba(255, 255, 255, .4); margin: 0 .45rem; }
.breadcrumb-jd .current { color: #fff; font-weight: 600; }

/* ---------- Cards ---------- */

.card-jd {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-jd:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 71, 244, .35);
}
.card-jd .icon-badge {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 71, 244, .09);
    color: var(--primary-color);
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
}
.card-jd h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card-jd p { color: var(--muted-color); font-size: .95rem; margin-bottom: .9rem; }
.card-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.card-link .bi { transition: transform .18s ease; }
.card-link:hover .bi { transform: translateX(4px); }

/* Feature list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    padding-left: 1.9rem;
    position: relative;
    margin-bottom: .65rem;
    color: var(--text-color);
}
.check-list li::before {
    content: "\F26E";  /* bootstrap-icons check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0; top: .1rem;
    color: var(--accent-color);
}
.section-dark .check-list li { color: rgba(255,255,255,.85); }

/* ---------- Stats / counters ---------- */

.stat-block { text-align: center; padding: 1.5rem 1rem; }
.stat-block .stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}
.stat-block .stat-label {
    color: var(--muted-color);
    font-weight: 600;
    font-size: .92rem;
    margin-top: .4rem;
}
.section-dark .stat-block .stat-number { color: var(--accent-color); }
.section-dark .stat-block .stat-label { color: rgba(255,255,255,.75); }

/* ---------- Process timeline ---------- */

.process-grid { counter-reset: step; }
.process-step {
    position: relative;
    padding: 1.6rem 1.4rem 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white-color);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-step .step-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .85rem;
    color: var(--secondary-color);
    background: var(--accent-color);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: .92rem; color: var(--muted-color); margin: 0; }

/* ---------- Testimonials ---------- */

.testimonial-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    height: 100%;
}
.testimonial-card .quote-mark { color: var(--accent-color); font-size: 1.8rem; line-height: 1; }
.testimonial-card blockquote { font-size: .98rem; color: var(--text-color); margin: .8rem 0 1rem; }
.testimonial-card .client { font-family: var(--font-display); font-weight: 700; color: var(--dark-color); }
.testimonial-card .client-meta { font-size: .85rem; color: var(--muted-color); }

/* ---------- Portfolio filter ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    border-radius: 100px;
    padding: .45rem 1.1rem;
    transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

.portfolio-item { transition: opacity .25s ease, transform .25s ease; }
.portfolio-item.hidden { display: none; }
.portfolio-thumb {
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: 2.2rem;
}
.portfolio-body {
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1.2rem 1.4rem;
    background: #fff;
}
.portfolio-body .tag {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* ---------- Blog cards ---------- */

.blog-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--light-color), #dfe6f7);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
}
.blog-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-body .category {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--primary-color);
    margin-bottom: .5rem;
}
.blog-body h3 { font-size: 1.08rem; }
.blog-body .excerpt { color: var(--muted-color); font-size: .93rem; flex: 1; }
.blog-body .meta { font-size: .82rem; color: var(--muted-color); margin-top: .8rem; }

/* ---------- FAQ ---------- */

.accordion-jd .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius) !important;
    margin-bottom: .9rem;
    overflow: hidden;
}
.accordion-jd .accordion-button {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--dark-color);
    background: #fff;
    padding: 1.1rem 1.3rem;
}
.accordion-jd .accordion-button:not(.collapsed) {
    background: var(--light-color);
    color: var(--primary-color);
    box-shadow: none;
}
.accordion-jd .accordion-body { color: var(--muted-color); }

/* ---------- Forms ---------- */

.form-jd label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-jd .form-control, .form-jd .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    font-size: .95rem;
}
.form-jd .form-control:focus, .form-jd .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .2rem rgba(37, 71, 244, .12);
}
.form-jd .invalid-feedback { font-size: .82rem; }
.form-note { font-size: .82rem; color: var(--muted-color); }
.form-success {
    display: none;
    background: rgba(0, 213, 160, .12);
    border: 1px solid var(--accent-color);
    color: #067a5c;
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}
.form-success.show { display: block; }

/* ---------- CTA band ---------- */

.cta-band {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color) 85%);
    border-radius: var(--radius);
    color: #fff;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.5px);
    background-size: 26px 26px;
}
.cta-band h2, .cta-band p { color: #fff; position: relative; }
.cta-band .btn-jd { position: relative; }

/* ---------- Footer ---------- */

.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, .78);
    padding: 4rem 0 0;
    font-size: .93rem;
}
.footer h4 {
    color: #fff;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .55rem; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: var(--accent-color); }
.footer .social-links a {
    display: inline-flex;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    align-items: center; justify-content: center;
    margin-right: .5rem;
    transition: all .2s ease;
}
.footer .social-links a:hover { background: var(--accent-color); border-color: var(--accent-color); color: var(--secondary-color); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 3rem;
    padding: 1.2rem 0;
    font-size: .85rem;
}

/* ---------- Floating buttons ---------- */

.whatsapp-fab {
    position: fixed;
    right: 1.2rem; bottom: 1.2rem;
    z-index: 1050;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: var(--shadow-md);
    transition: transform .18s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

.back-to-top {
    position: fixed;
    right: 1.35rem; bottom: 5.6rem;
    z-index: 1049;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--secondary-color);
    color: #fff;
    font-size: 1.1rem;
    display: none;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-color); }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Content pages (legal, article) ---------- */

.content-narrow { max-width: 800px; }
.content-narrow h2 { margin-top: 2.2rem; }
.content-narrow ul li { margin-bottom: .4rem; }

.article-meta { color: var(--muted-color); font-size: .9rem; }

/* Table of related links */
.related-links a {
    display: block;
    padding: .8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: .6rem;
    font-weight: 600;
    background: #fff;
    transition: all .18s ease;
}
.related-links a:hover { border-color: var(--primary-color); transform: translateX(4px); }
