/**
 * Krauklisi.lv Standalone Luxury CSS (Pure CSS - No CDN Dependency)
 * Rustic Luxury Boutique Hotel Design System
 */

/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
    --forest-950: #0a1710;
    --forest-900: #12281c;
    --forest-850: #163022;
    --forest-800: #1c3d2c;
    --forest-700: #25523b;
    --forest-600: #316d4f;
    --forest-500: #418b66;
    --forest-100: #e2efe8;
    --forest-50:  #f0f7f3;

    --amber-600:  #b46d1f;
    --amber-500:  #d9822b;
    --amber-400:  #f59e0b;
    --amber-300:  #fbbf24;
    --amber-100:  #fef3c7;
    --amber-50:   #fffbeb;

    --sand-50:    #faf8f5;
    --sand-100:   #f5f0e8;
    --sand-200:   #ebe4d8;

    --stone-900:  #1c1917;
    --stone-800:  #292524;
    --stone-700:  #44403c;
    --stone-600:  #57534e;
    --stone-500:  #78716c;
    --stone-400:  #a8a29e;
    --stone-300:  #d6d3d1;
    --stone-200:  #e7e5e4;
    --stone-100:  #f5f5f4;

    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--sand-50);
    color: var(--stone-800);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

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

svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ==========================================================================
   2. BUTTONS & UI COMPONENTS
   ========================================================================== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d9822b 100%);
    color: #0a1710 !important;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px rgba(217, 130, 43, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 130, 43, 0.45);
    color: #0a1710 !important;
}

.btn-forest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--forest-900);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.btn-forest:hover {
    background-color: var(--forest-800);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: var(--forest-950) !important;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-xl);
    transition: all 0.2s ease;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--stone-100);
    border-color: var(--stone-400);
}

.luxury-card {
    background-color: #ffffff;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--stone-200);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.top-announcement-bar {
    background-color: var(--forest-950);
    color: var(--stone-300);
    font-size: 0.75rem;
    padding: 0.625rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-announcement-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(10, 23, 16, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    height: 5rem;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: #ffffff;
}

.brand-logo {
    height: 2.75rem;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    display: block;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--amber-400);
    text-transform: uppercase;
    display: block;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    position: relative;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--amber-400);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

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

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

.header-right-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .header-right-actions {
        display: flex;
    }
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

@media (min-width: 1024px) {
    .mobile-header-actions {
        display: none;
    }
}

/* ==========================================================================
   4. MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
#mobileMenuDrawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 22rem;
    z-index: 60;
    background-color: var(--forest-950);
    color: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

#mobileMenuDrawer.open {
    transform: translateX(0) !important;
}

#mobileMenuBackdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobileMenuBackdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   5. CINEMATIC HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 90dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--forest-950);
    color: #ffffff;
    overflow: hidden;
    padding: 5rem 1.5rem 6rem 1.5rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 23, 16, 0.95) 0%, rgba(10, 23, 16, 0.7) 50%, rgba(10, 23, 16, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stone-200);
}

.hero-badge .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background-color: var(--amber-400);
    box-shadow: 0 0 10px var(--amber-400);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
    font-weight: 700;
    line-height: 1.12;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-title .italic-gold {
    font-style: italic;
    font-weight: 400;
    color: var(--amber-300);
}

.hero-subtitle {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--stone-300);
    max-width: 44rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .hero-cta-group {
        flex-direction: row;
        max-width: none;
        width: auto;
    }
}

.hero-usp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

@media (min-width: 768px) {
    .hero-usp-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.usp-card {
    padding: 1rem;
    border-radius: var(--radius-2xl);
    background: rgba(28, 25, 23, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.usp-icon-wrap {
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber-400);
    flex-shrink: 0;
}

.usp-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
}

.usp-desc {
    font-size: 0.6875rem;
    color: var(--stone-400);
}

/* ==========================================================================
   6. SEARCH STRIP & SECTIONS
   ========================================================================== */
.search-strip-wrap {
    position: relative;
    z-index: 20;
    max-width: 64rem;
    margin: -2.5rem auto 0 auto;
    padding: 0 1.5rem;
}

.search-strip-card {
    padding: 1.5rem;
    border-radius: var(--radius-3xl);
    border: 1px solid var(--stone-200);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.search-strip-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: flex-end;
}

@media (min-width: 640px) {
    .search-strip-form {
        grid-template-columns: repeat(4, 1fr);
    }
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--forest-950);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: var(--stone-50);
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.15);
}

/* Section Containers */
.section-pad {
    padding: 5rem 1.5rem;
}

@media (min-width: 640px) {
    .section-pad {
        padding: 6.5rem 2rem;
    }
}

.section-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-600);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--forest-950);
    line-height: 1.2;
}

.section-desc {
    font-size: 0.875rem;
    color: var(--stone-600);
}

/* ==========================================================================
   7. AMENITIES GRID & CARDS
   ========================================================================== */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amenity-card {
    background-color: var(--sand-50);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--stone-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
}

.amenity-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.amenity-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.amenity-card:hover .amenity-img-wrap img {
    transform: scale(1.06);
}

.amenity-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.amenity-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--forest-950);
}

.amenity-desc {
    font-size: 0.75rem;
    color: var(--stone-600);
    line-height: 1.6;
    margin-top: 0.25rem;
}

.amenity-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--forest-800);
}

/* ==========================================================================
   8. BENTO GALLERY
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    grid-auto-rows: 240px;
}

@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bento-large {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 768px) {
    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.bento-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--forest-900);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover img {
    transform: scale(1.06);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 23, 16, 0.85) 0%, rgba(10, 23, 16, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
}

/* ==========================================================================
   9. FOOTER & STICKY CTA
   ========================================================================== */
.site-footer {
    background-color: var(--forest-950);
    color: var(--stone-400);
    padding: 4rem 1.5rem 2.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}

.footer-bottom {
    max-width: 80rem;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--stone-500);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 35;
    background: rgba(10, 23, 16, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) 1rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}
