/* =========================
   Components — Cards, Breadcrumbs, Utilities
   ========================= */

/* ---------- Grid ---------- */
.services-grid,
.clients-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: var(--space-4);
    padding-left: var(--space-5);
    padding-right: var(--space-5);
    max-width: 1100px;
    margin-inline: auto;
}

/* ---------- Cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-elevation-3), var(--shadow-primary-sm);
}

.card-header {
    padding: var(--space-1) var(--space-2);
    text-align: left;
    background: var(--color-surface-white);
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--text-lg);
    font-family: var(--font-heading);
    line-height: var(--leading-tight);
    letter-spacing: 0.01em;
    border-bottom: none;
    border-left: 4px solid transparent;
    border-image: var(--gradient-border) 1;
    border-image-slice: 0 0 0 1;
    border-radius: 0;
}

.card-body {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: var(--gradient-surface-warm);
}

.card-footer {
    padding: var(--space-2);
    text-align: center;
    background: var(--color-surface-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* Service/Client cards — equal height in grid rows */
.services-grid > li,
.clients-grid > li {
    display: flex;
}

.services-card,
.clients-card {
    background-color: var(--color-surface-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.clients-card-image {
    width: 25%;
    height: auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.sector-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background-color: var(--color-surface-dark);
    transition: transform var(--transition-base);
}

.card:hover .sector-card-image,
.card:focus-within .sector-card-image {
    transform: scale(1.05);
}

/* Detail page illustration hover */
.figure-img {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.figure-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-elevation-2);
}

/* ---------- Blog byline + hero image ---------- */
.blog-byline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
}

.blog-byline-author {
    /* Keep "By Guy ten Bruggencate" on one line so the verb doesn't orphan
       onto its own row on narrow viewports. */
    white-space: nowrap;
}

.blog-byline-author a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-byline-sep {
    opacity: 0.6;
}

.blog-hero-image {
    margin: var(--space-6) auto var(--space-4);
    max-width: 900px;
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevation-2);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 576px) {
    /* Breadcrumb reflows to static on <576px (TEN-49) so the hero image
       needs less top margin or it collides with breadcrumb + header. */
    .blog-hero-image {
        margin-top: var(--space-2);
    }
}

/* ---------- Buttons ---------- */
.custom-primary-btn {
    background: var(--gradient-primary);
    color: var(--color-text);
    margin-top: var(--space-1);
    transition: all var(--transition-base);
    font-weight: 500;
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    border: none;
}

.custom-primary-btn:hover,
.custom-primary-btn:focus {
    color: var(--color-text);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-1px);
}

.custom-primary-btn:active {
    transform: scale(0.97);
}

.custom-customer-cards {
    padding: var(--section-padding-y) var(--space-3);
    max-width: 1200px;
    margin-inline: auto;
}

/* Hamburger Unicode fallback — the Bootstrap CDN may be blocked / slow on first
   paint, in which case .navbar-toggler-icon has no background-image and the
   button renders empty. Our self-hosted components.css fills in a visible glyph
   that Bootstrap's SVG background masks in the normal case. */
.navbar-toggler-icon::after {
    content: "\2630"; /* ☰ */
    display: block;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.5em;
    line-height: 1;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-2);
    background: var(--color-secondary);
    color: var(--color-text-light);
    padding: var(--space-1) var(--space-2);
    z-index: 1000;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: var(--space-2);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Baseline focus-visible ring for all interactive controls — WCAG 2.4.11.
   Specific components may override (e.g. dark buttons on light bg). */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Primary button on gradient background needs a dark outline to stay visible. */
.btn-tbd-primary:focus-visible,
.custom-primary-btn:focus-visible {
    outline-color: var(--color-text);
    outline-offset: 3px;
}

/* ---------- Breadcrumb Navigation ---------- */
.breadcrumb-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.75rem 5%;
}

/* On small screens the absolutely-positioned breadcrumb overlaps hero text —
   reflow it into the document instead of hiding, so wayfinding stays intact. */
@media (max-width: 576px) {
    .breadcrumb-nav {
        position: static;
        padding: var(--space-2) var(--space-3);
    }
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    font-size: var(--text-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    color: var(--color-primary);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--color-text-light-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: var(--color-primary);
    text-decoration: underline;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.breadcrumb-item.active {
    color: var(--color-text-light-dim);
}

/* ---------- Utility Classes ---------- */
.stat-value {
    font-size: var(--text-xl);
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stat-value-lg {
    font-size: var(--text-2xl);
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: var(--text-sm); }
.step-number {
    font-size: var(--text-2xl);
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}
.sidebar-heading { font-size: var(--text-base); margin: 0; }
.bg-surface-alt {
    background-color: var(--color-surface-alt);
    background-image: var(--gradient-radial-glow);
}
.bg-surface-cool {
    background: var(--gradient-radial-purple), var(--gradient-surface-cool);
}
.contact-icon { color: var(--color-primary); }
.service-definition {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    border-left: 3px solid var(--color-primary);
    padding-left: var(--space-2);
    margin-bottom: var(--space-4);
}
.faq-section-title { font-size: var(--text-2xl); }

/* ---------- Entity Intro ---------- */
.entity-intro {
    color: var(--color-text-muted);
    max-width: 800px;
    margin-inline: auto;
    font-size: var(--text-lg);
}

/* ---------- Process Steps Connecting Lines ---------- */
@media (min-width: 768px) {
    .process-steps { position: relative; }
    .process-step { position: relative; }
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 22px;
        right: -12px;
        width: 24px;
        height: 2px;
        background: var(--color-primary);
        opacity: 0.4;
    }
}

/* ---------- Nav Phone Link ---------- */
.nav-phone-link {
    align-items: center;
    margin-left: var(--space-2);
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    background: var(--gradient-surface-warm);
    border-left: 4px solid transparent;
    border-image: var(--gradient-border) 1;
    border-image-slice: 0 0 0 1;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    padding-top: var(--space-5);
    margin: 0;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: -0.1em;
    left: 0.15em;
    font-size: 6rem;
    font-family: var(--font-heading);
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.12;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevation-2);
}

.testimonial-quote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}
.testimonial-footer {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* ---------- Enhanced Focus States ---------- */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* ---------- Contact form styling ---------- */
.custom-contact-container {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.custom-contact-container .card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.custom-contact-container .form-control {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 0.75rem var(--space-2);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.custom-contact-container .form-control:focus,
.custom-contact-container .form-select:focus {
    border-color: var(--color-primary);
    background-color: var(--color-primary-50);
    box-shadow: var(--shadow-focus-primary), 0 0 0 6px rgba(252, 177, 92, 0.06);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.custom-contact-container .form-label {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@media (max-width: 767.98px) {
    .custom-contact-container textarea.form-control {
        min-height: 140px;
    }
}

/* ---------- Accordion refinements ---------- */
/* ============================================================
   SHINE-12 — FAQ accordion treatment
   ============================================================
   Default Bootstrap accordion was functional but generic. This move
   gives accordion items presence and personality:
   - More space between items + softer background
   - Bigger button padding + confident type
   - Hover state tints amber so the affordance reads
   - Open state gets an amber left-border accent + warm bg tint
   - Default Bootstrap chevron tinted to brand amber
   - Body content gets relaxed line-height for readability
   ============================================================ */

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: 14px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
    transition:
        border-color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.accordion-item:hover {
    border-color: rgba(252, 177, 92, 0.35);
}

.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    padding: 1.1rem 1.25rem;
    color: var(--color-text);
    background: transparent;
    transition:
        background-color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.accordion-button:hover {
    background-color: rgba(252, 177, 92, 0.04);
    color: var(--color-text);
}

/* Open state — left-border accent stripe + warm bg tint */
.accordion-button:not(.collapsed) {
    background-color: rgba(252, 177, 92, 0.08);
    color: var(--color-text);
    border-bottom: 1px solid rgba(252, 177, 92, 0.2);
    box-shadow: inset 4px 0 0 0 var(--color-primary);
    padding-left: calc(1.25rem + 4px - 4px);
}

/* Tint the default Bootstrap chevron amber via filter — keeps the
   accordion icon Bootstrap-controlled but matches brand. */
.accordion-button::after {
    transition: transform 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.accordion-button:not(.collapsed)::after {
    filter: invert(74%) sepia(40%) saturate(800%) hue-rotate(345deg) brightness(102%);
}

.accordion-button:focus,
.accordion-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    box-shadow: inset 4px 0 0 0 var(--color-primary), 0 0 0 4px rgba(252, 177, 92, 0.15);
}

/* Body content — comfortable padding, readable line-height */
.accordion-body {
    padding: 1.25rem 1.5rem 1.5rem;
    line-height: 1.65;
    color: var(--color-text);
    font-size: 0.975rem;
}

@media (prefers-reduced-motion: reduce) {
    .accordion-item,
    .accordion-button,
    .accordion-button::after {
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }
}

/* ---------- Technology Logo Strip ---------- */
.tech-logos {
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.tech-logos:hover {
    opacity: 1;
}

.tech-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color var(--transition-base), transform var(--transition-base);
}

.tech-logo-link i {
    font-size: var(--text-3xl);
}

.tech-logo-link:hover,
.tech-logo-link:focus-visible {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ---------- Availability Indicator ---------- */
.availability-indicator {
    font-size: var(--text-sm);
    color: var(--color-text-light-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.availability-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.availability-available { background-color: var(--color-status-available); }
.availability-limited { background-color: var(--color-status-limited); }
.availability-unavailable { background-color: var(--color-status-unavailable); }

@media (prefers-reduced-motion: reduce) {
    .availability-dot { animation: none; }
}

/* ---------- Honeypot (spam prevention) ---------- */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* ---------- About Page ---------- */
.founder-photo { min-width: 300px; }

/* ---------- Claude Profile Card ---------- */
.claude-profile-card {
    background: var(--gradient-section);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-secondary-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.claude-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-secondary-lg);
}

.claude-profile-illustration {
    width: 100%;
    height: auto;
    display: block;
}

.claude-profile-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
}

/* ---------- Error page ---------- */
.error-lead {
    font-size: var(--text-xl);
    color: var(--color-text);
}

/* ---------- Map embed ---------- */
.map-responsive {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.map-embed {
    border: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.map-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background: var(--color-surface-dark);
    color: var(--color-text-light-muted);
    text-align: center;
    padding: var(--space-4);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ========================================
   Mobile Sidebar Toggle
   ======================================== */
.sidebar-toggle {
    min-height: 44px;
    font-size: var(--text-sm);
    font-weight: 500;
}

.sidebar-toggle[aria-expanded="true"] {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========================================
   Mobile Card Slider
   ======================================== */
@media (max-width: 767.98px) {
    .services-grid,
    .clients-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: var(--space-3);
        padding-bottom: var(--space-2);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-grid::-webkit-scrollbar,
    .clients-grid::-webkit-scrollbar {
        display: none;
    }

    .services-grid > li,
    .clients-grid > li {
        flex: 0 0 80%;
        scroll-snap-align: start;
        min-width: 0;
    }

    .services-card,
    .clients-card {
        min-height: auto;
        margin-bottom: 0;
    }
}

/* Scroll fade hint */
@media (max-width: 767.98px) {
    .services-block,
    .clients-block {
        position: relative;
    }

    .services-block::after,
    .clients-block::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 2.5rem;
        background: linear-gradient(to right, transparent, var(--color-secondary));
        pointer-events: none;
        z-index: 2;
        transition: opacity var(--transition-base);
    }

    .services-block.scroll-end::after,
    .clients-block.scroll-end::after {
        opacity: 0;
    }
}

/* Slider indicators */
.slider-indicators {
    display: none;
}

@media (max-width: 767.98px) {
    .slider-indicators {
        display: flex;
        justify-content: center;
        gap: var(--space-1);
        padding-top: var(--space-2);
    }

    .slider-dot {
        /* 12px visual dot inside a 44×44px hit area — background-clip: content-box
           keeps the background on the inner 12px only so visuals stay small.
           WCAG 2.5.8 requires ≥44px touch targets. */
        width: 12px;
        height: 12px;
        min-width: 44px;
        min-height: 44px;
        border-radius: var(--radius-full);
        background: var(--color-slider-dot);
        border: none;
        padding: 16px;
        background-clip: content-box;
        cursor: pointer;
        transition: all var(--transition-base);
    }

    .slider-dot.active {
        background: var(--color-primary);
        background-clip: content-box;
        width: 24px;
    }
}

/* ========================================
   Mobile Sticky CTA Bar
   ======================================== */
.mobile-cta-bar {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-cta-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-1);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--glass-bg-heavy);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-top: var(--glass-border);
        padding: var(--space-2) var(--space-3);
        z-index: 1040;
        transform: translateY(100%);
        transition: transform var(--transition-base);
    }

    .mobile-cta-bar.visible {
        transform: translateY(0);
    }

    .mobile-cta-contact {
        flex: 1;
        max-width: 240px;
        font-size: var(--text-base);
        padding: 0.75rem 1.25rem;
    }

    .mobile-cta-phone,
    .mobile-cta-whatsapp {
        flex: 0 0 auto;
        width: 48px;
        height: 48px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: var(--text-lg);
        border-radius: var(--radius-full);
    }

    body.mobile-cta-active {
        padding-bottom: 68px;
    }
}

/* ========================================
   Privacy Banner
   ======================================== */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: var(--glass-border);
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.privacy-banner-text {
    margin: 0;
}

.privacy-banner-dismiss {
    white-space: nowrap;
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .privacy-banner {
        bottom: 68px;
        flex-direction: column;
        gap: var(--space-1);
        text-align: center;
    }
}

/* ========================================
   Reduced Motion — disable transitions for
   accordion, cards, and buttons
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .accordion-button,
    .card,
    .custom-primary-btn,
    .sector-card-image,
    .figure-img {
        transition: none;
    }

    /* Kill final hover/focus transforms too — "transition: none" alone still
       lets the transform snap into place on hover, which can trigger motion
       sensitivity. */
    .card:hover,
    .card:focus-within,
    .figure-img:hover,
    .sector-card-image:hover {
        transform: none;
    }
}

/* ---------- "New" badge — overview cards for recently-added entries ---------- */
.badge-new {
    display: inline-block;
    margin-left: var(--space-2);
    padding: 2px 8px;
    background: var(--color-accent);
    color: var(--color-text-light);
    font-family: var(--font-heading, inherit);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    vertical-align: middle;
    line-height: 1.4;
    user-select: none;
}

/* ============================================================
   SHINE-3 — Card differentiation by entity type
   ============================================================
   Cards on the homepage services section and on the initiatives
   overview don't carry an illustration (unlike service / sector /
   client overview cards), so they share an identical look. This
   move adds a small per-entity icon glyph in the card-header and
   distinguishes initiatives from services via the colour of the
   existing left-border accent on the card-header.

   The pre-existing visual differentiators (illustrations on
   service/sector overview, logos on client cards) carry their
   own weight, so this block intentionally does not touch them.
   ============================================================ */

/* Card-header icon glyph — small, brand-coloured, inline with the
   heading title. Decorative (aria-hidden in markup). */
.card-icon {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.95em;
    margin-right: 0.55em;
    opacity: 0.9;
    width: 1.1em;
    text-align: center;
}

/* Initiative card — cyan border accent + cyan icon (the existing
   amber border stays the default for service cards). The
   `border-image-source` override paints a vertical cyan gradient
   along the left edge while keeping the same 4px slice thickness. */
.initiative-card .card-header {
    border-image-source: linear-gradient(180deg,
        var(--color-accent) 0%,
        var(--color-accent-hover, var(--color-accent)) 100%);
}
.initiative-card .card-icon {
    color: var(--color-accent);
}

/* Card-type badge — used for game initiatives (Huevo + ORBYX).
   Tiny pill in the top-right of the card; reads as a subtle
   genre marker so visitors can spot the games at a glance among
   the more business-oriented initiatives. */
.initiative-card {
    position: relative;
}
.card-type-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    padding: 3px 9px;
    background: var(--color-text);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    pointer-events: none;
}
.initiative-game-card .card-type-badge {
    background: var(--color-accent);
}

/* ============================================================
   SHINE-9 — Contact form treatment
   ============================================================
   The contact form is the most critical conversion touchpoint.
   Bumps every input's presence, gives focus a confident dual-cue
   (outline for WCAG + soft amber glow for warmth), promotes the
   submit button to a full-width pill with tactile lift, and
   tightens label hierarchy.
   ============================================================ */

/* More breathing room inside the form card */
.custom-contact-container .card-body {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* Labels — confident weight, not muted; required asterisk in primary */
.custom-contact-container .form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    letter-spacing: 0.005em;
    margin-bottom: 0.5rem;
}
.custom-contact-container .form-label span[aria-hidden="true"] {
    color: var(--color-primary);
    margin-left: 0.2em;
    font-weight: 700;
}

/* Inputs — bigger, more presence, gentler resting border, smoother focus.
   Keeps the explicit outline for WCAG 2.4.7; adds a soft amber glow on
   top via box-shadow for warmth. */
.custom-contact-container .form-control,
.custom-contact-container .form-select {
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    background-color: #fff;
    transition:
        border-color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        background-color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.custom-contact-container .form-control:hover:not(:focus),
.custom-contact-container .form-select:hover:not(:focus) {
    border-color: rgba(252, 177, 92, 0.55);
}
.custom-contact-container .form-control:focus,
.custom-contact-container .form-select:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(252, 177, 92, 0.18);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Field spacing rhythm */
.custom-contact-container .mb-3 {
    margin-bottom: 1.25rem !important;
}

/* Privacy checkbox — bigger touch target, brand colour on check */
.custom-contact-container .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.25em;
    margin-right: 0.5em;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
}
.custom-contact-container .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.custom-contact-container .form-check-input:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(252, 177, 92, 0.15);
}
.custom-contact-container .form-check-label {
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Submit button — full-width pill, presence, tactile lift on hover */
.custom-contact-container button[type="submit"] {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    margin-top: 0.75rem;
    min-height: 52px;
    transition:
        transform 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.custom-contact-container button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -10px rgba(252, 177, 92, 0.45);
}
.custom-contact-container button[type="submit"]:active {
    transform: translateY(0);
}

/* Help text under inputs (e.g. privacy disclaimer below checkbox) */
.custom-contact-container .form-text,
.custom-contact-container .form-check + .form-text,
.custom-contact-container .form-check ~ small {
    font-size: 0.825rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    line-height: 1.55;
}

/* Inline error feedback — bump weight + colour for clarity */
.custom-contact-container .invalid-feedback {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.4rem;
    color: var(--color-danger, #c33);
}

@media (prefers-reduced-motion: reduce) {
    .custom-contact-container .form-control,
    .custom-contact-container .form-select,
    .custom-contact-container button[type="submit"] {
        transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }
    .custom-contact-container button[type="submit"]:hover,
    .custom-contact-container button[type="submit"]:active {
        transform: none;
    }
}

/* ============================================================
   SHINE-5 — Micro-interactions: hover, focus, active polish
   ============================================================
   Subtle reactive feedback so the site feels alive when poked.
   Everything respects prefers-reduced-motion via the existing
   global rule that kills transforms inside that media query.
   ============================================================ */

/* Card hover lift — small translateY + a softer shadow upgrade.
   Service / client / initiative cards all share the same .card
   selector so this applies consistently. */
.services-card,
.clients-card {
    transition:
        transform 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.services-card:hover,
.clients-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px -12px rgba(26, 26, 46, 0.18),
        0 0 0 1px rgba(252, 177, 92, 0.12);
}
.initiative-card:hover {
    box-shadow:
        0 12px 28px -12px rgba(26, 26, 46, 0.18),
        0 0 0 1px rgba(6, 182, 212, 0.18);
}

/* Animated underline on prose links — grows from left on hover. */
.prose a:not(.btn),
.accordion-body a:not(.btn) {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    text-decoration: none;
    transition: background-size 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    padding-bottom: 2px;
}
.prose a:not(.btn):hover,
.prose a:not(.btn):focus-visible,
.accordion-body a:not(.btn):hover,
.accordion-body a:not(.btn):focus-visible {
    background-size: 100% 1px;
    text-decoration: none;
}

/* Button hover — subtle vertical lift + brightness. The primary
   button already has a defined hover state; this layers a small
   transform on top for tactility without overriding the colour. */
.btn {
    transition:
        transform 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        background-color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
        color 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
    transition-duration: 0.05s;
}

/* Reduced-motion: kill the lifts but keep the colour transitions
   so users with motion sensitivity still get hover feedback. */
@media (prefers-reduced-motion: reduce) {
    .services-card,
    .clients-card,
    .btn {
        transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }
    .services-card:hover,
    .clients-card:hover,
    .btn:hover {
        transform: none;
    }
    .prose a:not(.btn),
    .accordion-body a:not(.btn) {
        transition: none;
        background-size: 100% 1px;
    }
}

