/* ==========================================================
   MAX DIMENSIONES TEXAS — Styles
   Aesthetic: Bold green-branded, warm light background,
   offset blocks, layered depth. NOT generic.
   ========================================================== */

:root {
    /* Brand Colors */
    --green: #57910c; /* User specified green */
    --cyan: #00B4E6;
    --yellow: #FFD600;
    --dark: #1a1a1a;

    /* UI Surface */
    --bg: #F8F9FA; /* Clean, modern 'Studio Gray' */
    --bg-alt: #FFFFFF; /* Crisp white for contrasting sections */
    --text: #1a1a1a;
    --text-muted: #5a5a5a;
    --nav-bg: rgba(250, 247, 242, 0.92);

    /* Fonts */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 8rem);
    --container: 1200px;
}

body.dark-mode {
    --bg: #1c1c1c; /* Carbon gray */
    --bg-alt: #262626; /* Lighter carbon */
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --dark: #0a0a0a; /* Deep carbon */
    --nav-bg: rgba(28, 28, 28, 0.92);
}


/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    padding: 0.9rem 2rem;
    border: 3px solid var(--dark);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--dark);
}
.btn-outline {
    background: transparent;
    border: 3px solid var(--dark); /* Thicker, darker border */
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: #fff;
    transform: translateY(-3px);
}

body.dark-mode .btn-outline {
    border-color: #fff;
    color: #fff;
}

body.dark-mode .btn-outline:hover {
    background: #fff;
    color: var(--dark);
}
.btn-lg { font-size: 1.3rem; padding: 1.1rem 2.8rem; }

/* ---- Section shared ---- */
.section-tag {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: var(--green);
    margin-bottom: 0.25rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 2.5rem;
}
.section-header {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================================================
   NAVBAR
   =========================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--dark);
    transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.nav-logo img { height: 50px; }

.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: var(--green);
    transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: color 0.2s;
}
.theme-toggle:hover {
    color: var(--green);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
}
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.2rem 0.35rem;
    transition: color 0.2s;
}
.lang-btn.active { color: var(--green); font-weight: 700; }
.lang-divider { color: var(--text-muted); }

.nav-cta {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    background: var(--green);
    color: #fff;
    border: 2px solid var(--green);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    transition: transform 0.3s, opacity 0.3s;
}

/* ===========================================================
   HERO
   =========================================================== */
#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(100px + 4rem) 2rem var(--section-pad);
    min-height: 90vh;
}

.hero-tag {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--green);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.hero-title .line { display: block; }
.hero-title .accent {
    color: var(--green);
    position: relative;
}
.hero-title .accent::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 4px;
    width: calc(100% + 16px);
    height: 14px;
    background: var(--yellow);
    z-index: -1;
    opacity: 0.6;
    transform: skewX(-3deg);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
    position: relative;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border: 4px solid var(--dark);
    overflow: hidden;
    z-index: 2;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active {
    opacity: 1;
}
.hero-image-accent {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100%;
    height: 100%;
    background: var(--green);
    z-index: 1;
}

/* ===========================================================
   SERVICES
   =========================================================== */
#services {
    padding: var(--section-pad) 0;
    background: var(--bg-alt);
    border-top: 3px solid var(--dark);
    border-bottom: 3px solid var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--bg);
    border: 3px solid var(--dark);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--green);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--dark);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===========================================================
   GALLERY
   =========================================================== */
#work {
    padding: var(--section-pad) 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.portfolio-card {
    background: var(--bg);
    border: 3px solid var(--dark);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 0 var(--green);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 3px solid var(--dark);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.95);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    padding: clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    color: #fff;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.modal-close:hover {
    background: var(--green);
    border-color: var(--green);
    transform: rotate(90deg);
}

.modal-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    min-height: 0;
}

.modal-stage-inner {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.modal-stage-inner img,
.modal-stage-inner video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: #000;
}
.modal-stage-inner img.loaded,
.modal-stage-inner video.loaded { opacity: 1; }

.modal-thumb.video-thumb { position: relative; }
.modal-thumb.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.modal-thumb.video-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.modal-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.modal-nav:hover {
    background: var(--green);
    border-color: var(--green);
}
.modal-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.modal-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    flex-shrink: 0;
}

.modal-counter {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
}

.modal-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    max-width: 100%;
    padding: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.modal-thumbs::-webkit-scrollbar { height: 6px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 3px; }

.modal-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    opacity: 0.55;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.modal-thumb:hover { opacity: 0.9; }
.modal-thumb.active {
    opacity: 1;
    border-color: var(--green);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .modal-nav { width: 40px; height: 40px; }
    .modal-thumb { width: 56px; height: 56px; }
}

/* ===========================================================
   TESTIMONIALS
   =========================================================== */
#testimonials {
    padding: var(--section-pad) 0;
    background: var(--bg-alt);
    border-top: 3px solid var(--dark);
    border-bottom: 3px solid var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background: var(--bg-alt);
    border: 3px solid var(--dark);
    padding: 2.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 var(--yellow);
}

.testi-quote {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testi-author {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--green);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===========================================================
   ABOUT
   =========================================================== */
#about {
    padding: var(--section-pad) 0;
    background: var(--bg); /* Back to default gray */
    border-top: none; /* Removing redundant borders */
    border-bottom: none;
}

.about-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--green);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 250px;
}
.about-logo {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

/* ===========================================================
   CTA BANNER
   =========================================================== */
#cta-banner {
    padding: var(--section-pad) 2rem;
    text-align: center;
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
#cta-banner::before {
    content: 'MAX';
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(12rem, 25vw, 22rem);
    color: rgba(255,255,255,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    letter-spacing: 0.1em;
}
#cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}
#cta-banner p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

/* ===========================================================
   LOCATION
   =========================================================== */
#location {
    padding: var(--section-pad) 0;
    background: var(--bg-alt); /* Changed to white */
    border-top: 3px solid var(--dark);
    border-bottom: 3px solid var(--dark);
}

.location-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.loc-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 1.1rem;
    color: var(--text);
}

.info-item a:hover {
    color: var(--green);
    text-decoration: underline;
}

.map-container {
    width: 100%;
}

.map-container iframe {
    border: 3px solid var(--dark) !important;
    box-shadow: 10px 10px 0 var(--green);
    display: block;
}

/* Responsive Location */
@media (max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ===========================================================
   CONTACT
   =========================================================== */
#contact {
    padding: var(--section-pad) 0;
}

.contact-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field > input,
.field > textarea { width: 100%; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border: 3px solid var(--dark);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 4px 4px 0 var(--yellow);
}
.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #e74c3c;
}
.contact-form input.invalid:focus,
.contact-form textarea.invalid:focus {
    box-shadow: 4px 4px 0 #e74c3c;
}
.field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    min-height: 1.1em;
    line-height: 1.2;
}
.contact-form textarea { resize: vertical; }

.contact-info { padding-top: 0.5rem; }
.info-block { margin-bottom: 2rem; }
.info-block h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.info-block p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===========================================================
   FOOTER
   =========================================================== */
#footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 2rem;
    border-top: 3px solid var(--dark);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}
#footer p { font-size: 0.85rem; }
.footer-credit {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 0.25rem;
}
.footer-credit strong { opacity: 0.8; }
.footer-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); transition: text-decoration-color 0.2s; }
.footer-credit a:hover { text-decoration-color: var(--green); }
.footer-text { text-align: right; }

.footer-socials {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-2px);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
    .nav-links, .nav-right { display: none; }
    .mobile-toggle { display: flex; }

    /* mobile nav open */
    #navbar.open .nav-links,
    #navbar.open .nav-right {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        border-bottom: 3px solid var(--dark);
        padding: 1.5rem 2rem;
        gap: 1rem;
    }
    #navbar.open .nav-right {
        top: calc(100% + 160px); /* below links */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: calc(80px + 2rem);
    }
    .hero-image { order: -1; }

    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-item.large { grid-row: span 1; }
    .gallery-item.wide { grid-column: span 1; }

    .about-inner { grid-template-columns: 1fr; }
    .about-visual { display: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 550px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .about-stats { flex-direction: column; gap: 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
}
