/* ===== KMS Homestays - Custom Styles ===== */

/* Silverline Script Demo - used for headings only */
@font-face {
    font-family: 'Silverline Script Demo';
    src: url('/fonts/SilverlineScriptDemo-Regular.woff2') format('woff2'),
        url('/fonts/SilverlineScriptDemo-Regular.woff') format('woff'),
        url('/fonts/SilverlineScriptDemo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #ECB78B;
    --primary-dark: #e0a06a;
    --secondary: #b97a4f;
    --secondary-dark: #9a6038;
    --dark: #2c2017;
    --cream: #fdf8f3;
}

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

body {
    font-family: 'Readex Pro', sans-serif;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

.font-script {
    font-family: 'Silverline Script Demo', 'Great Vibes', cursive;
    /* slight boldness so the thin script reads clearly */
    -webkit-text-stroke: 0.7px currentColor;
    letter-spacing: 0.5px;
}

/* ===== Privacy / legal pages ===== */
.policy-block {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid #f0e7da;
}

.policy-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.85rem;
    padding-left: 0.9rem;
    border-left: 4px solid var(--secondary);
    line-height: 1.3;
}

.permission-card {
    background: var(--cream);
    border: 1px solid #eee7d8;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.permission-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(44, 32, 23, 0.07);
}

.permission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    background: var(--secondary);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Editorial outlined button (used in split sections) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.25rem;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
    background: transparent;
    transition: all 0.3s ease;
}

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

/* Full-bleed split section image fills its column */
.split-img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #f3e9df;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== Transparent header over hero ===== */
.site-header .header-topbar {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.3s ease, color 0.3s ease;
}

.site-header .header-main {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .brand-title {
    color: #fff;
}

.site-header .brand-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.site-header .nav-link {
    color: #fff;
}

.site-header .menu-btn {
    color: #fff;
}

/* Scrolled (solid) state */
.site-header.header-scrolled .header-topbar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
}

.site-header.header-scrolled .header-main {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.site-header.header-scrolled .brand-title {
    color: var(--dark);
}

.site-header.header-scrolled .brand-badge {
    background: var(--secondary);
    color: #fff;
}

.site-header.header-scrolled .brand-sub {
    color: var(--secondary);
}

.site-header.header-scrolled .nav-link {
    color: var(--dark);
}

.site-header.header-scrolled .menu-btn {
    color: var(--dark);
}

/* ===== Navigation underline ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.site-header.header-scrolled .nav-link::after {
    background: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--primary);
}

.site-header.header-scrolled .nav-link:hover,
.site-header.header-scrolled .nav-link.active {
    color: var(--secondary);
}

/* Pages without a hero: solid header + top spacing so content isn't hidden */
.no-hero main {
    padding-top: 72px;
}

@media (min-width: 1024px) {
    .no-hero main {
        padding-top: 116px;
    }
}

/* ===== Mobile menu ===== */
.mobile-menu {
    transition: transform 0.35s ease;
}

/* ===== Hero slider ===== */
.slider-container {
    background-color: var(--dark);
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(44, 32, 23, 0.55) 0%, rgba(44, 32, 23, 0.30) 35%, rgba(44, 32, 23, 0.55) 100%);
}

.hero-script {
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    width: 30px;
    background: var(--primary);
}

/* ===== Property cards ===== */
.property-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(19, 33, 29, 0.12);
}

.property-img {
    overflow: hidden;
}

.property-img img {
    transition: transform 0.6s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.08);
}

/* ===== Property (estate) overlay cards ===== */
.estate-card {
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.estate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(44, 32, 23, 0.28);
}

.estate-overlay {
    background: linear-gradient(to top,
            rgba(35, 25, 17, 0.94) 0%,
            rgba(35, 25, 17, 0.55) 40%,
            rgba(35, 25, 17, 0.10) 72%,
            rgba(35, 25, 17, 0) 100%);
    transition: background 0.45s ease;
}

.estate-card:hover .estate-overlay {
    background: linear-gradient(to top,
            rgba(35, 25, 17, 0.96) 0%,
            rgba(35, 25, 17, 0.68) 52%,
            rgba(35, 25, 17, 0.28) 100%);
}

/* ===== Amenities ===== */
.amenity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #eee7d8;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.amenity i {
    color: var(--secondary);
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.amenity:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(185, 122, 79, 0.25);
}

.amenity:hover i {
    color: var(--primary);
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    min-height: 200px;
    display: block;
}

.gallery-item img {
    transition: transform 0.6s ease;
    height: 100%;
    min-height: 200px;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 32, 23, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 1.6rem;
    z-index: 2;
    transition: transform 0.35s ease;
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Contact info cards ===== */
.contact-info-card {
    background: var(--cream);
    border: 1px solid #eee7d8;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(44, 32, 23, 0.08);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--secondary);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}

/* Responsive hero text */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(44, 32, 23, 0.62), rgba(44, 32, 23, 0.55));
    }

    .hero-script {
        font-size: 3.5rem !important;
    }

    /* lighter stroke on smaller headings so they don't look heavy */
    .font-script {
        -webkit-text-stroke: 0.5px currentColor;
    }
}

@media (max-width: 480px) {
    .hero-script {
        font-size: 2.85rem !important;
    }
}