/* ===== CSS Variables ===== */
:root {
    --primary-color: #d4463d;
    --primary-dark: #b83830;
    --secondary-color: #ffa726;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #2c2c2c;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --max-width: 1200px;
    --border-radius: 12px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-x: hidden;
}

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

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

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

/* ===== Base Styles ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    font-weight: 300;
}

.section--dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.navbar__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

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

.navbar__link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

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

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

.navbar__link--cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: 24px;
    transition: var(--transition-fast);
}

.navbar__link--cta::after {
    display: none;
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(212, 70, 61, 0.4) 100%);
}

.hero__content {
    position: relative;
    text-align: center;
    padding: 100px 20px 60px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

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

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

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

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

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

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    display: inline-block;
}

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

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

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

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

.hero__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.hero__info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.icon {
    width: 20px;
    height: 20px;
    fill: var(--secondary-color);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
}

/* ===== About Section ===== */
.about__text {
    max-width: 800px;
    margin: 0 auto;
}

.about__text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-gray);
}

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

.feature-card {
    text-align: center;
    padding: 32px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

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

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.feature-card__text {
    color: var(--text-gray);
}

/* ===== Specialties Section ===== */
.specialties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.specialty-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.specialty-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.specialty-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.specialty-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

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

/* ===== Services Section ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.service-item {
    text-align: center;
    padding: 32px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

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

.service-item__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.service-item__icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.service-item__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-item__text {
    color: var(--text-gray);
}

/* ===== Gallery Section ===== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

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

.gallery__item:hover {
    transform: scale(1.05);
}

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

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

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: 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: 90vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 2rem;
    transition: var(--transition-fast);
    border-radius: 8px;
}

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

.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__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ===== Reviews Section ===== */
.reviews__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
    padding: 32px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

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

.reviews__summary-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 16px;
}

.reviews__summary-count {
    color: var(--text-gray);
    margin-top: 8px;
}

.reviews__summary-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.rating-bar__track {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
}

.rating-bar__count {
    min-width: 30px;
    text-align: right;
    color: var(--text-gray);
}

.reviews__slider {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.reviews__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: calc(33.333% - 16px);
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

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

.review-card__rating {
    display: flex;
    gap: 4px;
}

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

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

.review-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.reviews__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--text-light);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    z-index: 10;
}

.reviews__arrow:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.reviews__arrow--prev {
    left: 0;
}

.reviews__arrow--next {
    right: 0;
}

/* ===== Hours Section ===== */
.hours__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.hours__item {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.hours__day {
    font-weight: 600;
}

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

.hours__note {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* ===== Contact Section ===== */
.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact__item {
    display: flex;
    gap: 20px;
}

.contact__item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.contact__item-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.contact__item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

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

.contact__item-text a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact__item-text a:hover {
    text-decoration: underline;
}

.contact__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.contact__feature {
    color: var(--text-gray);
    font-size: 0.875rem;
}

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

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 48px 0 24px;
}

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

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-light);
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer__text a {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer__text a:hover {
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    padding-top: 24px;
    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-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 999;
}

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

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

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
}

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

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

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

/* ===== Media Queries ===== */
@media (max-width: 1024px) {
    .review-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--text-light);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
    }

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

    .navbar__link {
        padding: 12px 20px;
        width: 100%;
    }

    .navbar__link--cta {
        margin: 8px 20px;
        text-align: center;
        border-radius: 8px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

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

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

    .reviews__slider {
        padding: 0;
    }

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

    .reviews__arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

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

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

    .contact__map {
        min-height: 300px;
    }

    .lightbox__prev,
    .lightbox__next {
        padding: 12px;
        font-size: 1.5rem;
    }

    .lightbox__close {
        top: 10px;
        right: 10px;
        padding: 12px;
    }
}

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

    .hero__content {
        padding: 80px 20px 40px;
    }

    .hero__info {
        align-items: flex-start;
    }

    .feature-card,
    .specialty-card,
    .service-item {
        padding: 24px;
    }

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

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

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .hero__scroll,
    .scroll-top,
    .reviews__arrow,
    .lightbox {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }
}