/* ========================================
   HugMeow Hotel — Main Stylesheet
   โรงแรมแมวเชียงราย
   ======================================== */

:root {
    --primary:   #c8956c;   /* warm brown / cat fur */
    --primary-dk:#a0714f;
    --accent:    #f4e0c8;   /* cream */
    --green:     #7a9e7e;   /* nature green */
    --dark:      #3d2b1f;
    --light:     #faf7f4;
    --text:      #4a3728;
    --text-muted:#8c7b6e;
    --radius:    12px;
    --shadow:    0 4px 24px rgba(61,43,31,.10);
}

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

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

body {
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }

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

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600;700&display=swap');

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(61,43,31,.08);
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}

.navbar-brand {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.3rem; font-weight: 700; color: var(--dark);
}
.navbar-brand span { color: var(--primary); }

.navbar-brand .logo-icon { font-size: 1.8rem; }
.navbar-brand .logo-icon-img { width: 2rem; height: 2rem; object-fit: contain; }
.footer-logo-img { width: 1.4rem; height: 1.4rem; object-fit: contain; vertical-align: middle; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text); font-weight: 600; font-size: .95rem;
    padding: .3rem 0; border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary); border-color: var(--primary);
}

.nav-fb {
    color: #1877f2 !important; font-weight: 600;
}
.nav-fb:hover { color: #0d5dbf !important; border-bottom-color: #1877f2 !important; }

.nav-cta {
    background: var(--primary); color: #fff !important;
    padding: .5rem 1.2rem !important; border-radius: 8px;
    border-bottom: none !important;
}
.nav-cta:hover { background: var(--primary-dk); color: #fff !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: .3s; }

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f9ede0 0%, #e8d5c0 100%);
}

.hero-bg {
    position: absolute; inset: 0;
    background-image: url('/images/บรรยยากาศร้าน.jpg');
    background-size: cover; background-position: center;
    opacity: .22;
}

.hero-content {
    position: relative; z-index: 1;
    max-width: 680px; padding: 4rem 2rem 4rem 6vw;
}

.hero-badge {
    display: inline-block;
    background: var(--accent); color: var(--primary-dk);
    font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    padding: .35rem .9rem; border-radius: 20px; margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; line-height: 1.3; color: var(--dark);
    margin-bottom: 1rem;
}
.hero h1 em { color: var(--primary); font-style: normal; }

.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; }

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 2rem; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,149,108,.4); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); color: #fff; }

.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--accent); }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
    position: absolute; right: 0; bottom: 0;
    width: 50%; max-width: 600px;
    height: 100%; object-fit: cover; opacity: .85;
}

/* ========================================
   SECTIONS
   ======================================== */
section { padding: 5rem 2rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--dark); }
.section-header p { color: var(--text-muted); margin-top: .5rem; font-size: 1.05rem; }
.section-header .underline {
    width: 60px; height: 4px; background: var(--primary);
    border-radius: 2px; margin: .8rem auto 0;
}

.container { max-width: 1100px; margin: 0 auto; }

/* ========================================
   FEATURES / WHY US
   ======================================== */
.features { background: #fff; }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light); border-radius: var(--radius);
    padding: 2rem 1.5rem; text-align: center;
    box-shadow: var(--shadow); transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); }

/* ========================================
   GALLERY PREVIEW
   ======================================== */
.gallery-preview { background: var(--accent); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.gallery-item {
    border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; position: relative;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ========================================
   ROOM CARDS
   ======================================== */
.room-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.room-card {
    background: var(--light); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s;
}
.room-card:hover { transform: translateY(-4px); }
.room-card.vip { border: 2px solid var(--primary); }

.room-badge {
    text-align: center; font-weight: 700; font-size: 1rem;
    padding: .6rem 1rem; letter-spacing: .03em;
}
.room-badge.standard { background: #e8d5c0; color: var(--dark); }
.room-badge.vip-badge { background: var(--primary); color: #fff; }

.room-body { padding: 1.5rem; }

.room-capacity {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
    margin-bottom: .4rem;
}
.room-size { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }

.room-features {
    list-style: none; padding: 0; margin-bottom: 1rem;
    display: flex; flex-direction: column; gap: .5rem;
}
.room-features li { font-size: .9rem; color: var(--text); }

.room-free {
    background: #fff9f0; border: 1.5px solid var(--accent);
    border-radius: 8px; padding: .6rem .9rem;
    font-size: .88rem; color: var(--text); display: flex; align-items: flex-start; gap: .5rem;
}
.free-badge {
    background: var(--green); color: #fff;
    font-size: .72rem; font-weight: 700; padding: .15rem .5rem;
    border-radius: 4px; white-space: nowrap; margin-top: .1rem;
}

.room-price {
    margin-top: 1rem; padding: .8rem 1rem;
    background: var(--accent); border-radius: 10px;
    font-size: 1rem; color: var(--text);
    text-align: center;
}
.room-price strong { font-size: 1.6rem; color: var(--primary-dk); }
.room-price.vip-price { background: #fdf0e8; }
.room-price.vip-price strong { color: var(--primary); }

/* ========================================
   TERMS / CONDITIONS
   ======================================== */
.terms-section { background: #fff8f4; }

.terms-list {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: 1rem;
    max-width: 820px; margin: 0 auto;
}
.terms-list li {
    display: flex; gap: .9rem; align-items: flex-start;
    background: #fff; border-radius: 10px;
    padding: 1rem 1.2rem; box-shadow: 0 2px 8px rgba(61,43,31,.06);
    font-size: .95rem; line-height: 1.7; color: var(--text);
}
.terms-list li .terms-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .05rem; }
.terms-list li.warn { border-left: 4px solid #e53935; }
.terms-list li.warn .terms-icon { color: #e53935; }
.terms-highlight { color: #e53935; font-weight: 700; }

/* ========================================
   SERVICES PAGE
   ======================================== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: #fff; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card-img { height: 200px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }

.room-card .service-card-img { height: auto; background: #f5ede4; }
.room-card .service-card-img img { height: auto; max-height: 520px; object-fit: contain; display: block; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.service-card-body p { font-size: .9rem; color: var(--text-muted); }
/* Featured service (horizontal) */
.service-featured {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    background: #fff;
}
.service-featured-img { overflow: hidden; min-height: 360px; }
.service-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.service-featured-body {
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column; justify-content: center;
}
.service-featured-badge {
    display: inline-block; background: var(--accent); color: var(--primary-dk);
    font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    padding: .3rem .9rem; border-radius: 20px; margin-bottom: 1rem;
    text-transform: uppercase;
}
.service-featured-body h3 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: .8rem; }
.service-featured-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: .5rem; }
.service-featured-list {
    list-style: none; padding: 0; margin-top: 1rem;
    display: flex; flex-direction: column; gap: .6rem;
}
.service-featured-list li { font-size: .95rem; color: var(--text); }

.service-price {
    display: inline-block; margin-top: 1rem;
    background: var(--accent); color: var(--primary-dk);
    font-weight: 700; padding: .3rem .8rem; border-radius: 6px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.contact-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.contact-info p { margin-bottom: .6rem; color: var(--text-muted); }
.contact-info a { color: var(--primary); }

.contact-form { background: #fff; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid #e0d5c8; border-radius: 8px;
    font-family: inherit; font-size: 1rem; color: var(--text);
    background: var(--light); transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.fb-embed-wrap {
    display: flex; justify-content: center;
}
.fb-embed-wrap iframe {
    max-width: 100%; width: 500px;
}

/* ========================================
   FULL GALLERY PAGE
   ======================================== */
.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.gallery-full-item {
    border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; cursor: pointer; position: relative;
}
.gallery-full-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.gallery-full-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(61,43,31,.7));
    color: #fff; padding: 1.5rem .8rem .6rem;
    font-size: .85rem; opacity: 0; transition: opacity .3s;
}
.gallery-full-item:hover .gallery-caption { opacity: 1; }
.gallery-zoom-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.gallery-full-item:hover .gallery-zoom-icon { opacity: 1; }

/* Lightbox */
#lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.85); z-index: 9999;
    align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
.lightbox-inner {
    position: relative; max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.lightbox-inner img {
    max-width: 90vw; max-height: 80vh;
    object-fit: contain; border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
#lightbox-caption {
    color: #fff; font-size: .95rem; text-align: center;
}
.lightbox-close {
    position: absolute; top: -2.5rem; right: 0;
    background: none; border: none; color: #fff;
    font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ========================================
   GOOGLE REVIEWS
   ======================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--light); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: .8rem;
}

.review-header {
    display: flex; align-items: center; gap: .8rem;
}

.review-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}

.review-author { font-weight: 700; font-size: .95rem; color: var(--dark); }

.review-stars { color: #f9a825; font-size: 1rem; letter-spacing: .1em; }
.review-stars span:not(.filled) { color: #ddd; }

.review-google-icon { margin-left: auto; flex-shrink: 0; opacity: .7; }

.review-text {
    font-size: .9rem; color: var(--text-muted); line-height: 1.65;
    flex: 1;
    display: -webkit-box; -webkit-line-clamp: 5;
    -webkit-box-orient: vertical; overflow: hidden;
}

.review-time { font-size: .78rem; color: #b0a090; }

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    color: #fff; text-align: center; padding: 4rem 2rem;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: .8rem; }
.cta-banner p { font-size: 1.05rem; opacity: .9; margin-bottom: 1.8rem; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent); }

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--dark); color: rgba(255,255,255,.75);
    padding: 3rem 2rem 1.5rem;
}
.footer-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.footer-brand span { color: var(--primary); }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .8rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    max-width: 1100px; margin: 0 auto;
    text-align: center; font-size: .82rem; color: rgba(255,255,255,.4);
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem;
}

/* ========================================
   PAGE HERO (inner pages)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, #f9ede0 0%, #e8d5c0 100%);
    padding: 4rem 2rem 3rem; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--dark); }
.page-hero p { color: var(--text-muted); margin-top: .5rem; font-size: 1.05rem; }

/* ========================================
   ALERT
   ======================================== */
.alert {
    padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.2rem;
    font-size: .95rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error   { background: #f8d7da; color: #721c24; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .hero-image { display: none; }
    .hero-content { padding: 3rem 2rem; max-width: 100%; }
    .contact-wrap { grid-template-columns: 1fr; }
    .room-compare { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    /* Navbar */
    .navbar { padding: 0 1.2rem; }
    .nav-links { display: none; flex-direction: column; gap: 0; }
    .nav-links.open {
        display: flex; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; padding: .5rem 0 1rem; box-shadow: 0 8px 20px rgba(0,0,0,.1);
        z-index: 99;
    }
    .nav-links.open li a {
        display: block; padding: .75rem 1.5rem;
        border-bottom: 1px solid var(--accent) !important;
        font-size: 1rem;
    }
    .nav-links.open .nav-cta {
        margin: .5rem 1.5rem 0;
        display: block; text-align: center;
        border-radius: 8px !important;
    }
    .hamburger { display: flex; }

    /* Sections */
    section { padding: 2.5rem 1.2rem; }
    .section-header { margin-bottom: 2rem; }
    .page-hero { padding: 2.5rem 1.2rem 2rem; }

    /* Hero */
    .hero { min-height: 80vh; }
    .hero-content { padding: 2.5rem 1.2rem; }
    .hero h1 { font-size: 1.9rem; }
    .hero-desc { font-size: 1rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }

    /* Features */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .feature-card { padding: 1.2rem 1rem; }
    .feature-icon { font-size: 2.2rem; margin-bottom: .6rem; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .gallery-full-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }

    /* Room cards */
    .room-card .service-card-img img { max-height: 380px; }

    /* Services grid */
    .services-grid { grid-template-columns: 1fr; }
    .service-featured { grid-template-columns: 1fr; }
    .service-featured-img { min-height: 240px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    footer { padding: 2rem 1.2rem 1rem; }

    /* Facebook embed */
    .fb-embed-wrap iframe { width: 100%; min-width: unset; }

    /* CTA banner */
    .cta-banner { padding: 3rem 1.2rem; }
    .cta-banner h2 { font-size: 1.5rem; }

    /* Buttons full-width on mobile */
    .room-body .btn { font-size: .95rem; padding: .75rem 1rem; }

    /* Terms list */
    .terms-list li { font-size: .9rem; }
}
