
/* =====================================
   SAFFRONSTAYS POLARIS
   LUXURY MOUNTAIN VILLA WEBSITE
===================================== */

/* ---------- ROOT VARIABLES ---------- */

:root {
    --green: #233d32;
    --dark-green: #14291f;
    --gold: #d4b483;
    --cream: #f7f3ea;
    --white: #ffffff;
    --text: #26352c;
    --muted: #6e756c;
    --border: #e0dbd0;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

/* ---------- GLOBAL STYLING ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    width: 100%;
    display: block;
}

p {
    line-height: 1.8;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
}

h2 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.2;
    margin-bottom: 24px;
}

h2 em {
    font-weight: 400;
    color: #8b744d;
}

.section {
    padding: 100px 8%;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #8b744d;
    margin-bottom: 18px;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-heading > p:last-child {
    color: var(--muted);
}

.section-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 25px;
}

/* ---------- NAVBAR ---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 100;
    color: white;
    background: rgba(20, 41, 31, 0.25);
    transition: background 0.3s, padding 0.3s;
}

header.scrolled {
    background: var(--dark-green);
    padding: 15px 6%;
    box-shadow: 0 5px 20px #0002;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.logo > i {
    color: var(--gold);
    font-size: 30px;
}

.logo span {
    display: block;
    font-family: var(--serif);
    font-size: 27px;
    letter-spacing: 4px;
    line-height: 1.2;
}

.logo small {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-top: 4px;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-btn {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 13px 20px;
}

.nav-btn:hover {
    background: var(--gold);
    color: var(--dark-green);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 25px;
}

/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 17px 25px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark-green);
}

.btn-gold:hover {
    background: #e7cca4;
}

.btn-outline {
    border-color: #ffffff88;
    color: white;
}

.btn-outline:hover {
    background: #ffffff20;
}

.btn-green {
    background: var(--green);
    color: white;
}

.btn-green:hover {
    background: var(--dark-green);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--green);
    border: none;
    border-bottom: 1px solid #9e9b8e;
    background: transparent;
    padding: 0 0 8px;
    transition: gap 0.3s;
}

.text-link:hover {
    gap: 20px;
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 160px 8% 100px;
    display: flex;
    align-items: center;
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(12, 30, 21, 0.85),
            rgba(12, 30, 21, 0.42),
            rgba(12, 30, 21, 0.15)
        ),
        url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=2200&q=90')
        center / cover no-repeat;
}

.hero-content {
    max-width: 850px;
    animation: heroEnter 1.2s ease both;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.hero-tag span {
    width: 35px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-size: clamp(52px, 7.8vw, 112px);
    line-height: 1.08;
    margin-bottom: 25px;
}

.hero h1 em {
    color: var(--gold);
    font-weight: 400;
}

.hero-content > p {
    color: #e4e7e1;
    max-width: 560px;
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    border-top: 1px solid #ffffff40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 23px 0;
    font-size: 11px;
    color: #e5e8e0;
}

.hero-bottom i {
    color: var(--gold);
    margin-right: 5px;
}

.scroll-link {
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-link i {
    animation: bounce 1.8s infinite;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* ---------- PROPERTY STRIP ---------- */

.property-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px 8%;
    background: var(--dark-green);
    color: white;
}

.property-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    border-right: 1px solid #ffffff20;
}

.property-item:last-child {
    border: none;
}

.property-item > i {
    font-size: 24px;
    color: var(--gold);
}

.property-item strong {
    display: block;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
}

.property-item small {
    display: block;
    color: #bdc8bf;
    font-size: 11px;
    margin-top: 5px;
}

/* ---------- ABOUT ---------- */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
    padding: 0 35px 45px 0;
}

.about-main {
    height: 500px;
    object-fit: cover;
    border-radius: 180px 180px 4px 4px;
}

.about-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 47%;
    height: 220px;
    object-fit: cover;
    border: 8px solid var(--cream);
}

.image-badge {
    position: absolute;
    left: -18px;
    bottom: 70px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.image-badge i {
    font-size: 28px;
}

.image-badge span {
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.6;
}

.about-content > p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 28px 0;
    font-size: 13px;
}

.about-features i {
    color: #9b8053;
    margin-right: 7px;
}

/* ---------- ROOMS ---------- */

.rooms-section {
    background: #eee9de;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.room-card {
    background: white;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s;
}

.room-card:hover {
    box-shadow: 0 15px 35px #233d3215;
}

.room-image {
    position: relative;
    height: 270px;
    overflow: hidden;
}

.room-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.room-card:hover img {
    transform: scale(1.07);
}

.room-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--cream);
    color: var(--green);
    padding: 9px 13px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.room-info {
    padding: 28px;
}

.room-number {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8b744d;
}

.room-info h3 {
    font-size: 27px;
    margin: 12px 0;
}

.room-info p {
    color: var(--muted);
    font-size: 14px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0;
    margin: 15px 0 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
}

.room-features i {
    color: #9b8053;
    margin-right: 5px;
}

/* ---------- EXPERIENCES ---------- */

.experiences {
    background: var(--green);
    color: white;
}

.experiences h2 em,
.experiences .eyebrow {
    color: var(--gold);
}

.experiences .section-heading > p:last-child {
    color: #c0cbc1;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.experience-card {
    padding: 35px 24px;
    border: 1px solid #ffffff25;
    text-align: center;
    transition: background 0.3s;
}

.experience-card:hover {
    background: #ffffff0d;
}

.experience-card > i {
    font-size: 35px;
    color: var(--gold);
    margin-bottom: 24px;
}

.experience-card h3 {
    font-size: 23px;
    margin-bottom: 14px;
}

.experience-card p {
    font-size: 13px;
    color: #c0cbc1;
}

/* ---------- NATURE BANNER ---------- */

.nature-banner {
    min-height: 470px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 6%;
    color: white;

    background:
        linear-gradient(#14291f80, #14291fb0),
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=2000&q=85')
        center / cover fixed;
}

.nature-banner h2 em,
.nature-banner .eyebrow {
    color: var(--gold);
}

.nature-banner h2 {
    margin-bottom: 30px;
}

/* ---------- GALLERY ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 12px;
}

.gallery-item {
    position: relative;
    padding: 0;
    border: none;
    overflow: hidden;
    background: #ddd;
}

.gallery-large {
    grid-row: span 2;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item span {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffffdd;
    color: var(--green);
    display: grid;
    place-items: center;
    transition: background 0.3s;
}

.gallery-item:hover span {
    background: var(--gold);
}

/* ---------- RATINGS ---------- */

.rating-section {
    text-align: center;
    padding: 65px 6%;
    background: #eae2d2;
}

.stars {
    font-size: 26px;
    letter-spacing: 8px;
    color: #98713c;
    margin-bottom: 15px;
}

.rating-section h2 {
    font-size: 45px;
    margin-bottom: 12px;
}

.rating-section p {
    color: var(--muted);
}

.rating-note {
    font-size: 11px;
    margin-top: 12px;
}

/* ---------- BOOKING ---------- */

.booking-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.booking-content > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 500px;
}

.price-display {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 30px 0;
    padding: 25px 0;
}

.price-display > span {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}

.price-display > div {
    font-family: var(--serif);
    font-size: 43px;
    margin: 10px 0;
    color: var(--green);
}

.price-display small {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
}

.price-display p {
    font-size: 13px;
    color: var(--muted);
}

.booking-location {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.booking-location > i {
    font-size: 25px;
    color: #9b8053;
}

.booking-location p {
    color: var(--muted);
    font-size: 13px;
}

/* ---------- FORM ---------- */

.booking-form {
    background: white;
    padding: 35px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px #233d320d;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.booking-form h3 {
    font-size: 31px;
}

.form-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: -10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.booking-form input,
.booking-form select {
    width: 100%;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    background: #fbfaf7;
    border-radius: 0;
    color: var(--text);
    outline: none;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px #233d3215;
}

.booking-form .checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.booking-summary {
    background: var(--cream);
    padding: 20px;
    font-size: 13px;
}

.booking-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.booking-summary .total-row {
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin: 0;
    font-size: 17px;
}

.total-row strong {
    color: var(--green);
}

.form-note {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
    text-align: center;
}

#formStatus {
    font-size: 12px;
    color: #a04428;
}

/* ---------- FOOTER ---------- */

footer {
    background: var(--dark-green);
    color: white;
    padding: 65px 8% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 22px;
    max-width: 280px;
}

footer p,
footer div > a:not(.logo) {
    font-size: 13px;
    color: #bfcac1;
}

footer h4 {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-grid > div > a:not(.logo) {
    display: block;
    margin-bottom: 12px;
}

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

.footer-bottom {
    border-top: 1px solid #ffffff20;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    font-size: 11px;
}

/* ---------- FLOATING BOOKING ---------- */

.floating-book {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 90;
    background: var(--gold);
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 40px;
    box-shadow: 0 5px 25px #0003;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.3s;
}

.floating-book:hover {
    transform: translateY(-4px);
}

/* ---------- GALLERY LIGHTBOX ---------- */

dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: none;
    max-height: 90vh;
    max-width: 92vw;
    overflow: auto;
}

dialog::backdrop {
    background: #08160ed9;
}

.lightbox {
    background: #14291f;
    color: white;
    width: 950px;
    padding: 45px 15px 15px;
}

.lightbox img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox p {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
}

.close-dialog {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 30px;
    border: none;
    background: transparent;
    color: inherit;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffffdd;
    color: var(--green);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
}

.prev {
    left: 22px;
}

.next {
    right: 22px;
}

/* ---------- BOOKING MODAL ---------- */

.booking-modal {
    width: 480px;
    background: var(--cream);
    color: var(--green);
    padding: 35px;
    text-align: center;
    border-radius: 8px;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-size: 25px;
    margin: 0 auto 20px;
}

.booking-modal h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.booking-modal > p {
    font-size: 14px;
}

#bookingDetails {
    text-align: left;
    background: white;
    padding: 18px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.booking-modal .btn {
    width: 100%;
    margin-top: 20px;
}

/* ---------- SCROLL ANIMATIONS ---------- */

/* Content remains visible if JavaScript is unavailable */

.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- TABLET RESPONSIVE ---------- */

@media (max-width: 1000px) {

    .section {
        padding: 75px 6%;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 25px 6%;
        background: var(--dark-green);
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    nav.open {
        display: flex;
    }

    .about {
        gap: 35px;
    }

    .about-main {
        height: 430px;
    }

    .rooms-grid {
        gap: 15px;
    }

    .room-info {
        padding: 20px;
    }

    .room-image {
        height: 220px;
    }

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

    .booking-section {
        gap: 35px;
    }

    .booking-form {
        padding: 25px;
    }

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

    .hero-bottom > span:last-child {
        display: none;
    }

}

/* ---------- MOBILE RESPONSIVE ---------- */

@media (max-width: 700px) {

    .section {
        padding: 60px 5%;
    }

    header {
        padding: 18px 5%;
    }

    .logo span {
        font-size: 23px;
    }

    .logo > i {
        font-size: 24px;
    }

    .hero {
        min-height: 90svh;
        padding: 130px 6% 100px;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: clamp(45px, 10vw, 70px);
    }

    .hero-tag {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-buttons .btn {
        padding: 15px 18px;
        font-size: 12px;
    }

    .hero-bottom {
        left: 6%;
        right: 6%;
        font-size: 10px;
    }

    .scroll-link {
        letter-spacing: 1px;
    }

    .property-strip {
        grid-template-columns: 1fr 1fr;
        padding: 20px 4%;
    }

    .property-item {
        justify-content: flex-start;
        padding: 18px 10px;
        gap: 10px;
    }

    .property-item:nth-child(2) {
        border-right: none;
    }

    .property-item strong {
        font-size: 18px;
    }

    .property-item small {
        font-size: 10px;
    }

    .property-item > i {
        font-size: 19px;
    }

    .about,
    .booking-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        margin-left: 12px;
    }

    .about-main {
        height: 380px;
    }

    .about-small {
        height: 170px;
    }

    .image-badge {
        width: 100px;
        height: 100px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .room-image {
        height: 260px;
    }

    .room-info {
        padding: 25px;
    }

    .experience-grid {
        gap: 10px;
    }

    .experience-card {
        padding: 25px 12px;
    }

    .experience-card h3 {
        font-size: 20px;
    }

    .experience-card p {
        font-size: 12px;
    }

    .nature-banner {
        min-height: 380px;
        background-attachment: scroll;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 160px 160px;
        gap: 8px;
    }

    .gallery-large {
        grid-row: auto;
        grid-column: span 2;
    }

    .booking-form {
        padding: 25px 20px;
    }

    .footer-grid {
        gap: 30px 20px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 50px;
    }

    .floating-book {
        bottom: 15px;
        right: 15px;
        padding: 13px 17px;
    }

}

/* ---------- SMALL MOBILE ---------- */

@media (max-width: 380px) {

    .hero-bottom .scroll-link {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

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

    .footer-brand {
        grid-column: auto;
    }

}

/* ---------- ACCESSIBILITY ---------- */

:focus-visible {
    outline: 3px solid #b28d54;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .nature-banner {
        background-attachment: scroll;
    }

}
