/* Typography: Local Fonts */
@font-face {
    font-family: 'IvyPresto';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Display-.otf') format('opentype');
    font-weight: 100; font-style: normal;
}

@font-face {
    font-family: 'IvyPresto';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Display-Light.otf') format('opentype');
    font-weight: 300; font-style: normal;
}

@font-face {
    font-family: 'IvyPresto';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Display-.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-Display-Semi-Bold.otf') format('opentype');
    font-weight: 600; font-style: normal;
}

@font-face {
    font-family: 'IvyPresto';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Display-Semi-Bold.otf') format('opentype');
    font-weight: 700; font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
}

/* Figma: section titles — IvyPresto Display (line 1) + IvyPresto Headline (line 2). No Display SemiBold Italic file in bundle; italic uses synthetic oblique on SemiBold. */
@font-face {
    font-family: 'IvyPresto Display';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Display-Semi-Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'IvyPresto Headline';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Headline-Semi-Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'IvyPresto Text';
    src: url('../fonts/Ivy-Presto-font-Family/fonnts.com-Ivy-Presto-Text-Semi-Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

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

/* 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; } */

/* Manual Font Utilities */ 
.font-presto { font-family: 'IvyPresto', serif !important; }
.font-presto-thin { font-family: 'IvyPresto', serif !important; font-weight: 100 !important; }
.font-presto-light { font-family: 'IvyPresto', serif !important; font-weight: 300 !important; }
.font-presto-semibold { font-family: 'IvyPresto', serif !important; font-weight: 600 !important; }
.font-presto-bold { font-family: 'IvyPresto', serif !important; font-weight: 700 !important; }

/*
  Two-line IvyPresto titles — line-height 120%, letter-spacing 0.
  Section (48px lg): Display italic + Headline upright.
  Hero carousel (60px lg): Display italic + Text upright (Figma).
*/
.heading-presto-split {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
    letter-spacing: 0;
}

.heading-presto-split__display {
    font-family: 'IvyPresto Display', 'IvyPresto', serif;
    font-weight: 600;
    font-style: italic;
}

.heading-presto-split__headline {
    font-family: 'IvyPresto Headline', 'IvyPresto', serif;
    font-weight: 600;
    font-style: normal;
}

.heading-presto-split__text {
    font-family: 'IvyPresto Text', 'IvyPresto', serif;
    font-weight: 600;
    font-style: normal;
}

.font-intel { font-family: 'Inter', sans-serif !important; }
.font-intel-thin { font-family: 'Inter', sans-serif !important; font-weight: 100 !important; }
.font-intel-bold { font-family: 'Inter', sans-serif !important; font-weight: 700 !important; }

/* 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: 4px; bottom: -6px; left: 0;border-radius: 10px; background-color: #1760fe; transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.text-navy { color: #101957 !important; }
.bg-navy { background-color: #101957 !important; }
.text-blue-navy { color: #0F172B !important; }
.text-naviblue { color: #1D293D !important; }
.text-navy-p { color: #45556C !important; }
.text-navy-p2 { color: #0A0A0A !important; }
.text-white-p { color: #DBEAFE !important; }
.text-white-p2 { color: #CAD5E2 !important; }
.text-blue-p3 { color: #90A1B9 !important; }
.text-navy-p3 { color: #314158 !important; }
.border-primary { border-color: #155DFC !important; }

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(ellipse at 50% -74%, #155dfc 0%, #101957 100%);
}

/* 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, .reveal-left, .reveal-right, .reveal-up { 
    opacity: 0; 
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); 
    will-change: transform, opacity;
}

.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up { transform: translateY(50px); }

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-up.active { 
    opacity: 1; 
    transform: translate(0, 0); 
}

/* Staggered Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Entrance Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Card Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 25, 87, 0.15) !important;
}

.contact-card-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
}


/* 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--deep svg {
    height: 200px;
}
.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; }
