/**
 * app.css
 * Design tokens + global styles for the public Ascentium site.
 * Every colour used anywhere in the app is defined once here as a
 * CSS variable, taken from the Ascentium logo (deep navy + electric blue,
 * with the wordmark's crimson as a secondary accent) — re-theming the
 * whole site is a one-file change.
 */

:root {
    /* ---- Brand palette (from the Ascentium logo) ---- */
    --navy-950: #060d1c;
    --navy-900: #0b1932;
    --navy-800: #122544;
    --navy-700: #1a335c;
    --navy-600: #24447a;

    --blue-700: #2456a8;
    --blue-600: #2e6dd4;
    --blue-500: #4c8df0;
    --blue-100: #e7f0fe;

    --crimson-600: #c22c50;
    --crimson-500: #de3f65;
    --crimson-100: #fbe7ec;

    --white: #ffffff;
    --off-white: #f7f9fc;

    --gray-900: #1f2937;
    --gray-700: #3f4b5c;
    --gray-600: #5b6b7f;
    --gray-500: #7c8aa0;
    --gray-300: #d7dee8;
    --gray-200: #e7ecf3;
    --gray-100: #f2f5f9;

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: var(--blue-600);

    /* ---- Semantic aliases ---- */
    --brand-primary: var(--blue-600);
    --brand-primary-dark: var(--blue-700);
    --brand-dark: var(--navy-900);
    --brand-accent: var(--crimson-500);
    --surface: var(--white);
    --surface-muted: var(--off-white);
    --text-body: var(--gray-900);
    --text-muted: var(--gray-600);
    --border-color: var(--gray-200);
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(11, 25, 50, 0.06), 0 1px 3px rgba(11, 25, 50, 0.08);
    --shadow-md: 0 8px 24px rgba(11, 25, 50, 0.10);
    --shadow-lg: 0 20px 48px rgba(11, 25, 50, 0.16);

    /* Feed Bootstrap 5's own variables so its components pick up our palette */
    --bs-primary: var(--blue-600);
    --bs-primary-rgb: 46, 109, 212;
    --bs-link-color: var(--blue-600);
    --bs-link-hover-color: var(--blue-700);
    --bs-body-color: var(--text-body);
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--bs-body-font-family);
    color: var(--text-body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

.text-muted { color: var(--text-muted) !important; }
.bg-surface-muted { background: var(--surface-muted); }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 767.98px) {
    .section { padding: 56px 0; }
    .section-sm { padding: 36px 0; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: var(--blue-100);
    padding: 6px 14px;
    border-radius: 999px;
}

.section-title { font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); }
.section-lead { color: var(--text-muted); font-size: 1.1rem; }

/* ---- Buttons ---- */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: 0.65rem 1.35rem; }
.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}
.btn-accent {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--white);
}
.btn-accent:hover { background: var(--crimson-600); border-color: var(--crimson-600); color: var(--white); }
.btn-outline-light-navy {
    border: 1.5px solid rgba(255,255,255,0.55);
    color: var(--white);
    background: transparent;
}
.btn-outline-light-navy:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-dark-outline {
    border: 1.5px solid var(--navy-900);
    color: var(--navy-900);
    background: transparent;
}
.btn-dark-outline:hover { background: var(--navy-900); color: var(--white); }

/* ---- Top navigation ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.site-header .navbar-brand img { height: 34px; width: auto; }
.site-header .nav-link {
    font-weight: 600;
    color: var(--gray-700);
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
}
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--brand-primary); }
.site-header .nav-link.active { background: var(--blue-100); }

/* ---- Hero ---- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-700) 130%);
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(76,141,240,0.35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(222,63,101,0.25), transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.hero p.lead { color: rgba(255,255,255,0.82); }
.hero .stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.hero .stat .num { font-size: 1.6rem; font-weight: 800; }
.hero .stat .label { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ---- Cards ---- */
.card { border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-tile {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue-100);
    color: var(--brand-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.service-card, .product-card, .training-card, .project-card { height: 100%; }

.badge-portal {
    background: var(--crimson-100);
    color: var(--crimson-600);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.35em 0.75em;
}

.product-card .product-mark {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy-900);
    color: var(--white);
    font-size: 1.3rem;
}

.project-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-700));
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 2rem;
    overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- CTA band ---- */
.cta-band {
    background: linear-gradient(120deg, var(--navy-900), var(--blue-700));
    color: var(--white);
    border-radius: 24px;
}

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.site-footer h6 { color: var(--white); font-weight: 700; letter-spacing: 0.02em; }
.site-footer .social-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
}
.site-footer .social-icon:hover { background: var(--brand-primary); }
.site-footer hr { border-color: rgba(255,255,255,0.12); }
.site-footer .form-control::placeholder { color: rgba(255,255,255,0.5); }
.site-footer .form-control:focus { background: rgba(255,255,255,0.14); color: #fff; box-shadow: none; border-color: var(--brand-primary); }

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--gray-300);
    padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(46,109,212,0.15);
}
.form-label { font-weight: 600; color: var(--navy-900); font-size: 0.92rem; }

/* ---- Alerts / flash messages ---- */
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; }

/* ---- Map ---- */
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
#contact-map { height: 420px; width: 100%; background: var(--gray-100); }
.ascentium-map-pin span {
    display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
    background: var(--brand-accent); transform: rotate(-45deg);
    border: 2px solid var(--white); box-shadow: var(--shadow-sm);
}
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); }

/* ---- Utility ---- */
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-soft { box-shadow: var(--shadow-md) !important; }
.fw-800 { font-weight: 800; }
.text-brand { color: var(--brand-primary) !important; }
.text-navy { color: var(--navy-900) !important; }
.bg-navy { background: var(--navy-900) !important; }

/* ---- Print ---- */
@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    body { background: var(--white); }
    .section, .section-sm { padding: 16px 0 !important; }
}
