/* ============================================================
   Bitvers Technologies — Stylesheet
   Light theme: white surface, blue accents, near-black ink,
   dark footer that echoes the brand logo.
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root {
    --primary:        #1E63E0;             /* logo blue            */
    --primary-dark:   #1450B8;             /* hover / pressed      */
    --primary-light:  #4D8DFF;             /* gradient highlight   */
    --primary-soft:   rgba(30, 99, 224, 0.08);

    --ink:            #0A1220;             /* headings / near-black */
    --text:           #1A2238;             /* body                  */
    --muted:          #5B6B82;             /* secondary text        */
    --border:         rgba(11, 18, 32, 0.08);
    --border-strong:  rgba(11, 18, 32, 0.18);

    --surface:        #FFFFFF;             /* cards / nav           */
    --surface-alt:    #F5F7FB;             /* alternating sections  */
    --surface-dark:   #0A1220;             /* footer / hero contrast */

    --accent:         #1E63E0;             /* alias for legacy refs */

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 14px rgba(11, 18, 32, 0.06);
    --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.10);
    --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.14);

    --ease: 0.3s ease;
    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(30, 99, 224, 0.08), transparent 60%),
        radial-gradient(900px 500px at -10% 5%,  rgba(30, 99, 224, 0.05), transparent 60%),
        var(--surface);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
        'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { min-height: 60vh; }

.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-title .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}
.section-title p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--ease), background var(--ease),
                color var(--ease), border-color var(--ease),
                box-shadow var(--ease);
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.btn-accent {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 99, 224, 0.25);
}
.btn-accent:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 99, 224, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.info-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.info-whatsapp:hover {
    border-bottom-color: #25D366;
    color: #1ebe5d;
}
.info-whatsapp svg {
    flex: 0 0 auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    min-height: 84px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 800;
}
.brand-text { font-size: 1.05rem; }
.brand-logo {
    height: 64px;
    width: auto;
    display: block;
    border-radius: 10px;
    filter: drop-shadow(0 2px 10px rgba(11, 18, 32, 0.18));
    transition: transform var(--ease), filter var(--ease);
}
.brand:hover .brand-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 16px rgba(30, 99, 224, 0.40));
}
.brand-light .brand-logo {
    height: 72px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0; padding: 0;
    list-style: none;
}
.nav-links a {
    display: inline-block;
    padding: 10px 14px;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Mobile menu toggle (CSS-only) */
.nav-toggle-input { display: none; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 110px 0 60px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 320px at 50%   0%, rgba(30, 99, 224, 0.18), transparent 70%),
        radial-gradient(900px 400px at 50% 100%, rgba(30, 99, 224, 0.06), transparent 70%);
    pointer-events: none;
}
.hero > * { position: relative; }
.hero .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-weight: 600;
}
.hero h1 {
    max-width: 920px;
    margin: 0 auto 18px;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    max-width: 700px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 1.1rem;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-contact {
    margin: 28px auto 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    text-align: center;
}
.hero-contact a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.hero-contact a:hover {
    border-bottom-color: var(--accent);
}
.hero-contact-sep {
    margin: 0 4px;
    color: var(--text-muted);
}
.hero-contact .hero-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    border-bottom-color: transparent;
}
.hero-contact .hero-whatsapp:hover {
    border-bottom-color: #25D366;
}
.hero-contact .hero-whatsapp svg {
    flex: 0 0 auto;
}

/* ---------- Cards ---------- */
.grid {
    display: grid;
    gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease),
                border-color var(--ease);
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 99, 224, 0.45);
    box-shadow: var(--shadow-md);
}
.card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Feature blocks ---------- */
.feature {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.feature.reverse { grid-template-columns: 0.9fr 1.1fr; }
.feature .visual {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 0;
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    color: #fff;
}
.feature .visual .stat {
    font-size: 2.8rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.feature .visual .muted,
.feature .visual p {
    color: rgba(255, 255, 255, 0.85);
}
.feature .visual.photo {
    background: transparent;
    background-image: none;
    padding: 0;
    margin: 0;
    min-height: 0;
    border: 0;
    box-shadow: none;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.feature .visual.photo img {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
    border-radius: var(--radius-lg);
}
.feature ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.feature ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.feature ul li::before {
    content: '\2713';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}
.feature ul li:last-child { border-bottom: 0; }

/* ---------- Investment / process steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), border-color var(--ease),
                box-shadow var(--ease);
}
.step:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 99, 224, 0.45);
    box-shadow: var(--shadow-md);
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 18px; right: 22px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.85;
}
.step h3 { margin-top: 14px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- CTA strip ---------- */
.cta {
    text-align: center;
    padding: 70px 40px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 240px at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
        linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 0;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta h2     { color: #fff; margin-bottom: 12px; }
.cta p      { color: rgba(255, 255, 255, 0.85); margin-bottom: 26px; }
.cta .btn-accent {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.cta .btn-accent:hover {
    background: #F1F5FB;
    color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

/* ---------- Page header ---------- */
.page-header {
    text-align: center;
    padding: 90px 0 50px;
}
.page-header .eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.page-header p {
    color: var(--muted);
    max-width: 700px;
    margin: 14px auto 0;
}

/* ---------- Forms ---------- */
.form {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 44px;
    box-shadow: var(--shadow-md);
}
/* Inside the contact grid, let the form stretch to fill the column. */
.contact-grid .form { max-width: none; }
.field { margin-bottom: 22px; }
.field label {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.field input,
.field textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 1rem;
    transition: border-color var(--ease), box-shadow var(--ease),
                background var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.field textarea { min-height: 220px; resize: vertical; }

.form .btn { padding: 16px 32px; font-size: 1rem; }

/* Honeypot — visually & functionally hidden from real users. */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contact split */
.contact-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.6fr;
    gap: 32px;
    align-items: start;
}
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.info-card h3 { margin-bottom: 10px; }
.info-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.info-card li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.info-card li:last-child { border-bottom: 0; }
.info-card li strong { color: var(--ink); display: block; margin-bottom: 2px; }

.info-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    margin-top: 2px;
}
.info-content { flex: 1; min-width: 0; word-wrap: break-word; }

/* Flash messages */
.flash {
    margin: 24px auto;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.flash-success {
    border-color: rgba(34, 160, 100, 0.45);
    background: rgba(34, 160, 100, 0.10);
    color: #166A44;
}
.flash-error {
    border-color: rgba(220,  80,  90, 0.45);
    background: rgba(220, 80, 90, 0.10);
    color: #A02530;
}

/* ---------- Testimonials ---------- */
.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), border-color var(--ease),
                box-shadow var(--ease);
}
.testimonial:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 99, 224, 0.45);
    box-shadow: var(--shadow-md);
}
.testimonial p {
    font-family: inherit;
    font-style: normal;
    color: var(--text);
    line-height: 1.6;
}
.testimonial .who {
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.testimonial .who span { color: var(--muted); font-weight: 400; }

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.team-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease),
                border-color var(--ease);
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 99, 224, 0.45);
    box-shadow: var(--shadow-md);
}
.avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 3px solid rgba(30, 99, 224, 0.15);
    box-shadow: 0 10px 24px rgba(30, 99, 224, 0.25);
    letter-spacing: 0.02em;
    overflow: hidden;
}
.avatar-photo {
    background: var(--surface);
    padding: 0;
}
.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.team-card h3 { margin-bottom: 4px; }
.team-card .role {
    display: inline-block;
    color: var(--primary);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}
.team-card p { color: var(--muted); margin: 0; }
.team-card .socials {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.team-card .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color var(--ease), border-color var(--ease),
                background var(--ease), transform var(--ease);
}
.team-card .socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

/* ---------- Activity gallery ---------- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.activity {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease),
                border-color var(--ease);
    margin: 0;
}
.activity:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 99, 224, 0.45);
    box-shadow: var(--shadow-md);
}
.activity .activity-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-alt);
}
.activity .activity-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.activity:hover .activity-media img { transform: scale(1.05); }
.activity .activity-caption {
    padding: 20px 22px 22px;
    background: var(--surface);
}
.activity .activity-caption span {
    display: inline-block;
    color: var(--primary);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}
.activity .activity-caption h3 {
    color: var(--ink);
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.activity .activity-caption p {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---------- Showcase moment (photo + caption) ---------- */
.moment {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0;
}
.moment .moment-media {
    width: 100%;
    background: var(--surface-alt);
    overflow: hidden;
}
.moment .moment-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.moment .moment-caption {
    padding: 32px 36px 34px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.moment .moment-caption .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}
.moment .moment-caption h3 {
    color: var(--ink);
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}
.moment .moment-caption p {
    color: var(--muted);
    margin: 0;
    max-width: 760px;
}

@media (max-width: 720px) {
    .moment .moment-caption { padding: 22px 22px 24px; }
}

/* ---------- Footer (dark, echoes the logo) ---------- */
.site-footer {
    margin-top: 80px;
    background: var(--surface-dark);
    border-top: 1px solid var(--border);
    color: #C7D0E0;
    padding-top: 60px;
}
.site-footer .muted { color: #8B96AC; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary-light);
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-links {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-links li { padding: 6px 0; color: #C7D0E0; }
.footer-links a  { color: #C7D0E0; }
.footer-links a:hover { color: #fff; }
.brand-light { color: #fff; margin-bottom: 12px; }

.newsletter {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.newsletter input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font: inherit;
}
.newsletter input::placeholder { color: #8B96AC; }
.newsletter input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.18);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8B96AC;
    font-size: 0.85rem;
}
.footer-bottom a       { color: #8B96AC; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Admin ---------- */
.admin-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}
.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.admin-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.table th {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    background: var(--surface-alt);
}
.table tr:hover td { background: var(--primary-soft); }
.empty {
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

/* ---------- Admin app: sidebar + topbar layout (WordPress-style) ---------- */
.admin-body {
    background: var(--surface-alt);
    min-height: 100vh;
}
.admin-app {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #0A1220;
    color: rgba(255, 255, 255, 0.85);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 22px 0 16px;
}
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px 22px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-sidebar-brand img {
    height: 32px;
    width: auto;
}
.admin-sidebar-nav {
    flex: 1;
    padding: 18px 0;
}
.admin-sidebar-label {
    padding: 14px 22px 6px;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}
.admin-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}
.admin-sidebar-nav a.is-active {
    background: rgba(30, 99, 224, 0.18);
    border-left-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.admin-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1.05rem;
    opacity: 0.85;
}
.admin-sidebar-nav a.is-active .admin-sidebar-icon { opacity: 1; }

.admin-sidebar-footer {
    padding: 16px 22px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-sidebar-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 0;
}
.admin-sidebar-link:hover { color: #fff; }
.admin-sidebar-logout { color: rgba(255, 255, 255, 0.75); font-weight: 600; }

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
}
.admin-topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.admin-topbar-user {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.admin-topbar-user strong {
    color: var(--ink);
    margin-left: 6px;
}
.admin-content {
    padding: 32px;
    max-width: 1200px;
}

/* On narrow screens collapse the sidebar to a horizontal strip. */
@media (max-width: 900px) {
    .admin-app {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: relative;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
    }
    .admin-sidebar-brand {
        border-bottom: 0;
        padding: 0;
        flex: 1 1 auto;
    }
    .admin-sidebar-nav {
        flex: 1 1 100%;
        padding: 8px 0 0;
    }
    .admin-sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
    }
    .admin-sidebar-label { display: none; }
    .admin-sidebar-nav a {
        padding: 8px 12px;
        border-left: 0;
        border-radius: 6px;
    }
    .admin-sidebar-nav a.is-active {
        border-left: 0;
        background: var(--primary);
    }
    .admin-sidebar-footer { display: none; }
    .admin-content { padding: 20px; }
}

.page-title {
    margin-bottom: 28px;
}
.page-title h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}
.page-title p {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    vertical-align: middle;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-muted   { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }
.badge-soft    { background: var(--primary-soft); color: var(--primary); margin-left: 8px; }

.btn-danger {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}
.btn-danger:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
    transform: translateY(-2px);
}

.kv {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 16px;
    margin: 0;
}
.kv dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.kv dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quick-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}
.quick-list li:last-child { border-bottom: 0; }
.quick-list li a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}
.quick-list li a:hover { text-decoration: underline; }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.media-tile {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}
.media-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-alt);
    overflow: hidden;
}
.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-meta {
    padding: 12px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.media-meta strong {
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.media-meta .muted { font-size: 0.78rem; }
.media-actions {
    padding: 0 14px 14px;
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.media-actions .btn { flex: 1; justify-content: center; }

.admin-inline-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: end;
}
.admin-inline-form .field { margin: 0; }
.admin-inline-form .btn   { white-space: nowrap; }
@media (max-width: 900px) {
    .admin-inline-form { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid-3   { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .feature, .feature.reverse { grid-template-columns: 1fr; }
    .steps    { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .section { padding: 70px 0; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--ease);
    }
    .nav-toggle-input:checked ~ .nav-links { max-height: 600px; }
    .nav-links a { padding: 12px 14px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .team-grid       { grid-template-columns: 1fr; }
    .activity-grid   { grid-template-columns: 1fr; }
    .steps           { grid-template-columns: 1fr; }
    .footer-grid     { grid-template-columns: 1fr; }
    .footer-bottom   { flex-direction: column; gap: 8px; }
    .cta             { padding: 50px 24px; }
    .brand-logo      { height: 52px; }
    .brand-light .brand-logo { height: 60px; }
}

/* ============================================================
   Chatbot widget
   ============================================================ */
.bv-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: inherit;
    color: var(--text);
}

/* Floating round button */
.bv-chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 14px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font: 600 0.95rem/1 inherit;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(30, 99, 224, 0.35), 0 2px 6px rgba(11, 18, 32, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bv-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(30, 99, 224, 0.45), 0 4px 8px rgba(11, 18, 32, 0.2);
}
.bv-chat-toggle:active { transform: translateY(0); }
.bv-chat-toggle-icon-close { display: none; }
.bv-chat.is-open .bv-chat-toggle-icon-open  { display: none; }
.bv-chat.is-open .bv-chat-toggle-icon-close { display: inline-block; }
.bv-chat.is-open .bv-chat-toggle-label      { display: none; }
.bv-chat.is-open .bv-chat-toggle {
    padding: 14px;
    border-radius: 50%;
}

/* Pulsing dot to draw attention before the user has opened it */
.bv-chat-toggle::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #22C55E;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: bvPulse 2.2s infinite;
}
.bv-chat.is-open .bv-chat-toggle::after { display: none; }
.bv-chat-toggle { position: relative; }

@keyframes bvPulse {
    0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0); }
}

/* Chat panel */
.bv-chat-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(11, 18, 32, 0.25), 0 8px 18px rgba(11, 18, 32, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: bvSlideUp 0.22s ease both;
    border: 1px solid var(--border);
}
.bv-chat.is-open .bv-chat-panel {
    display: flex;
}
@keyframes bvSlideUp {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Header */
.bv-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.bv-chat-header-info { display: flex; gap: 12px; align-items: center; }
.bv-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.bv-chat-avatar img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.bv-chat-title    { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.bv-chat-subtitle { margin: 2px 0 0; font-size: 0.78rem; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.bv-chat-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.bv-chat-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease;
}
.bv-chat-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Message log */
.bv-chat-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(30, 99, 224, 0.05), transparent 60%),
        var(--surface-alt);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bv-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    word-wrap: break-word;
    animation: bvMsgIn 0.18s ease both;
}
@keyframes bvMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bv-msg-bot {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.bv-msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.bv-msg a { color: inherit; text-decoration: underline; }
.bv-msg-user a { color: #fff; }
.bv-msg-bot  a { color: var(--primary); }
.bv-msg-typing {
    display: inline-flex; gap: 4px; padding: 4px 0; align-items: center;
}
.bv-msg-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--muted);
    animation: bvBlink 1.2s infinite ease-in-out both;
}
.bv-msg-typing span:nth-child(2) { animation-delay: 0.18s; }
.bv-msg-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bvBlink {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40%           { opacity: 1;    transform: scale(1);   }
}

/* Quick-reply chips */
.bv-chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 12px;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
}
.bv-chat-quick:empty { padding: 0; border: none; }
.bv-quick-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bv-quick-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Input form */
.bv-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.bv-chat-form input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    color: var(--text);
    background: var(--surface-alt);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.bv-chat-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(30, 99, 224, 0.12);
}
.bv-chat-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}
.bv-chat-form button:hover { background: var(--primary-dark); }
.bv-chat-form button:active { transform: scale(0.96); }

.bv-chat-footnote {
    margin: 0;
    padding: 8px 14px 12px;
    background: var(--surface);
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
}
.bv-chat-footnote a { color: var(--primary); font-weight: 600; }

/* Don't show the widget inside the admin panel */
.admin-body .bv-chat { display: none; }

/* ============================================================
   Cookie consent banner
   ============================================================ */
.bv-cookie {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 9998;
    max-width: 420px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(11, 18, 32, 0.18), 0 4px 10px rgba(11, 18, 32, 0.08);
    animation: bvCookieIn 0.25s ease both;
}
@keyframes bvCookieIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bv-cookie-inner   { padding: 18px 18px 16px; }
.bv-cookie-text    { margin: 0 0 14px; font-size: 0.88rem; line-height: 1.55; color: var(--text); }
.bv-cookie-text a  { color: var(--primary); font-weight: 600; }
.bv-cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.bv-cookie-btn {
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font: 600 0.85rem/1 inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bv-cookie-btn-accent {
    background: var(--primary);
    color: #fff;
}
.bv-cookie-btn-accent:hover { background: var(--primary-dark); }
.bv-cookie-btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}
.bv-cookie-btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.admin-body .bv-cookie { display: none; }

/* Visually hidden but available to screen readers */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .bv-cookie {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }
    .bv-cookie-actions { justify-content: stretch; }
    .bv-cookie-btn     { flex: 1; }
}

@media (max-width: 480px) {
    .bv-chat { right: 14px; bottom: 14px; }
    .bv-chat-toggle { padding: 12px 18px 12px 14px; font-size: 0.88rem; }
    .bv-chat-toggle-label { display: none; }
    .bv-chat-toggle { border-radius: 50%; padding: 14px; }
    .bv-chat-panel {
        width: calc(100vw - 28px);
        height: calc(100vh - 100px);
        bottom: 72px;
    }
}

