/* CSS Reset and Variables */
:root {
    /* Colors - Warm coffee shop theme */
    --primary-color: #6b4423;
    --secondary-color: #d4a574;
    --accent-color: #ff6b6b;
    --dark-color: #1a1a1a;
    --light-color: #f8f8f8;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 16px 32px rgba(0,0,0,0.25);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section */
.section {
    padding: var(--spacing-xxl) 0;
    animation: fadeInUp 0.8s ease;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section__title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.section__subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.navbar__logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.navbar__link {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar__link:hover {
    color: var(--primary-color);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.navbar__link:hover::after {
    width: 100%;
}

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

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
    overflow: hidden;
}

.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero__slide.active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 68, 35, 0.8) 0%, rgba(212, 165, 116, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__content {
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero__title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero__badges {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge--rating {
    background: var(--success-color);
}

.badge--price {
    background: var(--warning-color);
}

.badge--status {
    background: var(--accent-color);
}

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

.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.btn--primary:hover {
    background: #5a3a1f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.hero__prev,
.hero__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.hero__prev {
    left: 20px;
}

.hero__next {
    right: 20px;
}

.hero__prev:hover,
.hero__next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* About Section */
.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature__title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature__text {
    color: var(--text-light);
}

/* Amenities Section */
.amenities {
    background: white;
}

.amenities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.amenity-category {
    padding: var(--spacing-lg);
    background: var(--light-color);
    border-radius: 10px;
}

.amenity-category__title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.amenity-list {
    list-style: none;
}

.amenity-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.amenity-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Gallery Section */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

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

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    padding: 0 20px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

/* Reviews Section */
.reviews {
    background: var(--light-color);
}

.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reviews__rating {
    text-align: center;
}

.reviews__score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.reviews__stars {
    margin: var(--spacing-sm) 0;
}

.star {
    color: #ddd;
    font-size: 1.5rem;
}

.star.filled {
    color: var(--secondary-color);
}

.star.half {
    background: linear-gradient(90deg, var(--secondary-color) 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews__count {
    color: var(--text-light);
}

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.rating-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: var(--spacing-sm);
}

.bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--secondary-color);
    transition: width var(--transition-normal);
}

.reviews__carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.reviews__track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform var(--transition-normal);
}

.review-card {
    min-width: 350px;
    background: white;
    padding: var(--spacing-xl);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.review-card__rating {
    display: flex;
}

.review-card__date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-card__text {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.review-card__details {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.detail {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--light-color);
    border-radius: 15px;
}

.reviews__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.reviews__nav--prev {
    left: 0;
}

.reviews__nav--next {
    right: 0;
}

.reviews__nav:hover {
    background: var(--dark-color);
    transform: translateY(-50%) scale(1.1);
}

/* Hours Section */
.hours__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    max-width: 900px;
    margin: 0 auto;
}

.hours__list {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.hours__item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.hours__item:last-child {
    border-bottom: none;
}

.hours__item--weekend {
    color: var(--primary-color);
}

.hours__day {
    font-weight: 600;
}

.hours__time {
    color: var(--text-light);
}

.hours__status {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.status-badge--open {
    background: var(--success-color);
    color: white;
}

.status-badge--closed {
    background: var(--error-color);
    color: white;
}

.status-text {
    color: var(--text-light);
}

.hours__chart {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.hours__chart h3 {
    margin-bottom: var(--spacing-md);
}

.time-bars {
    display: flex;
    align-items: flex-end;
    height: 150px;
    gap: 2px;
}

.time-bar {
    flex: 1;
    background: var(--secondary-color);
    transition: all var(--transition-fast);
    position: relative;
}

.time-bar:hover {
    background: var(--primary-color);
}

.time-bar.current {
    background: var(--accent-color);
}

.popular-times__note {
    margin-top: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}

.contact__info {
    display: grid;
    gap: var(--spacing-xl);
}

.contact__item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.contact__label {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact__value {
    color: var(--text-color);
    line-height: 1.6;
}

.contact__link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 500;
}

.contact__link:hover {
    text-decoration: underline;
}

.btn--delivery {
    background: var(--accent-color);
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.btn--delivery:hover {
    background: #ff5555;
    transform: translateY(-2px);
}

.related-places {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.related-place {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.related-place:hover {
    background: var(--primary-color);
    color: white;
}

.contact__map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact__map iframe {
    border-radius: 10px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: var(--spacing-xxl) 0;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer__badges .badge {
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer h4 {
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    padding: var(--spacing-xs) 0;
    opacity: 0.8;
}

.footer ul a:hover {
    color: var(--secondary-color);
}

.footer__bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--dark-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hours__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .reviews__summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-md);
        transition: left var(--transition-normal);
    }

    .navbar__menu.active {
        left: 0;
    }

    .navbar__toggle {
        display: flex;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .review-card {
        min-width: 100%;
    }

    .reviews__carousel {
        padding: 0;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .hero__badges {
        flex-direction: column;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .amenities__grid {
        grid-template-columns: 1fr;
    }
}