/* ═══════════════════════════════════════════════════════════════════
   NW IT Partners — Custom Stylesheet
   Font: Inter (Google Fonts) | Framework: Bootstrap 5
═══════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
    --navy:          #0d1f3c;
    --navy-mid:      #1a3358;
    --navy-light:    #243d68;
    --primary:       #0d6efd;
    --primary-dark:  #0a58ca;
    --teal:          #0dcaf0;
    --green:         #198754;
    --red:           #dc3545;
    --indigo:        #6610f2;
    --bg-light:      #f0f4f8;
    --border:        #e2e8f0;
    --text-muted:    #5a6472;   /* 6.0:1 on white, 5.4:1 on --bg-light (was #6c757d, 4.2:1 on --bg-light) */
    --radius:        12px;
    --radius-lg:     18px;
    --shadow:        0 4px 20px rgba(13,31,60,.07);
    --shadow-md:     0 8px 32px rgba(13,31,60,.12);
    --shadow-lg:     0 16px 48px rgba(13,31,60,.18);
    --transition:    .25s ease;

    /* Theme tokens — light values here, dark values under [data-bs-theme="dark"] below.
       Every text colour passes WCAG AA (4.5:1) on every background it sits on in both themes. */
    --page-bg:       #ffffff;
    --surface:       #ffffff;   /* cards */
    --text:          #1e293b;
    --heading:       #0d1f3c;
    --text-soft:     #334155;
    --link:          #0a58ca;   /* 6.4:1 on white (Bootstrap blue #0d6efd is 4.1:1 on --bg-light) */
    --link-hover:    #084298;
    --badge-bg:      rgba(13,110,253,.1);
    --badge-fg:      #0a58ca;
    --check:         #198754;
}

/* Dark theme: set on <html> by the script in layouts/header.php (system setting or the visitor's choice). */
[data-bs-theme="dark"] {
    --bg-light:      #0f1b2e;   /* alternate section background */
    --border:        #253650;
    --text-muted:    #9aabc2;
    --shadow:        0 4px 20px rgba(0,0,0,.35);
    --shadow-md:     0 8px 32px rgba(0,0,0,.45);
    --shadow-lg:     0 16px 48px rgba(0,0,0,.55);
    --page-bg:       #0b1424;
    --surface:       #142338;
    --text:          #d6deea;
    --heading:       #f1f5fb;
    --text-soft:     #c3cedc;
    --link:          #7ab3ff;
    --link-hover:    #a8cdff;
    --badge-bg:      rgba(122,179,255,.14);
    --badge-fg:      #8fc0ff;
    --check:         #4ade80;
    /* Bootstrap's own dark values (form fields, borders, .text-muted) aligned to this palette. */
    --bs-body-bg:        #0b1424;
    --bs-body-color:     #d6deea;
    --bs-border-color:   #253650;
    --bs-secondary-bg:   #142338;
    --bs-tertiary-bg:    #0f1b2e;
    --bs-secondary-color: rgba(214,222,234,.78);
    color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); transition: color var(--transition); }
a:hover { color: var(--link-hover); }

.section-padded { padding: 5rem 0; }

/* ── Brand / Navbar ─────────────────────────────────────────────── */
.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -.02em;
}

#mainNav {
    background: transparent;
    padding: .9rem 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#mainNav.scrolled,
#mainNav.nav-solid {
    background: var(--navy) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
    padding: .6rem 0;
}
#mainNav .nav-link {
    color: rgba(255,255,255,.80);
    font-weight: 500;
    font-size: .9rem;
    padding: .4rem .75rem;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}
#mainNav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

/* ── Section Headers ────────────────────────────────────────────── */
.section-badge {
    display: inline-block;
    padding: .3rem .9rem;
    background: var(--badge-bg);
    color: var(--badge-fg);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: .75rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.section-header { margin-bottom: 3rem; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #0a3d6b 100%);
    overflow: hidden;
    padding-top: 4rem;
}

/* Subtle dot-grid pattern overlay */
.hero-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem 1rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    color: rgba(255,255,255,.9);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-title-accent {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.75);
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-btn-primary  { font-weight: 600; padding: .75rem 1.75rem; }
.hero-btn-outline  { font-weight: 600; padding: .75rem 1.75rem; }

/* Hero graphic / animated bubbles */
.hero-graphic {
    position: relative;
    width: 380px;
    height: 380px;
}
.hg-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 90px; height: 90px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    backdrop-filter: blur(10px);
    z-index: 3;
}
.hg-bubble {
    position: absolute;
    width: 72px; height: 72px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem;
    backdrop-filter: blur(8px);
    animation: hg-float 4s ease-in-out infinite;
    z-index: 2;
}
.hg-bubble span {
    font-size: .55rem; font-weight: 600;
    letter-spacing: .04em;
    margin-top: 2px;
    text-transform: uppercase;
}
.hg-b1 { top:  10px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.hg-b2 { top:  80px; right: 20px; animation-delay: .6s; }
.hg-b3 { bottom: 80px; right: 20px; animation-delay: 1.2s; }
.hg-b4 { bottom: 10px; left: 50%; transform: translateX(-50%); animation-delay: 1.8s; }
.hg-b5 { top:  80px; left: 20px; animation-delay: 2.4s; }
@keyframes hg-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hg-b1, .hg-b4 { /* these need the X translation preserved */
    animation-name: hg-float-center;
}
@keyframes hg-float-center {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-10px); }
}
.hg-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
}
.hg-ring-1 { width: 200px; height: 200px; }
.hg-ring-2 { width: 320px; height: 320px; }

.hero-scroll-hint {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.4);
    font-size: 1.4rem;
    animation: bounce 2s ease-in-out infinite;
    text-decoration: none;
    z-index: 5;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Service Cards ──────────────────────────────────────────────── */
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.service-card-highlight {
    position: relative;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.service-ribbon {
    position: absolute;
    top: 1rem; right: -0px;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 0 var(--radius) 0 var(--radius);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.service-card-cta {
    background: linear-gradient(135deg, var(--navy-mid), #0a3d6b);
    border-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.service-card-cta:hover { border-color: rgba(255,255,255,.2); }
.service-cta-icon {
    font-size: 3rem;
    color: rgba(255,255,255,.4);
    margin-bottom: 1rem;
}
.text-white-60 { color: rgba(255,255,255,.6); }

.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.si-blue   { background: #dbeafe; color: #1d4ed8; }
.si-indigo { background: #ede9fe; color: #4f46e5; }
.si-teal   { background: #cffafe; color: #0e7490; }
.si-red    { background: #fee2e2; color: #b91c1c; }
.si-green  { background: #dcfce7; color: #15803d; }

.service-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: .5rem;
}
.service-desc {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.service-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .45rem;
}
.service-list li {
    display: flex; align-items: center; gap: .5rem;
    font-size: .88rem; color: var(--text-soft);
}
.service-list li i { color: var(--check); font-size: .85rem; flex-shrink: 0; }

/* ── Why Choose Us ──────────────────────────────────────────────── */
.bg-light-custom { background: var(--bg-light); }

.why-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.why-icon-wrap {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.why-card h3 { font-size: .97rem; font-weight: 700; color: var(--heading); margin-bottom: .4rem; }
.why-card p  { font-size: .87rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

.why-check-row {
    display: flex; align-items: center;
    font-size: .95rem; color: var(--text-soft); font-weight: 500;
}

/* ── How We Work ────────────────────────────────────────────────── */
.how-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.how-step  { display: flex; gap: 1rem; align-items: flex-start; }
.how-step-num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-dark);   /* solid, so the white number keeps 6.4:1 contrast */
    color: #fff;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.how-step h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: .25rem; }
.how-step p  { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* "You say → We set up" card */
.translate-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.translate-card-title { font-size: 1.1rem; font-weight: 700; color: var(--heading); margin-bottom: 1.25rem; }
.translate-head,
.translate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.translate-head {
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}
.translate-list { margin: 0; }
.translate-row { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.translate-row:last-child { border-bottom: 0; padding-bottom: 0; }
.translate-row dt { display: flex; gap: .5rem; font-size: .92rem; font-weight: 600; color: var(--heading); }
.translate-row dt i { color: var(--link); flex-shrink: 0; margin-top: .15rem; }
.translate-row dd {
    margin: 0;
    padding-left: .75rem;
    border-left: 3px solid var(--check);
    font-size: .88rem; color: var(--text-soft); line-height: 1.55;
}

/* ── Learn (IT for business owners) ─────────────────────────────── */
.learn-guides {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.learn-soon {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 50px;
    background: #fef3c7; color: #92400e;   /* 6.8:1 */
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: .75rem;
}
.learn-guides-title { font-size: 1.35rem; font-weight: 800; color: var(--heading); margin-bottom: .5rem; }
.learn-topics-label {
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .75rem;
}
.learn-topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.learn-topics li {
    display: flex; gap: .6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    font-size: .9rem; font-weight: 500; color: var(--text-soft);
}
.learn-topics li i { color: var(--link); flex-shrink: 0; margin-top: .1rem; }

/* ── Service Area Banner ────────────────────────────────────────── */
.service-area-section { padding: 2.5rem 0; }
.service-area-card {
    background: linear-gradient(135deg, var(--navy-mid), #0a4a8a);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,.08);
}
.service-area-icon { font-size: 3.5rem; color: rgba(255,255,255,.35); }


/* ── Contact Section ────────────────────────────────────────────── */
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
    display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon {
    width: 40px; height: 40px;
    background: var(--badge-bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--badge-fg);
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-item strong { font-size: .9rem; font-weight: 700; color: var(--heading); display: block; margin-bottom: .1rem; }
.contact-item p      { margin: 0; font-size: .88rem; color: var(--text-muted); }
.contact-item a      { color: var(--link); }

.contact-cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    padding: 4rem 0 0;
    color: rgba(255,255,255,.65);
}
.footer-heading { color: #fff; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1rem; }
.footer-markdown-note { color: rgba(255,255,255,.65); margin: 0 0 1.25rem; max-width: 60rem; }
.footer-markdown-note a { color: rgba(255,255,255,.9); }
.footer-markdown-note a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .87rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-contact-list li {
    display: flex; align-items: center; gap: .6rem;
    font-size: .87rem; color: rgba(255,255,255,.55);
}
.footer-contact-list li i { color: var(--primary); width: 1rem; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-contact-list a:hover { color: #fff; }
.text-info-custom { color: #38bdf8 !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; margin-top: 1rem; }

/* ── Consultation Page ───────────────────────────────────────────── */
.consultation-page {
    background: var(--bg-light);
    min-height: 100vh;
}
.consult-header .section-badge { margin-bottom: .5rem; }
.consult-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow);
}
.consult-trust-row {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    padding: 1rem 0;
}
.trust-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .85rem; color: var(--text-muted); font-weight: 500;
}
.trust-item i { font-size: 1rem; }

/* ── Confirmation Page ───────────────────────────────────────────── */
.confirmation-page {
    background: var(--bg-light);
    min-height: 100vh;
    padding-top: 5rem;
}
.confirmation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.confirm-icon-wrap {
    position: relative;
    display: inline-block;
}
.confirm-icon {
    width: 80px; height: 80px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 0 auto;
    position: relative; z-index: 2;
}
.confirm-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    border: 2px solid;
    animation: confirm-pulse 2.5s ease-out infinite;
}
.confirm-ring-1 { width: 100px; height: 100px; border-color: rgba(25,135,84,.4); animation-delay: 0s; }
.confirm-ring-2 { width: 130px; height: 130px; border-color: rgba(25,135,84,.2); animation-delay: .5s; }
@keyframes confirm-pulse {
    0%   { opacity: 1; transform: translate(-50%,-50%) scale(.85); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.3); }
}
.confirm-steps { display: flex; flex-direction: column; gap: 0; text-align: left; }
.confirm-step {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .75rem 0;
}
.confirm-step-connector {
    width: 2px; height: 24px;
    background: var(--border);
    margin-left: 15px;
}
.cs-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    background: var(--green);
    color: #fff;
}
.cs-icon.pending {
    background: var(--bg-light);
    color: var(--text-muted);
}
.confirm-step strong { font-size: .9rem; color: var(--heading); display: block; }
.confirm-step small  { color: var(--text-muted); font-size: .8rem; }
.confirm-contact-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: .9rem;
}
.confirm-contact-box a { color: var(--link); font-weight: 600; }

/* ── 404 Page ───────────────────────────────────────────────────── */
.error-page {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 5rem;
}
.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    color: var(--heading);
    opacity: .08;
    line-height: 1;
    margin-bottom: .5rem;
}

/* ── Utilities ──────────────────────────────────────────────────── */
.bg-navy { background: var(--navy) !important; }
.text-navy { color: var(--navy) !important; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .section-padded { padding: 3.5rem 0; }
    .service-area-card { padding: 1.75rem; }
    .service-area-card .col-lg-2 { display: none; }
    .consult-form-card,
    .confirmation-card { padding: 1.5rem; }
    .hero-actions { flex-direction: column; }
    .hero-btn-primary,
    .hero-btn-outline { width: 100%; justify-content: center; }
    .consult-trust-row { flex-direction: column; gap: .75rem; }
    .translate-card,
    .learn-guides { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .hero-section { padding-top: 5rem; }
    .hero-title { font-size: 1.85rem; }
    .confirmation-card { padding: 1.25rem; }
    /* Stack each "You say / We set up" pair; the green bar marks the answer. */
    .translate-head { display: none; }
    .translate-row { grid-template-columns: 1fr; gap: .5rem; }
    .learn-topics { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   Dark theme — fixed-colour Bootstrap utilities and tints the views use
═══════════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] .bg-white { background-color: var(--page-bg) !important; }
[data-bs-theme="dark"] .text-dark:not(.badge) { color: var(--heading) !important; }
[data-bs-theme="dark"] .text-navy { color: var(--heading) !important; }
[data-bs-theme="dark"] .service-card-highlight { box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
[data-bs-theme="dark"] .site-footer { background: #070e1a; border-top: 1px solid var(--border); }

[data-bs-theme="dark"] .si-blue   { background: rgba(59,130,246,.18);  color: #93c5fd; }
[data-bs-theme="dark"] .si-indigo { background: rgba(139,92,246,.2);   color: #c4b5fd; }
[data-bs-theme="dark"] .si-teal   { background: rgba(34,211,238,.16);  color: #67e8f9; }
[data-bs-theme="dark"] .si-red    { background: rgba(248,113,113,.16); color: #fca5a5; }
[data-bs-theme="dark"] .si-green  { background: rgba(74,222,128,.16);  color: #86efac; }
[data-bs-theme="dark"] .learn-soon { background: rgba(251,191,36,.16); color: #fcd34d; }

/* ── Theme toggle (bottom-right) ─────────────────────────────────── */
.theme-toggle {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1040;                       /* above page content, below Bootstrap modals */
    width: 48px; height: 48px;           /* at least the 44px touch-target minimum */
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--heading);
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.theme-toggle:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
/* Light theme shows the moon (switch to dark); dark theme shows the sun (switch to light). */
.theme-toggle .theme-icon-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .theme-icon-sun  { display: inline; }
[data-bs-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }

/* ── Cookie notice (bottom-left, small; the theme toggle is bottom-right) ── */
.cookie-notice {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1039;                       /* just under the theme toggle */
    max-width: 22rem;
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem .75rem .6rem 1rem;
    background: var(--surface);
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: .8rem;
    line-height: 1.45;
}
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--link); white-space: nowrap; }
.cookie-notice .btn { flex-shrink: 0; min-height: 36px; }
@media (max-width: 575.98px) {
    /* Leave room on the right for the 48px theme toggle. */
    .cookie-notice { right: calc(48px + 1.75rem); max-width: none; }
}

/* ── Privacy policy page ─────────────────────────────────────────── */
.policy-page { padding: 6.5rem 0 3rem; background: var(--page-bg); color: var(--text); }
.policy-page p,
.policy-list li { line-height: 1.7; }
.policy-h2 { font-size: 1.25rem; font-weight: 700; color: var(--heading); margin: 2.25rem 0 .75rem; scroll-margin-top: 5rem; }
.policy-h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin: 1.25rem 0 .4rem; }
.policy-summary {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--check);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 .5rem;
}
.policy-summary ul { margin: 0; padding-left: 1.1rem; }
.policy-summary li { margin-bottom: .35rem; }
.policy-summary li:last-child { margin-bottom: 0; }
.policy-list { padding-left: 1.1rem; }
.policy-list li { margin-bottom: .6rem; }
.policy-table { font-size: .88rem; }
.policy-table th { color: var(--heading); white-space: nowrap; }
.policy-table code { color: var(--heading); white-space: nowrap; }

.footer-bottom-link { color: rgba(255,255,255,.7); }
.footer-bottom-link:hover { color: #fff; }

/* ── Reduced motion: honour the visitor's system setting ─────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    .theme-toggle { border: 1px solid ButtonText; }
}
