/* ============================================
   China Mountain House — Styles
   Deep Navy + Warm Gold · Editorial Style
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background-color: #fdfaf3;
    -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: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

/* Color Variables */
:root {
    --navy: #1e3a5f;
    --navy-dark: #142740;
    --navy-light: #2a4d76;
    --gold: #c9a84c;
    --gold-light: #d4b965;
    --gold-dark: #b08f35;
    --cream: #fdfaf3;
    --cream-dark: #f5f0e6;
    --text-dark: #1a1a2e;
    --text-muted: #5a5a72;
    --white: #ffffff;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.938rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
    border: 2px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.btn-navy:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.35);
}

.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ============================================
   Section Headers
   ============================================ */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.section-headline {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--navy);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.063rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

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

.section-header--center .section-desc {
    margin: 0 auto;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    letter-spacing: -0.01em;
}

.logo--light {
    color: var(--white);
}

.logo-mark {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-dark);
}

.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(20, 39, 64, 0.88) 0%,
        rgba(30, 58, 95, 0.75) 50%,
        rgba(20, 39, 64, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 860px;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 28px;
    font-weight: 800;
}

.hero-headline em {
    font-style: italic;
    color: var(--gold);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.688rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================
   Intro Strip
   ============================================ */
.intro-strip {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
}

.intro-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.938rem;
    padding: 0 24px;
}

.intro-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

.intro-item a {
    color: var(--gold-light);
    transition: color 0.2s;
}

.intro-item a:hover {
    color: var(--gold);
}

.intro-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Rooms
   ============================================ */
.rooms {
    padding: 100px 0;
    background: var(--cream);
}

.rooms .section-header {
    margin-bottom: 60px;
}

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

.room-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.12);
}

.room-card-img {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.room-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.room-card-body {
    padding: 28px;
}

.room-card-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.room-card-desc {
    font-size: 0.938rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.room-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-card-features li {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--navy-light);
    background: var(--cream);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(30, 58, 95, 0.1);
}

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

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

.location-content .section-desc {
    margin-bottom: 36px;
}

.location-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loc-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.loc-highlight svg {
    color: var(--gold);
    flex-shrink: 0;
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30, 58, 95, 0.1);
    aspect-ratio: 4/3;
    min-height: 360px;
}

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

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

.amenity-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 6px;
    border: 1px solid rgba(30, 58, 95, 0.06);
    transition: all 0.3s ease;
}

.amenity-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(30, 58, 95, 0.08);
}

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

.amenity-title {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.amenity-desc {
    font-size: 0.938rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 39, 64, 0.92) 0%,
        rgba(30, 58, 95, 0.85) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--white);
}

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

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

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

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

.contact-detail-label {
    display: block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 1.063rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-detail-value a {
    color: var(--navy);
    transition: color 0.2s;
}

.contact-detail-value a:hover {
    color: var(--gold-dark);
}

.contact-form-wrap {
    background: var(--cream);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 95, 0.06);
}

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

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

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    padding: 14px 16px;
    border: 1.5px solid rgba(30, 58, 95, 0.15);
    border-radius: 4px;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    color: #2e7d32;
    font-size: 0.938rem;
    font-weight: 500;
}

.form-success svg {
    flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

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

.footer-tagline {
    margin-top: 16px;
    font-size: 0.938rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .location-map {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 12px;
    }

    .nav-menu a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .intro-strip-inner {
        flex-direction: column;
        gap: 12px;
    }

    .intro-item {
        padding: 0;
    }

    .intro-divider {
        display: none;
    }

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

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .rooms,
    .location,
    .amenities,
    .contact {
        padding: 72px 0;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }
}
