/* ========================================
   Trust Company Bank Tucker Alice
   Custom Styles
======================================== */

/* CSS Custom Properties */
:root {
    --burgundy: #781F2E;
    --burgundy-dark: #5C1A1E;
    --burgundy-light: #9A2B3F;
    --blush: #F5E6E0;
    --blush-light: #FBF5F2;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F3;
    --stone-200: #E8E8E4;
    --stone-600: #52524E;
    --stone-800: #2C2C2A;
    --stone-900: #1A1A18;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--stone-800);
    background-color: var(--stone-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: var(--burgundy);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 2px solid var(--burgundy);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 31, 46, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: transparent;
    color: var(--burgundy);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 2px solid var(--burgundy);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--burgundy);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Badges */
.badge-pre-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--blush);
    color: var(--burgundy);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 2rem;
    width: fit-content;
    letter-spacing: 0.025em;
}

.badge-section {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--blush);
    color: var(--burgundy);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 2rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge-section-light {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 2rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(250, 250, 248, 0.98);
    border-bottom-color: var(--stone-200);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn .line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--stone-800);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--stone-200);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease;
}

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

/* Hero Section */
.hero-split {
    background-color: var(--blush-light);
    position: relative;
    overflow: hidden;
}

.hero-split::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(120, 31, 46, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.hero-image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(120, 31, 46, 0.3), transparent);
    pointer-events: none;
}

.floating-card {
    position: absolute;
    bottom: 2rem;
    left: -1rem;
    background-color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    animation: float 3s ease-in-out infinite;
}

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

.floating-card-icon {
    width: 44px;
    height: 44px;
    background-color: var(--blush);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    flex-shrink: 0;
}

/* Services Section */
.service-card {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--stone-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--burgundy);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(120, 31, 46, 0.1);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background-color: var(--blush);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background-color: var(--burgundy);
    color: #ffffff;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.about-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-image-pattern {
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--burgundy) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.15;
    pointer-events: none;
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    background-color: var(--burgundy);
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(120, 31, 46, 0.4);
}

/* Why Choose Us Section */
.feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Contact Form */
.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-800);
    margin-bottom: 0.5rem;
}

.input {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--stone-50);
    border: 1.5px solid var(--stone-200);
    border-radius: 0.625rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--stone-800);
    transition: all 0.2s ease;
    outline: none;
}

.input:focus {
    border-color: var(--burgundy);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(120, 31, 46, 0.1);
}

.input::placeholder {
    color: var(--stone-600);
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2352524E' 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 1rem center;
    padding-right: 2.5rem;
}

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

.contact-success {
    text-align: center;
    padding: 3rem 2rem;
}

.contact-success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--blush);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-split {
        padding-top: 6rem;
    }
    
    .floating-card {
        left: 1rem;
        bottom: 1rem;
    }
    
    .experience-badge {
        right: 1rem;
        bottom: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .experience-badge span:first-child {
        font-size: 2rem;
    }
    
    .about-image-pattern {
        display: none;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

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