/* =============================================
   Wasto Inn - Shared Styles
   ============================================= */

/* CSS Variables */
:root {
    --color-black: #0a0a0a;
    --color-white: #fafafa;
    --color-cream: #f5f3f0;
    --color-accent: #100717;
    --color-gold: #c9a962;
    --color-gray: #6b6b6b;
    --color-light-gray: #e8e6e3;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;

    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-smooth);
}

nav.scrolled {
    padding: 1rem 3rem;
    background: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* Remove nav shadow when mobile menu is open */
nav.menu-open {
    box-shadow: none;
    border-bottom-color: transparent;
}

nav.scrolled .nav-logo img {
    height: 38px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0 2rem;
}

.nav-logo img {
    height: 65px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.4s var(--ease-smooth);
}

.nav-links a,
.nav-cta,
.menu-toggle span {
    transition: all 0.3s var(--ease-smooth);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    flex: 1;
}

.nav-links-left {
    justify-content: flex-end;
}

.nav-links-right {
    justify-content: flex-start;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.4s var(--ease-smooth);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-white);
    transition: all 0.3s var(--ease-smooth);
}

/* Nav Weather Widget */
.nav-weather {
    position: absolute;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

nav.scrolled .nav-weather {
    opacity: 1;
    pointer-events: auto;
}

.nav-weather-icon {
    width: 18px;
    height: 18px;
}

.nav-weather-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 1.5;
}

.nav-weather-temp {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .nav-weather {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-black);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.5s var(--ease-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s var(--ease-smooth);
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.5s; }

/* Mobile Weather in Menu */
.mobile-weather {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s var(--ease-smooth);
}

.mobile-menu.active .mobile-weather {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.mobile-weather-icon {
    width: 24px;
    height: 24px;
}

.mobile-weather-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 1.5;
}

.mobile-weather-temp {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-white);
}

.mobile-weather-location {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Styles */
section {
    padding: 8rem 3rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-black);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-gray);
    line-height: 1.8;
}

/* Buttons */
.btn-primary {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-black);
    background: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    transition: all 0.4s var(--ease-smooth);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-white);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.4s var(--ease-smooth);
    display: inline-block;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Footer */
footer {
    background: var(--color-black);
    padding: 4rem 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.footer-brand .nav-logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-brand .nav-logo img {
    height: 50px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
}

.footer-social a:hover {
    border-color: var(--color-gold);
    background: var(--color-gold);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--color-white);
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Common Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
        justify-content: space-between;
    }

    nav.scrolled {
        padding: 1rem 1.5rem;
    }

    /* Keep logo same size on mobile */
    nav.scrolled .nav-logo img {
        height: 50px;
    }

    .nav-logo img {
        height: 50px;
    }

    .nav-links {
        display: none;
    }

    .nav-logo {
        margin: 0;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    section {
        padding: 5rem 1.5rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
