/* ==========================================================================
   AUTO-FACH Paweł Prejs - Styles
   ========================================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - based on research (professional blue + terracotta accent) */
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-primary-dark: #0f2442;
    --color-accent: #c86b4a;
    --color-accent-light: #e07b58;
    --color-accent-dark: #a55838;

    --color-neutral-50: #f8fafc;
    --color-neutral-100: #f1f5f9;
    --color-neutral-200: #e2e8f0;
    --color-neutral-300: #cbd5e1;
    --color-neutral-400: #94a3b8;
    --color-neutral-500: #64748b;
    --color-neutral-600: #475569;
    --color-neutral-700: #334155;
    --color-neutral-800: #1e293b;
    --color-neutral-900: #0f172a;

    --color-white: #ffffff;
    --color-black: #000000;
    --color-star: #fbbf24;

    /* 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;

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

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

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

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

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

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

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-desc {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-neutral-600);
    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-size: 1rem;
    font-weight: 600;
    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-color: var(--color-accent);
    color: var(--color-white);
}

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

.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;
    padding: var(--space-xl);
    overflow: hidden;
}

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

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 36, 66, 0.75) 0%,
        rgba(15, 36, 66, 0.85) 50%,
        rgba(15, 36, 66, 0.95) 100%
    );
}

.hero__content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    max-width: 800px;
}

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

.hero__badge-icon {
    color: var(--color-star);
    font-size: 1.25rem;
}

.hero__badge-rating {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

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

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-accent-light);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero__services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    font-size: 0.9rem;
    opacity: 0.85;
}

.hero__dot {
    opacity: 0.5;
}

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

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

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

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

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

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

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

.gallery__item--large {
    aspect-ratio: 16/9;
}

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

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

.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

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

.gallery__caption svg {
    width: 20px;
    height: 20px;
}

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

.reviews__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    margin-top: var(--space-md);
}

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

.star {
    color: var(--color-star);
    font-size: 1.25rem;
}

.star--half {
    opacity: 0.5;
}

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

.reviews__count {
    color: var(--color-neutral-500);
    font-size: 0.875rem;
}

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

.review-card {
    background: var(--color-neutral-50);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--color-neutral-200);
    transition: all var(--transition-base);
}

.review-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

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

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.review-card__meta {
    flex: 1;
    min-width: 120px;
}

.review-card__author {
    display: block;
    font-weight: 600;
    color: var(--color-neutral-800);
}

.review-card__date {
    font-size: 0.75rem;
    color: var(--color-neutral-500);
}

.review-card__stars {
    color: var(--color-star);
    font-size: 0.875rem;
    letter-spacing: 2px;
}

.review-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-neutral-700);
    font-style: normal;
}

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

.contact .section-title {
    color: var(--color-white);
}

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

/* Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.hours-table td {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-table td:first-child {
    font-weight: 500;
}

.hours-table td:last-child {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 600;
}

.hours-table__weekend td {
    color: var(--color-accent-light);
}

.hours-table__closed td:last-child {
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Details */
.contact__item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact__text {
    display: flex;
    flex-direction: column;
}

.contact__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
}

.contact__value {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.contact__value--phone {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

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

.contact .btn--primary {
    margin-top: var(--space-md);
}

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

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

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

.footer__subtitle {
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.footer__address {
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

.footer__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    transition: color var(--transition-base);
}

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

.footer__phone svg {
    width: 20px;
    height: 20px;
}

.footer__bottom {
    text-align: center;
}

.footer__copyright {
    font-size: 0.8125rem;
}

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

.lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

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

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

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

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

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

.lightbox__nav svg {
    width: 24px;
    height: 24px;
}

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

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

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

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

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero__cta {
        flex-direction: row;
        justify-content: center;
    }

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

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

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

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-xl);
    }

    .section-header {
        margin-bottom: var(--space-3xl);
    }

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

    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
    }

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

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .hero__scroll {
        display: flex;
    }

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

    .reviews__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .review-card:nth-child(1),
    .review-card:nth-child(2) {
        grid-column: span 2;
    }
}

/* Reduced motion */
@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;
    }
}
