/* ============================================
   Skin Day Spa - CSS Styles
   ============================================ */

/* Custom Properties */
:root {
    /* Brand Colors */
    --color-primary: #1B4B4B;
    --color-primary-dark: #153a3a;
    --color-primary-light: #2a6b6b;
    --color-gold: #C9A961;
    --color-gold-light: #dfc78a;
    --color-blush: #E8D5D0;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-cream: #FAF8F5;
    --color-beige: #F5F0EB;
    --color-grey-light: #E5E0DB;
    --color-grey: #8A8580;
    --color-grey-dark: #4A4540;
    --color-black: #1A1815;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

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

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.25rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 24, 21, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 24, 21, 0.1);
    --shadow-lg: 0 8px 40px rgba(26, 24, 21, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-grey-dark);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 75, 75, 0.75) 0%,
        rgba(27, 75, 75, 0.85) 50%,
        rgba(21, 58, 58, 0.95) 100%
    );
}

.hero__content {
    position: relative;
    text-align: center;
    padding: var(--space-lg);
    color: var(--color-white);
    max-width: 600px;
}

.hero__logo {
    margin-bottom: var(--space-md);
}

.hero__monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-gold);
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.hero__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 var(--space-sm);
}

.hero__tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 var(--space-lg);
}

.hero__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--color-gold);
    font-size: 1.1rem;
}

.rating-text {
    font-weight: 600;
    color: var(--color-white);
}

.review-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-line {
    width: 2px;
    height: 10px;
    background: var(--color-gold);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition-base);
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.btn--primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.35);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--full {
    width: 100%;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header--left {
    text-align: left;
}

.section-header--light {
    color: var(--color-white);
}

.section-header__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
}

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

.section-header__title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-header--light .section-header__title {
    color: var(--color-white);
}

.section-header__desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--color-grey);
    max-width: 500px;
    margin: 0 auto;
}

.section-header--light .section-header__desc {
    color: rgba(255, 255, 255, 0.7);
}

.section-header--left .section-header__desc {
    margin: 0;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.gallery__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery__item--featured {
    aspect-ratio: 16/10;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-md) var(--space-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.gallery__item:hover .gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews {
    padding: var(--space-3xl) 0;
    background: var(--color-primary);
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.review-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.review-card__meta {
    flex: 1;
}

.review-card__author {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    margin: 0 0 4px;
}

.review-card__stars {
    color: var(--color-gold);
    font-size: 0.875rem;
    letter-spacing: 2px;
}

.review-card__text {
    margin: 0;
}

.review-card__text p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-beige);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
}

.hours-table tr {
    border-bottom: 1px solid var(--color-grey-light);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: var(--space-sm) 0;
}

.hours-table__day {
    font-weight: 500;
    color: var(--color-grey-dark);
}

.hours-table__time {
    text-align: right;
    color: var(--color-primary);
    font-weight: 500;
}

.hours-table__time--closed {
    color: var(--color-grey);
}

.contact__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.amenity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-white);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--color-grey-dark);
    box-shadow: var(--shadow-sm);
}

.amenity svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.contact__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.contact__item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__icon svg {
    width: 22px;
    height: 22px;
}

.contact__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-grey);
}

.contact__value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.4;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-primary-dark);
    padding: var(--space-xl) 0;
    text-align: center;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-gold);
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-white);
}

.footer__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer__link {
    color: var(--color-gold);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-gold-light);
}

.footer__divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer__copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__close svg {
    width: 24px;
    height: 24px;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav svg {
    width: 28px;
    height: 28px;
}

.lightbox__nav--prev {
    left: 1rem;
}

.lightbox__nav--next {
    right: 1rem;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet (768px) */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    .hero__cta {
        flex-direction: row;
        justify-content: center;
    }

    .hero__monogram {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .gallery__item--featured {
        grid-column: span 2;
    }

    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .reviews__grid .review-card:last-child {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
    :root {
        --container-padding: 2.5rem;
    }

    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item--featured {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: unset;
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews__grid .review-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .lightbox__nav--prev {
        left: 2rem;
    }

    .lightbox__nav--next {
        right: 2rem;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .hero__content {
        max-width: 700px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
