/* Marlowe Bank - Styles */
/* Color Palette:
   Primary: Deep Navy (#1A2E4C), Warm Gold (#D4A574), Pure White (#FFFFFF), Charcoal Gray (#2C2C2C)
   Secondary: Soft Platinum (#F5F5F5), Deep Forest (#0D2B1D)
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1A2E4C;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

a {
    color: #D4A574;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1A2E4C;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(26, 46, 76, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1A2E4C;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #1A2E4C;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #D4A574;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4A574;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1A2E4C;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    transform: none !important; /* Ensure no transforms are applied */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/hero-image.png') center/cover no-repeat;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A2E4C 0%, rgba(26, 46, 76, 0.8) 100%);
    z-index: 1;
    display: none;
}

/* Video fallback state */
.hero.video-fallback::before {
    display: block !important;
}

.hero.video-fallback .hero-video {
    display: none !important;
}

/* Video loading states */
.hero-video {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero.video-loaded .hero-video {
    opacity: 1;
}

/* Optimize video for mobile performance */
@media (max-width: 768px) {
    .hero-video {
        /* Allow video to display on mobile */
        display: block;
        /* Optimize for mobile performance */
        object-fit: cover;
        /* Ensure video fills the viewport */
        width: 100vw;
        height: 100vh;
        /* Fix for iOS Safari */
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    
    /* Only show fallback if video fails to load */
    .hero.video-fallback .hero-video {
        display: none !important;
    }
    
    .hero.video-fallback::before {
        display: block !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 46, 76, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: #D4A574;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background-color: #D4A574;
    color: #FFFFFF;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.hero-cta:hover {
    background-color: #FFFFFF;
    color: #1A2E4C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

/* Vision Section */
.vision {
    padding: 8rem 0;
    background-color: #FFFFFF;
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-text {
    padding-right: 2rem;
}

.section-title {
    font-size: 2.8rem;
    color: #1A2E4C;
    margin-bottom: 1rem;
}

.vision-mission {
    font-size: 1.6rem;
    color: #D4A574;
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 400;
}

.vision-description {
    font-size: 1.2rem;
    color: #2C2C2C;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.vision-highlights {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight {
    padding: 1.5rem 0;
    border-left: 3px solid #D4A574;
    padding-left: 2rem;
}

.highlight h4 {
    color: #1A2E4C;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.highlight p {
    color: #2C2C2C;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.vision-image {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.vision-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(26, 46, 76, 0.10);
    object-fit: cover;
    display: block;
}


/* Services Section */
.services {
    padding: 8rem 0;
    background-color: #F5F5F5;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #2C2C2C;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 46, 76, 0.08);
    border: 1px solid rgba(26, 46, 76, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 46, 76, 0.15);
}

.service-icon {
    color: #D4A574;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    color: #1A2E4C;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #2C2C2C;
    line-height: 1.7;
    margin: 0;
}

/* Leadership Section */
.leadership {
    padding: 8rem 0;
    background-color: #FFFFFF;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, max-content));
    justify-content: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.leader-card {
    text-align: center;
    padding: 2rem;
}

.leader-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    border: 4px solid #D4A574;
    box-shadow: 0 4px 20px rgba(26, 46, 76, 0.15);
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.leader-image img.loaded {
    opacity: 1;
}

/* Immediate opacity for images that load quickly */
.leader-image img[src] {
    opacity: 1;
}

.leader-image:hover img {
    transform: scale(1.05);
}

/* Fallback styling for placeholder images */
.leader-image:not(:has(img)) {
    background: linear-gradient(135deg, #1A2E4C 0%, #D4A574 100%);
}

.leader-image:not(:has(img))::before {
    content: 'Professional Headshot';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}

.leader-info h3 {
    color: #1A2E4C;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.leader-info h4 {
    color: #D4A574;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.leader-info p {
    color: #2C2C2C;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.leader-education,
.leader-expertise {
    font-style: italic;
    color: #1A2E4C;
    font-weight: 500;
    margin: 0;
}

.leadership-highlights {
    margin-top: 5rem;
    padding: 3rem;
    background-color: #F5F5F5;
    border-radius: 12px;
}

.leadership-highlights h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #1A2E4C;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
}

.highlight-item h4 {
    color: #1A2E4C;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.highlight-item p {
    color: #2C2C2C;
    margin: 0;
    line-height: 1.6;
}

/* Operations Team Section */
.operations {
    padding: 8rem 0;
    background-color: #F5F5F5;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26, 46, 76, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(26, 46, 76, 0.12);
}

.team-image {
    margin-bottom: 2rem;
}

.team-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #F5F5F5;
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    border-color: #D4A574;
}

.team-info h3 {
    color: #1A2E4C;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.team-info h4 {
    color: #D4A574;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.team-info p {
    color: #2C2C2C;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.operations-highlights {
    margin-top: 5rem;
    padding: 3rem;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26, 46, 76, 0.08);
}

.operations-highlights h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #1A2E4C;
}

/* Market Section */
.market {
    padding: 8rem 0;
    background-color: #F5F5F5;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.stat-card {
    background-color: #FFFFFF;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 46, 76, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(26, 46, 76, 0.12);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #D4A574;
    margin-bottom: 1rem;
    font-weight: 700;
}

.stat-card p {
    color: #2C2C2C;
    margin: 0;
    font-size: 1rem;
}

.market-advantages {
    margin-bottom: 4rem;
}

.market-advantages h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #1A2E4C;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #D4A574;
}

.advantage h4 {
    color: #1A2E4C;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.advantage p {
    color: #2C2C2C;
    margin: 0;
    line-height: 1.6;
}

.market-projections {
    text-align: center;
}

.market-projections h3 {
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #1A2E4C;
}

.projections-timeline {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.projection-year {
    background-color: #1A2E4C;
    color: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    min-width: 150px;
    position: relative;
}

.projection-year h4 {
    color: #D4A574;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.projection-year p {
    margin: 0.5rem 0;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background-color: #1A2E4C;
    color: #FFFFFF;
}

.contact h2 {
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.executive-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.executive {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.executive h3 {
    color: #D4A574;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.executive .title {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-detail {
    line-height: 1.8;
    margin: 0;
}

.contact-detail span {
    color: #D4A574;
    font-weight: 600;
}

.contact-detail a {
    color: #FFFFFF;
    text-decoration: underline;
}

.contact-detail a:hover {
    color: #D4A574;
}

.corporate-info,
.investment-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.corporate-info h3,
.investment-info h3 {
    color: #D4A574;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.corporate-info p,
.investment-info p {
    margin-bottom: 0.8rem;
    color: #FFFFFF;
}

/* Footer */
.footer {
    background-color: #0D2B1D;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
}

.footer h3 {
    color: #D4A574;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.disclaimer-text {
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.disclaimer-text p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.disclaimer-text strong {
    color: #D4A574;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 165, 116, 0.3);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .vision-content {
        gap: 3rem;
    }
    
    .vision-text {
        padding-right: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(26, 46, 76, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Logo responsive adjustments */
    .logo-image {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Layout */
    .vision-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .vision-text {
        padding-right: 0;
    }
    
    .vision-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .operations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .market-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projections-timeline {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .executive-contacts {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Spacing */
    .vision,
    .services,
    .leadership,
    .operations,
    .market,
    .contact {
        padding: 5rem 0;
    }
    
    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Logo adjustments for very small screens */
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .projections-timeline {
        gap: 1rem;
    }
    
    .projection-year {
        padding: 1.5rem;
    }
    
    .service-card,
    .corporate-info,
    .investment-info {
        padding: 2rem;
    }
    
    .disclaimer-text {
        font-size: 0.95rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .stat-card,
    .advantage {
        border: 2px solid #1A2E4C;
    }
    
    .hero-cta {
        border: 2px solid #FFFFFF;
    }
}
