/* ============================================
   BDSA Finance LLC - Corporate Landing Page
   Sapphire Blue Theme
   ============================================ */

/* CSS Variables */
:root {
    /* Sapphire Color Palette */
    --sapphire-900: #0a1628;
    --sapphire-800: #0f2744;
    --sapphire-700: #153761;
    --sapphire-600: #1c4a7e;
    --sapphire-500: #245d9b;
    --sapphire-400: #3a7bc8;
    --sapphire-300: #5a9bdc;
    --sapphire-200: #8dbde9;
    --sapphire-100: #c0ddf5;
    --sapphire-50: #e8f3fb;

    /* Accent Colors */
    --gold: #d4a853;
    --gold-light: #e8c87d;
    --gold-dark: #b8903e;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sizing */
    --container-max: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.16);
    --shadow-sapphire: 0 8px 32px rgba(36, 93, 155, 0.25);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

address {
    font-style: normal;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sapphire-500);
    margin-bottom: 16px;
}

.section-label i {
    font-size: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--sapphire-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--sapphire-400), var(--sapphire-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.btn i {
    font-size: 0.875rem;
    transition: transform var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sapphire-500), var(--sapphire-700));
    color: var(--white);
    box-shadow: var(--shadow-sapphire);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--sapphire-400), var(--sapphire-600));
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(36, 93, 155, 0.35);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--white);
    color: var(--sapphire-700);
    border: 2px solid var(--sapphire-200);
}

.btn-secondary:hover {
    border-color: var(--sapphire-400);
    background: var(--sapphire-50);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sapphire-800);
}

.logo i {
    color: var(--sapphire-500);
    font-size: 1.25rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sapphire-500);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--sapphire-600);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sapphire-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 60px) 0 80px;
    background: linear-gradient(180deg, var(--sapphire-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--sapphire-200);
    top: -200px;
    right: -200px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--sapphire-300);
    bottom: -100px;
    left: -100px;
    opacity: 0.3;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--gold-light);
    top: 40%;
    right: 20%;
    opacity: 0.2;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--sapphire-200);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sapphire-600);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge i {
    color: var(--sapphire-500);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--sapphire-900);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 520px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.hero-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sapphire-500), var(--sapphire-700));
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 2rem;
}

.hero-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sapphire-500);
    margin-bottom: 4px;
}

.hero-card-content p {
    font-size: 1rem;
    color: var(--gray-600);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 0.6s ease 0.6s forwards, bounce 2s ease infinite 1s;
    opacity: 0;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.hero-scroll i {
    font-size: 0.75rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.about-feature:hover {
    background: var(--sapphire-50);
    transform: translateX(8px);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    color: var(--sapphire-500);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.about-feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sapphire-800);
    margin-bottom: 2px;
}

.about-feature-content p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.about-image-pattern {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, var(--sapphire-100) 25%, transparent 25%),
        linear-gradient(225deg, var(--sapphire-100) 25%, transparent 25%),
        linear-gradient(45deg, var(--sapphire-100) 25%, transparent 25%),
        linear-gradient(315deg, var(--sapphire-100) 25%, transparent 25%);
    background-size: 40px 40px;
    border-radius: var(--border-radius-lg);
    opacity: 0.5;
}

.about-image-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px;
    background: linear-gradient(135deg, var(--sapphire-600), var(--sapphire-800));
    border-radius: var(--border-radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.about-image-card i {
    font-size: 3rem;
    color: var(--gold);
}

.about-image-card span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--sapphire-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sapphire-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sapphire-100), var(--sapphire-50));
    border-radius: var(--border-radius);
    color: var(--sapphire-600);
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--sapphire-500), var(--sapphire-700));
    color: var(--white);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--sapphire-800);
    margin-bottom: 12px;
}

.service-text {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sapphire-500);
}

.service-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sapphire-50);
    border-radius: 10px;
    color: var(--sapphire-500);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 4px;
    display: block;
}

.contact-item-content a,
.contact-item-content address {
    font-size: 1rem;
    color: var(--sapphire-700);
    transition: color var(--transition-fast);
}

.contact-item-content a:hover {
    color: var(--sapphire-500);
}

.contact-form-wrapper {
    padding: 40px;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-100);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sapphire-400);
    box-shadow: 0 0 0 3px rgba(36, 93, 155, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 32px 0;
    background: var(--sapphire-900);
}

.footer-content {
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--sapphire-300);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .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(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 60px;
    }

    .hero-visual {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about,
    .services,
    .contact {
        padding: 80px 0;
    }

    .about-image {
        max-width: 280px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .service-card {
        padding: 24px;
    }
}
