/* ========================================
   Summit Peak Insurance - Custom Styles
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary-color: #1e5f8a;
    --primary-dark: #154a6b;
    --primary-light: #2a7bb0;
    --accent-color: #e8a842;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* ---------- Global Styles ---------- */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 95, 138, 0.4);
}

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

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

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

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

.bg-primary-subtle {
    background-color: rgba(30, 95, 138, 0.1) !important;
}

.text-accent {
    color: var(--accent-color);
}

/* ---------- Top Bar ---------- */
.top-bar {
    font-size: 0.85rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* ---------- Navigation ---------- */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.brand-text .text-primary {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: -4px;
}

.logo-placeholder {
    display: none; /* Hide until actual logo is added */
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

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

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

/* ---------- Hero Section ---------- */
.hero-section {
    /* Using a beautiful Denver/Colorado mountain image from Unsplash */
    background-image: url('https://images.unsplash.com/photo-1546156929-a4c0ac411f47?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 95, 138, 0.85) 0%, rgba(21, 74, 107, 0.75) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---------- Product Cards ---------- */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    transition: transform 0.5s ease;
    height: 180px;
    object-fit: cover;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-img-overlay-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(30, 95, 138, 0.4);
}

.product-card .card-body {
    padding: 1.5rem;
}

/* ---------- Feature Icons ---------- */
.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Carrier Logos ---------- */
.carrier-logo {
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.carrier-logo img {
    max-height: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.carrier-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Quote Form ---------- */
#quote .card {
    border-radius: 16px;
}

#quote .form-control,
#quote .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#quote .form-control:focus,
#quote .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 95, 138, 0.15);
}

/* ---------- Contact Cards ---------- */
.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 991.98px) {
    .hero-section {
        background-attachment: scroll;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .top-bar .row > div {
        text-align: center !important;
    }

    .top-bar .col-md-6:first-child {
        margin-bottom: 0.5rem;
    }

    .hero-section {
        min-height: 90vh;
    }

    .hero-section .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

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

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

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

/* ---------- Section Spacing ---------- */
section {
    scroll-margin-top: 80px;
}
