:root {
    --primary: #1B2B20;
    /* Deep Forest Emerald */
    --primary-dark: #0D150F;
    --primary-light: #F0F4F1;
    --teal: var(--primary);
    /* Maintain alias for compatibility */
    --teal-dark: var(--primary-dark);
    --teal-light: var(--primary-light);
    --offwhite: #FDFCF8;
    --ink: #0A0F0C;
    --gold: #C5A059;
    --gold-light: #F1E5AC;
    --gold-dark: #996515;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background: var(--offwhite);
    color: var(--ink);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* Golden Texture Utility */
.gold-texture {
    position: relative;
}

.gold-texture::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Golden Typography Utility */
.text-gold {
    color: var(--gold);
    background: linear-gradient(to right, var(--gold-dark), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Automatic gold headings on dark backgrounds */
.bg-ink h1,
.bg-ink h2,
.bg-ink h3,
.bg-ink h4,
footer h1,
footer h2,
footer h3,
footer h4 {
    color: var(--gold);
}

/* Navbar - Unique Floating Island Design */
.nav-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: 64px;
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-scrolled .nav-container {
    top: 1rem;
    width: 90%;
    max-width: 1000px;
    background: rgba(27, 43, 32, 0.92);
    backdrop-filter: blur(20px);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: var(--gold);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

/* Hero Sections */
.hero-overlay {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.page-hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #005A5A 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before,
.bg-ink::before,
footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    mix-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

/* Specific Hero Backgrounds */
.hero-index::after {
    background-image: url('../images/Photos/29fba0de-fad1-4b85-aa26-b1f4b3976b2d.jpg');
}

.hero-rooms::after {
    background-image: url('../images/Photos/238ec559-6106-42ad-98d4-afbeed655e12.jpg');
    opacity: 0.2;
}

.hero-gallery::after {
    background-image: url('../images/Photos/38700c82-99ff-4e6f-9a34-4a1055c537c6.jpg');
}

.hero-contact::after {
    background-image: url('../images/Photos/28d199d9-0cc3-4309-97ea-119acc26d345.jpg');
}

/* Buttons */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-teal {
    background: var(--teal);
    color: #fff;
    letter-spacing: 0.1em;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-teal:hover {
    background: var(--teal-dark);
    border-color: var(--gold);
}

.btn-outline {
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: #fff;
    letter-spacing: 0.1em;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

.btn-teal-outline {
    border: 1.5px solid var(--teal);
    color: var(--teal);
    letter-spacing: 0.1em;
    transition: all .3s;
}

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

/* Cards & Images */
.card-glass {
    background: white;
    border: 1px solid rgba(27, 43, 32, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

.img-hover-zoom {
    overflow: hidden;
    position: relative;
}

.img-hover-zoom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.img-hover-zoom:hover::after {
    opacity: 1;
}

.img-hover-zoom img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Decorative Elements */
.section-title-line {
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 1s ease-out 0.5s;
}

.aos-animate .section-title-line {
    width: 60px;
}

.section-line {
    width: 48px;
    height: 2px;
    background: var(--gold);
}

/* Page Specific: Rooms */
.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 99px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Page Specific: Gallery */
.gallery-grid {
    columns: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--gold);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 43, 43, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s;
}

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

.gallery-item-overlay span {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 300;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item-overlay span {
    transform: translateY(0);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 15, 0.99);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Page Specific: Contact */
.form-card {
    background: white;
    border: 1px solid rgba(212, 175, 55, 0.05);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card:hover {
    border-color: var(--gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #F9F9F7;
    border: 1px solid #EEEBE6;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--ink);
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.05);
}

.form-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    display: block;
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.info-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #F0F0EE;
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--teal);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Animations */
@keyframes subtleZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes subtleZoomReverse {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.0);
    }
}

/* Media Queries */
@media (max-width: 900px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        columns: 1;
    }
}