/* ===================================
   REYMONT CAFFE - CSS Styles
   Warm, Scandinavian-inspired design
   =================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Warm café palette */
    --color-cream: #F5F0E8;
    --color-cream-light: #FAF8F4;
    --color-charcoal: #2C2C2C;
    --color-charcoal-light: #3D3D3D;
    --color-brown: #8B6914;
    --color-brown-light: #A67B1A;
    --color-burgundy: #8B4557;
    --color-burgundy-light: #A65467;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray-100: #F7F7F7;
    --color-gray-200: #E8E8E8;
    --color-gray-300: #D4D4D4;
    --color-gray-500: #737373;
    --color-gray-600: #525252;

    /* Typography */
    --font-display: 'Playfair Display', 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 rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* 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: 16px;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-cream-light);
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: 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: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(26, 26, 26, 0.5) 50%,
        rgba(26, 26, 26, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-xl);
}

.hero__tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-cream);
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

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

.star {
    width: 20px;
    height: 20px;
    color: #FFD700;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.rating-text {
    font-size: 1.125rem;
    font-weight: 500;
}

.rating-count {
    opacity: 0.8;
    font-weight: 400;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

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

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

.btn--primary {
    background-color: var(--color-brown);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

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

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

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

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--color-white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

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

@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 HEADERS
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

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

.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--color-charcoal);
}

.section-header--light .section-header__tag {
    color: var(--color-cream);
    opacity: 0.9;
}

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

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

.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--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__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.7), 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);
}

/* ===================================
   REVIEWS SECTION
   =================================== */
.reviews {
    padding: var(--space-4xl) 0;
    background-color: var(--color-charcoal);
}

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

.review-card {
    background-color: var(--color-charcoal-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base);
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
}

.review-card__stars svg {
    width: 18px;
    height: 18px;
    color: #FFD700;
}

.review-card__text {
    margin-bottom: var(--space-lg);
}

.review-card__text p {
    color: var(--color-gray-200);
    font-size: 0.9375rem;
    line-height: 1.7;
    font-style: italic;
}

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

.review-card__name {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9375rem;
}

.review-card__date {
    color: var(--color-gray-500);
    font-size: 0.8125rem;
}

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

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

.contact__subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-lg);
}

/* Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

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

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

.hours-table td {
    padding: var(--space-md) 0;
    font-size: 0.9375rem;
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--color-charcoal);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--color-gray-600);
}

.hours-table tr.closed td:last-child {
    color: var(--color-burgundy);
    font-weight: 500;
}

/* Contact Info */
.contact__item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact__icon {
    width: 24px;
    height: 24px;
    color: var(--color-brown);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.contact__link {
    color: var(--color-charcoal);
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.contact__link:hover {
    color: var(--color-brown);
}

.contact__link--phone {
    font-size: 1.125rem;
    font-weight: 600;
}

.contact__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-cream-light);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.feature-tag svg {
    width: 14px;
    height: 14px;
    color: var(--color-brown);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--space-2xl) 0;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer__type {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.footer__link {
    font-size: 0.875rem;
    color: var(--color-gray-300);
    transition: color var(--transition-fast);
}

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

.footer__divider {
    color: var(--color-gray-600);
}

.footer__bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* ===================================
   LIGHTBOX
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: 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: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.lightbox__close:hover {
    opacity: 1;
}

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

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.lightbox__nav:hover {
    opacity: 1;
}

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

.lightbox__nav--prev {
    left: var(--space-md);
}

.lightbox__nav--next {
    right: var(--space-md);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
}

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

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

/* Tablet (768px+) */
@media (min-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .reviews__grid .review-card:last-child {
        grid-column: span 2;
    }

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

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .lightbox__nav--prev {
        left: var(--space-xl);
    }

    .lightbox__nav--next {
        right: var(--space-xl);
    }
}

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

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

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

    .reviews__grid .review-card:last-child {
        grid-column: span 1;
    }

    .lightbox__nav--prev {
        left: var(--space-2xl);
    }

    .lightbox__nav--next {
        right: var(--space-2xl);
    }
}

/* Large screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
}