/* === CSS Custom Properties === */
:root {
    /* Colors - Georgian inspired palette */
    --color-primary: #8B2332;
    --color-primary-dark: #6a1a26;
    --color-primary-light: #a52d3f;
    --color-secondary: #D4A853;
    --color-secondary-light: #e4c07a;
    --color-accent: #F5E6D3;
    --color-cream: #FDF8F3;
    --color-dark: #1a1a1a;
    --color-text: #2d2d2d;
    --color-text-light: #666666;
    --color-white: #ffffff;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

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

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

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

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* === Typography === */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-xs);
    letter-spacing: 0.02em;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(139, 35, 50, 0.35);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 35, 50, 0.4);
}

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

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

.btn--full {
    width: 100%;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(139, 35, 50, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__rating {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.hero__stars {
    display: flex;
    gap: 2px;
}

.hero__stars .star {
    width: 16px;
    height: 16px;
    fill: var(--color-secondary);
}

.hero__stars .star--partial {
    fill: var(--color-secondary);
    opacity: 0.7;
}

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

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__title span {
    display: block;
    font-size: 0.6em;
    font-weight: 500;
    color: var(--color-secondary);
    margin-top: 0.25em;
}

.hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 480px) {
    .hero__cta {
        flex-direction: row;
        justify-content: center;
    }
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === Gallery Section === */
.gallery {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .gallery__item--featured {
        grid-row: span 2;
    }

    .gallery__item--wide {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item--wide {
        grid-column: span 2;
    }
}

.gallery__item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-accent);
}

.gallery__item--featured {
    aspect-ratio: 3/4;
}

@media (min-width: 768px) {
    .gallery__item--featured {
        aspect-ratio: auto;
    }
}

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

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

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.gallery__caption {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.gallery__item:hover .gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: background var(--transition-fast);
    z-index: 10;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: background var(--transition-fast);
    z-index: 10;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.lightbox__nav--prev {
    left: var(--space-sm);
}

.lightbox__nav--next {
    right: var(--space-sm);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* === Reviews Section === */
.reviews {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-cream) 100%);
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.review-card__avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.review-card__info {
    flex: 1;
}

.review-card__author {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.review-card__stars {
    display: flex;
    gap: 2px;
}

.review-card__stars svg {
    width: 14px;
    height: 14px;
    fill: var(--color-secondary);
}

.review-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text);
}

.review-card__text p {
    font-style: italic;
}

/* === Contact Section === */
.contact {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
}

.hours-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--color-dark);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--color-text-light);
}

.hours-table__closed td {
    color: var(--color-primary) !important;
}

.contact__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
}

.feature-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.contact__link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 1.125rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

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

.contact__link svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__link--phone {
    font-weight: 600;
    font-size: 1.25rem;
}

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

.footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer__contact {
        justify-content: flex-end;
    }
}

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

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

.footer__separator {
    color: rgba(255, 255, 255, 0.3);
}

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

.footer__bottom {
    padding-top: var(--space-md);
    text-align: center;
}

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

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}
