/* ========================================
   PROJECT: The K9 Inn Website
   FILE: layout.css
   PURPOSE: Header, navigation, and footer styles
   LAST UPDATED: August 21, 2025
   DESCRIPTION: Layout components shared across all pages
======================================== */

/* ========================================
   TABLE OF CONTENTS
   1. Header & Navigation
   2. Logo Styling
   3. Navigation Links
   4. Mobile Navigation
   5. Footer Styles
   6. Responsive Breakpoints
======================================== */

/* ========================================
   1. HEADER & NAVIGATION
   PURPOSE: Sticky header with backdrop blur effect
   EFFECT: Professional navigation that stays accessible
======================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

/* ========================================
   2. LOGO STYLING
   PURPOSE: Brand logo with responsive sizing
   EFFECT: Consistent branding across devices
======================================== */
.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-blue);
    text-decoration: none;
}

.logo img {
    width: auto;
    height: 100px;
    object-fit: contain;
    padding: 0.5rem 0 0 0;
}

/* ========================================
   3. NAVIGATION LINKS
   PURPOSE: Main navigation menu styling
   EFFECT: Clear, accessible navigation
======================================== */
.nav-items {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

.services-button {
    display: inline-block;
    background: #7FA9E1;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: none;
    cursor: pointer;
}

.services-button:hover {
    background: #6A8DC1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ========================================
   4. MOBILE NAVIGATION
   PURPOSE: Responsive mobile menu
   EFFECT: Accessible navigation on small screens
======================================== */
/* Hide services button in mobile menu by default */
.services-nav-item {
    display: none;
}

/* Show desktop services button by default */
.desktop-only {
    display: inline-block;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--neutral-dark);
}

/* ========================================
   5. FOOTER STYLES
   PURPOSE: Consistent footer across all pages
   EFFECT: Professional site closure with social links
======================================== */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.95rem;
}

footer .social-link svg { 
    width: 24px; 
    height: 24px; 
    fill: #ffffff; 
    opacity: 0.9; 
    transition: transform 0.2s ease, opacity 0.2s ease; 
}

footer .social-link:hover svg { 
    opacity: 1; 
    transform: scale(1.06); 
}

footer .social-link img { 
    width: 24px; 
    height: 24px; 
    opacity: 0.9; 
    transition: transform 0.2s ease, opacity 0.2s ease; 
}

footer .social-link:hover img { 
    opacity: 1; 
    transform: scale(1.06); 
}

footer .social-links { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-top: 1rem; 
}

footer .social-links .social-link { 
    display: inline-block; 
}

/* ========================================
   6. RESPONSIVE BREAKPOINTS
   PURPOSE: Mobile-first responsive design
   EFFECT: Optimal viewing on all device sizes
======================================== */

/* Large screens - bigger logo */
@media (min-width: 1200px) {
    .logo img {
        height: 120px;
    }
}

/* Tablet and medium screens */
@media (min-width: 769px) and (max-width: 1199px) {
    .logo img {
        height: 110px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 1rem;
        text-align: center;
        z-index: 999;
        border-top: 1px solid rgba(131, 181, 191, 0.2);
    }
    
    .nav-links.active {
        display: flex !important;
    }

    /* Center align mobile navigation links */
    .nav-links li {
        text-align: center;
    }

    /* Hide desktop services button on mobile */
    .desktop-only {
        display: none;
    }

    /* Show services button in mobile menu */
    .services-nav-item {
        display: block;
    }

    /* Style services button in mobile menu */
    .services-nav-item .services-button {
        display: block;
        width: 90%;
        margin: 0 auto;
        text-align: center;
        padding: 12px 16px;
        margin-top: 0.5rem;
    }

    .mobile-menu {
        display: block;
        padding: 0.5rem;
        transition: color 0.2s ease;
    }
    
    .mobile-menu:hover {
        color: var(--accent-blue);
    }
    
    .mobile-menu.active {
        color: var(--accent-blue);
        transform: rotate(90deg);
    }
    
    /* Make logo smaller on mobile */
    .logo img {
        height: 70px;
    }
}
