/**
 * Core colours — works even when Vite/Tailwind CSS is missing (no npm build).
 * Keep selectors aligned with .site-header, #site-hero, .site-hero-copy, .site-footer
 */

html {
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    color: #18181b;
    background: #ffffff;
    font-family: "DM Sans", system-ui, sans-serif;
}

/* Header nav — dark text on white */
.site-header {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e4e4e7;
}

.site-header nav[aria-label="Primary"] a {
    color: #27272a !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.site-header nav[aria-label="Primary"] a:hover {
    color: #1d4ed8 !important;
}

.site-header nav[aria-label="Mobile"] a {
    color: #27272a !important;
    font-weight: 600 !important;
}

.site-header .site-header-cta {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Hero */
#site-hero {
    position: relative;
    overflow: hidden;
    background: #020617 !important;
    min-height: 0;
}

#site-hero .site-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    pointer-events: none;
}

#site-hero .site-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.94),
        rgba(15, 23, 42, 0.92),
        #020617
    );
    pointer-events: none;
}

/* Decorative layers — layout safe without Tailwind */
#site-hero .site-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
}

#site-hero .site-hero-blob {
    position: absolute;
    right: -6rem;
    top: 50%;
    transform: translateY(-50%);
    width: min(90vw, 28rem);
    height: min(90vw, 28rem);
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0.5;
    background: radial-gradient(
        circle,
        rgba(34, 211, 238, 0.2),
        rgba(168, 85, 247, 0.12),
        transparent 70%
    );
    filter: blur(48px);
}

#site-hero .site-hero-copy {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    #site-hero .site-hero-copy {
        padding: 2rem;
    }
}

#site-hero .site-hero-copy,
#site-hero .site-hero-copy p,
#site-hero .site-hero-copy dt {
    color: #f1f5f9 !important;
}

#site-hero .site-hero-copy h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

#site-hero .site-hero-copy .site-hero-accent {
    color: #a5f3fc !important;
}

#site-hero .site-hero-copy dd {
    color: #ffffff !important;
}

#site-hero .site-hero-copy a.site-hero-btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
}

#site-hero .site-hero-copy a.site-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* Footer */
.site-footer,
.site-footer a {
    color: #e2e8f0 !important;
}

.site-footer {
    background: #09090b !important;
}

.site-footer a:hover {
    color: #ffffff !important;
}

/* Inner page hero (About, Services, Process, FAQ, etc.) — dark band always readable */
.site-page-hero {
    background: #020617 !important;
    border-bottom: 1px solid #27272a !important;
}

.site-page-hero .site-page-hero-eyebrow {
    color: #a5f3fc !important;
}

.site-page-hero .site-page-hero-title {
    color: #ffffff !important;
}

.site-page-hero .site-page-hero-subtitle {
    color: #e2e8f0 !important;
}

/* Process page — step numbers must stay visible without Tailwind gradients */
.process-step-num {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 4rem !important;
    min-height: 4rem !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 1rem !important;
}

.process-step-title {
    color: #18181b !important;
}

.process-step-body {
    color: #3f3f46 !important;
}

/* Dark CTA strip at bottom of several pages */
.site-bottom-cta {
    background: #09090b !important;
}

.site-bottom-cta h2 {
    color: #ffffff !important;
}

.site-bottom-cta p {
    color: #e2e8f0 !important;
}

.site-bottom-cta a[href] {
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 0.875rem 2.5rem !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Light sections — do not override #site-hero (higher specificity above) */
main > section:not(#site-hero) h1,
main > section:not(#site-hero) h2,
main > section:not(#site-hero) h3 {
    color: #18181b;
}

main > section:not(#site-hero) p {
    color: #3f3f46;
}
