:root {
    --background: #FAFAFA;
    --primary: #EC1B24;
    --secondary: #157946;
    --accent: #3466A8;
    --dark: #102016;
    --muted: #647067;
    --card: #FFFFFF;
    --border: rgba(16, 32, 22, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--dark);
    font-family: "Omnes", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
    overflow: hidden;
}

.brand-gradient {
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 27, 36, 0.15), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(52, 102, 168, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fff9 100%);
}

.nav-link {
    position: relative;
    color: #26352b;
    font-weight: 700;
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
    transition: width .2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary,
.btn-secondary,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .85rem 1.25rem;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 14px 30px rgba(236, 27, 36, .24);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 14px 30px rgba(21, 121, 70, .22);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 14px 30px rgba(52, 102, 168, .20);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-accent:hover {
    transform: translateY(-2px);
    opacity: .96;
}

.soft-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(16, 32, 22, .08);
    border-radius: 28px;
}

.section-label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 900;
}

.slideshow {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 34px;
    background: #102016;
    box-shadow: 0 24px 60px rgba(16, 32, 22, .20);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(6%);
    transition: opacity .75s ease, transform .75s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 32, 22, .86), rgba(16, 32, 22, .42), rgba(16, 32, 22, .18));
}

.slide-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 6vw, 5rem);
    color: white;
}

.slide-content h1 {
    max-width: 760px;
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    line-height: .95;
    letter-spacing: -.05em;
    font-weight: 950;
}

.slide-content p {
    max-width: 640px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.slide-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 1.7rem;
    transition: background .2s ease, transform .2s ease;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-50%) scale(1.05);
}

.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }

.slide-dots {
    position: absolute;
    z-index: 5;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .6rem;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.slide-dot.active {
    width: 34px;
    background: white;
}

.feature-card,
.team-card,
.job-card,
.application-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover,
.team-card:hover,
.job-card:hover,
.application-card:hover {
    transform: translateY(-5px);
    border-color: rgba(21, 121, 70, .28);
    box-shadow: 0 18px 48px rgba(16, 32, 22, .12);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 900;
}

.badge-green {
    background: rgba(21, 121, 70, .12);
    color: var(--secondary);
}

.badge-red {
    background: rgba(236, 27, 36, .12);
    color: var(--primary);
}

.badge-blue {
    background: rgba(52, 102, 168, .12);
    color: var(--accent);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(16, 32, 22, .62);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-panel {
    width: min(720px, 100%);
    max-height: 88vh;
    overflow: auto;
    background: white;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.form-frame {
    width: 100%;
    min-height: 980px;
    border: 0;
    border-radius: 24px;
    background: white;
}

.mobile-menu {
    display: none;
}

.mobile-menu.open {
    display: block;
}

@media (max-width: 768px) {
    .slideshow,
    .slide-content {
        min-height: 620px;
    }

    .slide-overlay {
        background: linear-gradient(180deg, rgba(16,32,22,.86), rgba(16,32,22,.58));
    }

    .slide-arrow {
        width: 42px;
        height: 42px;
    }
}