/* ============================================================
   CSS CUSTOM PROPERTIES — Azure Grand Hotel
   ============================================================ */
:root {
    --navy:        #1a2744;
    --navy-light:  #253a6e;
    --gold:        #C9A84C;
    --gold-light:  #e0c06a;
    --warm-white:  #FDFAF5;
    --subtle-gray: #f0ece4;
    --text-dark:   #1a1a2e;
    --text-muted:  #6b6b7b;

    --font-heading: 'Cormorant Garant', serif;
    --font-body:    'Inter', sans-serif;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--warm-white);
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* CJK font overrides */
:lang(zh-Hant) body, :lang(zh-Hant) select, :lang(zh-Hant) button,
:lang(ja) body, :lang(ja) select, :lang(ja) button {
    font-family: 'Noto Sans TC', 'Noto Sans JP', var(--font-body), sans-serif;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1.25rem 0;
    background: rgba(26, 39, 68, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

header.nav-scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 24px rgba(26, 39, 68, 0.3);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

.lang-select {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: var(--font-body);
    outline: none;
}

.lang-select option {
    background: var(--navy);
    color: #fff;
}

.btn-book {
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.btn-book:hover {
    background-color: var(--gold-light);
    transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-image:
        linear-gradient(
            135deg,
            rgba(26, 39, 68, 0.78) 0%,
            rgba(26, 39, 68, 0.38) 55%,
            rgba(0, 0, 0, 0.18) 100%
        ),
        url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-eyebrow {
    font-size: 0.73rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
}

.btn-hero {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.38);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-title.light { color: #fff; }

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
}

.section-divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 1.25rem 0 2rem;
    display: block;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 14px 14px 0 var(--subtle-gray);
    display: block;
}

/* ============================================================
   ROOMS SECTION
   ============================================================ */
.room-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 39, 68, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(26, 39, 68, 0.14);
}

.room-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.room-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-card-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.room-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    flex: 1;
}

.room-card-price {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.btn-outline-navy {
    display: inline-block;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1.4rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s;
    align-self: flex-start;
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

/* ============================================================
   AMENITIES SECTION
   ============================================================ */
.amenity-card {
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    padding: 2rem 1.75rem;
    transition: border-color 0.3s, background 0.3s;
}

.amenity-card:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

.amenity-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.25rem;
    color: var(--gold);
    display: block;
}

.amenity-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.amenity-desc {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
}

/* ============================================================
   DINING SECTION
   ============================================================ */
.dining-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 380px;
}

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

.dining-card:hover img { transform: scale(1.06); }

.dining-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 39, 68, 0.93));
    padding: 2.5rem 1.5rem 1.5rem;
}

.dining-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.dining-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.channel-card {
    background: #fff;
    border-radius: 4px;
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 18px rgba(26, 39, 68, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.channel-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    flex-shrink: 0;
    display: block;
}

.channel-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--navy);
    margin-top: 0.25rem;
}

.channel-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- WebRTC widget button override ---- */
click-to-call::part(button) {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--gold);
    padding: 0.55rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0;
    color: transparent;
    min-width: 180px;
    text-align: center;
    font-family: var(--font-body);
}

click-to-call::part(button)::after {
    content: "Call Concierge";
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    transition: color 0.3s;
}

click-to-call::part(button):hover {
    background-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.38);
}

click-to-call::part(button):hover::after {
    color: var(--navy);
}

#webrtc-container { display: block; }

/* ---- Webchat button ---- */
.btn-chat {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 0.55rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    min-width: 180px;
    text-align: center;
    align-self: flex-start;
}

.btn-chat:hover {
    background-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.38);
}

/* ---- Email form ---- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: var(--warm-white);
    border: 1px solid #d4cfc6;
    border-radius: 4px;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

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

.contact-form textarea { resize: vertical; }

.btn-send {
    width: 100%;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 0.85rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    font-family: var(--font-body);
}

.btn-send:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}

/* ---- Form success state ---- */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1rem;
    gap: 1rem;
    min-height: 200px;
}

.form-success-icon {
    width: 56px;
    height: 56px;
    color: var(--gold);
}

/* ---- Contact info block ---- */
.info-item { margin-bottom: 1.5rem; }

.info-item-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.25rem;
}

.info-item-val {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
}

a.info-item-val:hover { color: var(--navy); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--navy);
    padding: 2.5rem 0;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.83rem;
}

.footer-sub {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.73rem;
    margin-top: 0.4rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-section { background-position: 60% center; }
    .about-img { height: 300px; box-shadow: 8px 8px 0 var(--subtle-gray); }
    .room-card img { height: 200px; }
    .dining-card { height: 260px; }
}
