/*
Theme Name: Mstudio Detailing
Theme URI: https://mstudio.pl
Author: Mstudio
Author URI: https://mstudio.pl
Description: Profesjonalny szablon WordPress dla studia detailingowego samochodów Mstudio. Elegancka strona wizytówka prezentująca usługi auto detailingu.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mstudio
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready

Mstudio Detailing - Profesjonalny detailing samochodowy
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-color: #000000;
    --secondary-color: #111111;
    --accent-color: #c9a227;
    --gold-color: #c9a227;
    --gold-light: #e0c068;
    --gold-dark: #a88a1f;
    --text-color: #222222;
    --text-light: #555555;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f8f8;
    --gray: #e5e5e5;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.25);
}

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

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 25px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Efekt blasku lakieru na przyciskach */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.btn:hover::after {
    animation: buttonShine 0.8s ease-in-out;
}

@keyframes buttonShine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

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

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

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

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

.btn-dark {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

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

.btn-gold:hover {
    background: #c9a227;
    transform: translateY(-3px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    overflow: hidden;
}

/* Efekt błysku lakieru na całym headerze */
.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 100;
    animation: headerShine 10s ease-in-out infinite;
}

@keyframes headerShine {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 200%;
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    100% {
        left: 200%;
        opacity: 0;
    }
}

.site-header.scrolled {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    position: relative;
    display: flex;
    align-items: center;
}

.site-logo .logo-svg {
    height: 45px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.3));
    transition: var(--transition);
}

.site-logo:hover .logo-svg {
    filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.6));
}

/* Logo glow/shine effect */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


.main-navigation ul {
    display: flex;
    gap: 40px;
}

.main-navigation a {
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    position: relative;
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation a.active {
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.8), 0 0 30px rgba(201, 162, 39, 0.5);
    color: var(--gold-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.6);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.35;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
    opacity: 0.7;
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 10px;
    z-index: -1;
}

.about-content h3 {
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.about-feature span {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-card .price {
    display: inline-block;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-color);
}

.service-card .price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
    background: var(--primary-color);
    padding: 100px 0;
}

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

.gallery .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

/* Bento Grid Gallery */
.gallery-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

/* Size variants */
.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--medium {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item--small {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    will-change: transform;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay svg {
    width: 30px;
    height: 30px;
    fill: var(--gold-color);
    flex-shrink: 0;
}

.gallery-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* Legacy grid support */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 15px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.testimonial-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--gold-color);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.contact-item-text strong {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.contact-item-text span,
.contact-item-text a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .site-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-company-info {
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-company-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-company-info p:last-child {
    margin-bottom: 0;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-color);
    padding-left: 5px;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-hours li span:last-child {
    color: var(--white);
}

/* Footer Contact */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    fill: var(--gold-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--gold-color);
}

.footer-contact .footer-nip {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 30px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--gold-color);
}

.footer-credits {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
}

.footer-credits a {
    transition: var(--transition);
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

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

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

    .gallery-bento {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
        grid-auto-flow: dense;
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item--medium {
        grid-column: span 1;
        grid-row: span 1;
    }

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

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

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.95) 100%);
        padding: 100px 40px 40px;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
    }

    .main-navigation.active {
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 25px;
        text-align: right;
    }

    .main-navigation a {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        grid-auto-flow: dense;
        gap: 10px;
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 220px;
    }

    .gallery-item--medium,
    .gallery-item--small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 160px;
    }

    .gallery-overlay {
        padding: 15px;
    }

    .gallery-item-title {
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-contact .footer-nip {
        padding-left: 0;
    }

    .footer-hours li {
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .gallery-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        grid-auto-flow: dense;
        gap: 8px;
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 180px;
    }

    .gallery-item--medium,
    .gallery-item--small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 140px;
    }

    h2 {
        font-size: 1.8rem;
    }
}
