/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    /* Colors - Bakery/Patisserie Theme */
    --primary-color: #d4a574;
    --primary-dark: #b8895d;
    --secondary-color: #fff4e6;
    --accent-color: #8b6f47;
    --text-dark: #2c2416;
    --text-light: #6b5d4f;
    --bg-light: #fdfbf8;
    --bg-white: #ffffff;
    --border-color: #e8dcc8;
    --shadow-light: rgba(180, 150, 100, 0.1);
    --shadow-medium: rgba(180, 150, 100, 0.15);
    --shadow-dark: rgba(180, 150, 100, 0.25);
    --overlay-dark: rgba(44, 36, 22, 0.6);

    /* Typography */
    --font-primary: 'Playfair Display', 'Georgia', serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 1.5rem;
    --container-max-width: 1140px;

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

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Z-index layers */
    --z-fixed: 100;
    --z-modal: 1000;
}

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

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

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

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

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

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

ul {
    list-style: none;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section--dark {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.section--light {
    background-color: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    color: inherit;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 1rem;
}

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

.section--dark .section-divider {
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.section--dark .section-subtitle {
    color: var(--secondary-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

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

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

/* ===========================
   NAVIGATION
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.nav.nav--scrolled {
    background-color: var(--bg-white);
    box-shadow: 0 2px 12px var(--shadow-light);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem;
}

.nav__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    transition: color var(--transition-normal);
}

.nav.nav--scrolled .nav__logo {
    color: var(--text-dark);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--bg-white);
    transition: all var(--transition-normal);
}

.nav.nav--scrolled .nav__toggle span {
    background-color: var(--text-dark);
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--bg-white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav.nav--scrolled .nav__link {
    color: var(--text-dark);
}

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

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

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

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--overlay-dark), rgba(44, 36, 22, 0.4));
}

.hero__content {
    text-align: center;
    color: var(--bg-white);
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__rating {
    margin-bottom: 2rem;
}

.rating-stars {
    display: inline-flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

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

.star.filled {
    color: #ffd700;
}

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

.rating-text {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll a {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--bg-white);
    border-radius: 20px;
    position: relative;
}

.hero__scroll span {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background-color: var(--bg-white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; top: 10px; }
    50% { opacity: 1; }
    100% { opacity: 0; top: 25px; }
}

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

/* ===========================
   ABOUT SECTION
   =========================== */
.about__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about__text {
    animation: fadeIn 1s ease;
}

.about__description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.about__info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-normal);
}

.info-card:hover {
    box-shadow: 0 8px 24px var(--shadow-light);
}

.info-card__title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.info-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-card__list li {
    padding-left: 1.5rem;
    position: relative;
}

.info-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===========================
   SPECIALTIES SECTION
   =========================== */
.specialties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.specialty-card {
    background-color: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-dark);
    border-color: var(--primary-color);
}

.specialty-card__icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.specialty-card__title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.specialty-card__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.specialty-card__highlight {
    margin-top: auto;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-dark);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.gallery__item.hidden {
    display: none;
}

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

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

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__zoom {
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.gallery__zoom:hover {
    transform: scale(1.1);
}

.gallery__zoom svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

/* ===========================
   REVIEWS SECTION
   =========================== */
.reviews__summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
}

.reviews__score {
    text-align: center;
}

.score-number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.score-text {
    color: var(--text-light);
    font-size: 1rem;
}

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.distribution-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 1rem;
}

.distribution-label {
    font-weight: 600;
    color: var(--text-dark);
}

.distribution-progress {
    height: 8px;
    background-color: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.distribution-count {
    text-align: right;
    color: var(--text-light);
}

.reviews__tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.review-tag {
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.875rem;
}

.reviews__carousel {
    position: relative;
    overflow: hidden;
}

.reviews__slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

.reviews__slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 350px;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-normal);
}

.review-card:hover {
    box-shadow: 0 8px 24px var(--shadow-light);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-card__rating {
    display: flex;
    gap: 0.25rem;
}

.review-card__rating .star {
    font-size: 1rem;
}

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

.review-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.review-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

.review-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.review-guide {
    color: var(--primary-color);
    font-weight: 600;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.carousel-btn:hover svg {
    color: var(--bg-white);
}

.carousel-btn--prev {
    left: -25px;
}

.carousel-btn--next {
    right: -25px;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__info {
    display: grid;
    gap: 2rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.contact-card:hover {
    box-shadow: 0 8px 24px var(--shadow-light);
    transform: translateY(-4px);
}

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

.contact-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-white);
}

.contact-card__content {
    flex: 1;
}

.contact-card__title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.contact-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-card__link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    transition: color var(--transition-fast);
}

.contact-card__link:hover {
    color: var(--primary-dark);
}

.contact-card--hours {
    flex-direction: column;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
}

.hours-day {
    font-weight: 600;
    color: var(--text-dark);
}

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

.hours-item--closed .hours-time {
    color: #d32f2f;
    font-weight: 600;
}

.hours-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.contact__map {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-light);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

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

.footer__title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer__description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer__rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__subtitle {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__list a {
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    color: var(--secondary-color);
}

.footer__payment {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--secondary-color);
}

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

.lightbox.active {
    display: flex;
}

.lightbox__content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

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

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
    width: 24px;
    height: 24px;
    color: var(--bg-white);
}

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

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

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

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll-triggered animations are handled by JavaScript */

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

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    .about__content {
        grid-template-columns: 1.5fr 1fr;
    }

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

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero__buttons {
        gap: 1.5rem;
    }

    .specialties__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 4rem 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-white);
        padding: 5rem 2rem 2rem;
        transition: right var(--transition-normal);
        box-shadow: -4px 0 12px var(--shadow-light);
    }

    .nav__menu.nav__menu--active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav__link {
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .carousel-btn--prev {
        left: 10px;
    }

    .carousel-btn--next {
        right: 10px;
    }

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

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}