/* Angels Consulting Solutions. Colours, fonts and radii come from AngelsTheme (MudTheme); this file adds what MudBlazor
   has no parameter for: glass surfaces, gradient text, the textured background and the section layouts. */

:root {
    --ac-navy: #0d131f;
    --ac-navy-raised: #161f30;
    --ac-cyan: #00b4d8;
    --ac-cyan-bright: #22d3ee;
    --ac-amber: #f59e0b;
    --ac-amber-bright: #fbbf24;
    --ac-silver: #94a3b8;
    --ac-glass-border: rgba(148, 163, 184, 0.14);
    --ac-appbar-height: 72px;
    --ac-display-font: Montserrat, "Segoe UI", Roboto, sans-serif;
    /* Cyan to amber through a near-white highlight: a direct cyan-amber blend turns green in the middle. */
    --ac-gradient-text: linear-gradient(100deg, #00b4d8 0%, #22d3ee 42%, #e0f7ff 68%, #fde68a 84%, #fbbf24 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(1200px 800px at 100% 0%, rgba(22, 31, 48, 0.9), transparent 60%),
        linear-gradient(165deg, #0d131f 0%, #111a2a 55%, #161f30 100%) fixed;
    -webkit-font-smoothing: antialiased;
}

/* The fixed app bar must not cover a section's heading when a link scrolls to it. */
section[id] {
    scroll-margin-top: calc(var(--ac-appbar-height) + 8px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ac-cyan-bright);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -56px;
    z-index: 2000;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--ac-cyan-bright);
    color: var(--ac-navy);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 12px;
}

.site-main {
    display: block;
}

.text-gradient {
    background: var(--ac-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Brand logo ---------- */

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

/* BrandLogo sets the height (its Size) through the img attributes; width follows the square icon, so a smaller height
   below never distorts it. */
.brand-mark {
    display: block;
    flex-shrink: 0;
    width: auto;
    object-fit: contain;
    transition: filter 0.25s ease, transform 0.25s ease;
}

/* The drop shadows follow the icon's alpha, so the mark itself glows in its own cyan and amber. */
a.brand-logo:hover .brand-mark,
a.brand-logo:focus-visible .brand-mark {
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5)) drop-shadow(0 0 14px rgba(251, 191, 36, 0.28));
    transform: translateY(-1px);
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--ac-display-font);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    background: linear-gradient(90deg, #ffffff 0%, #67e8f9 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-tagline {
    margin-top: 5px;
    font-family: var(--ac-display-font);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #fff;
}

/* ---------- Header (glass app bar) and mobile drawer ---------- */

.glass-appbar.mud-appbar {
    background-color: rgba(13, 19, 31, 0.62);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--ac-glass-border);
}

.appbar-inner {
    height: var(--ac-appbar-height);
}

.nav-link.mud-button-root {
    color: var(--ac-silver);
    font-weight: 600;
}

.nav-link.mud-button-root:hover {
    color: #fff;
    background-color: rgba(34, 211, 238, 0.08);
}

/* The closed drawer waits just past the right edge, and phones zoom the whole page out to show a fixed element there
   (overflow-x: hidden doesn't stop it). Paint containment makes this viewport-sized layer the drawer's containing block
   and clips it; taps pass through the layer to the page. Above the app bar, so the open drawer and its overlay cover it. */
.drawer-layer {
    position: fixed;
    inset: 0;
    z-index: calc(var(--mud-zindex-appbar) + 1);
    contain: layout paint;
    pointer-events: none;
}

.drawer-layer > * {
    pointer-events: auto;
}

.site-drawer.mud-drawer {
    background-color: rgba(13, 19, 31, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--ac-glass-border);
}

.site-drawer .mud-nav-link {
    padding: 12px 24px;
    font-family: var(--ac-display-font);
    font-weight: 600;
}

/* ---------- Shared surfaces ---------- */

.glass-card.mud-paper {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, rgba(22, 31, 48, 0.8), rgba(13, 19, 31, 0.68));
    border: 1px solid var(--ac-glass-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
}

.icon-tile {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(0, 180, 216, 0.12);
    color: var(--ac-cyan-bright);
}

.icon-tile--large {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.tech-chip.mud-chip {
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.capability-title.mud-typography {
    color: #fff;
    font-weight: 600;
}

/* ---------- Sections ---------- */

.section {
    position: relative;
    padding: 96px 0;
}

.section--raised {
    background: linear-gradient(180deg, rgba(22, 31, 48, 0.6), rgba(13, 19, 31, 0.1));
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section-heading--centered {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.section-lead {
    max-width: 42rem;
}

.section-heading--centered .section-lead {
    margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--ac-appbar-height) + 80px) 0 24px;
}

/* Two soft glows over a faint circuit grid that fades out toward the bottom. */
.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(560px 420px at 88% 18%, rgba(245, 158, 11, 0.16), transparent 70%),
        radial-gradient(720px 520px at 8% 6%, rgba(0, 180, 216, 0.22), transparent 70%),
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-inner {
    position: relative;
}

.hero-badge.mud-chip {
    border-color: rgba(34, 211, 238, 0.4);
    background-color: rgba(0, 180, 216, 0.08);
    letter-spacing: 0.03em;
}

.mud-typography.hero-title {
    font-size: clamp(2.2rem, 4.4vw + 0.6rem, 3.75rem);
}

.hero-lead.mud-typography {
    max-width: 40rem;
    font-size: 1.15rem;
}

.cta-primary.mud-button-root {
    box-shadow: 0 12px 32px -12px rgba(0, 180, 216, 0.75);
}

.hero-card::before,
.pillar-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, var(--ac-cyan-bright)), var(--ac-amber-bright), transparent);
}

.journey {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.journey-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* The line joining one step's icon to the next. */
.journey-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 46px;
    bottom: -18px;
    width: 2px;
    background: linear-gradient(rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0.05));
}

.journey-title.mud-typography {
    font-family: var(--ac-display-font);
    font-weight: 700;
}

.trust-strip {
    padding-top: 32px;
    border-top: 1px solid var(--ac-glass-border);
}

.trust-title {
    display: block;
    color: #fff;
    font-family: var(--ac-display-font);
}

/* ---------- Services ---------- */

.pillar-card.mud-paper {
    display: flex;
    flex-direction: column;
}

.accent-cyan {
    --accent: var(--ac-cyan-bright);
}

.accent-amber {
    --accent: var(--ac-amber-bright);
}

.accent-amber .icon-tile {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(245, 158, 11, 0.12);
    color: var(--ac-amber-bright);
}

.pillar-overline.mud-typography {
    color: var(--accent);
}

.capability-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.capability {
    display: flex;
    gap: 14px;
}

.capability-icon.mud-icon-root {
    margin-top: 4px;
    color: var(--accent);
}

/* The call to action sits at the bottom whatever the card's length. */
.pillar-cta.mud-button-root {
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- Olaixi ---------- */

.flagship-visual.mud-paper {
    overflow: hidden;
    text-align: center;
}

.flagship-glow {
    position: absolute;
    top: 6%;
    left: 15%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.32), rgba(245, 158, 11, 0.12) 52%, transparent 70%);
    filter: blur(12px);
}

.flagship-mascot {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

/* ---------- About and approach ---------- */

.stat-number {
    font-family: var(--ac-display-font);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    margin-bottom: 4px;
    color: #fff;
    font-family: var(--ac-display-font);
    font-size: 1rem;
}

.value-card.mud-paper,
.process-card.mud-paper {
    height: 100%;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.process-number {
    font-family: var(--ac-display-font);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

/* ---------- Contact ---------- */

.next-steps {
    display: grid;
    gap: 20px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-dot {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ac-cyan-bright), var(--ac-amber-bright));
    color: var(--ac-navy);
    font-family: var(--ac-display-font);
    font-weight: 800;
}

.inquiry-types {
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
}

.form-success {
    padding: 40px 0;
    text-align: center;
}

/* ---------- Footer and status pages ---------- */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(8, 12, 20, 0.6);
}

.footer-blurb.mud-typography {
    max-width: 26rem;
}

.footer-heading.mud-typography {
    display: block;
    margin-bottom: 12px;
    color: #fff;
}

/* !important: MudLink's colour classes (mud-inherit-text and friends) are !important themselves. */
.footer-link.mud-link {
    display: block;
    padding: 4px 0;
    color: var(--ac-silver) !important;
}

.footer-link.mud-link:hover {
    color: #fff !important;
}

.status-page {
    min-height: 70vh;
    padding-top: calc(var(--ac-appbar-height) + 96px);
}

/* ---------- Responsive ---------- */

@media (max-width: 959.98px) {
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599.98px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: calc(var(--ac-appbar-height) + 40px) 0 48px;
    }

    .mud-typography-h2 {
        font-size: 1.9rem;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-logo--header .brand-mark {
        height: 32px;
    }

    .process-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- Blazor's error bar ---------- */

#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: none;
    width: 100%;
    padding: 0.6rem 1.25rem 0.7rem;
    background: var(--ac-amber-bright);
    color: var(--ac-navy);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
}
