/* =============================================================
   LABIS MANSION HOTELS  -  CSS.css
   1  Base
   2  Header & mobile menu
   3  Hero
   4  Home page (about, rooms, amenities)
   5  Footer
   6  Contact page
   7  Gallery page
   8  About / Resources page
   9  Mail form
   10 Scroll animation (animations.js)
   11 Accessibility helpers
   12 Responsive (all media queries live here, largest to smallest)
   ============================================================= */


/* ========== 1. Base ========== */
@font-face {
    font-family: "Argue DEMO";
    src: url("Argue DEMO.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "BricolageGrotesque10ptCondensed-Medium";
    src: url("BricolageGrotesque10ptCondensed-Medium.otf") format("opentype");
    font-display: swap;
}

:root {
    --pink: #FF4D6D;
    --pink-soft: #fa899e;
    --pink-tint: #fa899e6f;
    --rose: #b8335f;
    --rose-light: #e0527f;
    --blush: #fde8ef;
    --ink: #3a1626;
    --muted: #7a5364;
    --dark: #1a1420;
    --cream: #F5F0E6;
    --maxw: 1200px;
    --gutter: 20px;
    --section-gap: 90px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Nunito Sans", Arial, sans-serif;
    background: #fff6f9;
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;               /* stops slide-in animations causing sideways scroll */
}

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

button, input, textarea { font-family: inherit; }

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 3px;
}


/* ========== 2. Header & mobile menu ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 3px solid var(--rose-light);
}
.logo img { height: 50px; width: auto; display: block; }

/* Hamburger button */
.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--rose);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
/* Turns into an X when open */
.menu-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile dropdown */
.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
.nav.open { display: flex; }
.nav a {
    padding: 16px 24px;
    color: var(--rose);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--blush);
    transition: background .2s ease, color .2s ease;
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover,
.nav a[aria-current="page"] { background: var(--blush); }

/* Desktop: normal links in the header, hide the hamburger */
@media (min-width: 900px) {
    .menu-btn { display: none; }
    .nav {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 4px;
        background: none;
        box-shadow: none;
    }
    .nav a { padding: 10px 16px; border: 0; border-radius: 8px; }
}


/* ========== 3. Hero ========== */
.hero {
    position: relative;
    width: calc(100% - (var(--gutter) * 2));
    max-width: var(--maxw);
    height: 560px;
    margin: 20px auto 0;
    padding: 0 clamp(24px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 18px;
    overflow: hidden;
    background: var(--dark);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(232, 62, 105, .8) 0%, rgba(232, 62, 105, 0) 60%),
        linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .1));
}

.img-slider { position: absolute; inset: 0; }
.img-slider img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: pop 16s infinite;
}
.img-slider img:nth-child(1) { animation-delay: 0s; }
.img-slider img:nth-child(2) { animation-delay: -8s; }

@keyframes pop {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    50%  { opacity: 1; }
    56%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero-text {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    color: #fff;
    font-family: "Argue DEMO", Georgia, serif;
    animation: fade-in 1.4s ease forwards;
}
.hero-text h1 {
    line-height: 1.1;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    letter-spacing: .01em;
}
.hero-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    font-family: "BricolageGrotesque10ptCondensed-Medium", "Nunito Sans", Arial, sans-serif;
}
.pany { max-width: 520px; }
.pan {
    display: inline-block;
    margin-bottom: 6px;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-family: "BricolageGrotesque10ptCondensed-Medium", "Nunito Sans", Arial, sans-serif;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.BOOK {
    position: relative;
    z-index: 20;
    margin-top: 28px;
    padding: 15px 34px;
    background-color: var(--pink);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    transition: transform .2s ease, background .2s ease;
}
.BOOK:hover { background: var(--rose-light); transform: translateY(-3px); }


/* ========== 4. Home page ========== */

/* Section labels (Welcome / Rooms) */
.about, .abou {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: var(--section-gap) auto 28px;
    padding: 14px 40px;
    background: var(--pink);
    color: #fff;
    border-radius: 10px;
    font-size: 1.7rem;
    font-weight: 600;
}

/* About text */
.info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--gutter);
}
.info p {
    max-width: 860px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    color: var(--ink);
}

/* Rooms */
.house {
    width: calc(100% - (var(--gutter) * 2));
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 28px;
    background-color: var(--pink-tint);
    border-radius: 18px;
}
.room {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 36px 28px;
    background: var(--pink-soft);
    border-radius: 20px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.room:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(184, 51, 95, .25); }
.room h1 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    text-transform: capitalize;
    line-height: 1.15;
}
.room p { line-height: 1.7; text-align: justify; hyphens: auto; }
.extra {
    margin-top: 4px;
    margin-bottom: 20px;
    color: var(--ink);              /* was white: too faint on the pink card */
    font-size: .9rem;
    font-weight: 600;
}

.toy {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.toy button {
    min-width: 140px;
    height: 52px;
    padding: 12px 32px;
    background: var(--pink-soft);
    color: var(--ink);              /* was cream: too faint on the pink button */
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.toy button:hover { background: var(--pink); transform: translateY(-3px); }

/* Amenities */
.amenities {
    width: calc(100% - (var(--gutter) * 2));
    max-width: var(--maxw);
    margin: var(--section-gap) auto;
    padding: 64px 32px;
    background: var(--dark);
    border-radius: 18px;
    text-align: center;
}
.amenities h2 {
    display: inline-block;
    margin: 0 0 44px;
    padding: 12px 40px;
    background: var(--pink);
    color: var(--cream);
    border-radius: 8px;
    font-size: 1.6rem;
}
.amenity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.amenity {
    padding: 32px 16px;
    border: 1px solid var(--pink);
    border-radius: 15px;
    transition: transform .3s, background .3s;
}
.amenity i {
    display: block;
    margin-bottom: 16px;
    font-size: 2rem;
    color: var(--pink);
}
.amenity p { margin: 0; color: var(--cream); font-size: 1.05rem; }
.amenity:hover { background: var(--pink); transform: translateY(-5px); }
.amenity:hover i, .amenity:hover p { color: var(--dark); }


/* ========== 5. Footer ========== */
.labis-footer {
    margin-top: var(--section-gap);
    padding: 4rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #1A1420 0%, #120D16 100%);
    color: var(--cream);
    font-family: "Inter", Arial, sans-serif;
}
.amenities + .labis-footer,
.home-footer-tight { margin-top: 0; }

.labis-footer .lf-inner { max-width: 1080px; margin: 0 auto; }
.labis-footer .lf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(245, 240, 230, .14);
}
.labis-footer .lf-brand {
    margin: 0 0 .6rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--pink);
}
.labis-footer .lf-tag {
    max-width: 32ch;
    font-size: .95rem;
    line-height: 1.6;
    color: rgba(245, 240, 230, .75);
}
.labis-footer .lf-title {
    margin: 0 0 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: #FF7A93;
}
.labis-footer .lf-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.labis-footer .lf-list a {
    color: rgba(245, 240, 230, .82);
    text-decoration: none;
    font-size: .95rem;
    transition: color .2s ease;
}
.labis-footer .lf-list a:hover,
.labis-footer .lf-list a:focus-visible { color: #FF7A93; }

.labis-footer .lf-contact { display: flex; flex-direction: column; gap: .75rem; }
.labis-footer .lf-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .95rem;
    border: 1px solid rgba(245, 240, 230, .14);
    border-radius: 8px;
    color: var(--cream);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    transition: border-color .15s ease, background .15s ease;
}
.labis-footer .lf-btn:hover,
.labis-footer .lf-btn:focus-visible {
    border-color: var(--pink);
    background: rgba(255, 77, 109, .1);
}
.labis-footer .lf-btn i { flex-shrink: 0; width: 18px; text-align: center; font-size: 1.1rem; }
.labis-footer .lf-btn span { min-width: 0; overflow-wrap: anywhere; }   /* long email wraps instead of overflowing */
.labis-footer .lf-num { color: rgba(245, 240, 230, .6); font-size: .85rem; }

.labis-footer .lf-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding-top: 1.5rem;
    font-size: .82rem;
    color: rgba(245, 240, 230, .55);
}
.labis-footer .lf-bottom a { color: rgba(245, 240, 230, .55); text-decoration: none; }
.labis-footer .lf-bottom a:hover { color: #FF7A93; }


/* ========== 6. Contact page ========== */
.contact {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 20px 0;
}
.intro { max-width: 640px; margin-bottom: 44px; }
.intro h1 {
    margin-bottom: 16px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.1;
    color: var(--rose);
}
.intro p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.action {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.action:hover, .action:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(184, 51, 95, .28);
    outline: none;
}
.action > div { min-width: 0; }
.action.call { background: var(--rose-light); }
.action.chat { background: #25d366; }
.action i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 1.9rem;
}
.action span { display: block; font-size: .95rem; opacity: .92; }
.action strong { display: block; font-size: 1.4rem; letter-spacing: .5px; overflow-wrap: anywhere; }

.visit {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: #fff;
    border: 1px solid var(--blush);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(184, 51, 95, .10);
}
.address { padding: 40px 36px; }
.address h2 {
    margin-bottom: 24px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    color: var(--rose);
}
.row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.row i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blush);
    color: var(--rose-light);
    font-size: 1rem;
}
.row b { display: block; font-size: .95rem; color: var(--muted); font-weight: 600; }
.row a, .row p { color: var(--ink); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.row a:hover { color: var(--rose); }

.directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--rose);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s ease;
}
.directions:hover, .directions:focus-visible { background: var(--rose-light); outline: none; }

.map { min-height: 400px; background: var(--blush); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }


/* ========== 7. Gallery page ========== */
.gallery {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 56px var(--gutter) 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gallery .photo {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--blush);
    border-radius: 18px;
    overflow: hidden;
    background: var(--blush);
    box-shadow: 0 8px 24px rgba(184, 51, 95, .10);
    transition: transform .2s ease, box-shadow .2s ease;
}
.gallery .photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(184, 51, 95, .28);
}
.gallery .photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery .photo img[src=""] { visibility: hidden; }


/* ========== 8. About / Resources page ========== */
.comfort, .gate, .greate {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.comfort {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 70px;
    margin-bottom: 70px;
    padding: clamp(18px, 4vw, 40px);
    background: #e0527f30;
}
.comfort img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 20px;
}
.comfort h1, .comfort p { width: 100%; max-width: 860px; }
.comfort p { margin-top: 10px; }

.gate, .greate {
    display: grid;
    align-items: center;
    gap: clamp(24px, 5vw, 50px);
    margin-top: 0;
    margin-bottom: 70px;
}
.gate   { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.greate { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.gated  { min-width: 0; }
.great  { margin-top: 4px; }

.gate img, .greate > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
}
.gate img { aspect-ratio: 5 / 6; }
.greate > img { aspect-ratio: 4 / 3; }

.comfort h1, .gated h1, .great h1, .greate h1 {
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    line-height: 1.3;
    text-align: left;
}
.gated h1, .greate h1 { color: black; text-decoration: underline; }

.comfort p, .gated p, .great p {
    font-size: 1rem;
    line-height: 1.75;
    text-align: justify;
}
.gate p, .great p { color: black; }

.glimpse {
    margin-left: 40px;
    margin-right: 40px;
    padding: 17px 20px;
    background: #e0527f5f;
}
.glimpse h1 { color: var(--rose); font-size: 1rem; }
.glimpse p { text-align: justify; color: black; }


/* ========== 9. Mail form ========== */
.mail-section {
    padding: 60px 20px;
    background: #fa899e55;
}
.mail-wrap { max-width: 600px; margin: 0 auto; }
.mail-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--blush);       /* was a leftover green */
    color: var(--rose);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
}
.mail-wrap h2 {
    margin: 14px 0 24px;
    font-size: 32px;
    color: var(--rose);
}

.mail-form {
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}
.field input,
.field textarea {
    width: 100%;
    padding: 14px;
    font-size: 16px;                /* 16px stops iPhone zooming on focus */
    border: 1.5px solid #e3cfd7;
    border-radius: 10px;
    background: #fafafa;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(224, 82, 127, .25);
    background: #fff;
}
.field textarea { resize: vertical; }

.mail-btn {
    width: 100%;
    padding: 15px;
    background: var(--rose-light);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}
.mail-btn:hover { background: var(--rose); }
.mail-btn:active { transform: scale(.98); }


/* ========== 10. Scroll animation (driven by animations.js) ========== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom       { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hover transforms must still win once an element has revealed */
.reveal.is-visible.room:hover,
.reveal.is-visible.amenity:hover,
.reveal.is-visible.action:hover,
.reveal.is-visible.photo:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* If JavaScript is off, never leave content hidden */
@media (scripting: none) {
    .reveal { opacity: 1; transform: none; }
}


/* ========== 11. Accessibility helpers ========== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-text, .img-slider img { animation: none; }
    .img-slider img:first-child { opacity: 1; }
    .menu-btn span { transition: none; }
}


/* ========== 12. Responsive (largest to smallest) ========== */
@media (max-width: 1000px) {
    .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    :root { --section-gap: 64px; }

    .hero { height: 480px; }
    .about, .abou { font-size: 1.4rem; padding: 12px 32px; }
    .info p { text-align: left; }
    .house { padding: 24px 18px; }
    .amenities { padding: 44px 18px; }

    .contact { padding: 48px 16px 0; }
    .visit { grid-template-columns: 1fr; }
    .map, .map iframe { min-height: 300px; }
    .address { padding: 28px 22px; }

    /* About page stacks into one column */
    .gate, .greate { grid-template-columns: 1fr; }
    .gate img, .greate > img { aspect-ratio: 4 / 3; border-radius: 22px; }
    .comfort p, .gated p, .great p { text-align: left; hyphens: none; }
    .glimpse { margin-left: var(--gutter); margin-right: var(--gutter); }
}

@media (max-width: 700px) {
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 36px 14px 0; }
}

@media (max-width: 600px) {
    .amenity-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .amenity { padding: 24px 10px; }
    .labis-footer { padding: 3rem 1.25rem 1.25rem; }
}

@media (max-width: 480px) {
    :root { --gutter: 14px; }

    .site-header { padding: 8px 14px; }
    .logo img { height: 44px; }

    .hero { height: 440px; }
    .BOOK { padding: 13px 26px; }
    .about, .abou { font-size: 1.25rem; padding: 10px 26px; }
    .house { padding: 18px 14px; gap: 18px; }
    .room { padding: 26px 18px; }
    .action { padding: 20px; gap: 14px; }
    .action strong { font-size: 1.2rem; }
    .address { padding: 24px 18px; }
}

@media (max-width: 420px) {
    .gallery { grid-template-columns: 1fr; }
    .labis-footer .lf-bottom { justify-content: center; text-align: center; }
}
