/* Font removed - moved to link tag in HTML for better performance */

:root {
    /* Precise Professional Palette */
    --primary: #E11D48;
    /* Rose 600 */
    --primary-dark: #BE123C;
    /* Rose 700 */
    --primary-soft: #FFF1F2;

    --slate-950: #020617;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;

    /* Semantic Colors */
    --bg-body: var(--slate-50);
    --bg-card: #FFFFFF;
    --text-heading: var(--slate-950);
    --text-body: var(--slate-700);
    --text-muted: var(--slate-500);
    --border: var(--slate-200);

    /* Layout Tokens */
    --container-max: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-base: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hero: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Typography Scale */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;

    /* SVD Layout System (Offsets) */
    --header-height: 140px;
    --section-spacing: 7rem;
    --content-gap: 5rem;
    --transition-base: 0.3s ease;
}

/* Base Reset & Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid & Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-spacing) 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-12 {
    grid-template-columns: repeat(12, 1fr);
}

/* Buttons & Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: #FFF;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-heading);
}

.btn-outline:hover {
    background: var(--slate-100);
}

/* Modern Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 2002;
    /* Raised to be above overlay */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}



.nav-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branding {
    flex-shrink: 0;
}

.branding img {
    height: 85px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

@media (max-width: 640px) {
    .branding img {
        height: 60px;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-actions {
    flex-shrink: 0;
}

.mobile-cta-btn {
    display: none;
}

.nav-links a {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--slate-600);
    position: relative;
    padding: 2rem 0;
    /* Increased padding for larger hover area */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Dropdown Sub-menu */
.nav-item {
    position: relative;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFF;
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    z-index: 2000;
}

.dropdown-content a {
    padding: 0.75rem 1rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--slate-700) !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm);
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background: var(--slate-50);
    color: var(--primary) !important;
}

.dropdown-icon {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-left: 4px;
}

/* Top Bar Styling */
.top-bar {
    background: var(--slate-950);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav a {
    margin-left: 20px;
    transition: color 0.2s;
}

.top-nav a:hover {
    color: #FFF;
}

/* Subpage Header Component */
.subpage-header {
    background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 100%);
    padding: calc(var(--content-gap) + 1rem) 0 3rem;
    /* Account for spacing if needed */
    color: #FFF;
    border-bottom: 4px solid var(--primary);
    position: relative;
    z-index: 10;
}

.subpage-header h1 {
    color: #FFF;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 800;
}

.breadcrumb {
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.9;
}

.content-wrapper {
    padding: var(--content-gap) 0 var(--section-spacing);
    background: #FFF;
    position: relative;
    z-index: 5;
    min-height: 50vh;
    /* Ensure content is never too short */
}

#main-content {
    display: block;
    width: 100%;
}

/* Hero Sections */
.hero-corporate {
    position: relative;
    /* Adjust padding to be balanced for vertical centering */
    padding: 6rem 0;
    background: var(--slate-900);
    color: #FFF;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Ensure it takes up a good portion of the screen */
    min-height: 80vh;
}

.hero-corporate img.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 0;
}

.hero-corporate .container {
    position: relative;
    z-index: 2;
}

.hero-corporate h1 {
    color: #FFF;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 800;
}

.hero-corporate p {
    font-size: var(--fs-lg);
    color: var(--slate-200);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Professional Content Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-base);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Page Layout (Main Column & Sidebar) */
.page-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 120px;
    background: #FFF;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

/* Footer Section */
footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: var(--section-spacing) 0 3rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--slate-800);
    padding-bottom: 3rem;
}

.footer-logo {
    color: #FFF;
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-heading {
    color: #FFF;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links a {
    display: block;
    margin-bottom: 0.75rem;
    font-size: var(--fs-sm);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animation Classes */
.animate-slide {
    animation: slideUp 0.8s cubic-bezier(0.2, 0, 0, 1.0) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
/* Mobile Navigation & Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--slate-900);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay for Mobile Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 968px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-corporate h1 {
        font-size: var(--fs-4xl);
    }

    /* Show hamburger on tablet too if menu gets crowded, otherwise keep it at 640px */
    /* For now, sticking to the existing behavior where likely it breaks around 968px or so */
    /* Let's make the mobile menu trigger earlier, e.g. 1024px or keep explicit break points */
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #FFF;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
        gap: 0;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--slate-100);
        width: 100%;
        color: var(--slate-800);
    }

    .nav-links a:hover {
        color: var(--primary);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-item {
        width: 100%;
    }

    /* Mobile Dropdowns */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        display: none;
        background: transparent;
        margin-top: 0;
        min-width: 0;
        width: 100%;
    }

    .dropdown-content a {
        font-size: 0.95rem !important;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--slate-50) !important;
    }

    .nav-item.dropdown-open .dropdown-content {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-item>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-icon {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .nav-item.dropdown-open>a .dropdown-icon {
        transform: rotate(180deg);
    }

    .nav-actions {
        display: none;
    }

    /* Add CTA to bottom of mobile menu */
    .mobile-cta-btn {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        padding: 1rem;
        background: var(--primary);
        color: #FFF !important;
        border-radius: var(--radius-sm);
        font-weight: 600;
        text-align: center;
        width: 100%;
        border-bottom: none !important;
    }
}

@media (max-width: 640px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .branding img {
        height: 50px;
    }

    .hero-corporate h1 {
        font-size: 2.5rem;
    }

    /* Top Bar Mobile */
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-nav {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .top-nav a {
        margin-left: 0;
        /* Reset margin */
    }
}

/* Utilities extracted from inline styles */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.w-full {
    width: 100%;
}

.max-w-700 {
    max-width: 700px;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: white;
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: var(--fs-sm);
}

.text-xs {
    font-size: var(--fs-xs);
}

.text-lg {
    font-size: var(--fs-lg);
}

.text-2xl {
    font-size: var(--fs-2xl);
}

.text-3xl {
    font-size: var(--fs-3xl);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.gap-4 {
    gap: 1rem;
}

.bg-white {
    background: white;
}

.bg-slate-50 {
    background: var(--slate-50);
}

.border-y {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.border-r {
    border-right: 1px solid var(--border);
}

.pr-8 {
    padding-right: 2rem;
}

.hr-separator {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.leading-snug {
    line-height: 1.4;
}

.btn-outline-white {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}