/* ============================================
   Blue Sky High — South Lake Tahoe Vacation Rental
   Deep Navy + Warm Gold | Confident Corporate
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-950: #0a1628;
    --navy-900: #1a2d47;
    --navy-800: #1a3a5c;
    --navy-700: #234e7a;
    --navy-600: #2d6196;
    --gold-500: #c8a45e;
    --gold-400: #d4b76a;
    --gold-300: #e0c97e;
    --gold-200: #f0dfa8;
    --neutral-50: #f8f7f4;
    --neutral-100: #f0efe9;
    --neutral-200: #e2e0d8;
    --neutral-300: #c8c5bb;
    --neutral-400: #9e9b8f;
    --neutral-500: #6b6860;
    --neutral-600: #4a4840;
    --neutral-700: #33312a;
    --neutral-800: #1f1e19;
    --neutral-900: #141310;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.16);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 48px;
    }
}

/* ---------- Typography ---------- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-900);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--neutral-500);
    max-width: 560px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--gold-500);
    color: var(--navy-950);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 249, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-900);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
}

.logo-light {
    color: #ffffff;
}

/* ---------- Navigation ---------- */
.main-nav ul {
    display: none;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: color var(--transition);
    position: relative;
}

.main-nav a:not(.nav-cta):hover {
    color: var(--navy-800);
}

.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--gold-500);
    transition: width var(--transition);
}

.main-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--navy-800);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background-color: var(--navy-700) !important;
    color: #ffffff !important;
}

.nav-cta::after {
    display: none !important;
}

/* ---------- Mobile Menu Toggle ---------- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--navy-900);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Mobile Overlay ---------- */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 22, 40, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy-950);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.65) 0%,
        rgba(10, 22, 40, 0.75) 50%,
        rgba(10, 22, 40, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 32px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background-color: var(--neutral-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--navy-800);
}

.about-feature svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* ---------- Amenities ---------- */
.amenities {
    padding: 100px 0;
    background-color: var(--neutral-100);
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 56px;
}

.amenity-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition);
}

.amenity-card:hover {
    border-color: var(--gold-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy-900);
    border-radius: var(--radius-md);
    color: var(--gold-400);
    margin-bottom: 20px;
}

.amenity-title {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.amenity-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--neutral-500);
}

/* ---------- Location ---------- */
.location {
    padding: 100px 0;
    background-color: var(--neutral-50);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.location-text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.location-details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.location-detail svg {
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.location-detail span {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.location-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 100px 0;
    background-color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 56px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background-color: var(--navy-950);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
}

.contact .section-title {
    color: #ffffff;
}

.contact-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-detail svg {
    color: var(--gold-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.contact-value:hover {
    color: var(--gold-300);
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    outline: none;
    transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background-color: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
    color: #ffffff;
}

.form-success svg {
    color: var(--gold-400);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.form-success p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    max-width: 320px;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .main-nav ul {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .about-grid {
        grid-template-columns: 5fr 6fr;
        gap: 56px;
    }

    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .location-grid {
        grid-template-columns: 6fr 5fr;
        gap: 56px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        padding: 0;
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}

/* ---------- Mobile Menu Active State ---------- */
@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background-color: var(--neutral-50);
        padding: 96px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: var(--shadow-xl);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .main-nav a {
        font-size: 1.0625rem;
        padding: 12px 0;
        border-bottom: 1px solid var(--neutral-200);
    }

    .main-nav a:not(.nav-cta)::after {
        display: none;
    }

    .main-nav .nav-cta {
        margin-top: 16px;
        text-align: center;
        border-bottom: none;
    }

    .mobile-overlay.show {
        display: block;
    }
}
