/* =============================================
   guests.dev - Grand Lobby Design System
   Colors: #1A1A1F, #2A2A32, #3A3530, #C9A84C,
           #B87366, #F2EDE4, #A09A90, #F5E6C8, #2D4A4A
   Fonts: Playfair Display, Cormorant Garamond, Inter
   ============================================= */

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

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

body {
    background-color: #1A1A1F;
    color: #F2EDE4;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Fixed Top Navigation --- */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(26, 26, 31, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

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

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A09A90;
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-link:hover {
    color: #F5E6C8;
}

.nav-link.active {
    color: #C9A84C;
    border-bottom-color: #C9A84C;
}

/* --- Hero: Grand Entrance --- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.03) 0%, transparent 70%),
                #1A1A1F;
}

.hero-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: ambientPulse 4s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Art Deco chevron patterns on sides */
.hero-deco-pattern {
    position: absolute;
    top: 10%;
    width: 60px;
    height: 80%;
    opacity: 0.5;
    pointer-events: none;
}

.hero-deco-left {
    left: 3%;
}

.hero-deco-right {
    right: 3%;
}

.hero-deco-pattern svg {
    width: 100%;
    height: 100%;
}

/* Door Frames */
.door-frame {
    position: absolute;
    top: 10%;
    width: 2px;
    height: 80vh;
    background: linear-gradient(to bottom, rgba(201, 168, 76, 0.4), rgba(201, 168, 76, 0.1));
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.door-frame-left {
    left: 15%;
    transform: translateX(35vw);
}

.door-frame-right {
    right: 15%;
    transform: translateX(-35vw);
}

.door-frame-left.open {
    transform: translateX(0);
}

.door-frame-right.open {
    transform: translateX(0);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-keyhole {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.hero-keyhole svg {
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.2));
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #C9A84C;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: #A09A90;
    letter-spacing: 0.01em;
}

/* --- Section Dividers --- */
.section-divider {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.25), transparent);
}

.divider-diamond {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    background: #C9A84C;
    transform: rotate(45deg);
    opacity: 0.5;
}

/* --- Content Sections --- */
.content-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 2rem;
    overflow: hidden;
}

#registry {
    background: #1A1A1F;
}

#concierge {
    background: #2A2A32;
}

#keyroom {
    background: #1A1A1F;
}

.section-suite {
    background: #3A3530;
}

.section-deco-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Section heading styles --- */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #C9A84C;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.heading-underline {
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
    margin: 0 auto 3rem;
    transition: width 0.5s ease;
}

.heading-underline.expanded {
    width: 120px;
}

/* --- Reveal animation for sections --- */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section 1: The Registry (Ledger) --- */
.ledger-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 39px,
        rgba(201, 168, 76, 0.05) 39px,
        rgba(201, 168, 76, 0.05) 40px
    );
    pointer-events: none;
}

.ledger-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.ledger-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.ledger-spine {
    width: 2px;
    min-height: 300px;
    background: linear-gradient(to bottom, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.05));
    flex-shrink: 0;
    align-self: stretch;
}

.ledger-entry {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 4px;
    background: rgba(42, 42, 50, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ledger-entry:hover {
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.05);
}

.ledger-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.8rem;
    color: #C9A84C;
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    min-width: 3rem;
}

.ledger-content {
    flex: 1;
}

.ledger-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: #F5E6C8;
    margin-bottom: 0.5rem;
}

.ledger-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #A09A90;
    line-height: 1.7;
    max-width: 65ch;
}

.ledger-date {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.9rem;
    color: #A09A90;
    opacity: 0.5;
    flex-shrink: 0;
}

/* --- Section 2: Concierge Desk --- */
.concierge-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.concierge-notes {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
}

.concierge-card {
    flex: 1;
    max-width: 480px;
    padding: 2rem;
    background: rgba(26, 26, 31, 0.5);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.concierge-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(201, 168, 76, 0.05);
}

.card-icon {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.concierge-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: #F5E6C8;
    margin-bottom: 0.75rem;
}

.concierge-card p {
    font-size: 0.9rem;
    color: #A09A90;
    line-height: 1.7;
}

/* Concierge Desk Band */
.concierge-desk-band {
    width: 100%;
    padding: 0;
}

.desk-surface {
    width: 100%;
    height: 60px;
    background: linear-gradient(to right, rgba(201, 168, 76, 0.05), rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.desk-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: 0.6;
}

.desk-bell {
    opacity: 0.5;
}

/* --- Section 3: Key Room --- */
.keycard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.keycard {
    background: linear-gradient(135deg, #2A2A32 0%, #3A3530 100%);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.keycard.visible {
    opacity: 1;
    transform: translateY(0);
}

.keycard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
}

.keycard-chip {
    width: 36px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.1));
    border: 1px solid rgba(201, 168, 76, 0.3);
    margin-bottom: 1.5rem;
    position: relative;
}

.keycard-chip::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 2px;
}

.keycard-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #F5E6C8;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.keycard-desc {
    font-size: 0.88rem;
    color: #A09A90;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.keycard-room {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: 0.5;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

/* --- Section 4: The Suite --- */
.suite-ambient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center bottom, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.suite-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.suite-content {
    text-align: center;
    max-width: 800px;
}

.suite-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: #F5E6C8;
    line-height: 1.6;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.suite-quote::before {
    content: '\201C';
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    font-size: 3rem;
    color: #C9A84C;
    opacity: 0.3;
    font-family: 'Cormorant Garamond', serif;
}

.suite-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.suite-detail-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #C9A84C;
    margin-bottom: 0.75rem;
}

.suite-detail-block p {
    font-size: 0.88rem;
    color: #A09A90;
    line-height: 1.7;
}

.suite-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.suite-doorway {
    opacity: 0.5;
    animation: doorwayPulse 4s ease-in-out infinite;
}

@keyframes doorwayPulse {
    0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.1)); }
    50% { opacity: 0.6; filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.15)); }
}

.suite-invitation {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: #F5E6C8;
    letter-spacing: 0.02em;
}

/* --- Footer --- */
#footer {
    padding: 2rem;
    background: #1A1A1F;
    border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    color: #C9A84C;
    opacity: 0.5;
}

.footer-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #A09A90;
    opacity: 0.4;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .ledger-layout {
        flex-direction: column;
    }

    .ledger-spine {
        width: 80%;
        min-height: 2px;
        height: 2px;
        margin: 0 auto;
    }

    .concierge-notes {
        flex-direction: column;
        align-items: center;
    }

    .concierge-card {
        max-width: 100%;
    }

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

    .suite-details {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .hero-deco-pattern {
        display: none;
    }
}

@media (max-width: 600px) {
    .content-section {
        padding: 4rem 1.2rem;
    }

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

    .ledger-entry {
        flex-direction: column;
        gap: 0.8rem;
    }

    .ledger-number {
        min-width: auto;
    }

    .ledger-date {
        align-self: flex-end;
    }

    .door-frame-left {
        left: 5%;
    }

    .door-frame-right {
        right: 5%;
    }

    .nav-inner {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }
}
