/* Base styles */
:root {
    --primary-color: #1a5276;
    /* Deep blue */
    --secondary-color: #f39c12;
    /* Golden/Orange for CTAs */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --border-color: #ddd;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    --spacing: 20px;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 18px;
    /* Larger base font size for older demographics */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Header and Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

.main {
    padding-top: 56px; /* Add spacing below fixed navbar */
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--spacing);
}

.logo-container h1 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.tagline {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-icon {
    display: block;
    position: relative;
    width: 26px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 auto;
    transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    transition: var(--transition);
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.mobile-menu-btn.active .menu-icon {
    background-color: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 10px 0;
    position: relative;
    display: block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* Main content */
main {
    flex: 1 0 auto;
    padding-top: 70px; /* Increased padding to ensure content appears below fixed navbar */
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-info address {
    font-style: normal;
}

.footer-info a {
    color: var(--secondary-color);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.icon-facebook,
.icon-youtube,
.icon-instagram {
    font-size: 18px;
}

/* Use font icons or images for social icons */
.icon-facebook::before {
    content: "\f39e";
    /* Unicode for Facebook icon */
}

.icon-youtube::before {
    content: "\f167";
    /* Unicode for YouTube icon */
}

.icon-instagram::before {
    content: "\f16d";
    /* Unicode for Instagram icon */
}

.cta-wrapper {
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    font-weight: bold;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: white;
}

.cta-button.primary:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 16px;
    }

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

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0 0 15px 0;
    }

    .nav-menu li:last-child {
        margin-bottom: 0;
    }

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

/* Glassmorphism effect */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.gradient-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animation styles for scroll effects */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Delay animations in sequence */
.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Slideshow dots navigation */
.slideshow-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--secondary-color);
}

/* Form validation styles */
.error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #e67e22;
}

.scroll-to-top i {
    font-size: 20px;
}

/* Hero section styling */
.hero-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 70vh;
    min-height: 400px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.jumbotron {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 10px;
}

.hero-content h1.display-4,
.hero-content p.lead {
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(148, 147, 147, 0.5);
    text-align: center;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content {
        margin: 2rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-video-container {
        height: 50vh;
    }

    .section {
        padding: 2rem 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .display-2 {
        font-size: 4rem !important; /* Make "Big Lots, Big Savings" match the title size on mobile */
    }
}
