/* ============================================
   RANCH 105 — Scroll-Driven Resort Website
   ============================================ */

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

:root {
    --color-bg: #0a0a0a;
    --color-bg-warm: #111008;
    --color-surface: #1a1a17;
    --color-surface-light: #2a2a24;
    --color-text: #f5f0e8;
    --color-text-muted: #a89f8f;
    --color-accent: #c8a96e;
    --color-accent-light: #dfc090;
    --color-accent-dark: #96793e;
    --color-white: #ffffff;
    --color-dark-overlay: rgba(10, 10, 10, 0.6);

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

    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

img, video {
    display: block;
    max-width: 100%;
}

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

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-accent);
}

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

.nav-book-btn {
    background: var(--color-accent) !important;
    color: var(--color-bg) !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 4px;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s var(--ease-smooth) !important;
}

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

.nav-book-btn:hover {
    background: var(--color-accent-light) !important;
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

/* --- Hero Video Section (Scroll-Driven) --- */
.hero-video-section {
    position: relative;
    height: 150vh;
    width: 100%;
}

.hero-video-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video-sticky video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Centered property name — visible on load */
.hero-name-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-align: center;
    color: var(--color-white);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.4));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.1) 40%,
        rgba(10, 10, 10, 0.5) 80%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem 3rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-arrow {
    animation: bounceDown 2s infinite;
    color: var(--color-accent);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* --- Intro Section --- */
.intro-section {
    padding: 10rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-bg);
    position: relative;
}

.intro-content {
    max-width: 900px;
    text-align: center;
}

.intro-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(40px);
}

.intro-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
}

/* --- Video Scrub Section --- */
.video-scrub-section {
    position: relative;
    height: 300vh;
}

.walkthrough-section {
    height: 600vh;
}

.walkthrough-overlay {
    background: rgba(10, 10, 10, 0.3);
}

.video-scrub-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-scrub-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-scrub-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.4);
    pointer-events: none;
}

.video-scrub-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    width: 90%;
    max-width: 800px;
}

.video-scrub-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.video-scrub-text p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- Amenities Section --- */
.amenities-section {
    padding: 8rem 2rem;
    background: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
}

.amenities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-dark), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-card {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.5s var(--ease-smooth);
    opacity: 0;
    transform: translateY(60px);
    position: relative;
    overflow: hidden;
}

.amenity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-smooth);
}

.amenity-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 169, 110, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.amenity-card:hover::before {
    transform: scaleX(1);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    color: var(--color-accent);
}

.amenity-icon svg {
    width: 100%;
    height: 100%;
}

.amenity-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.amenity-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* --- Stats Section --- */
.stats-section {
    padding: 6rem 2rem;
    background: var(--color-bg);
    overflow: hidden;
}

.stats-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    display: block;
    margin-top: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-accent-dark), transparent);
}

/* --- Spaces / Experience Section --- */
.spaces-section {
    padding: 8rem 2rem;
    background: var(--color-bg-warm);
    position: relative;
}

.spaces-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-dark), transparent);
}

.experience-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.experience-card {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.08);
    border-radius: 12px;
    padding: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s var(--ease-smooth);
    position: relative;
}

.experience-card:hover {
    border-color: rgba(200, 169, 110, 0.25);
    transform: translateY(-4px);
}

.experience-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.experience-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.experience-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* --- Weddings Section --- */
.weddings-section {
    padding: 8rem 2rem;
    background: var(--color-bg);
    overflow: hidden;
}

.weddings-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.weddings-text {
    opacity: 0;
    transform: translateX(-60px);
}

.weddings-text .section-label {
    text-align: left;
}

.weddings-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.weddings-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.weddings-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.weddings-features li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.weddings-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-smooth);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.3);
}

.weddings-visual {
    position: relative;
    opacity: 0;
    transform: translateX(60px);
}

.weddings-accent-box {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    opacity: 0.2;
}

.weddings-photo {
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    position: relative;
}

.weddings-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* keep old placeholder styles for fallback — hidden by new class */
.weddings-image-placeholder {
    background: var(--color-surface);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: 12px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-accent);
    position: relative;
    overflow: hidden;
}

.weddings-image-placeholder span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* --- Details Section --- */
.details-section {
    padding: 8rem 2rem;
    background: var(--color-bg-warm);
    position: relative;
}

.details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-dark), transparent);
}

.details-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.details-left .section-label,
.details-left .section-title {
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
    opacity: 0;
    transform: translateX(30px);
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.detail-value {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: right;
}

/* --- CTA Section --- */
.cta-section {
    padding: 10rem 2rem;
    background: var(--color-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.btn-book-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 1.1rem 3rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.btn-book-large:hover {
    background: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(200, 169, 110, 0.35);
}

.btn-book-large svg {
    transition: transform 0.3s;
}

.btn-book-large:hover svg {
    transform: translateX(4px);
}

/* --- Floating Book Button --- */
.floating-book-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 900;
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.4);
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-book-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-book-btn:hover {
    background: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(200, 169, 110, 0.5);
}

/* --- Footer --- */
.footer {
    background: var(--color-surface);
    border-top: 1px solid rgba(200, 169, 110, 0.1);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(200, 169, 110, 0.08);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .experience-cards {
        grid-template-columns: 1fr;
    }


    .weddings-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .weddings-text {
        order: 1;
    }

    .weddings-visual {
        order: 2;
    }

    .stats-inner {
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .intro-section {
        padding: 6rem 1.5rem;
    }

    .hero-title {
        letter-spacing: 0.05em;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .experience-card {
        padding: 2rem 1.5rem;
    }

    .amenity-card {
        padding: 2rem 1.5rem;
    }

    .stats-inner {
        flex-direction: column;
        gap: 2.5rem;
    }

    .floating-book-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.7rem 1.4rem;
        font-size: 0.8rem;
    }
}
