/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    /* Colors */
    --color-primary: #1E3A5F;
    --color-primary-dark: #152a45;
    --color-primary-light: #2d5280;
    --color-accent: #E63946;
    --color-accent-hover: #cc2f3b;
    --color-success: #4CAF50;
    --color-white: #FFFFFF;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

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

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===========================
   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-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ===========================
   Utilities
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-md);
}

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

/* ===========================
   Typography
   =========================== */
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.section__title--light {
    color: var(--color-white);
}

.section__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--color-gray-500);
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-inline: auto;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(230, 57, 70, 0.35);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(230, 57, 70, 0.45);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

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

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

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

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.7) 0%,
        rgba(30, 58, 95, 0.85) 50%,
        rgba(30, 58, 95, 0.95) 100%
    );
}

.hero__content {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-white);
    animation: fadeInUp 0.8s ease-out;
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--color-success);
    color: var(--color-success);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero__status {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.hero__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-2xl);
}

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

.star {
    color: #FBBF24;
    font-size: 1.25rem;
}

.stars--large .star {
    font-size: 1.75rem;
}

.rating-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 320px;
    margin-inline: auto;
}

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

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    opacity: 0.6;
    transition: opacity var(--transition-base);
    animation: bounce 2s infinite;
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll svg {
    width: 32px;
    height: 32px;
}

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

/* ===========================
   Services Ticker
   =========================== */
.ticker {
    background: var(--color-primary);
    padding: var(--space-md) 0;
    overflow: hidden;
}

.ticker__track {
    display: flex;
    gap: var(--space-2xl);
    animation: scroll 30s linear infinite;
    width: max-content;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.ticker__item {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-white);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.ticker__item::before {
    content: '•';
    margin-right: var(--space-xl);
    color: var(--color-accent);
}

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

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

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

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

@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
        gap: var(--space-lg);
    }

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

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: var(--color-gray-200);
}

.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 figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery__item:hover figcaption {
    transform: translateY(0);
}

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

.reviews__highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.reviews__score {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.reviews__meta {
    color: var(--color-white);
    opacity: 0.9;
}

.reviews__meta span {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.875rem;
}

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

@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 {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.review__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.review__info {
    flex: 1;
}

.review__author {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-gray-800);
    margin-bottom: var(--space-xs);
}

.review__text {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.review__date {
    font-size: 0.8125rem;
    color: var(--color-gray-400);
}

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

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

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

.contact__hours .section__title,
.contact__info .section__title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.hours__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.hours__pulse {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hours__table {
    width: 100%;
    border-collapse: collapse;
}

.hours__table tr {
    border-bottom: 1px solid var(--color-gray-100);
}

.hours__table td {
    padding: var(--space-md) 0;
}

.hours__table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-success);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact__icon {
    width: 48px;
    height: 48px;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.contact__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-bottom: var(--space-xs);
}

.contact__value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-gray-800);
    transition: color var(--transition-fast);
}

.contact__value:hover {
    color: var(--color-accent);
}

.contact__value--phone {
    font-size: 1.25rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-gray-700);
}

@media (min-width: 640px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.footer__tagline {
    color: var(--color-gray-400);
    margin-bottom: var(--space-xs);
}

.footer__since {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer__contact {
    text-align: left;
}

@media (min-width: 640px) {
    .footer__contact {
        text-align: right;
    }
}

.footer__phone {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
}

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

.footer__address {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.footer__bottom {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

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

.lightbox[hidden] {
    display: flex;
}

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

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

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

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

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

.lightbox__prev {
    left: var(--space-md);
}

.lightbox__next {
    right: var(--space-md);
}

.lightbox__prev svg,
.lightbox__next svg {
    width: 24px;
    height: 24px;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

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

.lightbox__caption {
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1rem;
    margin-top: var(--space-md);
    opacity: 0.8;
}

/* ===========================
   Accessibility
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
