/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Cafe/Coffee Shop Palette */
    --primary-color: #a8dadc;
    --primary-dark: #457b9d;
    --primary-light: #f1faee;
    --secondary-color: #e63946;
    --accent-color: #f4a261;

    /* Neutral Colors */
    --text-dark: #1d3557;
    --text-light: #6c757d;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #dee2e6;

    /* Typography */
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

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

    /* Container */
    --container-width: 1140px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ===================================
   LAYOUT COMPONENTS
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.navbar__brand {
    flex-shrink: 0;
}

.navbar__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.navbar__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar__menu {
    display: flex;
    gap: var(--spacing-md);
}

.navbar__link {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(29, 53, 87, 0.5), rgba(29, 53, 87, 0.7));
}

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

.hero__title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease-out;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero__rating-text {
    font-size: 1.125rem;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

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

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--secondary:hover {
    background: var(--white);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* ===================================
   STARS RATING
   =================================== */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #ffc107;
    font-size: 1.25rem;
}

.stars--large {
    font-size: 2rem;
}

.star {
    display: inline-block;
}

.star.half {
    position: relative;
    color: #e0e0e0;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #ffc107;
    width: 50%;
    overflow: hidden;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--off-white);
}

.about__content {
    max-width: 900px;
    margin: 0 auto;
}

.about__description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.about__highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.highlight__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.highlight__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.highlight__item {
    color: var(--text-light);
    padding-left: var(--spacing-sm);
    position: relative;
}

.highlight__item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ===================================
   SPECIALTIES SECTION
   =================================== */
.specialties {
    padding: var(--spacing-xl) 0;
}

.specialties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.specialty-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.specialty-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.specialty-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.specialty-card__description {
    color: var(--text-light);
    line-height: 1.6;
}

.specialty-card__badge {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===================================
   HOURS SECTION
   =================================== */
.hours {
    padding: var(--spacing-xl) 0;
    background: var(--off-white);
}

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

.hours__subtitle {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

.hours__schedule {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hours__day {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.hours__day--weekend {
    background: var(--primary-light);
    margin: 0 calc(-1 * var(--spacing-md));
    padding: var(--spacing-sm) var(--spacing-md);
}

.hours__day-name {
    font-weight: 600;
    color: var(--text-dark);
}

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

.hours__note {
    margin-top: var(--spacing-md);
    text-align: center;
    font-style: italic;
    color: var(--text-light);
}

.hours__status {
    color: var(--accent-color);
    font-weight: 600;
}

.hours__busytimes {
    margin-top: var(--spacing-lg);
}

.busytimes__chart {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery {
    padding: var(--spacing-xl) 0;
}

.gallery__filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.gallery__filter {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--light-gray);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.gallery__filter:hover,
.gallery__filter--active {
    background: var(--primary-color);
    color: var(--text-dark);
}

.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: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--light-gray);
}

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

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

.gallery__item.hidden {
    display: none;
}

/* 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,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 2rem;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

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

/* ===================================
   REVIEWS SECTION
   =================================== */
.reviews {
    padding: var(--spacing-xl) 0;
    background: var(--off-white);
}

.reviews__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.reviews__summary-rating {
    text-align: center;
}

.reviews__summary-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.reviews__summary-text {
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

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

.rating-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.rating-bar__label {
    min-width: 30px;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-bar__bar {
    flex: 1;
    height: 8px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: #ffc107;
    transition: width 1s ease-out;
}

.rating-bar__count {
    min-width: 40px;
    text-align: right;
    color: var(--text-light);
    font-size: 0.875rem;
}

.reviews__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.review-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.review-tag__count {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.reviews__list {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.review-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

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

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

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

.review-card__details {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--light-gray);
}

.review-card__ratings {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xs);
}

.detail-rating {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-card__context {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.reviews__load-more {
    display: block;
    margin: 0 auto;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact__info-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact__info-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

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

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

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

.contact__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.footer__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__links li {
    color: rgba(255, 255, 255, 0.8);
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

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

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    display: flex;
}

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

/* ===================================
   UTILITIES
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   MEDIA QUERIES
   =================================== */

/* Tablet */
@media (max-width: 1023px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

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

/* Mobile */
@media (max-width: 767px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .navbar__menu.active {
        max-height: 500px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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

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

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

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

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

    .lightbox__prev,
    .lightbox__next {
        padding: var(--spacing-xs);
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    html {
        font-size: 14px;
    }

    .hero {
        min-height: 500px;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Wide Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}
