/*
 * Lake Belton - Shared Base Styles
 * Common CSS for all pages
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-deep-navy: #1A252F;
    --color-slate-blue: #2C3E50;
    --color-water-blue: #3498DB;
    --color-sunset-orange: #E67E22;
    --color-cactus-green: #2ECC71;
    --color-sunset-yellow: #F1C40F;
    --color-tan: #D35400;

    /* Neutrals */
    --color-bg: #FAFAFA;
    --color-white: #FFFFFF;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-text-light: #888888;

    /* Typography */
    --font-primary: 'Montserrat', system-ui, sans-serif;
    --font-secondary: 'Source Sans 3', system-ui, sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.5;
}

/* ==========================================================================
   Page Hero (Secondary Pages)
   ========================================================================== */

.page-hero {
    position: relative;
    height: 300px;
    background: url('/images/lake-belton-hero-sunset.jpg') center 20%/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 37, 47, 0.3) 0%,
        rgba(26, 37, 47, 0.2) 60%,
        rgba(250, 250, 250, 0.6) 85%,
        rgba(250, 250, 250, 1) 100%
    );
    pointer-events: none;
}

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

/* ==========================================================================
   Brand Link & Logo
   ========================================================================== */

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.brand-link:hover {
    opacity: 0.8;
}

.brand-logo {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.brand-wordmark {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.page-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: white;
    text-shadow: 0 2px 25px rgba(0,0,0,0.4);
    margin: 0;
}

/* ==========================================================================
   Top Navigation (Secondary Pages)
   ========================================================================== */

.top-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    z-index: 10;
}

.top-nav a {
    padding: 0.5rem 0.875rem;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0,0,0,0.65);
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.top-nav a:hover {
    color: rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.08);
}

.top-nav a.selected {
    color: white;
    background: var(--color-slate-blue);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: var(--color-text-light);
}

.breadcrumb a {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb a:hover {
    color: var(--color-water-blue);
}

/* ==========================================================================
   Content Container
   ========================================================================== */

.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--color-deep-navy);
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-decoration: none;
    margin-bottom: 0.875rem;
    transition: opacity 0.2s ease;
}

.footer-brand:hover {
    opacity: 0.7;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-wordmark {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: white;
    text-transform: uppercase;
}

.footer-links {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

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

.footer-links a:hover {
    color: rgba(255,255,255,0.85);
}

/* ==========================================================================
   Bottom Navigation (Mobile)
   ========================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(26, 37, 47, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    gap: 6px;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.bottom-nav a:hover,
.bottom-nav a:active {
    color: rgba(255, 255, 255, 0.8);
}

.bottom-nav a.selected {
    color: var(--color-sunset-orange);
}

.nav-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.bottom-nav a.selected .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-family: var(--font-primary);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 600px) {
    .page-hero {
        height: 260px;
    }

    .page-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .content {
        padding: 1.5rem 1rem 4rem;
    }

    footer {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0));
    }
}

/* ==========================================================================
   Responsive - Desktop (hide mobile nav)
   ========================================================================== */

@media (min-width: 601px) {
    .bottom-nav {
        display: none;
    }
}
