:root {
    --bg: #f6f9fb;
    --surface: #ffffff;
    --surface-soft: #f2f7f8;
    --text: #0f172a;
    --muted: #516074;
    --line: #dbe5ea;
    --primary: #0f766e;
    --primary-strong: #0a5f59;
    --accent: #14b8a6;
    --accent-soft: rgba(20, 184, 166, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(20,184,166,0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(15,118,110,0.08), transparent 25%),
        linear-gradient(180deg, #f8fbfc 0%, #eef4f6 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.page-shell { min-height: 70vh; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    backdrop-filter: blur(14px);
    background: rgba(248, 251, 252, 0.82);
    border-bottom: 1px solid rgba(219, 229, 234, 0.9);
}

.nav-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    flex: 0 0 auto;
}

.brand-text {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0f3d48;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

.btn-primary:hover { box-shadow: 0 18px 34px rgba(15, 118, 110, 0.28); }

.btn-secondary {
    background: rgba(255,255,255,0.78);
    color: var(--text);
    border: 1px solid var(--line);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.92);
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    margin: 4px auto;
    border-radius: 99px;
}

.hero-slider {
    position: relative;
    min-height: min(84vh, 860px);
    overflow: hidden;
    background: #091319;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-media {
    position: absolute;
    inset: 0;
}

.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.02) contrast(1.02);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 10, 16, 0.78) 0%, rgba(5, 10, 16, 0.62) 34%, rgba(5, 10, 16, 0.28) 66%, rgba(5, 10, 16, 0.12) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.34));
    display: flex;
    align-items: center;
}

.hero-panel {
    width: min(640px, 100%);
    padding: 42px;
    border-radius: 28px;
    color: white;
    background: rgba(6, 12, 18, 0.55);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20,184,166,0.16);
    color: #bbf7ef;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0 0 16px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-panel h1,
.page-hero h1 { color: white; }

h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }

p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.hero-panel p,
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.08rem; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.dot.active {
    transform: scale(1.18);
    background: white;
}

.section {
    padding: 88px 0;
}

.section.alt {
    background: rgba(255,255,255,0.62);
    border-top: 1px solid rgba(219,229,234,0.8);
    border-bottom: 1px solid rgba(219,229,234,0.8);
}

.section.center { text-align: center; }

.lead {
    font-size: 1.12rem;
    color: var(--muted);
}

.grid-2,
.grid-3,
.feature-grid,
.stats-grid,
.contact-grid,
.values-grid {
    display: grid;
    gap: 28px;
}

.grid-2,
.feature-grid,
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3,
.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.align-center { align-items: center; }

.card,
.surface,
.metric,
.contact-card,
.value-card,
.feature-highlight {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card,
.surface,
.metric,
.contact-card,
.value-card { padding: 28px; }

.feature-highlight {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 34px;
    padding: 34px;
    margin-bottom: 28px;
}

.feature-highlight:last-child { margin-bottom: 0; }

.section-img,
.visual-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.logo-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,249,251,0.98));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    padding: 36px;
}

.logo-panel img {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: auto;
    object-fit: contain;
}

.metric-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.metric-label {
    color: var(--muted);
    font-weight: 600;
}

.list-clean {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.9;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 84px;
    background:
        linear-gradient(135deg, rgba(7, 18, 26, 0.94), rgba(14, 39, 49, 0.82)),
        url('/Assets/jaceonline_banner1.png') center/cover no-repeat;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.page-hero-card {
    padding: 34px;
    border-radius: 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}

.page-hero-card .eyebrow {
    color: #99f6e4;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-hero-card p:last-child { margin-bottom: 0; }

.form-card { padding: 38px; }
.form-header { max-width: 700px; margin-bottom: 30px; }
.form-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #163142;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cfdbe1;
    background: rgba(255,255,255,0.96);
    font: inherit;
    color: var(--text);
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}
.form-actions { margin-top: 10px; }

.contact-card h3,
.value-card h3,
.card h3,
.metric h3 { margin-bottom: 10px; }

.contact-card a:not(.btn) {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.cta-band {
    padding: 38px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(20, 184, 166, 0.95));
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-band h2,
.cta-band p { color: white; }

.site-footer {
    margin-top: 80px;
    background: #07131a;
    color: rgba(255,255,255,0.78);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    padding: 50px 0 28px;
}

.footer-brand,
.footer-heading {
    color: white;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
}

.footer-links a:hover { color: white; }

.footer-bottom {
    padding: 0 0 28px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
}

.spacer-24 { height: 24px; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-highlight,
    .page-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-shell {
        grid-template-columns: auto auto;
        gap: 14px;
    }

    .nav-toggle {
        display: inline-block;
        justify-self: end;
    }

    .site-nav,
    .nav-cta {
        display: none;
    }

    .site-nav.is-open {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 12px;
        padding: 16px;
        margin-top: 8px;
        border-radius: 18px;
        background: rgba(255,255,255,0.96);
        border: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }

    .site-nav.is-open a { padding: 6px 2px; }
    .nav-cta { display: none; }

    .grid-2,
    .grid-3,
    .feature-grid,
    .contact-grid,
    .values-grid,
    .form-layout { grid-template-columns: 1fr; }

    .section { padding: 72px 0; }
    .hero-slider { min-height: 720px; }
    .hero-panel { padding: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(var(--container), calc(100% - 28px)); }
    .brand-text { display: none; }
    .hero-slider { min-height: 640px; }
    .hero-panel { padding: 22px; border-radius: 22px; }
    .slider-dots { bottom: 20px; }
    .section-img { min-height: 240px; }
    .logo-panel { padding: 24px; }
    .cta-band,
    .feature-highlight,
    .card,
    .surface,
    .metric,
    .contact-card,
    .value-card,
    .form-card { padding: 22px; }
}
