:root {
    /* Precise color palette from the design */
    --text-dark: #16222d;
    --text-muted: #4a545c;
    --gold: #b88a44;
    --border-color: rgba(22, 34, 45, 0.1);
    --bg-fallback: #F1E6DC; /* Specific background for Capabilities */
    
    /* Dark Navy Theme for Stats Bar */
    --bg-dark: #0d131a;
    --text-white: #ffffff;
    --text-light-gray: #9ba3af;
    --border-light: rgba(255, 255, 255, 0.08);

    /* Light Footer Theme */
    --bg-footer-light: #F1E6DC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    -webkit-font-smoothing: antialiased; 
    background-color: var(--bg-fallback);
    overflow-x: clip; 
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 60px; width: 100%; }

/* Page Transition Overlay */
.page-transition-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-fallback); z-index: 9999; opacity: 1; visibility: visible; transition: opacity 0.4s ease-in-out, visibility 0.4s; pointer-events: none; }
.page-transition-overlay.hidden { opacity: 0; visibility: hidden; }

/* HERO BACKGROUND WRAPPER */
.hero-bg-wrapper {
    /* Background image moved to inline style in blade.php */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* HEADER & NAVIGATION */
.header { 
    padding: 40px 0; 
    width: 100%; 
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 9998;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: var(--bg-fallback);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
    z-index: 2;
}

.nav-container::before {
    content: '';
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: -100vw;
    width: calc(100vw + 320px);
    /* Gradient matching the specific background color #F1E6DC */
    background: linear-gradient(90deg, rgba(241, 230, 220, 0.96) 0%, rgba(241, 230, 220, 0.96) calc(100% - 120px), rgba(241, 230, 220, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.logo { position: relative; z-index: 10; }
.logo img { 
    height: 80px; 
    width: auto; 
    display: block; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-links { display: flex; gap: 40px; align-items: center; position: relative; z-index: 10; }
.nav-links a { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dark); position: relative; padding-bottom: 6px; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 25px; height: 1.5px; background-color: var(--gold); }

.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; cursor: pointer; position: relative; z-index: 10; }
.menu-toggle span { display: block; height: 2px; width: 100%; background-color: var(--text-dark); transition: all 0.3s ease; }

/* HERO CONTENT */
.hero-main { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    padding-top: 220px; 
    padding-bottom: 80px; 
}
.hero-text-box { max-width: 750px; }

.eyebrow { font-size: 10px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; display: flex; align-items: center; gap: 8px; }

h1 { font-family: 'Playfair Display', serif; font-size: 4.8rem; line-height: 1.1; color: var(--text-dark); font-weight: 500; margin-bottom: 40px; letter-spacing: -1.5px; transition: font-size 0.3s ease; }
h1 .gold-text { color: var(--gold); }

.hero-paragraphs p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.8; margin-bottom: 25px; max-width: 95%; font-weight: 400; transition: font-size 0.3s ease; }
.hero-paragraphs p:last-child { margin-bottom: 0; }

/* CAPABILITIES SECTION */
.capabilities-section { background-color: var(--bg-fallback); padding: 100px 0; position: relative; z-index: 2; }
.cap-eyebrow { display: flex; align-items: center; gap: 15px; font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 60px; }
.cap-eyebrow .line { width: 40px; height: 1px; background-color: var(--gold); }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; margin-bottom: 120px; }
.cap-card { display: flex; flex-direction: column; }
.cap-num { font-size: 0.95rem; color: var(--gold); margin-bottom: 15px; font-weight: 500; }
.cap-divider { width: 100%; height: 1px; background-color: var(--border-color); margin-bottom: 25px; }

.cap-card h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--text-dark); font-weight: 500; margin-bottom: 20px; line-height: 1.35; }
.cap-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 15px; }
.cap-card p:last-child { margin-bottom: 0; }

/* COMMITMENT BANNER */
.commitment-banner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.commit-left .short-gold-line { width: 35px; height: 2px; background-color: var(--gold); margin-bottom: 30px; }
.commit-left h2 { font-family: 'Playfair Display', serif; font-size: 2.6rem; line-height: 1.2; color: var(--text-dark); font-weight: 500; letter-spacing: -0.5px; }
.commit-right { border-left: 1px solid var(--gold); padding-left: 40px; }
.commit-right p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.8; max-width: 450px; margin-bottom: 15px; }
.commit-right p:last-child { margin-bottom: 0; }

/* BOTTOM STATS BAR */
.stats-bar { width: 100%; background-color: var(--bg-dark); position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 40px 0; }
.stat-item { padding: 0 40px; border-right: 1px solid var(--border-light); display: flex; flex-direction: column; justify-content: flex-start; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); margin-bottom: 12px; font-weight: 500; transition: font-size 0.3s ease; }
.stat-text { font-size: 0.85rem; color: var(--text-white); line-height: 1.6; }
.stat-text span.light { color: var(--text-light-gray); display: block; }

/* FOOTER */
footer { background-color: transparent; color: var(--text-muted); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.7fr 1fr; gap: 60px; margin-bottom: 60px; }

.footer-logo img { 
    height: 60px; 
    width: auto; 
    margin-bottom: 25px; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.footer-logo p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; max-width: 340px; }
.footer-col h4 { font-size: 11px; color: var(--text-dark); letter-spacing: 1.5px; margin-bottom: 30px; font-weight: 600; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; }
.footer-links a, .footer-contact p, .footer-contact a { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; display: block; }
.footer-disclaimer { padding: 40px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.footer-disclaimer h4 { font-size: 11px; color: var(--text-dark); letter-spacing: 1.5px; margin-bottom: 20px; font-weight: 600; text-transform: uppercase; }
.footer-disclaimer p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.9; text-align: justify; }
.footer-bottom { padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom .dev-credit span { color: var(--gold); font-weight: 500; }

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1200px) {
    h1 { font-size: 4.2rem; }
    .commit-left h2 { font-size: 2.2rem; }
    .stats-grid { gap: 40px 0; }
}

@media (max-width: 1024px) {
    .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 50px 40px; }
}

@media (max-width: 992px) {
    .container { padding: 0 40px; }
    h1 { font-size: 3.5rem; }
    .hero-text-box { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-fallback);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    }
    .nav-links.nav-active { right: 0; }
    .nav-links a { font-size: 12px; }
    
    .menu-toggle.toggle-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.toggle-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.toggle-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .commitment-banner { grid-template-columns: 1fr; gap: 40px; }
    .commit-right { border-left: none; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 30px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
    .stat-item { padding: 0 30px; border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(3) { border-right: 1px solid var(--border-light); }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .header { padding: 25px 0; }
    .hero-main { padding-top: 160px; }
    
    .nav-container::before {
        top: -25px;
        bottom: -25px;
        width: calc(100vw + 240px);
    }

    .hero-bg-wrapper { min-height: 65vh; }
    .hero-text-box { margin-top: 20px; }
    
    h1 { font-size: 2.4rem; margin-bottom: 25px; letter-spacing: -0.5px; line-height: 1.15; }
    .eyebrow { font-size: 9px; margin-bottom: 20px; }
    .hero-paragraphs p { font-size: 0.85rem; line-height: 1.6; max-width: 100%; }

    .capabilities-section { padding: 60px 0; }
    .cap-eyebrow { margin-bottom: 30px; font-size: 9px; }
    .cap-grid { gap: 40px 30px; margin-bottom: 60px; }
    
    .cap-num { font-size: 0.85rem; margin-bottom: 10px; }
    .cap-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
    .cap-card p { font-size: 0.8rem; line-height: 1.6; }
    
    .commit-left h2 { font-size: 1.8rem; line-height: 1.25; }
    .commit-right p { font-size: 0.85rem; line-height: 1.6; }

    .stats-grid { grid-template-columns: 1fr; gap: 30px 0; padding: 30px 0; }
    .stat-item, .stat-item:nth-child(1), .stat-item:nth-child(3) { border-right: none; border-bottom: 1px solid var(--border-light); padding: 0 0 25px 0; align-items: center; text-align: center; }
    .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
    
    .stat-number { font-size: 1.6rem; }
    .stat-text { font-size: 0.8rem; }
    
    .footer-links { grid-template-columns: 1fr; }
    .footer-logo p, .footer-links a, .footer-contact p, .footer-contact a { font-size: 0.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; font-size: 0.75rem; }
    .footer-logo p { max-width: 100%; }
    .footer-disclaimer p { font-size: 0.65rem; line-height: 1.7; }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; margin-bottom: 20px; }
    .hero-paragraphs p { font-size: 0.8rem; }
    .eyebrow { font-size: 8px; }

    .cap-eyebrow { font-size: 8px; }
    .cap-grid { grid-template-columns: 1fr; gap: 35px; margin-bottom: 70px; }
    
    .cap-card h3 { font-size: 1.05rem; }
    .cap-card p { font-size: 0.75rem; }

    .commit-left h2 { font-size: 1.5rem; }
    .commit-left .short-gold-line { margin-bottom: 20px; }
    .commit-right p { font-size: 0.8rem; }

    .stat-number { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .logo img { height: 60px; }
    .hero-main { padding-top: 140px; }

    h1 { font-size: 1.6rem; line-height: 1.25; letter-spacing: 0; }
    .hero-paragraphs p { font-size: 0.75rem; }
    
    .cap-card h3 { font-size: 1rem; margin-bottom: 10px; }
    .cap-card p { font-size: 0.7rem; }
    
    .commit-left h2 { font-size: 1.3rem; }
    .commit-right p { font-size: 0.75rem; }

    .stat-number { font-size: 1.25rem; }

    footer { padding: 60px 0 30px; }
    .footer-grid { gap: 40px; margin-bottom: 40px; }
    .footer-disclaimer p { font-size: 0.6rem; }
    .footer-logo p, .footer-links a, .footer-contact p, .footer-contact a { font-size: 0.75rem; }
}