/* Typography: Local Fonts */
@font-face {
    font-family: 'IvyPresto';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Text-.otf') format('opentype');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'IvyPresto';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Text-Semi-Bold.otf') format('opentype');
    font-weight: 600; font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
}

/* Essential Resets */ 
* { margin: 0; padding: 0; box-sizing: border-box; outline: none !important; box-shadow: none !important; }
html, body { background: white; color: #101957; overflow-x: hidden; font-family: 'Inter', sans-serif; }

/* Heading Defaults */
h1, h2, h3, h4 { font-family: 'IvyPresto', serif; font-weight: 500; }
p, span, a, li, button, input, textarea { font-family: 'Inter'; font-style: normal; }

/* Navigation & Header */
.nav-link { position: relative; transition: color 0.3s; font-family: 'Inter', sans-serif; font-style: normal; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: #2563eb; transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

header { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.sticky-nav { 
    position: fixed !important; 
    z-index: 9999 !important;
    padding-top: 0.5rem !important; 
    padding-bottom: 0.5rem !important; 
    background-color: #2d315f !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    transition: all 0.4s ease;
}

/* Background Gradients */
.bg-hero-gradient {
    background: radial-gradient(circle at 15% 15%, #1c2b85 0%, #101957 70%);
}

/* Ensure text remains visible on dark navy sticky background */
.sticky-nav a, 
.sticky-nav button:not(.bg-primary), 
.sticky-nav svg:not(.bg-primary *),
.sticky-nav span:not(.bg-primary *) { 
    color: #ffffff !important; 
}
.sticky-nav .nav-link::after { background-color: #2563eb !important; }
.bg-header-scroll { background-color: #2d315f !important; }

/* Scroll Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Hero Shape Divider */
.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}
.hero-shape .shape-fill { fill: #FFFFFF; }

/* Video Modal & Placeholder */
.video-placeholder-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.video-placeholder-container:hover { transform: scale(1.02); }
.video-placeholder-container:hover .play-button-overlay { background: rgba(37, 99, 235, 0.9); transform: translate(-50%, -50%) scale(1.1); }

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(16, 25, 87, 0.8);
    backdrop-filter: blur(10px);
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-modal.active { display: flex; opacity: 1; }

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: black;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.video-modal.active .video-modal-content { transform: scale(1); }

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    cursor: pointer;
    font-size: 30px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.modal-close:hover { transform: rotate(90deg); }
@media (max-width: 768px) {
    .modal-close { top: 10px; right: 10px; background: rgba(0,0,0,0.5); border-radius: 50%; padding: 5px; z-index: 10001; }
}

/* Quote Modal Styles */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(16, 25, 87, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.quote-modal.active { display: flex; opacity: 1; }

.quote-modal-content {
    position: relative;
    width: 100%;
    max-width: 550px;
    background: white;
    border-radius: 2.5rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.quote-modal.active .quote-modal-content { transform: scale(1) translateY(0); }

.quote-form-group { margin-bottom: 1.5rem; }
.quote-form-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #101957; margin-bottom: 0.5rem; }
.quote-form-input { 
    width: 100%; 
    padding: 0.875rem 1.25rem; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 1rem; 
    font-size: 0.9375rem; 
    color: #101957; 
    transition: all 0.2s; 
}
.quote-form-input:focus { border-color: #2563eb; background: white; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.quote-form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23101957'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; padding-right: 2.5rem; }

.quote-close-btn { position: absolute; top: 1.5rem; right: 1.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #f1f5f9; border: none; font-size: 1.25rem; color: #101957; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.quote-close-btn:hover { background: #e2e8f0; transform: rotate(90deg); }

.quote-success-overlay {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 2.5rem;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    z-index: 10;
}
.quote-success-overlay.active { display: flex; }
