/* ============================================
   SKLEP MEBLOWY KOMETA - Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors - derived from gold logo and warm wood tones */
    --color-gold: #C9A961;
    --color-gold-light: #E5D4A1;
    --color-gold-dark: #9A7D3A;
    --color-oak: #D4B896;
    --color-walnut: #6B4D3A;
    --color-cream: #FAF7F2;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-400: #9CA3AF;
    --color-gray-600: #4B5563;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-black: #0A0A0A;

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

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

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

/* 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: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-cream);
}

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: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    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(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
}

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

.hero__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-black);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero__title-accent {
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

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

.star {
    width: 24px;
    height: 24px;
    fill: var(--color-gold);
}

.star--half {
    fill: none;
}

.hero__rating-text {
    font-size: 1rem;
    color: var(--color-gray-200);
}

.hero__rating-count {
    color: var(--color-gray-400);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-black);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 97, 0.5);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity var(--transition-base);
    animation: bounce 2s infinite;
}

.hero__scroll svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.hero__scroll:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

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

.section-header__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-sm);
}

.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-gray-900);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-header__subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery__item:hover figcaption {
    transform: translateY(0);
}

.gallery__item--large {
    grid-column: 1 / -1;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-gray-50) 100%);
}

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

.review {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-100);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.review:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.review__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.review__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.review__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.review__author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

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

.review__stars svg {
    width: 16px;
    height: 16px;
    fill: var(--color-gold);
}

.review__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.review__date {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

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

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-base);
}

.contact__item:hover {
    background-color: var(--color-gray-50);
}

.contact__item--phone {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.contact__item--phone:hover {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.1));
}

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

.contact__icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-black);
}

.contact__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

.contact__text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    line-height: 1.4;
}

/* Hours Card */
.hours-card {
    background: linear-gradient(135deg, var(--color-walnut), #4A3728);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    color: var(--color-white);
    box-shadow: var(--shadow-xl);
}

.hours-card__title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.hours-card__title svg {
    width: 28px;
    height: 28px;
    fill: var(--color-gold);
}

.hours-card__table {
    width: 100%;
    border-collapse: collapse;
}

.hours-card__table td {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hours-card__table td:first-child {
    color: var(--color-gray-200);
}

.hours-card__table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-gold-light);
}

.hours-card__saturday td:last-child {
    color: var(--color-oak);
}

.hours-card__sunday td:last-child {
    color: var(--color-gray-400);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-200);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-xl);
}

.footer__brand {
    text-align: center;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    color: var(--color-gray-400);
    margin-bottom: var(--space-sm);
}

.footer__award {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-full);
}

.footer__contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gold);
    transition: color var(--transition-base);
}

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

.footer__address {
    font-style: normal;
    color: var(--color-gray-400);
}

.footer__bottom {
    text-align: center;
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

/* ============================================
   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: opacity var(--transition-base), visibility var(--transition-base);
}

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

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    font-size: 2rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-base);
    z-index: 10;
}

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

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-base);
    z-index: 10;
}

.lightbox__prev {
    left: var(--space-lg);
}

.lightbox__next {
    right: var(--space-lg);
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox__prev svg,
.lightbox__next svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__caption {
    color: var(--color-gray-200);
    margin-top: var(--space-md);
    font-size: 1rem;
}

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

/* Tablet - 768px */
@media (min-width: 768px) {
    .hero__cta {
        flex-direction: row;
        justify-content: center;
    }

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

    .gallery__item--large {
        grid-column: 1 / -1;
    }

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

    .reviews__grid .review:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }

    .contact__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer__brand,
    .footer__contact {
        text-align: left;
    }
}

/* Desktop - 1024px */
@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 2;
    }

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

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

    .contact__details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__item--phone {
        grid-column: 1 / -1;
    }
}

/* Large Desktop - 1280px */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* 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;
    }
}
