/* MGM Racking Estructuras - Premium Styles */

:root {
    --primary-color: #0056b3;
    /* Deep Professional Blue */
    --secondary-color: #6c757d;
    /* Metallic Grey */
    --accent-color: #007bff;
    /* Brighter Blue for interactions */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-off-white: #f4f6f8;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.skip-link {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 800;
    left: 1rem;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 1rem;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
    z-index: 3000;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Modern Pill Shape */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.5);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.section-padding {
    padding: 5rem 0;
}

/* Header */
header {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    /* Adjust based on actual logo aspect ratio */
}

.footer-logo img {
    margin: 0 auto;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    background: transparent;
    border: 0;
    color: var(--text-dark);
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background-color: #14345f;
    background-image: linear-gradient(rgba(0, 86, 179, 0.8), rgba(33, 37, 41, 0.8)),
        url('../assets/hero_warehouse_logo_only.png');
    /* Warehouse with Logo-only Banners */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
}



.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    /* Mimetized: Removed box/card styling */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.about-img img {
    /* Floating 3D Effect */
    max-width: 400px;
    width: 100%;
    /* Shadow removed per user feedback */
    transition: transform var(--transition-speed) ease;
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    background-color: var(--bg-off-white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.services-grid>* {
    flex: 1 1 300px;
    /* Grow, shrink, basis */
    max-width: 400px;
    /* Prevent over-stretching */
}

.service-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Scroll reveal system: added by JS so content remains visible without scripts. */
.scroll-reveal {
    --reveal-x: 0px;
    --reveal-y: 30px;
    --reveal-delay: 0ms;
    opacity: 0;
    translate: var(--reveal-x) var(--reveal-y);
    filter: blur(4px);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        translate 850ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        filter 700ms ease var(--reveal-delay);
    will-change: opacity, translate, filter;
}

.scroll-reveal.reveal-from-left {
    --reveal-x: -42px;
    --reveal-y: 0px;
}

.scroll-reveal.reveal-from-right {
    --reveal-x: 42px;
    --reveal-y: 0px;
}

.scroll-reveal.is-revealed {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.is-revealed {
        opacity: 1;
        translate: none;
        filter: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .scroll-reveal.reveal-from-left {
        --reveal-x: -24px;
    }

    .scroll-reveal.reveal-from-right {
        --reveal-x: 24px;
    }
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.cta-band {
    background: #17212f;
    color: #fff;
    padding: 3rem 0;
}

.cta-band-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cta-band h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    text-align: left;
}

.cta-band p {
    max-width: 760px;
    opacity: 0.85;
}

/* Process Section */
.process {
    background-color: var(--bg-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-step {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-off-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.process-step span {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.process-step h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
}

.process-step p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Compliance */
.compliance {
    background: var(--bg-off-white);
}

.compliance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3rem;
    align-items: center;
}

.compliance-grid h3 {
    color: var(--primary-color);
}

.compliance-grid p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.compliance-list {
    display: grid;
    gap: 0.8rem;
}

.compliance-list span {
    display: block;
    background: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
    font-weight: 700;
    padding: 1rem;
}

/* Why Choose Us */
.why-us {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.why-us h2 {
    color: var(--text-light);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reason-item h3 {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-watermark {
    position: absolute;
    top: 50%;
    left: 25%;
    /* Centered behind text column */
    /* Forced to the left edge */
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 60%;
    max-width: 500px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.contact-watermark img {
    display: block;
    height: auto;
    width: 100%;
}

.contact-info,
.contact-form {
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    text-align: center;
    width: 2rem;
}

.contact-info-item > div {
    min-width: 0;
}

.contact-info-item p {
    overflow-wrap: anywhere;
}

.contact-form {
    background: var(--bg-off-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-note {
    color: var(--secondary-color);
    font-size: 0.82rem;
    line-height: 1.4;
    margin: -0.5rem 0 1rem;
}

.form-status {
    display: none;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.form-status.is-success {
    display: block;
    background: #e8f8ef;
    color: #176b3a;
}

.form-status.is-error {
    display: block;
    background: #fdecec;
    color: #9b1c1c;
}

.form-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.file-field label span {
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 400;
}

.file-field input[type="file"] {
    background: #fff;
    cursor: pointer;
    padding: 0.65rem;
}

.file-field input[type="file"]::file-selector-button {
    background: var(--bg-off-white);
    border: 1px solid #cfd6dd;
    border-radius: 5px;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    margin-right: 0.8rem;
    padding: 0.65rem 0.85rem;
}

.file-field small {
    color: var(--secondary-color);
    display: block;
    font-size: 0.78rem;
    margin-top: 0.45rem;
}

.privacy-check {
    align-items: flex-start;
    color: var(--secondary-color);
    display: flex;
    font-size: 0.84rem;
    gap: 0.65rem;
    line-height: 1.45;
    margin: 0 0 1rem;
}

.privacy-check input {
    accent-color: var(--primary-color);
    flex: 0 0 auto;
    height: 18px;
    margin-top: 0.12rem;
    width: 18px;
}

.privacy-check a {
    color: var(--primary-color);
    font-weight: 700;
}

.privacy-summary {
    border-left: 3px solid #c9d3dc;
    color: var(--secondary-color);
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
}

.turnstile-slot:not(:empty) {
    margin: 0 0 1rem;
    min-height: 65px;
}

.form-submit {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    justify-content: center;
    width: 100%;
}

.form-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.mobile-action-bar {
    display: none;
}

/* Confirmation page */
.success-page {
    background-color: #14345f;
    background-image: linear-gradient(rgba(0, 67, 141, 0.9), rgba(23, 33, 47, 0.94)),
        url('../assets/hero_warehouse_logo_only.png');
    background-position: center;
    background-size: cover;
    min-height: 100vh;
}

.success-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.success-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 680px;
    padding: 3.5rem;
    text-align: center;
}

.success-icon {
    align-items: center;
    background: #e8f8ef;
    border-radius: 50%;
    color: #176b3a;
    display: inline-flex;
    font-size: 1.5rem;
    height: 64px;
    justify-content: center;
    margin-bottom: 1.25rem;
    width: 64px;
}

.success-kicker {
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.success-panel h1 {
    color: var(--text-dark);
    font-size: 2.35rem;
}

.success-panel > p:not(.success-kicker, .success-contact) {
    color: var(--secondary-color);
    margin: 0 auto 2rem;
    max-width: 520px;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.success-contact {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.success-contact a {
    color: var(--primary-color);
    font-weight: 700;
}

/* FAQ */
.faq {
    background: var(--bg-off-white);
}

.faq-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-list details {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1.2rem 1.5rem;
}

.faq-list p {
    border-top: 1px solid #edf0f3;
    color: var(--secondary-color);
    padding: 1rem 1.5rem 1.3rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    margin: 0 1rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.service-area-links {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.5rem 1.2rem;
    justify-content: center;
    margin: -0.5rem 0 1.5rem;
    opacity: 0.72;
}

.service-area-links a:hover {
    color: #fff;
    opacity: 1;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--bg-light);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 2rem;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contact-wrapper {
        padding: 0;
    }

    .contact-info {
        grid-column: 1;
        grid-row: 1;
        padding: 1.5rem 1.25rem 0;
    }

    .contact-watermark {
        left: 50%;
        margin: 0;
        max-width: 360px;
        opacity: 0.07;
        position: absolute;
        top: 0.25rem;
        transform: translateX(-50%) rotate(-8deg);
        width: 78%;
    }

    .contact-form {
        grid-column: 1;
        grid-row: 2;
        padding: 1.25rem;
    }

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

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

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-band-inner,
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .cta-band .btn {
        text-align: center;
    }

    body:has(.mobile-action-bar) {
        padding-bottom: 64px;
    }

    .mobile-action-bar {
        background: #fff;
        border-top: 1px solid #dfe4e9;
        bottom: 0;
        box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: 64px;
        left: 0;
        position: fixed;
        right: 0;
        z-index: 1100;
    }

    .mobile-action-bar a {
        align-items: center;
        color: var(--text-dark);
        display: flex;
        flex-direction: column;
        font-size: 0.7rem;
        font-weight: 700;
        gap: 0.15rem;
        justify-content: center;
    }

    .mobile-action-bar a + a {
        border-left: 1px solid #edf0f2;
    }

    .mobile-action-bar i {
        color: var(--primary-color);
        font-size: 1.15rem;
    }
    .success-panel {
        padding: 2.25rem 1.4rem;
    }

    .success-panel h1 {
        font-size: 1.9rem;
    }

    .success-actions {
        flex-direction: column;
    }
}

/* --- NEW FEATURES STYLES --- */

/* Detailed Systems Catalog */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.system-card {
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.system-img {
    height: 200px;
    overflow: hidden;
}

.system-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.system-card:hover .system-img img {
    transform: scale(1.1);
}

.system-content {
    align-items: flex-start;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
    width: 100%;
}

.system-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.system-link {
    color: var(--primary-color);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 1rem;
}

.system-link i {
    margin-left: 0.3rem;
}

.system-content p {
    flex: 1;
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    width: 100%;
}

.system-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-off-white);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Portfolio Gallery */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.project-meta span {
    padding: 0.25rem 0.55rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-link {
    color: #fff;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-action {
    margin-top: 2.5rem;
    text-align: center;
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-off-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.testimonial-card p {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.testimonial-card strong {
    display: block;
    color: var(--primary-color);
}

.testimonial-card span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Footer Styles */
footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* SEO Subpages */
.subpage-header {
    position: sticky;
}

.subpage-hero {
    background-color: #14345f;
    background-image: linear-gradient(rgba(0, 86, 179, 0.86), rgba(23, 33, 47, 0.9)),
        url('../assets/hero_warehouse_logo_only.png');
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 9rem 0 5rem;
}

.subpage-hero h1 {
    max-width: 900px;
    font-size: 3rem;
}

.subpage-hero p {
    max-width: 780px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-actions-left {
    justify-content: flex-start;
}

.breadcrumbs {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem !important;
    font-weight: 700;
}

.breadcrumbs a {
    color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 3rem;
    align-items: start;
}

.content-grid article h2 {
    margin-top: 2rem;
    text-align: left;
}

.content-grid article h2:first-child {
    margin-top: 0;
}

.content-grid article p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.check-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.2rem 0 2rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--primary-color);
    border-radius: 50%;
}

.seo-card {
    background: var(--bg-off-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.seo-card a {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 0.9rem;
}

.seo-card a.btn-primary,
.seo-card a.btn-primary:visited,
.seo-card a.btn-primary:hover,
.seo-card a.btn-primary:focus-visible {
    color: #fff;
}

.seo-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.legal-disclaimer {
    background: #fff7e6;
    border-left: 4px solid #f4a900;
    border-radius: 6px;
    color: #765300 !important;
    padding: 1rem;
}

.content-meta {
    border-bottom: 1px solid #dfe4e9;
    color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 0.9rem;
}

.content-meta strong {
    color: var(--text-dark);
}

.resource-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.resource-card > i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.resource-card h2 {
    color: var(--text-dark);
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.resource-card > p:not(.resource-label) {
    color: var(--secondary-color);
}

.resource-label {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.inspection-timeline {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.inspection-timeline > div {
    background: var(--bg-off-white);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 1rem 1.2rem;
}

.inspection-timeline strong {
    color: var(--primary-color);
}

.inspection-timeline p {
    margin: 0.25rem 0 0 !important;
}

.comparison-table {
    border: 1px solid #dfe4e9;
    border-radius: 8px;
    margin-bottom: 3rem;
    overflow-x: auto;
}

.comparison-table table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid #e7ebee;
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: #17212f;
    color: #fff;
}

.comparison-table td:first-child {
    color: var(--primary-color);
    font-weight: 700;
}

.decision-grid {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.decision-grid h2 {
    font-size: 1.7rem;
    text-align: left;
}

.case-grid {
    display: grid;
    gap: 2rem;
}

.case-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.case-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.case-card div {
    padding: 2rem 2rem 2rem 0;
}

.case-card h2 {
    color: var(--primary-color);
    text-align: left;
    font-size: 1.6rem;
}

.case-card p {
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
}

.case-detail-grid {
    align-items: start;
    display: grid;
    gap: 3.5rem;
    grid-template-columns: minmax(0, 1fr) 420px;
}

.case-detail-grid article h2 {
    font-size: 1.65rem;
    margin-top: 2rem;
    text-align: left;
}

.case-detail-grid article h2:first-child {
    margin-top: 0;
}

.case-detail-grid article p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.case-feature-image {
    aspect-ratio: 1;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
    object-fit: cover;
    width: 100%;
}

.system-facts {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -2rem 0 3.5rem;
}

.system-facts span {
    background: #17212f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 1rem;
    text-align: center;
}

.system-facts span:first-child {
    border-radius: 6px 0 0 6px;
}

.system-facts span:last-child {
    border-radius: 0 6px 6px 0;
}

.system-detail-grid article > p:not(.legal-disclaimer) {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: 7rem 0 4rem;
    }

    .subpage-hero h1 {
        font-size: 2.35rem;
    }

    .content-grid,
    .case-card,
    .case-detail-grid,
    .decision-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .system-facts {
        grid-template-columns: 1fr;
        margin-top: -1rem;
    }

    .system-facts span:first-child {
        border-radius: 6px 6px 0 0;
    }

    .system-facts span:last-child {
        border-radius: 0 0 6px 6px;
    }

    .case-card div {
        padding: 1.5rem;
    }

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Hero Fix */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
    }
}

/* Header alignment */
.logo,
.logo a,
.nav-links,
.nav-links li,
.nav-links a {
    align-items: center;
}
.logo,
.logo a,
.nav-links li,
.nav-links a {
    display: flex;
}
.nav-links { margin: 0; padding: 0; }
.nav-links a { justify-content: center; min-height: 44px; }

/* Legal pages */
.legal-page { background: var(--bg-off-white); }
.legal-page .subpage-header { position: sticky; }
.legal-hero { background-color: #14345f; background-image: linear-gradient(rgba(0, 86, 179, 0.9), rgba(23, 33, 47, 0.94)), url('../assets/hero_warehouse_logo_only.png'); background-position: center; background-size: cover; color: #fff; padding: 4.5rem 0 3.5rem; }
.legal-hero .breadcrumbs { margin-bottom: 1rem; opacity: 0.88; }
.legal-hero .breadcrumbs a { font-weight: 700; }
.legal-hero h1 { font-size: 3rem; margin-bottom: 1rem; max-width: 850px; }
.legal-hero > .container > p:last-child { font-size: 1.08rem; max-width: 760px; opacity: 0.92; }
.legal-layout { align-items: start; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) 280px; }
.legal-content { background: #fff; border-left: 4px solid var(--primary-color); border-radius: 8px; box-shadow: var(--shadow-sm); max-width: none; padding: 3rem; }
.legal-content h2 { color: var(--text-dark); font-size: 1.35rem; margin-bottom: 0.75rem; margin-top: 2rem; text-align: left; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: #4f5964; margin-bottom: 1rem; }
.legal-content a, .legal-aside a { color: var(--primary-color); font-weight: 700; }
.legal-aside { background: #eaf2fb; border-top: 4px solid var(--accent-color); border-radius: 8px; padding: 1.5rem; position: sticky; top: 104px; }
.legal-aside h2 { color: var(--text-dark); font-size: 1.15rem; margin-bottom: 0.75rem; text-align: left; }
.legal-aside p { color: #4f5964; margin-bottom: 1rem; }
.legal-aside-link { align-items: center; display: inline-flex; gap: 0.5rem; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-aside { position: static; } }
@media (max-width: 600px) { .legal-hero { padding: 3.25rem 0 2.5rem; } .legal-hero h1 { font-size: 2.15rem; } .legal-content { padding: 1.5rem; } }
