/* ========================================
   River B Ranch — Styles
   Palette: Plum (#5B2C6F) + Amber (#D4A017)
   Fonts: Cormorant Garamond + Raleway
   ======================================== */

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

:root {
    --plum: #5B2C6F;
    --plum-deep: #3D1D4D;
    --plum-light: #7B4285;
    --plum-muted: #8E5A96;
    --amber: #D4A017;
    --amber-light: #E8B830;
    --amber-muted: #C4900F;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --warm-white: #FEFCF8;
    --charcoal: #2A2228;
    --charcoal-light: #4A3F47;
    --text: #3D3038;
    --text-muted: #7A6B74;
    --text-light: #A89AA2;
    --border: rgba(91, 44, 111, 0.12);
    --shadow-sm: 0 2px 8px rgba(91, 44, 111, 0.06);
    --shadow-md: 0 8px 30px rgba(91, 44, 111, 0.10);
    --shadow-lg: 0 20px 60px rgba(91, 44, 111, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Raleway', 'Helvetica Neue', sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--warm-white);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--warm-white);
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav.scrolled .nav__logo {
    color: var(--plum);
}

.nav__logo-icon {
    color: var(--amber);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(254, 252, 248, 0.85);
    transition: var(--transition);
    position: relative;
}

.nav.scrolled .nav__links a {
    color: var(--charcoal-light);
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--amber);
    transition: var(--transition);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__links a:hover {
    color: var(--amber-light);
}

.nav.scrolled .nav__links a:hover {
    color: var(--plum);
}

.nav__cta {
    background: var(--amber) !important;
    color: var(--charcoal) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    transition: var(--transition);
}

.nav__cta::after {
    display: none !important;
}

.nav__cta:hover {
    background: var(--amber-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--warm-white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav.scrolled .nav__toggle-bar {
    background: var(--plum);
}

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

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

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

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 29, 77, 0.82) 0%,
        rgba(91, 44, 111, 0.65) 40%,
        rgba(42, 34, 40, 0.70) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__card {
    max-width: 680px;
    animation: heroFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--warm-white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero__headline-accent {
    color: var(--amber);
    font-style: italic;
}

.hero__subheadline {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(254, 252, 248, 0.78);
    max-width: 520px;
    margin-bottom: 36px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--amber);
    color: var(--charcoal);
    border-color: var(--amber);
}

.btn--primary:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--warm-white);
    border-color: rgba(254, 252, 248, 0.4);
}

.btn--outline:hover {
    border-color: var(--warm-white);
    background: rgba(254, 252, 248, 0.1);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    right: 24px;
    bottom: 80px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(253, 248, 240, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(254, 252, 248, 0.18);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    min-width: 200px;
    animation: statFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card:nth-child(1) { animation-delay: 0.5s; }
.stat-card:nth-child(2) { animation-delay: 0.65s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes statFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--amber);
    line-height: 1.2;
}

.stat-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(254, 252, 248, 0.7);
    margin-top: 4px;
}

.stat-card__sub {
    display: block;
    font-size: 0.8rem;
    color: rgba(254, 252, 248, 0.5);
    margin-top: 2px;
}

/* ========================================
   Section Shared
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-muted);
    margin-bottom: 14px;
}

.section-header__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--plum-deep);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.section-header__desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ========================================
   Rooms
   ======================================== */
.rooms {
    padding: 120px 0;
    background: var(--warm-white);
}

.rooms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.room-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.room-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

.room-card:hover .room-card__image img {
    transform: scale(1.05);
}

.room-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--amber);
    color: var(--charcoal);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.room-card__body {
    padding: 28px;
}

.room-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--plum-deep);
    margin-bottom: 12px;
    line-height: 1.2;
}

.room-card__desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}

.room-card__features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.room-card__features li {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--plum);
    background: rgba(91, 44, 111, 0.07);
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.room-card__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--amber-muted);
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.room-card__link:hover {
    color: var(--plum);
}

/* ========================================
   Experience
   ======================================== */
.experience {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

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

.experience__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 29, 77, 0.90) 0%,
        rgba(91, 44, 111, 0.82) 100%
    );
}

.experience__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.experience__eyebrow {
    color: var(--amber) !important;
}

.experience__title {
    color: var(--warm-white) !important;
    max-width: 600px;
    margin-bottom: 56px;
}

.experience__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
}

.exp-feature {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: rgba(254, 252, 248, 0.06);
    border: 1px solid rgba(254, 252, 248, 0.10);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.exp-feature:hover {
    background: rgba(254, 252, 248, 0.10);
    border-color: rgba(254, 252, 248, 0.18);
    transform: translateY(-3px);
}

.exp-feature__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.15);
    border-radius: var(--radius-sm);
    color: var(--amber);
}

.exp-feature__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.exp-feature__desc {
    font-size: 0.88rem;
    color: rgba(254, 252, 248, 0.65);
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   Location
   ======================================== */
.location {
    padding: 120px 0;
    background: var(--cream);
}

.location__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.location__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location__desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    font-weight: 300;
}

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

.loc-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.loc-detail svg {
    flex-shrink: 0;
    color: var(--amber-muted);
    margin-top: 3px;
}

.loc-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--plum-deep);
    margin-bottom: 2px;
}

.loc-detail span,
.loc-detail a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.loc-detail a:hover {
    color: var(--plum);
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* ========================================
   CTA / Contact
   ======================================== */
.cta {
    padding: 120px 0;
    background: var(--warm-white);
}

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

.cta__text {
    padding-top: 12px;
}

.cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--plum-deep);
    margin-bottom: 18px;
}

.cta__desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
}

.cta__form {
    background: var(--cream);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--warm-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--plum-light);
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.08);
}

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

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 14px;
}

.cta__success {
    text-align: center;
    padding: 48px 24px;
}

.cta__success svg {
    color: var(--amber-muted);
    margin-bottom: 16px;
}

.cta__success h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--plum-deep);
    margin-bottom: 8px;
}

.cta__success p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--charcoal);
    color: rgba(254, 252, 248, 0.6);
    padding: 72px 0 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(254, 252, 248, 0.08);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 14px;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
    font-weight: 300;
}

.footer__links {
    display: flex;
    gap: 48px;
}

.footer__col h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 18px;
}

.footer__col a,
.footer__col span {
    display: block;
    font-size: 0.88rem;
    color: rgba(254, 252, 248, 0.55);
    margin-bottom: 10px;
    transition: var(--transition);
    font-weight: 300;
    line-height: 1.5;
}

.footer__col a:hover {
    color: var(--warm-white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
    font-weight: 300;
}

/* ========================================
   Scroll Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero__stats {
        position: relative;
        right: auto;
        bottom: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 48px;
        padding-bottom: 40px;
    }

    .stat-card {
        flex: 1;
        min-width: 160px;
    }

    .rooms__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience__features {
        grid-template-columns: 1fr;
    }

    .location__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .location__map {
        min-height: 320px;
    }

    .cta__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(61, 29, 77, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__links a {
        color: rgba(254, 252, 248, 0.85) !important;
        font-size: 0.95rem;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-card {
        min-width: unset;
        width: 100%;
    }

    .rooms__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .cta__form {
        padding: 28px;
    }

    .footer__links {
        flex-direction: column;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 18px;
    }

    .rooms,
    .location,
    .cta {
        padding: 80px 0;
    }

    .experience {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }
}
