/* 
  SVITYAZHOME - Design System v3.0 "Alabaster Retreat"
  Concept: Premium Minimalist Hospitality
  Architect: Senior UI/UX & Frontend Architect
*/

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

:root {
    /* Colors - Light Theme (Default) */
    --bg: #fdfdfc;
    --surface: #ffffff;
    --surface-light: #f5f5f4;
    --text: #1c1917;
    --text-muted: #57534e;
    --accent: #8c7e6d;
    --accent-light: #a8a29e;
    --primary: #1c1917;
    --primary-contrast: #ffffff;
    
    --border: rgba(28, 25, 23, 0.08);
    --border-strong: rgba(28, 25, 23, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 12px 32px rgba(28, 25, 23, 0.06);
    --shadow-lg: 0 24px 64px rgba(28, 25, 23, 0.1);
    
    --glass: blur(40px) saturate(180%);
    --glass-bg: rgba(253, 253, 252, 0.85);

    /* Spacing - 8px based */
    --sp-4: 4px;
    --sp-8: 8px;
    --sp-12: 12px;
    --sp-16: 16px;
    --sp-24: 24px;
    --sp-32: 32px;
    --sp-48: 48px;
    --sp-64: 64px;
    --sp-80: 80px;
    --sp-120: 120px;
    --sp-160: 160px;

    /* Typography */
    --font-main: 'Manrope', -apple-system, sans-serif;
    --font-serif: 'Fraunces', serif;
    
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 3.5rem;
    --fs-hero: 5.5rem;

    /* UI Scales */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 12px;
    --radius-full: 99px;
    
    --container-max: 1400px;
    --header-height: 90px;
    --transition: 450ms cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
    --bg: #0c0c0d;
    --surface: #151516;
    --surface-light: #1f1f21;
    --text: #f5f5f4;
    --text-muted: #a8a29e;
    --accent: #8c7e6d;
    --primary: #ffffff;
    --primary-contrast: #1c1917;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(12, 12, 13, 0.85);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: var(--sp-24);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }

@media (min-width: 1024px) {
    h1 { font-size: var(--fs-hero); }
    h2 { font-size: var(--fs-4xl); }
}

p { margin-bottom: var(--sp-24); color: var(--text-muted); }

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--sp-12);
}

/* Layout System */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-24);
}

@media (min-width: 768px) { .container { padding: 0 var(--sp-48); } }

.section { padding: var(--sp-80) 0; }
@media (min-width: 1024px) { .section { padding: var(--sp-160) 0; } }

.section__header { max-width: 720px; margin-bottom: var(--sp-64); }
.section__header h2 { margin-bottom: var(--sp-16); }
.section__header p { font-size: var(--fs-lg); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--primary-contrast);
}

.btn--primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--secondary:hover {
    background-color: var(--surface-light);
    border-color: var(--text);
}

.btn--sm { padding: 12px 24px; font-size: var(--fs-xs); }

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header--scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
    height: 80px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
    font-family: var(--font-serif);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    text-decoration: none;
}

.brand__logo {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(var(--brand-brightness, 1));
}

.site-nav { display: none; flex: 1; }
@media (min-width: 1024px) { 
    .site-nav { display: flex; justify-content: center; } 
}

.site-nav__list { display: flex; gap: var(--sp-48); list-style: none; }

.site-nav__link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition);
}

.site-nav__link:hover { color: var(--text); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-16); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    background-color: var(--surface-light);
}

.hero__content { max-width: 900px; position: relative; z-index: 2; }
.hero__title { margin-bottom: var(--sp-32); }
.hero__text { font-size: var(--fs-xl); margin-bottom: var(--sp-48); max-width: 600px; }

/* Grid Layouts */
.grid { display: grid; gap: var(--sp-32); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Room Cards */
.home-room-panel {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.home-room-panel:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.home-room-panel__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.home-room-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.home-room-panel:hover .home-room-panel__media img { transform: scale(1.05); }

.home-room-panel__body { padding: var(--sp-48); }

.home-room-panel__label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--sp-8);
    display: block;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-16);
    margin: var(--sp-24) 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.meta-list li::after { content: '•'; margin-left: var(--sp-16); opacity: 0.3; }
.meta-list li:last-child::after { display: none; }

.home-room-panel__benefits {
    list-style: none;
    margin-bottom: var(--sp-32);
}

.home-room-panel__benefits li {
    position: relative;
    padding-left: var(--sp-24);
    margin-bottom: var(--sp-8);
    font-size: var(--fs-sm);
}

.home-room-panel__benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.home-room-panel__actions { display: flex; gap: var(--sp-12); }

/* Atmosphere Gallery */
.home-atmosphere__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: var(--sp-16);
}

.home-atmosphere__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.home-atmosphere__item.is-wide { grid-column: span 2; grid-row: span 2; }

.home-atmosphere__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.home-atmosphere__item:hover img { transform: scale(1.03); }

/* Reviews */
.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.review-card {
    background-color: var(--surface);
    padding: var(--sp-48);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.review-card__text {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--text);
    margin-bottom: var(--sp-24);
}

/* Animations */
.svh-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.svh-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .home-atmosphere__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: var(--fs-4xl); }
    .section { padding: var(--sp-64) 0; }
    .home-room-panel__body { padding: var(--sp-32); }
}

/* Drawer Fixes */
.site-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    z-index: 2000;
    transition: var(--transition);
    padding: var(--sp-48);
    display: flex;
    flex-direction: column;
}

.site-drawer.is-active { right: 0; }

.site-drawer__list {
    margin-top: var(--sp-64);
    display: flex;
    flex-direction: column;
    gap: var(--sp-32);
}

.site-drawer__link {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
}
