/* Custom CSS for US Deal Savings */

:root {
    --primary-color: #0b2d4f;
    --secondary-color: #0ea5a4;
    --accent-color: #f97316;
    --dark-color: #071321;
    --light-color: #f6f8fb;
    --text-color: #223046;
    --border-color: #e3e8ef;
    --muted-color: #61708a;
    --surface-color: #ffffff;
    --shadow-color: rgba(7, 19, 33, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--surface-color);
}

/* Custom Bootstrap overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0a2540;
    border-color: #0a2540;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 45, 79, 0.22);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 18px 50px rgba(7, 19, 33, 0.14);
    border-radius: 0.5rem;
    padding: 1rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(1200px 700px at 10% 10%, rgba(14, 165, 164, 0.38), rgba(14, 165, 164, 0) 60%),
        radial-gradient(900px 600px at 80% 20%, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0) 55%),
        linear-gradient(135deg, rgba(11, 45, 79, 0.94), rgba(7, 19, 33, 0.88)),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(7, 19, 33, 0.2), rgba(7, 19, 33, 0.55));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(7, 19, 33, 0.06);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px rgba(7, 19, 33, 0.14);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.page-hero {
    position: relative;
    padding: 5rem 0;
    margin-top: 80px;
    background: radial-gradient(900px 500px at 10% 0%, rgba(14, 165, 164, 0.28), rgba(14, 165, 164, 0) 55%),
        radial-gradient(900px 500px at 90% 20%, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0) 55%),
        linear-gradient(135deg, rgba(11, 45, 79, 1), rgba(7, 19, 33, 1));
    color: #ffffff;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.18;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .breadcrumb .breadcrumb-item a {
    text-decoration: none;
}

.page-hero .breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.service-icon-large {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.feature-box {
    height: 100%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(7, 19, 33, 0.07);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(7, 19, 33, 0.12);
    border-color: rgba(11, 45, 79, 0.35);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(14, 165, 164, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.service-detail-card {
    height: 100%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 16px 40px rgba(7, 19, 33, 0.07);
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(7, 19, 33, 0.12);
    border-color: rgba(11, 45, 79, 0.35);
}

.service-detail-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(11, 45, 79, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.category-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: 0.3s;
    text-align: center;
    box-shadow: 0 10px 25px rgba(7, 19, 33, 0.06);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(7, 19, 33, 0.14);
    border-color: rgba(11, 45, 79, 0.35);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.8rem;
}

.faq-item {
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: var(--surface-color);
    box-shadow: 0 10px 25px rgba(7, 19, 33, 0.06);
}

.listing-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(7, 19, 33, 0.06);
}

.stat-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    display: inline-block;
    margin: 0.25rem;
    backdrop-filter: blur(10px);
}

.service-card h5 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose-icon {
    opacity: 0.9;
}

.why-choose-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .stat-item h3 {
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--dark-color);
    letter-spacing: -0.015em;
}

h2, h3, h4, h5, h6 {
    color: var(--dark-color);
}

.lead {
    color: var(--muted-color);
}

/* Utility Classes */
.rounded-4 {
    border-radius: 1rem !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.text-light {
    color: #f8f9fa !important;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer .contact-info p {
    margin-bottom: 0.75rem;
}

footer .contact-info i {
    width: 20px;
    color: var(--primary-color);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

a:focus-visible, .btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
