﻿/* =========================================================
   AKTIKA – Site styles (consolidated, optimized, drop-in)
   Notes:
   - All color/spacing/radius/shadow tokens centralized.
   - Duplicates removed (e.g., #about .about-hover).
   - Motion gated by prefers-reduced-motion.
   - Keyboard focus made visible (:focus-visible ring).
   - Anchor offsets scoped to section-like targets.
   - Backdrop-filter has a safe fallback.
   - Logical properties used where risk-free (inline margins).
   ========================================================= */

/* ------------------------------
   CSS Variables / Theme Tokens
   ------------------------------ */
:root {
    /* Brand */
    --brand-start: #2563eb; /* blue-600 */
    --brand-end: #4f46e5; /* indigo-600 */
    --accent: #60a5fa; /* blue-400 */
    /* Text & Neutrals */
    --text-900: #0f172a; /* slate-900 */
    --text-700: #374151; /* gray-700 */
    --text-600: #475569; /* slate-600 */
    --text-500: #6b7280; /* gray-600 (used in service-li) */
    --text-muted: #4b5563; /* gray-600 (kept for backward compat) */
    /* Surfaces */
    --surface-0: #ffffff;
    --surface-50: #f9fafb; /* base card */
    --surface-75: #f7f9ff; /* hero bg (legacy) */
    --surface-100: #f3f7ff; /* hero gradient base */
    --surface-200: #eff6ff; /* hover tint A */
    --surface-300: #eef2ff; /* hover tint B */
    /* Borders */
    --border: #e5e7eb; /* gray-200 */
    /* Footer (dark) */
    --footer-bg: #0b1220;
    --footer-text: #cbd5e1;
    --footer-muted: #94a3b8;
    --footer-border: rgba(255,255,255,.08);
    /* Layout */
    --header-h: 72px; /* default fixed header height */
    --header-h-lg: 84px; /* large viewports */
    --anchor-offset: 90px; /* scroll snap offset */
    /* Spacing scale (for future use) */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    /* Radii */
    --radius-sm: .375rem;
    --radius-md: .5rem;
    --radius-lg: .75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    /* Focus ring */
    --ring: var(--accent);
    /* Re-usable shadow tokens */
    --shadow-side: 16px;
    --shadow-side-color: rgba(15,23,42,.14); /* darker side glow */
    --shadow-x: 0px;
    --shadow-y: 18px; /* stronger bottom */
    --shadow-blur: 36px;
    --shadow-spread: -10px;
    --shadow-color: rgba(15,23,42,.28); /* deeper bottom */
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------
   Base
   ------------------------------ */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: var(--header-h);
    color: var(--text-900);
    background: var(--surface-0);
}

/* Section spacing with content-visibility for long pages */
section {
    padding-block: 80px;
    content-visibility: auto;
    contain-intrinsic-size: 800px 1000px; /* optimistic height to reserve space */
}

.hero {
    padding-block: 110px 80px;
    background: var(--surface-75);
}

.hero-gradient {
    position: relative;
    padding-block: 110px 80px;
    background: radial-gradient(1200px 600px at 10% 90%, rgba(99,102,241,.15), transparent 60%), radial-gradient(900px 500px at 95% 5%, rgba(59,130,246,.18), transparent 60%), var(--surface-100);
}

/* Anchor offset: scope to likely targets to avoid surprises */
section[id], header[id], footer[id], div[id].anchor-target {
    scroll-margin-top: var(--anchor-offset);
}

/* Smaller spacing on mobile */
@media (max-width: 575.98px) {
    section {
        padding-block: 56px;
    }

    .hero, .hero-gradient {
        padding-block: 96px 64px;
    }
}

/* Adjust fixed header spacing on large screens */
@media (min-width: 992px) {
    body {
        padding-top: var(--header-h-lg);
    }

    section[id], header[id], footer[id], div[id].anchor-target {
        scroll-margin-top: calc(var(--header-h-lg) + 18px);
    }
}

/* ------------------------------
   Global focus visibility (a11y)
   ------------------------------ */
:where(a, button, [role="button"], .btn-gradient, .btn-grad, .btn-outline-blue, .nav-link):focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* ------------------------------
   Header / Navigation
   ------------------------------ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}

/* Fallback if backdrop-filter unsupported */
@supports not ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
    .site-header {
        background: var(--surface-0);
    }
}

/* Brand chip + title (single definition) */
.brand {
    font-weight: 800;
    letter-spacing: .5px;
}

.brand-chip {
    inline-size: 32px;
    block-size: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.brand-title {
    font-weight: 800;
    letter-spacing: .3px;
    font-size: 1.1rem;
    color: var(--text-900);
}

/* Footer variant of brand title */
.footer-dark .brand-title {
    color: #e5e7eb;
}

.nav-main .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding-block: .25rem;
    padding-inline: .5rem !important;
    transition: color .15s ease, opacity .15s ease;
}

    .nav-main .nav-link:hover,
    .nav-main .nav-link.active {
        color: var(--brand-start) !important;
    }

.nav-link.active {
    font-weight: 600;
}

/* Desktop nav spacing */
@media (min-width: 992px) {
    .nav-main .nav-item {
        margin-inline: .35rem;
    }
}

/* Increase tap target on small screens */
@media (max-width: 575.98px) {
    .nav-main .nav-link {
        padding: .5rem .75rem !important;
    }
}

/* Email (non-clickable) */
.email-pill {
    color: var(--text-muted);
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* ------------------------------
   Buttons / Links
   ------------------------------ */
.btn-gradient,
.btn-grad {
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 0;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
}

.btn-gradient {
    padding: .5rem 1rem;
}

.btn-grad {
    padding: .9rem 1.5rem;
}

    .btn-gradient:hover,
    .btn-grad:hover {
        color: #fff;
        filter: brightness(.95);
    }

.btn-outline-blue {
    border: 2px solid var(--brand-start);
    color: var(--brand-start);
    background: transparent;
    padding: .9rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

    .btn-outline-blue:hover {
        background: var(--brand-start);
        color: #fff;
    }

.link-accent {
    color: var(--brand-start);
    text-decoration: none;
}

    .link-accent:hover {
        color: #1d4ed8;
    }

.link-bold {
    font-weight: 700;
}

/* ------------------------------
   Badges / Utilities
   ------------------------------ */
.badge-soft {
    background: #f0f4ff;
    border: 1px solid #dfe7ff;
}

.xsmall {
    font-size: .82rem;
}

.dot {
    opacity: .6;
}

/* Custom tints */
.text-indigo {
    color: #4f46e5 !important;
}

.text-purple {
    color: #7c3aed !important;
}

.bg-indigo {
    background: #4f46e5 !important;
}

.bg-purple {
    background: #7c3aed !important;
}

.bg-orange {
    background: #f59e0b !important;
}

/* ------------------------------
   HERO
   ------------------------------ */
.hero-title {
    font-weight: 800;
    line-height: 1.1;
    margin-block-end: .6rem;
    color: var(--text-900);
}

.hero-brand-gradient {
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    color: var(--text-600);
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.3);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-feature {
        transition: background .25s ease;
    }

        .hero-feature:hover {
            background: rgba(255,255,255,.8);
        }
}

.hero-contact {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
}

.hero-icon {
    inline-size: 32px;
    block-size: 32px;
}

/* ------------------------------
   Services (scoped)
   ------------------------------ */
#services .service-card {
    background: linear-gradient(145deg, var(--surface-50) 0%, var(--surface-0) 60%);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
}

@media (prefers-reduced-motion: no-preference) {
    #services .service-card {
        transition: box-shadow .25s ease, transform .25s ease, background .35s ease;
        will-change: transform;
    }

        #services .service-card:hover {
            background: linear-gradient(145deg, var(--surface-200) 0%, var(--surface-300) 60%);
            transform: translateY(-4px);
            z-index: 1;
            box-shadow: calc(var(--shadow-side) * -1) 12px 24px -12px var(--shadow-side-color), var(--shadow-side) 12px 24px -12px var(--shadow-side-color), var(--shadow-x) var(--shadow-y) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
        }

    #services .service-icon {
        transition: transform .3s ease;
    }

    #services .service-card:hover .service-icon {
        transform: scale(1.08);
    }
}

#services .service-li {
    display: flex;
    align-items: center;
    margin-block: .35rem;
    font-size: .95rem;
    color: var(--text-500);
}

#services .service-li::before {
    content: "";
    inline-size: .4rem;
    block-size: .4rem;
    border-radius: 999px;
    margin-inline-end: .6rem;
    background: var(--brand-start);
    flex: 0 0 .4rem;
}

/* ------------------------------
   About (scoped)
   ------------------------------ */
/* Base */
#about .about-card {
    background: linear-gradient(145deg, var(--surface-50) 0%, var(--surface-0) 60%);
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
}

/* Hover (gated) */
@media (prefers-reduced-motion: no-preference) {
    #about .about-card {
        transition: box-shadow .25s ease, transform .25s ease, background .35s ease;
        will-change: transform;
    }

        #about .about-card:hover {
            background: linear-gradient(145deg, var(--surface-200) 0%, var(--surface-300) 60%);
            transform: translateY(-4px);
            z-index: 1;
            box-shadow: calc(var(--shadow-side) * -1) 12px 24px -12px var(--shadow-side-color), var(--shadow-side) 12px 24px -12px var(--shadow-side-color), var(--shadow-x) var(--shadow-y) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
        }
}

/* Pill */
#about .about-pill {
    width: fit-content;
    margin: .25rem auto 1rem;
    padding: .75rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--surface-200), var(--surface-300));
}

@media (prefers-reduced-motion: no-preference) {
    #about .about-card:hover .about-pill {
        background: linear-gradient(145deg, #e8f1ff, #e9ecff);
    }
}

/* Consolidated about-hover (removed duplicate definitions) */
#about .about-hover {
    background: linear-gradient(145deg, var(--surface-50) 0%, var(--surface-0) 60%);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
}

@media (prefers-reduced-motion: no-preference) {
    #about .about-hover {
        transition: box-shadow .25s ease, transform .25s ease, background .35s ease;
        will-change: transform;
    }

        #about .about-hover:hover {
            background: linear-gradient(145deg, var(--surface-200) 0%, var(--surface-300) 60%);
            transform: translateY(-4px);
            z-index: 1;
            box-shadow: calc(var(--shadow-side) * -1) 12px 24px -12px var(--shadow-side-color), var(--shadow-side) 12px 24px -12px var(--shadow-side-color), var(--shadow-x) var(--shadow-y) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
        }

            #about .about-hover:hover span {
                background: linear-gradient(145deg, #e8f1ff, #e9ecff);
            }
}

#about .about-why {
    border-radius: var(--radius-2xl);
}

#about .about-dot {
    inline-size: .5rem;
    block-size: .5rem;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 .5rem;
}

#about .group-hover-text {
    transition: color .25s ease;
}

#about .about-hover:hover .group-hover-text {
    color: var(--brand-start);
}

/* ------------------------------
   Footer (dark)
   ------------------------------ */
.footer-dark {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-heading {
    color: #e5e7eb;
    font-weight: 600;
    margin-block-end: .75rem;
}

.footer-list li {
    margin-block: .375rem;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    transition: color .15s ease;
}

    .footer-link:hover {
        color: var(--accent);
    }

.footer-link-accent {
    color: var(--accent);
    text-decoration: none;
}

    .footer-link-accent:hover {
        color: #93c5fd;
    }

.footer-muted {
    color: var(--footer-muted);
}

.footer-contact svg {
    display: block;
}

.footer-sep {
    border-color: var(--footer-border);
}

.text-accent {
    color: var(--accent);
}

/* Optional: footer element outside .footer-dark
   Prefer adding class="site-footer footer-dark" in markup. */
.site-footer {
    background: #0c1022;
    color: #cbd3ff;
    padding-block: 40px;
}

/* Legacy global footer selector retained for drop-in safety */
footer {
    background: #0c1022;
    color: #cbd3ff;
    padding: 40px 0;
}

/* ------------------------------
   Performance niceties (gated)
   ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
    /* Only promote on hoverable cards to avoid persistent layers */
    #services .service-card:hover,
    #about .about-card:hover,
    #about .about-hover:hover {
        will-change: transform;
    }
}

/* ------------------------------
   Optional: dark-mode seed (off by default)
   Enable when ready by overriding tokens.
   ------------------------------ */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --text-900: #e5e7eb;
        --text-600: #cbd5e1;
        --text-500: #94a3b8;
        --surface-0:  #0b1220;
        --surface-50: #0f172a;
        --surface-100:#111827;
        --border: rgba(255,255,255,.12);
    }
    body { color-scheme: dark; }
}
*/

/* Expertise band: exact Tailwind-like visuals */
.tech-band {
    background: linear-gradient(90deg, var(--brand-start) 0%, var(--brand-end) 100%) !important;
    color: #fff;
    border-radius: 1rem; /* rounded-2xl */
    padding: 2rem; /* p-8 */
}

@media (min-width: 768px) {
    .tech-band {
        padding: 3rem;
    }
    /* p-md-5 */
}

/* Spacing utility to mirror Tailwind mt-20 (5rem) */
.mt-20 {
    margin-top: 5rem !important;
}

/* Width utility to cap the subheading line length (max-w-2xl) */
.max-w-2xl {
    max-width: 42rem;
}

/* Icon and tint utilities to match blue-100/200 tones */
.text-blue-100 {
    color: #dbeafe !important;
}
/* Tailwind blue-100 */
.text-blue-200 {
    color: #bfdbfe !important;
}
/* Tailwind blue-200 */

/* Ensure headings use tighter spacing on dark band */
.expertise-title {
    letter-spacing: .2px;
}

/* ---------- Team section visuals ---------- */

/* Card look: soft gradient surface + round corners + subtle borderless shadow */
.team-card {
    background: linear-gradient(145deg, var(--surface-50) 0%, var(--surface-0) 60%);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
}

@media (prefers-reduced-motion: no-preference) {
    .team-card {
        transition: box-shadow .25s ease, transform .25s ease, background .35s ease;
    }

        .team-card:hover {
            background: linear-gradient(145deg, var(--surface-200) 0%, var(--surface-300) 60%);
            box-shadow: 0 .75rem 2rem rgba(16,24,40,.12);
            transform: translateY(-2px);
        }
}

/* Icon tints and hover scale */
.team-icon-wrap {
    display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
    .team-icon-wrap {
        transition: transform .3s ease;
    }

    .team-card:hover .team-icon-wrap {
        transform: scale(1.10);
    }
}
/* Color utilities to match the reference palette */
.text-blue-600 {
    color: #2563eb !important;
}

.text-indigo-600 {
    color: #4f46e5 !important;
}

.text-purple-600 {
    color: #7c3aed !important;
}

.text-green-600 {
    color: #16a34a !important;
}

.text-red-600 {
    color: #dc2626 !important;
}

.text-orange-600 {
    color: #f59e0b !important;
}

/* Title hover to brand */
@media (prefers-reduced-motion: no-preference) {
    .team-title {
        transition: color .2s ease;
    }

    .team-card:hover .team-title {
        color: var(--brand-start);
    }
}

/* Skill chips */
.team-chip {
    display: inline-flex;
    align-items: center;
    padding: .25rem .55rem; /* px-2.5 py-0.5 approx */
    border-radius: 999px;
    font-size: .75rem; /* text-xs */
    font-weight: 600;
    background: #dbeafe; /* blue-100 */
    color: #1d4ed8; /* blue-700 */
    text-decoration: none;
    border: 1px solid transparent;
}

@media (prefers-reduced-motion: no-preference) {
    .team-chip {
        transition: background-color .2s ease, color .2s ease;
    }

        .team-chip:hover {
            background: #bfdbfe;
        }
    /* blue-200 */
}

/* Utilities to match reference text widths/leading */
.max-w-3xl {
    max-width: 48rem;
}

.leading-relaxed {
    line-height: 1.75;
}

/* Sections: light blue background (Tailwind to-blue-50 / #eff6ff) */
.section-blue-50 {
    background: var(--surface-200);
}
/* --surface-200 = #eff6ff */

/* If you prefer ID targeting without touching markup, use this instead:
#services, #expertise { background: var(--surface-200); }
*/

/* ========= Team Values section ========= */

/* Gradient band (matches tech band styling; keeps consistent paddings/radius) */
.values-band {
    background: linear-gradient(90deg, var(--brand-start) 0%, var(--brand-end) 100%);
    color: #fff;
    border-radius: 1rem; /* rounded-2xl look */
    padding: 2rem; /* p-8 */
}

@media (min-width: 768px) {
    .values-band {
        padding: 3rem;
    }
    /* p-md-5 */
}

/* Frosted value pills */
.value-pill {
    display: flex;
    align-items: center;
    gap: .75rem; /* space-x-3 */
    padding: 1rem; /* p-4 */
    background: rgba(255,255,255,.10);
    border-radius: .75rem; /* rounded-lg */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
    .value-pill {
        transition: background-color .3s ease;
    }

        .value-pill:hover {
            background: rgba(255,255,255,.20);
        }
}

/* Small dot (w-2 h-2) */
.dot-2 {
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    flex: 0 0 .5rem;
}

/* Color tints used on gradient band (if not already present) */
.text-blue-100 {
    color: #dbeafe !important;
}
/* Tailwind blue-100 */
.text-blue-200 {
    color: #bfdbfe !important;
}
/* Tailwind blue-200 */

/* Margin utility (mt-16 = 4rem) */
.mt-16 {
    margin-top: 4rem !important;
}

/* ---------- Technologies matrix card ---------- */
.rounded-xl {
    border-radius: .75rem;
}
/* convenience */
.tech-matrix {
    background: var(--surface-50); /* light gray-50 card */
}

/* Vertical spacing like Tailwind's space-y-1 */
.stack-list > * + * {
    margin-top: .25rem;
}

/* Optional type helper (already similar via Bootstrap, but keeps parity) */
.fw-medium {
    font-weight: 500;
}

.text-dark {
    color: var(--text-900);
}

/* ========== Pricing cards ========== */

/* Card base: soft glass look with blur, rounded, subtle shadow */
.pricing-card {
    background: rgba(255,255,255,.80);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
    border: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .pricing-card {
        transition: box-shadow .25s ease, transform .25s ease, background-color .25s ease;
    }

        .pricing-card:hover {
            box-shadow: 0 .75rem 2rem rgba(16,24,40,.12);
        }
}

/* Featured plan: blue border + slight scale; top ribbon with gradient */
.pricing-featured {
    border: 2px solid var(--brand-start);
}

@media (prefers-reduced-motion: no-preference) {
    .pricing-featured {
        transform: scale(1.02);
    }
}

.pricing-ribbon {
    position: absolute;
    inset: 0 0 auto 0;
    text-align: center;
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Little gray “badge” chips above titles */
.pricing-badge {
    background: #f1f5f9; /* gray-100 */
    color: #475569; /* slate-600 */
    font-weight: 600;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .75rem;
}

/* Price emphasis */
.pricing-price {
    color: var(--brand-start);
    font-weight: 800;
    font-size: 2.25rem; /* ~ text-4xl */
    margin-right: .25rem;
}

/* Feature list with green checks */
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.pricing-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
    color: #475569; /* slate-600 */
    margin: .5rem 0;
}

.pricing-check {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #22c55e; /* green-500 */
    display: inline-block;
    position: relative;
    flex: 0 0 1rem;
}

.pricing-check::after {
    content: "";
    position: absolute;
    inset: 0;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M20 6 9 17l-5-5'/></svg>") center / 90% no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M20 6 9 17l-5-5'/></svg>") center / 90% no-repeat;
    background: #fff;
}

/* Utilities used by heading text */
.max-w-3xl {
    max-width: 48rem;
}

/* -------- Specialized Services Section -------- */

/* Matches Pricing & Expertise background tone */
.section-blue-50 {
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

/* Consistent shadow and card rounding */
.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3 {
    border-radius: 0.75rem;
}

/* Brand primary gradient already defined, reuse */
.btn-gradient {
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    color: #fff;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(90deg, var(--brand-hover-start, #1d4ed8), var(--brand-hover-end, #4338ca));
    color: #fff;
}

/* Layout helpers to mirror Tailwind widths */
.max-w-3xl {
    max-width: 48rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Contact info tiles (soft tint gradient + hover lift) */
.contact-tile {
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 70%);
}

    .contact-tile.from-blue-50.to-indigo-50 {
        background: linear-gradient(145deg, #eff6ff, #eef2ff) !important;
    }

    .contact-tile.from-indigo-50.to-purple-50 {
        background: linear-gradient(145deg, #eef2ff, #f5f3ff) !important;
    }

    .contact-tile.from-purple-50.to-pink-50 {
        background: linear-gradient(145deg, #f5f3ff, #ffe4e6) !important;
    }

    .contact-tile.from-green-50.to-teal-50 {
        background: linear-gradient(145deg, #ecfdf5, #ccfbf1) !important;
    }

@media (prefers-reduced-motion: no-preference) {
    .contact-tile {
        transition: box-shadow .25s ease;
    }

        .contact-tile:hover {
            box-shadow: 0 .75rem 2rem rgba(16,24,40,.12);
        }
}

/* Icon bubble */
.icon-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    border-radius: .75rem;
}

.bg-blue-100 {
    background: #dbeafe;
}

.bg-indigo-100 {
    background: #e0e7ff;
}

.bg-purple-100 {
    background: #ede9fe;
}

.bg-green-100 {
    background: #dcfce7;
}

/* Right panel surface */
.contact-panel {
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 60%);
}

/* Choice rows */
.choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice-row:hover {
    border-color: #6366f1; /* indigo-500 */
    box-shadow: 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* CTA gradient band at bottom */
.cta-band {
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 48rem;
}

@media (min-width: 768px) {
    .cta-band {
        padding: 2.5rem 3rem;
    }
}

/* Minor helpers */
.leading-relaxed {
    line-height: 1.75;
}

.text-purple-600 {
    color: #7c3aed;
}

.text-blue-100 {
    color: #dbeafe;
}

/* Contact form polish */
.contact-form .form-control-lg {
    border-radius: .75rem;
    padding: .9rem 1rem;
}

.contact-form .form-label {
    color: #0f172a; /* slate-900 */
}

.contact-form .form-text {
    color: #6b7280; /* gray-600 */
}

/* Validation states (subtle, aligned with theme) */
.contact-form.was-validated .form-control:invalid,
.contact-form .form-control.is-invalid {
    border-color: #ef4444; /* red-500 */
    background-image: none;
}

.contact-form.was-validated .form-control:valid,
.contact-form .form-control.is-valid {
    border-color: #22c55e; /* green-500 */
    background-image: none;
}

/* Make gradient button full-width in modals nicely */
.modal .btn.btn-gradient.btn-lg {
    border-radius: .75rem;
}

/* Language toggle: both visible on dark backgrounds */
.footer-lang,
.footer-lang a {
    color: #e5e7eb; /* a light gray-white for visibility */
    text-decoration: none;
}

.footer-lang a:hover {
    text-decoration: underline;
}

/* Dim the inactive one slightly */
.footer-lang .inactive {
    opacity: 0.7;
}

/* Ensure alerts actually fade when .show is removed */
/*.alert.fade {
    transition: opacity .15s linear;
}

.alert.fade:not(.show) {
    opacity: 0;
}*/

/* Pure-CSS auto-dismiss for alerts (no JS) */
.alert.auto-close {
    /* allow height collapse animation */
    overflow: hidden;
    /* run two animations: fade, then collapse */
    animation: alertFade var(--fade-duration, .2s) linear var(--close-delay, 4s) forwards, alertCollapse var(--collapse-duration, .3s) ease calc(var(--close-delay, 4s) + var(--fade-duration, .2s)) forwards;
}

/* Make sure the fade transition will actually happen even if .fade/.show get overridden */
@keyframes alertFade {
    to {
        opacity: 0;
        visibility: hidden; /* hide from screen readers/interaction */
        pointer-events: none;
    }
}

@keyframes alertCollapse {
    from {
        max-height: 8rem; /* large enough to cover typical alert height */
    }

    to {
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}
