/* 1. CSS Variables */
:root {
    --color-primary: #d32f2f;
    --color-primary-dark: #b71c1c;
    --color-primary-light: #ef5350;
    --color-secondary: #ffc107;
    --color-secondary-dark: #f57c00;
    --color-text: #212121;
    --color-text-light: #757575;
    --color-background: #ffffff;
    --color-surface: #f5f5f5;
    --color-border: #e0e0e0;
    --color-success: #4caf50;
    --color-error: #f44336;

    --font-primary: 'Merriweather', serif;
    --font-secondary: 'Open Sans', sans-serif;

    --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 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul {
    list-style: none;
}

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

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

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

/* 4. Layout Components */

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

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

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-primary);
}

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

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

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

.navbar__link--cta {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

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

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
}

.navbar__toggle-bar {
    width: 24px;
    height: 3px;
    background: var(--color-text);
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
}

/* 5. Page Sections */

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

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0.95;
    z-index: 1;
}

.hero__background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 0;
}

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

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

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

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

.star--half {
    position: relative;
    color: rgba(255, 193, 7, 0.3);
}

.rating-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.rating-count {
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

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

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

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

.btn--block {
    width: 100%;
    justify-content: center;
}

.btn__icon {
    font-size: 1.25rem;
}

.hero__info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-badge__icon {
    font-size: 1.25rem;
}

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

.about__content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

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

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

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

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

.feature-item__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.about__hours {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.hours-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hours-list {
    margin-bottom: 1.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.hours-item--today {
    font-weight: 600;
    color: var(--color-primary);
}

.hours-day {
    font-weight: 500;
}

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

.hours-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-md);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--color-surface);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

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

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

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

.atmosphere {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.atmosphere__title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.atmosphere__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Popularity Section */
.popularity {
    padding: 5rem 0;
    background: white;
}

.popularity__chart {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chart-days {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.chart-day {
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.chart-day:hover {
    background: var(--color-primary-light);
    color: white;
}

.chart-day.active {
    background: var(--color-primary);
    color: white;
}

.chart-content {
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 1rem 0;
}

.chart-bar {
    flex: 1;
    background: var(--color-primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-fast);
    position: relative;
    min-height: 10px;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar__label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
}

.chart-bar__value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.chart-bar:hover .chart-bar__value {
    opacity: 1;
}

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

.reviews__summary {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reviews__overall {
    text-align: center;
}

.overall-rating {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.overall-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.overall-stars {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin: 1rem 0;
}

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

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

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

.rating-label {
    width: 40px;
    font-weight: 600;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

.rating-count {
    width: 20px;
    text-align: right;
    color: var(--color-text-light);
}

.reviews__cta {
    text-align: center;
}

/* Suggestions Section */
.suggestions {
    padding: 5rem 0;
    background: white;
}

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

.suggestion-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

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

.suggestion-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.suggestion-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
}

.suggestion-card__rating .rating-stars {
    color: var(--color-secondary);
}

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

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item__icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.contact-item__link {
    color: var(--color-primary);
    font-weight: 600;
    transition: color var(--transition-fast);
}

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

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-link {
    display: block;
    position: relative;
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-overlay__text {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
}

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

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

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

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

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

.footer__link:hover {
    color: white;
}

.footer__phone,
.footer__address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__phone a {
    color: white;
    transition: color var(--transition-fast);
}

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

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    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: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

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

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

/* 7. Utilities */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* 8. Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 9. Media Queries */

@media (max-width: 1024px) {
    .about__content {
        grid-template-columns: 1fr;
    }

    .about__hours {
        position: static;
    }

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

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

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

    .navbar__menu.active {
        left: 0;
    }

    .navbar__toggle {
        display: flex;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__info {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .footer__links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .chart-days {
        flex-wrap: wrap;
    }

    .chart-day {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

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

    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}