/* Navigation Styles for Gracie Barra Clermont
   ============================================= */

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: 2rem;
}

.nav-link {
    color: var(--gb-dark-gray);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--gb-red);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gb-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gb-red);
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gb-dark-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    transition: var(--transition);
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: var(--gb-red);
}

/* CTA Button in Nav - MAXIMUM VISIBILITY */
.nav-cta {
    margin-left: 2rem;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gb-red) 0%, #FF3322 100%);
    border: 2px solid var(--white);
    box-shadow:
        0 0 20px rgba(255, 34, 17, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: ctaPulse 2s ease-in-out infinite;
}

.nav-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-cta .btn:hover::before {
    left: 100%;
}

.nav-cta .btn:hover {
    background: linear-gradient(135deg, #FF3322 0%, var(--gb-red) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.6),
        0 6px 25px rgba(0, 0, 0, 0.5),
        inset 0 -2px 10px rgba(255, 255, 255, 0.2);
    animation: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 34, 17, 0.6),
            0 4px 15px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 34, 17, 0.8),
            0 4px 15px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    width: 35px;
    height: 35px;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 30px;
    height: 3px;
    background-color: var(--gb-dark-gray);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    bottom: -10px;
}

/* Mobile Menu Active State */
.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--gb-red);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
    background-color: var(--gb-red);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gb-dark-gray);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #f8f9fa;
    color: var(--gb-red);
}

.mobile-nav-cta {
    padding: 1rem 1.5rem;
}

.mobile-nav-cta .btn {
    width: 100%;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gb-red) 0%, #FF3322 100%);
    border: 2px solid var(--white);
    box-shadow:
        0 0 20px rgba(255, 34, 17, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: ctaPulse 2s ease-in-out infinite;
}

.mobile-nav-cta .btn:hover {
    background: linear-gradient(135deg, #FF3322 0%, var(--gb-red) 100%);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.6),
        0 6px 25px rgba(0, 0, 0, 0.5),
        inset 0 -2px 10px rgba(255, 255, 255, 0.2);
    animation: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer - LIGHTENED */
.footer {
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%); /* Lightened from almost-black */
    color: var(--gb-almost-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--gb-red), var(--gb-blue)) 1; /* Gradient top border */
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    color: #B0B0B0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: #B0B0B0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gb-red);
}

/* Footer Logo */
.footer-logo {
    max-width: 200px;
    margin-bottom: var(--spacing-lg);
    display: inline-block;
    background-color: var(--white);
    border-radius: 50%;
    padding: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-logo img {
    width: 100%;
    height: auto;
    opacity: 1;
    display: block;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--gb-red), 0 0 30px rgba(255, 34, 17, 0.5);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #808080;
    margin: 0;
}

.footer-bottom a {
    color: var(--gb-red);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-container {
        padding: 0.75rem 0;
    }

    .logo img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto var(--spacing-lg) auto;
    }

    /* Business hours mobile styling */
    .hours-day-item {
        text-align: left;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .hours-periods-list {
        padding-left: 1.2rem;
    }
}

/* Sticky Footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 80px; /* Account for fixed header */
}

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gb-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1100;
}

.skip-to-content:focus {
    top: 0;
}