/* Professional Financial Services CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* Professional Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

header h1 {
    font-size: 2.2em;
    font-weight: 300;
    margin: 0 0 0.5em 0;
    letter-spacing: 1px;
}

/* Logo */
.site-logo {
    width: 140px;
    max-width: 40vw;
    height: auto;
    display: block;
    margin: 0 auto 0.75em auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: #fff;
    padding: 4px;
}

@media (max-width: 600px) {
    .site-logo { width: 110px; margin-bottom: 0.5em; }
}

/* Professional Navigation */
nav {
    margin: 1em 0 0 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1.5em;
    font-weight: 500;
    font-size: 1.1em;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Professional Main Content */
main {
    max-width: 1200px;
    margin: 3em auto;
    background: #fff;
    padding: 3em;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    text-align: center;
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #3b82f6);
    border-radius: 12px 12px 0 0;
}

/* Professional Sections */
section {
    margin-bottom: 3em;
    padding: 2em;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid #2a5298;
}

section h2 {
    color: #1e3c72;
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 1em;
    letter-spacing: 1px;
}

section h3 {
    color: #2a5298;
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 1em;
}

section p {
    font-size: 1.1em;
    color: #4a5568;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1.5em auto;
}

/* Professional Images */
.main-image {
    display: block;
    width: clamp(240px, 90vw, 520px); /* Scales fluidly but never exceeds native width */
    max-width: 100%;
    height: auto; /* Override fixed height from attributes for responsiveness */
    margin: 1.5em auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    image-rendering: auto;
}

.main-image:hover {
    transform: translateY(-5px);
}

/* Professional Buttons */
.button {
    display: inline-block;
    padding: 1em 2.5em;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
    border: none;
    cursor: pointer;
    margin: 1em 0;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #3b82f6 100%);
}

/* Professional Google Ads */
.google-ads-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2em;
    margin: 3em 0;
    padding: 2em;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
}

.google-ad-cell {
    flex: 1;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.google-ad-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ad-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    border-radius: 6px;
}

/* Professional Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    text-align: center;
    padding: 3em 0 2em 0;
    margin-top: 3em;
    border-top: 4px solid #3b82f6;
}

footer nav a {
    color: #fff;
    margin: 0 1em;
    font-weight: 500;
    font-size: 1.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer nav a:hover {
    color: #a7c3e8;
    transform: translateY(-1px);
}

.resources, .legal {
    margin: 1.5em 0;
    padding: 1em;
}

.resources a {
    color: #4ade80 !important;
    font-weight: 600;
    text-decoration: none;
    margin: 0 0.5em;
}

.legal a {
    color: #fbbf24 !important;
    font-weight: 600;
    text-decoration: none;
    margin: 0 0.5em;
}

.resources a:hover, .legal a:hover {
    text-decoration: underline;
}

/* Forms */
form {
    margin-top: 2em;
    padding: 2em;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

input[type="email"] {
    padding: 1em;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    width: 300px;
    font-size: 1em;
    margin-right: 1em;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: #2a5298;
}

button[type="submit"] {
    padding: 1em 2em;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    main {
        padding: 2em;
        margin: 1em;
        border-radius: 8px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    nav a {
        margin: 0 0.5em;
        font-size: 1em;
        padding: 0.4em 0.8em;
    }
    
    section {
        padding: 1.5em;
        margin-bottom: 2em;
    }
    
    section h2 {
        font-size: 2em;
    }
    
    section h3 {
        font-size: 1.5em;
    }
    
    .google-ads-row {
        flex-direction: column;
        gap: 1em;
        padding: 1em;
    }
    
    .google-ad-cell {
        width: 100%;
    }
    
    input[type="email"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1em;
    }
    
    .main-image { width: clamp(220px, 95vw, 520px); }

    figure .main-image { margin: 1em auto; }

}

@media (min-width: 1400px) {
    .main-image { width: 520px; } /* lock at native size on very large screens */
}

/* Professional List Styles */
ul {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}

li {
    padding: 0.8em 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 2em;
}

li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
    font-size: 1.2em;
}

li:last-child {
    border-bottom: none;
}

/* Image Lightbox */
.enlargeable { cursor: zoom-in; }
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}
.lightbox-backdrop.active { display: flex; }
.lightbox-backdrop img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    cursor: zoom-out;
    background: #fff;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .25s ease, transform .25s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
@media (max-width: 600px){
    .lightbox-backdrop { padding: 1rem; }
    .lightbox-close { width: 40px; height: 40px; }
}
