/* ========================================
   Doorstep - Common Styles
   Shared across all page types
   ======================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background: var(--ivory, #f9f7f3);
    color: #3d3d3d;
    line-height: 1.6;
}

/* CSS Custom Properties */
:root {
    --burgundy: #4A1420;
    --burgundy-light: #5a1625;
    --ivory: #f9f7f3;
    --cream: #f5f1e8;
    --dark-text: #3d3d3d;
    --light-text: #595959;
    --gold: #A89863;
    --dark-gold: #A68A4E;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-to-content:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--burgundy, #4A1420);
    color: #fff;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    z-index: 10001;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 20, 32, 0.08);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 50px;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--burgundy);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--burgundy);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.nav-active {
    color: var(--burgundy, #4A1420);
    border-bottom: 2px solid var(--burgundy, #4A1420);
    padding-bottom: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--burgundy);
    padding: 0.5rem;
    line-height: 1;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    color: var(--ivory);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--gold);
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Card image sizing (used across lifestyle hub pages) */
.nt-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* Image brightness/saturation filter (used across most pages) */
.nt-card-img,
.nearby-card-img img,
.lifestyle-card-img img,
.related-card-img img,
.featured-card-img img,
.calendar-card-img {
    filter: brightness(1.03) saturate(1.12);
}

/* Responsive: Header & Nav */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 1.25rem 0 0.5rem;
        font-size: 0.95rem;
    }

    nav a::after {
        display: none;
    }

    header.nav-open nav {
        display: flex;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
