/* =========================================================
   Mother Touch Sultanat Girls PG  —  style.css
   Premium hotel-style theme. Bootstrap 5 + custom CSS.
   ========================================================= */

:root {
    --bg:        #FAF8F5;
    --primary:   #2D3748;
    --secondary: #8B7355;
    --accent:    #C7A17A;
    --text:      #1A202C;
    --card:      #FFFFFF;
    --border:    #EAE6DF;
    --muted:     #6B6357;

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;

    --radius: 4px;
    --section-pad: 100px;
    --maxw: 1180px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    font-weight: 300;
    line-height: 1.75;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); }

/* ---------- Reusable section helpers ---------- */
.section { padding: var(--section-pad) 0; }
.section-sm { padding: 70px 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 12px;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 18px;
}
.section-lead {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 620px;
}
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: .02em;
    padding: 13px 28px;
    font-size: .92rem;
    transition: all .28s ease;
    border: 1px solid transparent;
}
.btn-sm { padding: 9px 20px; font-size: .82rem; }

.btn-gold {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}
.btn-gold:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

.btn-dark-solid {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-dark-solid:hover { background: #1f2733; color: #fff; }

.btn-outline-light-c {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.7);
}
.btn-outline-light-c:hover { background: #fff; color: var(--primary); }

.btn-outline-dark-c {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-dark-c:hover { background: var(--primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header .navbar { padding: 18px 0; }

.navbar-brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}
.navbar-brand span { color: var(--accent); }

.site-header .nav-link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: .92rem;
    color: var(--primary);
    margin: 0 4px;
    padding: 6px 12px !important;
    position: relative;
}
.site-header .nav-link::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-link.active { color: var(--secondary); }

.navbar-toggler { border: none; font-size: 1.4rem; color: var(--primary); box-shadow: none; }

/* Transparent over hero (home), solid otherwise / on scroll */
.header-transparent { background: transparent; }
.header-transparent .navbar-brand,
.header-transparent .nav-link,
.header-transparent .navbar-toggler { color: #fff; }
.header-transparent .navbar-brand span { color: var(--accent); }

.site-header.header-solid,
.site-header.scrolled {
    background: var(--card);
    box-shadow: 0 1px 0 var(--border);
}
.site-header.scrolled .navbar { padding: 12px 0; }
.site-header.scrolled .navbar-brand,
.site-header.scrolled .nav-link,
.site-header.scrolled .navbar-toggler { color: var(--primary); }
.site-header.scrolled .nav-link.active { color: var(--secondary); }

/* Mobile menu panel stays readable when transparent */
@media (max-width: 991px) {
    .header-transparent .navbar-collapse,
    .site-header .navbar-collapse {
        background: var(--card);
        margin-top: 14px;
        padding: 14px 18px;
        border-radius: 6px;
        border: 1px solid var(--border);
    }
    .header-transparent .navbar-collapse .nav-link { color: var(--primary); }
    .site-header .nav-item { margin: 4px 0; }
}

/* ---------- Hero (full-width background image + overlay) ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: var(--primary) center/cover no-repeat;
    background-image: linear-gradient(rgba(26,32,44,.55), rgba(26,32,44,.55)), url('assets/images/hero.jpg');
    color: #fff;
}
.hero-inner { max-width: 660px; padding: 120px 0 80px; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 {
    color: #fff;
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 22px;
}
.hero p {
    font-size: 1.12rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-actions .btn { margin: 0 12px 12px 0; }

.scroll-cue {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.8);
    font-size: 1.2rem;
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* Inner page banner */
.page-banner {
    position: relative;
    background: var(--primary) center/cover no-repeat;
    background-image: linear-gradient(rgba(26,32,44,.6), rgba(26,32,44,.6)), url('assets/images/banner.jpg');
    color: #fff;
    padding: 180px 0 90px;
    text-align: center;
}
.page-banner h1 { color: #fff; font-size: 3rem; margin-bottom: 10px; }
.page-banner .crumb { color: rgba(255,255,255,.8); font-size: .9rem; letter-spacing: .04em; }
.page-banner .crumb a { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { background: var(--bg); }
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 34px 20px;
    text-align: center;
    height: 100%;
}
.stat-num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.stat-card .fa-star { color: var(--accent); font-size: .85rem; }

/* ---------- Split (about preview / image-content) ---------- */
.split-img {
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    background: center/cover no-repeat var(--border);
    position: relative;
}
.split-img.framed::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255,255,255,.5);
    pointer-events: none;
}

/* ---------- Room cards ---------- */
.room-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.room-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(45,55,72,.10); }
.room-thumb { height: 230px; background: center/cover no-repeat var(--border); position: relative; }
.room-tag {
    position: absolute; top: 16px; left: 16px;
    background: rgba(250,248,245,.95);
    color: var(--secondary);
    font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 20px;
}
.room-body { padding: 26px 24px 30px; }
.room-body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.room-body p { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.room-meta { list-style: none; padding: 0; margin: 0 0 20px; }
.room-meta li { font-size: .88rem; color: var(--muted); padding: 4px 0; }
.room-meta li i { color: var(--accent); width: 22px; }

/* ---------- Why choose (feature blocks) ---------- */
.feature-block { text-align: center; padding: 24px 16px; }
.feature-icon {
    width: 74px; height: 74px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #F1E8DB;
    color: var(--secondary);
    font-size: 1.5rem;
    border: 1px solid var(--border);
}
.feature-block h4 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-block p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Facilities ---------- */
.facility-feature-img {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 100%;
    background: center/cover no-repeat var(--border);
    min-height: 420px;
}
.facility-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    height: 100%;
    transition: border-color .25s ease, transform .25s ease;
}
.facility-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.facility-item i { font-size: 1.6rem; color: var(--secondary); margin-bottom: 12px; }
.facility-item span { display: block; font-size: .9rem; color: var(--text); font-weight: 400; }

.facility-detail {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    height: 100%;
}
.facility-detail .fi {
    flex: 0 0 auto;
    width: 54px; height: 54px; border-radius: 50%;
    background: #F1E8DB; color: var(--secondary);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.facility-detail h4 { font-size: 1.15rem; margin-bottom: 6px; }
.facility-detail p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-masonry { column-count: 3; column-gap: 16px; }
.gallery-masonry .g-item { margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }
.gallery-masonry img, .g-item .g-ph { width: 100%; display: block; transition: transform .5s ease; }
.g-item { position: relative; cursor: pointer; }
.g-item .g-ph { background: center/cover no-repeat var(--border); }
.g-item::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
    background: rgba(45,55,72,0); opacity: 0;
    transition: all .35s ease;
}
.g-item:hover::after { background: rgba(45,55,72,.4); opacity: 1; }
.g-item:hover img, .g-item:hover .g-ph { transform: scale(1.06); }

.gallery-filter { margin-bottom: 36px; }
.gallery-filter button {
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); border-radius: 20px;
    padding: 7px 20px; margin: 4px; font-size: .85rem; font-family: var(--font-body);
    transition: all .25s ease;
}
.gallery-filter button.active, .gallery-filter button:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

@media (max-width: 991px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 575px) { .gallery-masonry { column-count: 1; } }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(26,32,44,.92);
    display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 86vh; border-radius: var(--radius); }
.lightbox .lb-close {
    position: absolute; top: 24px; right: 30px;
    color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none;
}

/* ---------- Reviews ---------- */
.rating-summary {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 30px; text-align: center; height: 100%;
}
.rating-big { font-family: var(--font-head); font-size: 4rem; font-weight: 700; color: var(--secondary); line-height: 1; }
.rating-stars { color: var(--accent); font-size: 1.05rem; margin: 10px 0 6px; }
.rating-count { color: var(--muted); font-size: .92rem; }

.review-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px 28px; height: 100%; position: relative;
}
.review-card .quote-mark {
    font-family: var(--font-head); font-size: 3rem; color: var(--accent);
    line-height: .6; opacity: .5;
}
.review-card .r-stars { color: var(--accent); font-size: .82rem; margin-bottom: 12px; }
.review-card p { color: var(--text); font-size: .96rem; font-style: italic; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700;
}
.review-author .name { font-weight: 500; color: var(--primary); font-size: .95rem; }
.review-author .src { color: var(--muted); font-size: .8rem; }

/* ---------- Location ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Nearby cards ---------- */
.nearby-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px 26px; height: 100%;
    transition: transform .25s ease, border-color .25s ease;
}
.nearby-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.nearby-card .ni {
    width: 56px; height: 56px; border-radius: 50%;
    background: #F1E8DB; color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 18px;
}
.nearby-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.nearby-card p { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.nearby-card .dist { font-size: .82rem; color: var(--secondary); font-weight: 500; letter-spacing: .04em; }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--primary) center/cover no-repeat;
    background-image: linear-gradient(rgba(45,55,72,.88), rgba(45,55,72,.88)), url('assets/images/cta.jpg');
    color: #fff; text-align: center; padding: 90px 0;
}
.cta-banner h2 { color: #fff; font-size: 2.6rem; margin-bottom: 26px; }
.cta-banner .btn { margin: 0 10px 10px; }

/* ---------- Contact ---------- */
.contact-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .ci {
    flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
    background: #F1E8DB; color: var(--secondary);
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.contact-info-item h5 { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--primary); margin: 0 0 4px; }
.contact-info-item p, .contact-info-item a { color: var(--muted); font-size: .92rem; margin: 0; }
.contact-info-item a:hover { color: var(--secondary); }

.form-label { font-size: .85rem; font-weight: 500; color: var(--primary); }
.form-control {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 16px; font-size: .92rem; background: var(--bg);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(199,161,122,.18); background: #fff; }

.alert-success-c {
    background: #EDF3EC; border: 1px solid #CADBC6; color: #3B6D11;
    border-radius: var(--radius); padding: 16px 20px; font-size: .92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #1A202C; color: #B7B1A6; padding: 70px 0 0; }
.footer-brand { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin-bottom: 16px; }
.footer-brand span { color: var(--accent); }
.footer-text { font-size: .9rem; line-height: 1.8; max-width: 330px; }
.footer-title {
    font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-weight: 600;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #B7B1A6; font-size: .9rem; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { font-size: .9rem; margin-bottom: 14px; line-height: 1.6; }
.footer-contact li i { color: var(--accent); width: 22px; }
.footer-contact a { color: #B7B1A6; }
.footer-contact a:hover { color: #fff; }
.footer-social { margin-top: 22px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18); color: #B7B1A6; margin-right: 10px;
    transition: all .25s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 50px; padding: 24px 0; display: flex;
    justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: #8A857C; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 1500;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37,211,102,.4);
    transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Scroll reveal (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-cue { animation: none; }
}

/* ---------- Responsive type ---------- */
@media (max-width: 991px) {
    :root { --section-pad: 70px; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.1rem; }
    .page-banner { padding: 150px 0 70px; }
    .page-banner h1 { font-size: 2.3rem; }
    .cta-banner h2 { font-size: 2.1rem; }
}
@media (max-width: 575px) {
    .hero { min-height: 80vh; }
    .hero h1 { font-size: 2.05rem; }
    .hero-actions .btn { width: 100%; margin-right: 0; }
    .contact-card { padding: 26px; }
}
