/* 1. CSS Variables */
:root {
    --primary-color: #d4a574;
    --secondary-color: #2c1810;
    --accent-color: #ff6b35;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --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 10px 25px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
}

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

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

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

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

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

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

/* 3. Base Styles */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

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

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

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

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* 4. Layout Components */

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

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
}

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

.navbar__toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

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

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

.navbar__link--cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

.navbar__link--cta:hover {
    background-color: #c19660;
    transform: translateY(-2px);
}

/* 5. Page Sections */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

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

.hero__image-main {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.8), rgba(212, 165, 116, 0.6));
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero__stars {
    display: flex;
    gap: 2px;
    font-size: 1.25rem;
}

.star-filled {
    color: #ffc107;
}

.star-half {
    position: relative;
    color: #ddd;
}

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

.star-empty {
    color: #ddd;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero__scroll-arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid var(--text-light);
    border-right: 3px solid var(--text-light);
    transform: rotate(45deg);
    opacity: 0.7;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.about__subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    transition: var(--transition);
}

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

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card__title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.feature-card__text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Specialties Section */
.specialties {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.specialties__subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.specialty-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.specialty-card__title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.specialty-card__description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.specialty-card__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.gallery__item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

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

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

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

.gallery__lightbox.active {
    display: flex;
}

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

.gallery__close,
.gallery__prev,
.gallery__next {
    position: absolute;
    color: var(--text-light);
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.gallery__close:hover,
.gallery__prev:hover,
.gallery__next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

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

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

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

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin: 3rem 0;
}

.reviews__score {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
}

.reviews__score-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}

.reviews__stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    font-size: 1.5rem;
    margin: 1rem 0;
}

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

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
}

.reviews__bar {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.reviews__bar-label {
    text-align: right;
    color: var(--text-secondary);
}

.reviews__bar-track {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.reviews__bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 1s ease;
}

.reviews__bar-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.reviews__carousel {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.reviews__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 350px;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.review-card__rating {
    display: flex;
    gap: 2px;
    color: #ffc107;
}

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

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

.review-card__details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-card__detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 4px 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
}

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

.reviews__nav:hover {
    background-color: #c19660;
}

.reviews__nav--prev {
    left: 20px;
}

.reviews__nav--next {
    right: 20px;
}

/* Hours Section */
.hours {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.hours__content {
    max-width: 600px;
    margin: 0 auto;
}

.hours__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.hours__day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hours__day:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.hours__day.hours__day--today {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.hours__day--closed .hours__day-time {
    color: #dc3545;
}

.hours__day-name {
    font-weight: 600;
}

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

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

.hours__status {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.hours__status.open {
    background-color: #28a745;
    color: var(--text-light);
}

.hours__status.closed {
    background-color: #dc3545;
    color: var(--text-light);
}

/* Order Section */
.order {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.order__subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.order__card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.order__card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.order__card-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.order__card-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item-title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

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

.contact__services {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact__service {
    color: var(--text-secondary);
}

.contact__map {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact__map iframe {
    border-radius: var(--border-radius);
}

.btn--map {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer__column-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* 6. UI Components */

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

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

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

/* 7. Utilities */
.hidden {
    display: none;
}

.visible {
    display: block;
}

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

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 9. Media Queries */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

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

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

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .navbar__menu.active {
        left: 0;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

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

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

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

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

    .review-card {
        min-width: 280px;
    }

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

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

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

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

    .btn {
        width: 100%;
    }

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

    .reviews__nav {
        display: none;
    }

    .reviews__track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .review-card {
        scroll-snap-align: start;
    }
}