/* ============================================
   MAIN STYLESHEET
   Pacific Ocean Bank
   ============================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* === Import Theme === */
@import url('theme.css');
@import url('components.css');
@import url('mobile-optimization.css');
@import url('chat-widget.css');

/* === Header & Navigation - Rescaled === */
.header {
    background: var(--blue-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 5rem;  /* 80px - increased to accommodate larger logo */
    min-height: 5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width-wide);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
}

/* Logo - Increased Size */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    height: 4rem;  /* 64px - increased from 48px */
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo-image {
    height: 4rem;  /* 64px - increased from 48px */
    width: auto;
    max-width: 16rem;  /* 256px - increased from 192px */
    object-fit: contain;
    display: block;
}

/* Navigation - Resized */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex: 1;
    margin-left: var(--spacing-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-1);  /* Better spacing between nav items */
    align-items: center;
    margin: 0 auto;  /* Center the menu */
    padding: 0;
    flex: 1;
    justify-content: center;  /* Center justify menu items */
    max-width: fit-content;
}

/* Nav Actions Group */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    margin-left: auto;  /* Push actions to the right */
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: var(--fs-sm);
    padding: 0.5rem 0.75rem;  /* Reduced from 0.75rem 1rem */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
    position: relative;
    line-height: 1.5;
}

.nav-link:hover {
    color: var(--gold-highlight);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--gold-highlight);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--blue-primary);
    min-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDown 0.3s ease-out;
}

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

/* Submenu */
.submenu {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu:last-child {
    border-bottom: none;
}

.submenu-header {
    color: var(--gold-highlight);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.dropdown-content a {
    color: white;
    display: block;
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background: rgba(201, 163, 69, 0.15);
    color: var(--gold-highlight);
    border-left-color: var(--gold-highlight);
    padding-left: 1.75rem;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin: 0;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(201, 163, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    height: var(--btn-height-md);
    min-width: 80px;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-highlight);
    transform: translateY(-1px);
}

.language-toggle[aria-expanded="true"] {
    background: rgba(201, 163, 69, 0.2);
    border-color: var(--gold-highlight);
}

.language-flag {
    font-size: 1.125rem;
    line-height: 1;
    display: inline-block;
}

.language-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-arrow {
    font-size: 0.625rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.language-toggle[aria-expanded="true"] .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--blue-primary);
    border: 1px solid rgba(201, 163, 69, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.language-option:hover {
    background: rgba(201, 163, 69, 0.15);
    border-left-color: var(--gold-highlight);
    padding-left: 1.25rem;
    color: var(--gold-highlight);
}

.language-option.active {
    background: rgba(201, 163, 69, 0.2);
    border-left-color: var(--gold-highlight);
    color: var(--gold-highlight);
    font-weight: 600;
}

.language-option .language-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.language-option .language-name {
    flex: 1;
    text-align: left;
}

.language-option .language-code {
    font-size: var(--fs-xs);
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* CTA Button - Resized */
.nav-cta {
    margin: 0;
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    height: var(--btn-height-md);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 163, 69, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1002;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* === FX Ticker Widget === */
.fx-ticker-widget-container {
    width: 100%;
    background: rgba(10, 26, 47, 0.95);
    border-bottom: 1px solid rgba(201, 163, 69, 0.2);
    overflow: hidden;
    position: sticky;
    top: 5rem;  /* 80px - match header height */
    z-index: 998;
    backdrop-filter: blur(10px);
}

.fx-ticker-widget-container iframe {
    width: 100%;
    height: 2.5rem;  /* 40px - converted to rem */
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .fx-ticker-widget-container iframe {
        height: 2.5rem;
    }
}

/* === Hero Section - Rescaled === */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(400px, 50vh, 600px);  /* Fluid height - reduced from 600px-800px */
    height: auto;
    max-height: 70vh;  /* Reduced from 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: var(--spacing-lg) 0;
}

/* Hero Image Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.35) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(30,58,138,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(192,192,192,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(0,0,0,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* Hero Text Carousel */
.hero-text-carousel {
    position: relative;
    width: 100%;
    min-height: clamp(180px, 25vh, 220px);  /* Reduced from 220px */
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-text-slide {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(calc(-50% + 20px));
    width: 100%;
    max-width: 900px;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    pointer-events: none;
    text-align: left;
}

.hero-text-slide.active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

.hero-text-slide h1 {
    color: white;
    font-size: clamp(2rem, 4vw + 1rem, 3rem);  /* Fluid - reduced from 4rem */
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 700;
    line-height: var(--line-height-tight);
    text-align: left;
    letter-spacing: var(--letter-spacing-tight);
}

.hero-text-slide p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);  /* Fluid - reduced from 1.25rem */
    margin: 0 0 var(--spacing-md) 0;
    line-height: var(--line-height-relaxed);
    max-width: 42rem;  /* ~672px - readable line length */
    text-align: left;
    padding: 0;
}

/* Word-by-Word Animation */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: calc(var(--word-index, 0) * 0.1s);
}

.hero-word.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .btn {
    margin-top: 0;
    position: relative;
    z-index: 3;
    align-self: flex-start;
}

/* === Page Hero (Secondary Pages) - Rescaled === */
.page-hero {
    position: relative;
    min-height: clamp(300px, 35vh, 450px);  /* Reduced from 400-500px */
    height: auto;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    padding: var(--spacing-lg) 0;
}

.page-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.75) 0%, rgba(15, 23, 42, 0.65) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: left;
}

.page-hero-title {
    color: white;
    font-size: clamp(2rem, 3.5vw + 1rem, 2.75rem);  /* Fluid - reduced from 3.5rem */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: var(--line-height-tight);
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw + 0.5rem, 1.125rem);  /* Fluid - reduced from 1.25rem */
    line-height: var(--line-height-relaxed);
    max-width: 42rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .page-hero {
        min-height: clamp(250px, 30vh, 350px);
        padding: var(--spacing-md) 0;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: clamp(200px, 25vh, 300px);
        padding: var(--spacing-sm) 0;
    }
}

/* === Page Sections === */
.page-section {
    padding: var(--spacing-lg) 0;
}

.page-section-navy {
    background: var(--blue-primary);
    color: white;
}

.page-section-navy h2,
.page-section-navy h3 {
    color: white;
}

.page-section-navy p {
    color: rgba(255, 255, 255, 0.9);
}

/* === Footer - Optimized === */
.footer {
    background: var(--blue-primary);
    color: white;
    padding: var(--spacing-sm) 0 var(--space-2);  /* Reduced padding */
    margin-top: var(--spacing-md);  /* Reduced margin */
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));  /* Reduced min-width */
    gap: var(--spacing-sm);  /* Reduced gap */
    margin-bottom: var(--space-2);  /* Reduced margin */
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--space-1);  /* Reduced from space-3 */
    font-size: var(--fs-sm);  /* Reduced from md */
    font-weight: 600;
    line-height: var(--line-height-tight);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-1);  /* Reduced from space-2 */
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-xs);  /* Reduced from sm */
    line-height: var(--line-height-base);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-xs);  /* Reduced from sm */
    line-height: var(--line-height-tight);  /* Tighter line height */
    margin-bottom: var(--space-1);  /* Reduced from space-3 */
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-section p strong {
    color: white;
    font-weight: 600;
    display: inline;  /* Changed from block to inline */
    margin-right: 0.25rem;
    margin-bottom: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    font-size: var(--fs-xs);  /* Reduced from sm */
    text-decoration: none;
    line-height: var(--line-height-tight);
}

.footer-section a:hover {
    color: var(--gold-highlight);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-2);  /* Reduced from spacing-sm */
    padding-bottom: var(--space-1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-xs);
    line-height: var(--line-height-tight);  /* Tighter line height */
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.footer-bottom p {
    margin: 0;
    font-size: var(--fs-xs);
    line-height: var(--line-height-tight);
}

.fscs-badge {
    display: inline-block;
    background: var(--emerald-green);
    color: white;
    padding: var(--space-1) var(--space-2);  /* Reduced padding */
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: var(--space-1);  /* Reduced margin */
    font-size: var(--fs-xs);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-2) 0 var(--space-1);  /* Further reduced */
        margin-top: var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);  /* Reduced gap */
        padding: 0 var(--spacing-sm);
        margin-bottom: var(--space-1);
    }
    
    .footer-section h4 {
        font-size: var(--fs-xs);
        margin-bottom: var(--space-1);
        font-weight: 600;
    }
    
    .footer-section ul li,
    .footer-section p,
    .footer-section a {
        font-size: var(--fs-xs);
        margin-bottom: var(--space-1);
    }
    
    .footer-section ul li:last-child,
    .footer-section p:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        font-size: var(--fs-xs);
        padding: var(--space-1) var(--spacing-sm);
        line-height: var(--line-height-tight);
    }
    
    .fscs-badge {
        padding: var(--space-1) var(--space-2);
        margin-top: var(--space-1);
        font-size: var(--fs-xs);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--space-2) 0 var(--space-1);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        padding: 0 var(--spacing-sm);
    }
    
    .footer-section {
        margin-bottom: var(--space-2);
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        padding: var(--space-1) var(--spacing-sm);
        font-size: 0.65rem;  /* Slightly smaller on very small screens */
        line-height: 1.4;
    }
}

/* === Responsive Navigation === */
@media (max-width: 1024px) {
    .header {
        height: 4.5rem;  /* 72px */
        min-height: 4.5rem;
    }
    
    .logo {
        height: 3.75rem;  /* 60px - increased */
    }
    
    .logo-image {
        height: 3.75rem;
        max-width: 15rem;  /* 240px - increased */
    }
    
    .nav {
        gap: var(--spacing-md);
    }
    
    .nav-menu {
        gap: var(--space-1);
        margin: 0 auto;  /* Keep centered on tablet */
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.75rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-actions {
        gap: var(--space-2);
        margin-left: var(--spacing-sm);
    }
    
    .nav-cta {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 968px) {
    .header {
        height: 4rem;  /* 64px */
        min-height: 4rem;
    }
    
    .logo {
        height: 3.5rem;  /* 56px - increased */
    }
    
    .logo-image {
        height: 3.5rem;
        max-width: 14rem;  /* 224px - increased */
    }
    
    .nav {
        justify-content: flex-end;
        margin-left: 0;
        gap: var(--spacing-sm);
    }
    
    .nav-menu {
        position: fixed;
        top: 4rem;  /* Match header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 4rem);
        background: var(--blue-primary);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left 0.3s ease;
        overflow-y: auto;
        align-items: flex-start;
        gap: 0;
        justify-content: flex-start;
        flex: none;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: flex;
        gap: var(--space-2);
        margin-left: 0;
    }
    
    .nav-cta {
        display: flex;  /* Show on mobile */
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .language-selector {
        margin: 0;
    }
    
    .language-toggle {
        padding: 0.5rem;
        min-width: auto;
        width: auto;
    }
    
    .language-code {
        display: none;
    }
    
    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 160px;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.3);
        margin: 0;
        margin-top: 0.5rem;
        border-radius: 8px;
        min-width: auto;
        width: 100%;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1.5rem;
        border-left: none;
    }
    
    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--gold-highlight);
        padding-left: 1.5rem;
    }
    
    .submenu-header {
        color: var(--gold-highlight);
        padding: 0.75rem 1.5rem;
    }
    
    .submenu {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* === Brief About Us Section - Rescaled === */
.about-brief-section {
    background: var(--blue-primary);
    padding: var(--spacing-md) 0;  /* Reduced from lg */
}

.about-brief-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--spacing-md);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-brief-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-image {
    width: 100%;
    height: auto;
    max-height: clamp(350px, 45vh, 500px);  /* Increased - was 250px-350px, now 350px-500px */
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.about-brief-image:hover .about-image {
    transform: scale(1.02);
}

.about-brief-text h2 {
    color: white;
    font-size: var(--h2-size);  /* Using fluid typography */
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    line-height: var(--line-height-tight);
}

.about-brief-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-md);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-sm);
}

.about-brief-text p:last-of-type {
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 968px) {
    .about-brief-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 100%;
    }
    
    .about-brief-image {
        order: 1;
    }
    
    .about-brief-text {
        order: 2;
    }
    
    .about-image {
        max-height: clamp(300px, 40vh, 400px);  /* Increased - was 220px-300px, now 300px-400px */
    }
}

@media (max-width: 768px) {
    .about-brief-section {
        padding: var(--spacing-md) 0;
    }
    
    .about-brief-content {
        gap: var(--spacing-sm);
        grid-template-columns: 1fr;
    }
    
    .about-brief-image {
        order: 1;
    }
    
    .about-brief-text {
        order: 2;
    }
    
    .about-image {
        max-height: clamp(250px, 35vh, 350px);
    }
    
    .about-brief-text h2 {
        font-size: var(--fs-2xl);
    }
    
    .about-brief-text p {
        font-size: var(--fs-sm);
    }
}

/* === Featured Services Section - Rescaled === */
.featured-services-section {
    background: var(--blue-primary);
    padding: var(--spacing-md) 0;  /* Reduced height - was lg */
}

.featured-services-header {
    text-align: center;
    max-width: 50rem;  /* 800px */
    margin: 0 auto var(--spacing-sm);  /* Reduced margin */
}

.featured-services-header h2 {
    color: white;
    font-size: var(--h2-size);  /* Fluid typography */
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.featured-services-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-lg);
    line-height: var(--line-height-relaxed);
}

.featured-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-3);  /* Optimized gap - was 1rem */
    margin-top: var(--spacing-md);  /* Reduced margin */
    align-items: start;  /* Align cards to top */
}

.service-card {
    background: var(--blue-primary);  /* Navy blue background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid rgba(201, 163, 69, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 280px;  /* Limit maximum height */
    min-height: auto;  /* Allow flexible height */
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201, 163, 69, 0.3);
    border-color: var(--gold-highlight);
    background: var(--blue-primary);  /* Maintain navy blue on hover */
}

.service-card-image {
    width: 100%;
    height: clamp(80px, 10vh, 100px);  /* Reduced height - was 140px-180px */
    overflow: hidden;
    position: relative;
    background: var(--blue-primary);  /* Navy blue background */
    aspect-ratio: 16 / 9;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-icon-fallback {
    width: 100%;
    height: 100%;
    min-height: clamp(80px, 10vh, 100px);  /* Reduced height - was 120px-140px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-primary);  /* Navy blue background */
    color: var(--gold-highlight);
    font-size: var(--fs-xl);  /* Reduced font size */
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service-card-content {
    padding: var(--space-2) var(--space-3);  /* Optimized compact padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--blue-primary);  /* Navy blue background */
    min-height: auto;  /* Allow content to determine height */
}

.service-card-content h3 {
    color: white;
    font-size: var(--fs-sm);  /* Reduced from md */
    margin-bottom: var(--space-1);  /* Reduced margin */
    font-family: var(--font-heading);
    line-height: var(--line-height-tight);
    font-weight: 600;
}

.service-card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-xs);  /* Reduced from sm for compact design */
    line-height: var(--line-height-tight);  /* Tighter line height */
    margin-bottom: var(--space-2);  /* Reduced margin */
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0;  /* Allow truncation */
}

.service-link {
    color: var(--gold-highlight);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;  /* Reduced gap */
    transition: var(--transition-smooth);
    font-size: var(--fs-xs);  /* Reduced size */
    margin-top: auto;  /* Push to bottom */
}

.service-link:hover {
    color: var(--emerald-green);
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .featured-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 968px) {
    .featured-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);  /* Optimized gap */
        align-items: start;
    }
    
    .service-card {
        max-height: 260px;  /* Slightly reduced for tablet */
    }
    
    .service-card-content {
        padding: var(--space-2);  /* Reduced padding */
    }
    
    .service-card-image {
        height: clamp(70px, 8vh, 85px);  /* Reduced height - was 120px-150px */
    }
    
    .service-icon-fallback {
        min-height: clamp(70px, 8vh, 85px);  /* Reduced height for tablet */
        font-size: var(--fs-lg);  /* Reduced font size */
    }
}

@media (max-width: 768px) {
    .featured-services-section {
        padding: var(--spacing-md) 0;  /* Reduced padding */
    }
    
    .featured-services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);  /* Balanced gap for mobile */
        align-items: start;
    }
    
    .service-card {
        max-height: 240px;  /* Reduced for mobile */
    }
    
    .service-card-image {
        height: clamp(100px, 12vh, 120px);  /* Reduced height - was 160px-200px */
    }
    
    .service-icon-fallback {
        min-height: clamp(100px, 12vh, 120px);  /* Reduced height for mobile */
        font-size: var(--fs-lg);  /* Reduced font size */
    }
    
    .service-card-content p {
        -webkit-line-clamp: 2;  /* Reduce to 2 lines on mobile */
    }
    
    .featured-services-header p {
        font-size: var(--fs-md);
    }
}

/* === Security & Compliance Section - Rescaled === */
.security-compliance-section {
    padding: var(--spacing-md) 0;
    background: var(--blue-primary);
}

.security-compliance-section h2 {
    color: white;
    font-size: var(--h2-size);
}

.security-compliance-grid {
    gap: var(--grid-gap-sm);
}

.security-card {
    padding: var(--spacing-sm) !important;  /* Reduced from 1rem */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(201, 163, 69, 0.2) !important;
    border-radius: var(--radius-lg);
}

.security-card h3 {
    font-size: var(--h5-size) !important;  /* Using fluid typography */
    margin-bottom: var(--space-2) !important;
    color: white !important;
}

.security-card p {
    font-size: var(--fs-sm) !important;
    line-height: var(--line-height-base) !important;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 768px) {
    .security-compliance-section {
        padding: var(--spacing-sm) 0;
    }
    
    .security-compliance-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* === Banking Services Section - Rescaled === */
.banking-services-section {
    background: var(--navy-gradient);
    background-image: url('/assets/img/service.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: var(--spacing-md) 0;  /* Reduced from lg */
    position: relative;
    overflow: hidden;
}

.banking-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.85) 0%, rgba(26, 42, 63, 0.75) 100%);
    z-index: 0;
}

.banking-services-section .container {
    position: relative;
    z-index: 1;
}

.banking-services-grid {
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
}

.banking-service-card {
    padding: var(--spacing-md) !important;  /* Reduced from 1.5rem */
    min-height: auto;
    background: rgba(10, 26, 47, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 163, 69, 0.3) !important;
    border-radius: var(--radius-lg);
}

.banking-service-card::before {
    display: none !important;
}

.banking-service-card h3 {
    font-size: var(--h4-size) !important;  /* Using fluid typography */
    margin-bottom: var(--spacing-sm) !important;
}

.banking-service-card ul {
    margin-bottom: 1rem !important;
}

@media (max-width: 968px) {
    .banking-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banking-services-section {
        background-attachment: scroll;
        padding: var(--spacing-md) 0;
    }
    
    .banking-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .banking-service-card {
        padding: var(--spacing-sm) !important;
    }
}

/* === CTA Section - Rescaled === */
.cta-section {
    background: var(--navy-gradient);
    background-image: url('/assets/img/section.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;  /* Changed from fixed for better performance */
    color: white;
    text-align: center;
    padding: var(--spacing-lg) 0;  /* Reduced from xl */
    position: relative;
    overflow: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.5) 0%, rgba(26, 42, 63, 0.4) 100%);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-section {
        background-attachment: scroll;
        padding: var(--spacing-lg) 0;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* === Why Choose Section - Rescaled === */
.why-choose-section {
    background: var(--blue-primary);
    padding: var(--spacing-md) 0;  /* Reduced from lg */
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-md);  /* Reduced from lg */
    align-items: start;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.why-choose-image {
    position: sticky;
    top: calc(5rem + var(--spacing-sm));  /* 80px header + spacing */
}

.choose-image {
    width: 100%;
    height: auto;
    min-height: 400px;  /* Added minimum height for prominence */
    max-height: 600px;  /* Added maximum height */
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.why-choose-cards {
    width: 100%;
}

.why-choose-grid {
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
}

.why-choose-section .feature-card {
    padding: var(--spacing-sm);  /* Reduced from 1rem */
    max-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 163, 69, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

.why-choose-section .feature-card h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-2);
    color: white;
    line-height: var(--line-height-tight);
}

.why-choose-section .feature-card p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-base);
    margin-bottom: 0;
}

.why-choose-section .feature-card > div:first-child {
    font-size: var(--fs-xl) !important;  /* Reduced from 1.5rem */
    margin-bottom: var(--space-2) !important;
}

.why-choose-section .feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-highlight);
}

@media (max-width: 768px) {
    .hero {
        min-height: clamp(350px, 45vh, 500px);
        padding: var(--spacing-md) 0;
        max-height: 60vh;
    }
    
    .hero-slide {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
    
    .hero-text-carousel {
        min-height: clamp(140px, 20vh, 180px);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-text-slide {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-text-slide h1 {
        font-size: var(--fs-2xl);
        line-height: 1.2;
    }
    
    .hero-text-slide p {
        font-size: var(--fs-sm);
        line-height: 1.5;
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: var(--fs-sm);
    }
    
    /* Hide parallax currency icons on mobile */
    .parallax-currency {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: clamp(300px, 40vh, 400px);
        padding: var(--spacing-sm) 0;
        max-height: 50vh;
    }
    
    .hero-text-carousel {
        min-height: clamp(120px, 18vh, 150px);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-text-slide {
        max-width: 100%;
        padding: 0 var(--spacing-xs);
    }
    
    .hero-text-slide h1 {
        font-size: var(--fs-xl);
        margin-bottom: var(--space-2);
    }
    
    .hero-text-slide p {
        font-size: var(--fs-xs);
        margin-bottom: var(--space-3);
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content .btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: var(--fs-xs);
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .why-choose-image {
        position: relative;
        top: 0;
    }
    
    .choose-image {
        min-height: 250px;
        max-height: 350px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .why-choose-section .feature-card {
        padding: var(--space-3);
    }
    
    .why-choose-section .feature-card h3 {
        font-size: var(--fs-md);
    }
    
    .why-choose-section .feature-card p {
        font-size: var(--fs-xs);
    }
}

@media (max-width: 480px) {
    .header {
        height: 3.5rem;  /* 56px */
        min-height: 3.5rem;
    }
    
    .logo {
        height: 3rem;  /* 48px - increased from 44px */
    }
    
    .logo-image {
        height: 3rem;
        max-width: 12rem;  /* 192px - increased */
    }
    
    .nav-menu {
        top: 3.5rem;  /* Match header height */
        height: calc(100vh - 3.5rem);
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

