/* ========================================
   HOTEL VILLA CORALLO - Alpine-Modern Luxury
   Design System v2.0
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */

:root {
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;

    /* Colors - Natural Palette */
    --color-cream: #FAF8F5;
    --color-sand: #F5F1EB;
    --color-stone: #E8E4DE;
    --color-taupe: #C4BDB4;
    --color-warm-gray: #9A938A;
    --color-charcoal: #2C2926;
    --color-espresso: #1A1816;

    /* Accent Colors */
    --color-gold: #B8976A;
    --color-gold-light: #D4BC94;
    --color-gold-dark: #8B7355;

    /* Semantic Colors */
    --bg-primary: var(--color-cream);
    --bg-secondary: var(--color-sand);
    --bg-dark: var(--color-espresso);

    --text-primary: var(--color-charcoal);
    --text-secondary: var(--color-warm-gray);
    --text-inverse: var(--color-cream);
    --text-light: rgba(255, 255, 255, 0.7);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 8rem;

    /* Layout */
    --container-max: 1600px;
    --gutter: clamp(1.5rem, 4vw, 3rem);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */

.text-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

/* ========================================
   SECTION HEADER
   ======================================== */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-header__text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   ANIMATIONS
   ======================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    :root {
        --space-3xl: 3.5rem;
        --space-4xl: 5rem;
    }
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.site-header--scrolled {
    background-color: rgba(18, 47, 65, 0.95);
    padding: var(--space-sm) 0;
    backdrop-filter: blur(10px);
}

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

.site-header__logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: #fff;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1002;
}

.site-header__logo span {
    color: var(--color-gold-light);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

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

.site-nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-xs) 0;
    position: relative;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    transition: color var(--transition-base);
}

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

.site-nav__link:hover::after,
.site-nav__link--active::after {
    width: 100%;
}

.site-nav__link--active {
    color: var(--color-gold-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.menu-toggle__bar {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition-base);
}

.menu-toggle.active .menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav__list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        background: rgba(18, 47, 65, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
    }

    .site-nav__list.active {
        opacity: 1;
        visibility: visible;
    }

    .site-nav__link {
        font-size: var(--text-lg);
        text-shadow: none;
    }

    /* Ensure header stays above mobile nav background */
    .site-header__inner {
        position: relative;
        z-index: 1002;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--color-espresso);
    color: var(--text-inverse);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.site-footer__brand {
    max-width: 300px;
}

.site-footer__logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: #fff;
    margin-bottom: var(--space-md);
}

.site-footer__logo span {
    color: var(--color-gold-light);
}

.site-footer__description {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.site-footer__social {
    display: flex;
    gap: var(--space-sm);
}

.site-footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.site-footer__social-link:hover {
    border-color: var(--color-gold);
    background: var(--color-gold);
}

.site-footer__social-link svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
}

.site-footer__column h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: var(--space-lg);
}

.site-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.site-footer__links a {
    font-size: var(--text-sm);
    color: var(--text-light);
    transition: color var(--transition-base);
}

.site-footer__links a:hover {
    color: var(--color-gold-light);
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.site-footer__contact-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-gold);
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.site-footer__contact-item a {
    color: var(--text-light);
    transition: color var(--transition-base);
}

.site-footer__contact-item a:hover {
    color: var(--color-gold-light);
}

.site-footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer__copyright {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.site-footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.site-footer__legal a {
    font-size: var(--text-sm);
    color: var(--text-light);
    transition: color var(--transition-base);
}

.site-footer__legal a:hover {
    color: var(--color-gold-light);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__brand {
        grid-column: span 1;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ========================================
   SECTION LABEL
   ======================================== */

.section-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.section-label--light {
    color: var(--color-gold-light);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-md) var(--space-xl);
    transition: var(--transition-base);
}

.btn--outline {
    border: 1px solid var(--color-charcoal);
    color: var(--color-charcoal);
}

.btn--outline:hover {
    background: var(--color-charcoal);
    color: var(--text-inverse);
}

.btn--primary {
    background: var(--color-charcoal);
    color: var(--text-inverse);
}

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

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox__image {
    opacity: 1;
    transform: scale(1);
}

.lightbox__caption {
    margin-top: var(--space-md);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2001;
}

.lightbox__close:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.lightbox__prev,
.lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2001;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

@media (max-width: 768px) {
    .lightbox__prev,
    .lightbox__next,
    .lightbox__close {
        width: 44px;
        height: 44px;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }

    .lightbox__close {
        top: 10px;
        right: 10px;
    }
}
