@media (max-width: 1440px) {
    .category-card {
        flex: 0 0 calc((100% - 80px) / 5);
    }
}

@media (max-width: 1280px) {
    .category-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 72px;
    }

    .hero__inner,
    .grid-2,
    .product-detail,
    .contact-grid,
    .about-page-grid,
    .about-page__intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero__inner {
        padding: 48px 0;
        gap: 36px;
    }

    .hero__visual {
        height: 340px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .quality-section__intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .quality-section__visual {
        height: 220px;
    }

    .quality-timeline::before {
        display: none;
    }

    .cert-grid,
    .product-grid,
    .cert-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ref-item {
        flex: 0 0 calc(33.333% - 16px);
    }

    .ref-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
        --header-height: 60px;
        --topbar-height: 40px;
    }

    .container {
        padding: 0 16px;
    }

    .topbar {
        padding: 8px 0;
        font-size: 0.75rem;
        background: #102338;
        border: none;
        box-shadow: none;
    }

    .topbar__inner {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .topbar__contact {
        justify-content: center;
        gap: 12px;
        flex-wrap: nowrap;
        opacity: 0.92;
        letter-spacing: 0.02em;
    }

    .topbar__contact a:nth-child(2),
    .topbar__inner > div:last-child {
        display: none;
    }

    .main-nav,
    .header-actions__whatsapp {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .site-header {
        z-index: 1001;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: none;
        box-shadow: 0 12px 32px rgba(7, 27, 51, 0.05);
    }

    .logo__image {
        height: 40px;
        max-width: 160px;
    }

    .logo {
        gap: 0;
        max-width: calc(100% - 56px);
    }

    .mobile-nav {
        top: var(--header-height);
    }

    .page-hero {
        padding: 36px 0;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .trust-strip {
        margin-top: 0;
        padding-top: 8px;
        padding-bottom: 36px;
        position: relative;
        z-index: 5;
        background: linear-gradient(180deg, #F4F6F9 0%, #ffffff 85%);
        border: none;
    }

    .trust-strip__item {
        flex: 0 0 88%;
        min-width: 0;
        padding: 22px 18px;
        border-right: none;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 14px 40px rgba(7, 27, 51, 0.07);
        margin-right: 12px;
        border: none;
    }

    .trust-strip__panel {
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 0;
        padding: 4px 0;
        overflow-x: auto;
    }

    /* Premium soft mobile welcome — full-bleed image, seamless fade, no hard blocks */
    .hero {
        --hero-mist: #F4F6F9;
        position: relative;
        min-height: 0;
        max-height: none;
        background:
            radial-gradient(90% 55% at 50% 18%, rgba(168, 212, 72, 0.08) 0%, transparent 60%),
            var(--hero-mist);
        padding: 0;
        display: block;
        overflow: hidden;
    }

    .hero__inner {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: none;
        padding: 0 0 24px;
        gap: 0;
        background: transparent;
    }

    .hero__visual {
        position: relative;
        order: -1;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        height: clamp(300px, 52vh, 440px);
        border-radius: 0;
        z-index: 1;
        flex-shrink: 0;
        overflow: hidden;
        box-shadow: none;
        background: transparent;
    }

    .hero__visual::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 28%,
            rgba(244, 246, 249, 0.15) 45%,
            rgba(244, 246, 249, 0.45) 58%,
            rgba(244, 246, 249, 0.78) 72%,
            rgba(244, 246, 249, 0.94) 86%,
            var(--hero-mist) 100%
        );
    }

    .hero__image,
    .hero-composition {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 36%;
        display: block;
        animation: heroWelcomeIn 0.9s ease-out both;
        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.75) 62%,
            rgba(0, 0, 0, 0.28) 82%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.75) 62%,
            rgba(0, 0, 0, 0.28) 82%,
            transparent 100%
        );
    }

    .hero__content {
        position: relative;
        z-index: 3;
        order: 1;
        margin-top: -100px;
        padding: 0 4px 0;
        text-align: left;
        animation: heroWelcomeUp 0.75s ease-out 0.06s both;
    }

    .hero__content h1 {
        color: var(--navy);
        font-size: clamp(1.85rem, 7vw, 2.3rem);
        line-height: 1.14;
        margin-bottom: 14px;
        max-width: 14ch;
        letter-spacing: -0.03em;
    }

    .hero__content p {
        color: rgba(7, 27, 51, 0.64);
        font-size: 0.97rem;
        line-height: 1.6;
        margin: 0 0 26px;
        max-width: 34ch;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        border-radius: 18px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    .hero__actions .btn--whatsapp {
        box-shadow: 0 14px 32px rgba(37, 211, 102, 0.24);
        border: none;
    }

    .hero__actions .btn--outline {
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(7, 27, 51, 0.07);
        color: var(--navy);
        box-shadow: 0 8px 24px rgba(7, 27, 51, 0.05);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hero__actions .btn--outline:hover {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(7, 27, 51, 0.14);
        color: var(--navy);
    }

    .about-visual {
        height: 260px;
    }

    .about-page__hero {
        padding: 40px 0 32px;
    }

    .about-page__intro {
        padding: 36px 0 8px;
    }

    .about-page__intro-grid {
        gap: 28px;
        display: flex;
        flex-direction: column;
    }

    .about-page__visual {
        order: -1;
    }

    .about-page__story h2 {
        max-width: none;
    }

    .about-page__lead {
        max-width: none;
    }

    .about-page__visual,
    .about-page__image,
    .about-page__image--placeholder {
        min-height: 240px;
        border-radius: 22px;
    }

    .about-page__pillars {
        padding: 28px 0 56px;
    }

    .about-page__pillars-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-pillar {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .category-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .quality-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cert-grid,
    .product-grid,
    .cert-page-grid,
    .grid-3,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .ref-item {
        flex: 0 0 calc(50% - 8px);
    }

    .ref-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar__search,
    .cat-select,
    .filter-bar .btn {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .product-card__actions {
        flex-wrap: wrap;
    }

    .product-card__actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .product-detail__thumbs {
        flex-wrap: wrap;
    }

    .product-detail__info h1 {
        font-size: 1.5rem;
    }

    .whatsapp-cta .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 20px;
    }

    .whatsapp-cta .btn {
        width: 100%;
    }

    .contact-form,
    .admin-form-row {
        min-width: 0;
    }

    .contact-info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 280px;
    }

    .contact-map-section {
        padding: 20px 16px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important; /* iOS zoom prevent */
    }
}

@media (max-width: 430px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .category-card {
        flex: 0 0 82%;
    }

    .trust-strip__item {
        flex: 0 0 90%;
    }

    .ref-item {
        flex: 0 0 100%;
    }

    .ref-page-grid {
        grid-template-columns: 1fr;
    }

    .product-card__actions {
        flex-direction: column;
    }

    .product-card__actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero__content h1 {
        line-height: 1.2;
    }

    .product-detail__thumb {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 390px) {
    .hero__content h1 {
        font-size: 1.72rem;
        max-width: none;
    }

    .hero__visual {
        height: clamp(270px, 48vh, 360px);
        border-radius: 0;
        margin-bottom: 0;
    }

    .hero__content {
        margin-top: -88px;
    }

    .stat-item__number {
        font-size: 1.75rem;
    }
}

@keyframes heroWelcomeIn {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroWelcomeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__image,
    .hero__content {
        animation: none !important;
    }
}
