/* ============================================
   Ope-Chee Hotels & Lodging — Styles
   Color Palette: Burgundy + Blush
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #6B0F1A;
    --burgundy-deep: #4A0A12;
    --burgundy-light: #8B1A2B;
    --blush: #F5E6D3;
    --blush-light: #FBF5EE;
    --blush-mid: #E8D5C4;
    --cream: #FDF9F5;
    --white: #FFFFFF;
    --text-dark: #1A1210;
    --text-mid: #4A3F3A;
    --text-light: #7A6E68;
    --line: rgba(107, 15, 26, 0.12);
    --line-strong: rgba(107, 15, 26, 0.25);
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(26, 18, 16, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 18, 16, 0.08);
    --shadow-lg: 0 8px 40px rgba(26, 18, 16, 0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================
   Typography
   ============================================ */
.section-eyebrow {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 4rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-burgundy {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-burgundy:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    box-shadow: 0 1px 0 var(--line);
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

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

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

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

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition) !important;
}

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

.nav-cta:hover {
    background: var(--white);
    color: var(--burgundy) !important;
    border-color: var(--white);
}

.navbar.scrolled .nav-cta {
    border-color: var(--burgundy);
    color: var(--burgundy) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--burgundy);
    color: var(--white) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all var(--transition);
    display: block;
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-dark);
}

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

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: 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(
        to bottom,
        rgba(74, 10, 18, 0.55) 0%,
        rgba(107, 15, 26, 0.45) 40%,
        rgba(26, 18, 16, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding-top: 5rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 7rem 0;
}

.section:nth-child(even) {
    background: var(--white);
}

/* ============================================
   Rooms
   ============================================ */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

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

.room-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-image img {
    transform: scale(1.04);
}

.room-info {
    padding: 1.75rem;
}

.room-info h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.room-info p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.room-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.room-features li {
    font-size: 0.82rem;
    color: var(--text-light);
    padding-left: 1.2rem;
    position: relative;
}

.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 1px;
    background: var(--burgundy);
}

/* ============================================
   Amenities
   ============================================ */
.amenities {
    background: var(--blush-light);
}

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

.amenity-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    transition: all var(--transition);
}

.amenity-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.amenity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    color: var(--burgundy);
}

.amenity-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

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

/* ============================================
   About
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 6/7.5;
}

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

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-content .section-desc {
    margin-bottom: 2rem;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--burgundy);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--line-strong);
}

/* ============================================
   Location
   ============================================ */
.location-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-wrapper {
    min-height: 420px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.location-info {
    background: var(--burgundy);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.location-info h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--blush);
    margin-bottom: 0.5rem;
}

.location-info p {
    font-size: 0.9rem;
    color: rgba(245, 230, 211, 0.8);
    line-height: 1.8;
}

.location-info a {
    color: var(--blush);
    border-bottom: 1px solid rgba(245, 230, 211, 0.3);
    padding-bottom: 2px;
    transition: all var(--transition);
}

.location-info a:hover {
    color: var(--white);
    border-color: var(--white);
}

.location-info .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

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

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

.contact-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.contact-item a {
    color: var(--burgundy);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 1px;
    transition: all var(--transition);
}

.contact-item a:hover {
    color: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
}

/* Form */
.contact-form-wrapper {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--line);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
}

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

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

.form-note a {
    color: var(--burgundy);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 1px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

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

.form-success h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--text-dark);
}

.form-success p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 320px;
}

.form-success a {
    color: var(--burgundy);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 1px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--blush);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .nav-logo {
    color: var(--blush);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(245, 230, 211, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--blush);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(245, 230, 211, 0.55);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(245, 230, 211, 0.55);
    line-height: 1.8;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: rgba(245, 230, 211, 0.7);
    border-bottom: 1px solid rgba(245, 230, 211, 0.2);
    padding-bottom: 1px;
    transition: all var(--transition);
}

.footer-contact a:hover {
    color: var(--blush);
    border-color: var(--blush);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(245, 230, 211, 0.4);
}

.footer-bottom a {
    color: rgba(245, 230, 211, 0.5);
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(245, 230, 211, 0.15);
    padding-bottom: 1px;
    transition: all var(--transition);
}

.footer-bottom a:hover {
    color: var(--blush);
    border-color: var(--blush);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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);
    }

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

/* Fallback: ensure content is visible even without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-secondary {
        right: 0;
    }

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 0.9rem;
    }

    .nav-cta {
        border-color: var(--burgundy) !important;
        color: var(--burgundy) !important;
    }

    .rooms-grid,
    .amenities-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 5rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-img-secondary {
        position: relative;
        width: 100%;
        right: 0;
        bottom: 0;
        margin-top: 1rem;
    }

    .about-images {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .location-info {
        padding: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
    }
}

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

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

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 16, 0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}
