/* =========================================================
   ONDA MEXICANA
   HEADER + FOOTER
   FINAL STRUCTURE
========================================================= */


/* =========================================================
   01. ROOT
========================================================= */

:root {
    --om-paper: #f7efe2;
    --om-paper-light: #fff9ef;

    --om-green: #075d45;
    --om-green-dark: #054b38;

    --om-orange: #d84a24;
    --om-yellow: #f2a900;

    --om-ink: #203a31;
    --om-muted: #62635d;

    --om-line: rgba(42, 64, 53, .10);
}


/* =========================================================
   02. GLOBAL
========================================================= */

body {
    margin: 0;
}

.om-site-header *,
.om-site-footer * {
    box-sizing: border-box;
}

.om-site-header a,
.om-site-footer a {
    text-decoration: none;
}


/* WordPress accessibility */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   03. HEADER
========================================================= */

.om-site-header {
    position: relative;

    z-index: 100;

    width: 100%;

    background: var(--om-paper);

    border-bottom:
        1px solid
        rgba(65, 55, 40, .07);
}


/* =========================================================
   04. HEADER INNER
========================================================= */

.om-header-inner {
    width: min(1400px, calc(100% - 44px));
    min-height: 104px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}


/* =========================================================
   05. LOGO
========================================================= */

.om-header-logo {
    display: flex;

    flex: 0 0 auto;

    align-items: center;
}

.om-header-logo img {
    display: block;

    width: 136px;

    max-width: 100%;

    height: auto;
}


/* =========================================================
   06. DESKTOP NAV
========================================================= */

.om-main-nav {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-left: 0;

    white-space: nowrap;
}

.om-main-nav a {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 104px;

    padding: 0;

    color: var(--om-ink);

    font-size: 13px;

    font-weight: 800;

    line-height: 1;
}

.om-main-nav a:hover {
    color: var(--om-orange);
}

.om-main-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 22px;

    width: 0;
    height: 3px;

    border-radius: 999px;

    background: var(--om-orange);

    transform: translateX(-50%);

    transition:
        width .18s ease;
}

.om-main-nav a:hover::after {
    width: 22px;
}


/* =========================================================
   07. HEADER TOOLS
========================================================= */

.om-header-tools {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-left: auto;
}


/* =========================================================
   08. SEARCH
========================================================= */

.om-search-button {
    position: relative;

    width: 40px;
    height: 40px;

    padding: 0;

    border:
        1px solid
        rgba(40, 60, 50, .12);

    border-radius: 50%;

    background:
        rgba(255,255,255,.32);

    cursor: pointer;
}

.om-search-button span {
    position: absolute;

    width: 14px;
    height: 14px;

    top: 10px;
    left: 10px;

    border:
        2px solid
        var(--om-green);

    border-radius: 50%;
}

.om-search-button span::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 2px;

    right: -6px;
    bottom: -3px;

    background: var(--om-green);

    transform: rotate(45deg);

    transform-origin: left center;
}


/* =========================================================
   09. LANGUAGE
========================================================= */

.om-language-switch {
    display: flex;

    align-items: center;

    gap: 6px;

    color: var(--om-green);

    font-size: 12px;

    font-weight: 900;
}

.om-language-switch a {
    color: inherit;
}

.om-language-switch a:hover {
    color: var(--om-orange);
}


/* =========================================================
   10. CONTACT
========================================================= */

.om-contact-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 16px;

    border-radius: 999px;

    background: var(--om-green);

    color: #fff;

    font-size: 12px;

    font-weight: 900;
}

.om-contact-button:hover {
    background: var(--om-green-dark);
}


/* =========================================================
   11. MOBILE TOGGLE
========================================================= */

.om-mobile-toggle {
    display: none;

    width: 43px;
    height: 43px;

    padding: 9px;

    border: 0;

    border-radius: 10px;

    background: transparent;

    cursor: pointer;
}

.om-mobile-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--om-green);
}


/* =========================================================
   12. MOBILE MENU
========================================================= */

.om-mobile-menu {
    display: none;
}


/* =========================================================
   13. FOOTER WRAPPER
========================================================= */

.om-site-footer {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: var(--om-paper);

    color: var(--om-ink);
}


/* =========================================================
   14. NEWSLETTER
========================================================= */

.om-footer-newsletter {
    width:
        min(
            1420px,
            calc(100% - 48px)
        );

    margin:
        42px
        auto
        0;

    overflow: hidden;

    border-radius: 30px;

    background-color: #edf0df;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.om-footer-newsletter-inner {
    position: relative;

    min-height: 138px;

    padding:
        20px
        34px
        20px
        164px;

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        minmax(330px, 430px)
        auto;

    align-items: center;

    gap: 25px;
}


/* =========================================================
   15. NEWSLETTER CHARACTER
========================================================= */

.om-newsletter-character {
    position: absolute;

    left: 16px;
    bottom: -12px;

    width: 140px;

    z-index: 2;

    pointer-events: none;
}

.om-newsletter-character img {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   16. NEWSLETTER COPY
========================================================= */

.om-newsletter-copy h2 {
    margin: 0;

    color: var(--om-green);

    font-size:
        clamp(
            21px,
            2vw,
            28px
        );

    font-weight: 900;

    line-height: 1.2;

    letter-spacing: -.025em;
}

.om-newsletter-copy p {
    margin: 8px 0 0;

    color: #4e574f;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   17. NEWSLETTER FORM
========================================================= */

.om-newsletter-form {
    display: flex;

    width: 100%;

    min-height: 52px;

    overflow: hidden;

    border:
        1px solid
        rgba(30,60,45,.11);

    border-radius: 999px;

    background:
        rgba(255,255,255,.82);

    box-shadow:
        0 5px 18px
        rgba(40,40,20,.05);
}

.om-newsletter-form input {
    flex: 1;

    min-width: 0;

    padding: 0 22px;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--om-ink);

    font: inherit;
}

.om-newsletter-form button {
    min-width: 115px;

    padding: 0 20px;

    border: 0;

    background: var(--om-green);

    color: #fff;

    font-size: 14px;

    font-weight: 900;

    cursor: pointer;
}

.om-newsletter-form button:hover {
    background: var(--om-green-dark);
}


/* =========================================================
   18. SOCIAL
========================================================= */

.om-footer-socials {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 13px;
}

.om-social {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    flex: 0 0 auto;

    border-radius: 50%;

    box-shadow:
        0 4px 12px
        rgba(35,40,30,.10);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.om-social:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 17px
        rgba(35,40,30,.15);
}

.om-social svg {
    display: block;

    width: 21px;
    height: 21px;

    fill: #fff;
}


/* Instagram */

.om-instagram {
    background:
        radial-gradient(
            circle at 30% 107%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%
        );
}


/* YouTube */

.om-youtube {
    background: #ff2b1f;
}


/* TikTok */

.om-tiktok {
    background: #111;
}


/* =========================================================
   19. FOOTER VALUES
========================================================= */

.om-footer-values {
    position: relative;

    padding:
        24px
        24px
        0;

    background: var(--om-paper);
}


/* 4 value blocks + character group */

.om-footer-values-inner {
    width:
        min(
            1420px,
            100%
        );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        minmax(200px, 235px);

    align-items: end;

    gap: 20px;

    min-height: 132px;
}


/* =========================================================
   20. VALUE ITEM
========================================================= */

.om-footer-value {
    align-self: start;

    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    min-width: 0;

    padding-top: 8px;
}

.om-footer-value-icon {
    display: flex;

    align-items: flex-start;
    justify-content: center;

    width: 58px;
}

.om-footer-value-icon img {
    display: block;

    width: 58px;
    height: 58px;

    object-fit: contain;
}

.om-footer-value-copy {
    min-width: 0;
}

.om-footer-value-copy h3 {
    margin:
        0
        0
        6px;

    color: var(--om-green);

    font-size: 15px;

    font-weight: 900;

    line-height: 1.3;

    word-break: keep-all;
}

.om-footer-value-copy p {
    margin: 0;

    color: var(--om-muted);

    font-size: 12.5px;

    line-height: 1.6;

    word-break: keep-all;
}


/* =========================================================
   21. FAMILY GROUP
========================================================= */

.om-footer-family {
    position: relative;

    align-self: end;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    height: 130px;

    margin-bottom: -15px;

    z-index: 2;

    overflow: visible;
}

.om-footer-family img {
    display: block;

    width: 210px;

    max-width: 100%;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   22. FOOTER PATTERN
   footer-pattern-border-v2.webp = 2000 x 80
========================================================= */

.om-footer-pattern {
    position: relative;

    z-index: 3;

    width: 100%;

    margin-top: -8px;

    overflow: hidden;

    line-height: 0;
}

.om-footer-pattern img {
    display: block;

    width: 100%;

    height: auto;
}


/* =========================================================
   23. FOOTER BOTTOM
========================================================= */

.om-footer-bottom {
    position: relative;

    z-index: 5;

    margin-top: 0;

    background: var(--om-green);

    color:
        rgba(
            255,
            255,
            255,
            .90
        );
}

.om-footer-bottom-inner {
    width:
        min(
            1420px,
            calc(100% - 48px)
        );

    min-height: 62px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 20px;

    font-size: 12px;
}

.om-footer-copyright {
    margin: 0;

    flex: 0 0 auto;

    white-space: nowrap;
}

.om-footer-bottom-links {
    margin-left: auto;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap:
        7px
        16px;
}

.om-footer-bottom a {
    color:
        rgba(
            255,
            255,
            255,
            .90
        );
}

.om-footer-bottom a:hover {
    color: #fff;
}

.om-footer-language {
    display: flex;

    align-items: center;

    gap: 5px;

    flex: 0 0 auto;

    font-weight: 900;
}


/* =========================================================
   24. HEADER RESPONSIVE
========================================================= */

@media (max-width: 1024px) {

    .om-header-inner {
        gap: 14px;
    }

    .om-main-nav {
        gap: 17px;
    }

    .om-main-nav a {
        font-size: 12px;
    }

    .om-header-logo img {
        width: 128px;
    }

}


/* =========================================================
   25. TABLET HEADER
========================================================= */

@media (max-width: 1080px) {

    .om-main-nav {
        display: none;
    }

    .om-contact-button {
        display: none;
    }

    .om-mobile-toggle {
        display: block;
    }

    .om-header-inner {
        min-height: 82px;
    }

    .om-header-logo img {
        width: 122px;
    }

    .om-mobile-menu {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        padding:
            16px
            24px
            24px;

        background: var(--om-paper);

        border-top:
            1px solid
            var(--om-line);

        box-shadow:
            0 18px 40px
            rgba(40,40,30,.09);
    }

    .om-mobile-menu.is-open {
        display: grid;
    }

    .om-mobile-menu a {
        padding: 13px 0;

        border-bottom:
            1px solid
            rgba(20,60,40,.08);

        color: var(--om-green);

        font-size: 15px;

        font-weight: 800;
    }

    .om-mobile-contact {
        margin-top: 10px;

        text-align: center;

        border-radius: 999px;

        background: var(--om-green);

        color: #fff !important;
    }

}


/* =========================================================
   26. FOOTER TABLET
========================================================= */

@media (max-width: 1180px) {

    .om-footer-values-inner {
        grid-template-columns:
            repeat(2, minmax(0,1fr))
            minmax(200px,230px);

        gap:
            22px
            28px;
    }

    .om-footer-family {
        grid-column: 3;

        grid-row: 1 / span 2;

        height: 175px;

        margin-bottom: -14px;
    }

    .om-footer-family img {
        width: 215px;
    }

}


/* =========================================================
   27. NEWSLETTER TABLET
========================================================= */

@media (max-width: 1050px) {

    .om-footer-newsletter-inner {
        padding:
            22px
            28px
            22px
            150px;

        grid-template-columns:
            1fr
            minmax(280px, 380px);

        gap: 18px;
    }

    .om-footer-socials {
        grid-column:
            2 / 3;

        justify-content: flex-end;
    }

}


/* =========================================================
   28. MOBILE
========================================================= */

@media (max-width: 768px) {

    /* HEADER */

    .om-header-inner {
        width:
            calc(100% - 28px);
    }

    .om-language-switch {
        font-size: 12px;
    }


    /* NEWSLETTER */

    .om-footer-newsletter {
        width:
            calc(100% - 28px);

        margin-top: 34px;

        border-radius: 24px;
    }

    .om-footer-newsletter-inner {
        min-height: auto;

        padding:
            28px
            20px
            24px;

        display: block;

        text-align: center;
    }

    .om-newsletter-character {
        position: relative;

        left: auto;
        bottom: auto;

        width: 110px;

        margin:
            -48px
            auto
            8px;
    }

    .om-newsletter-copy h2 {
        font-size: 21px;
    }

    .om-newsletter-copy p {
        font-size: 13px;
    }

    .om-newsletter-form {
        margin-top: 18px;
    }

    .om-footer-socials {
        justify-content: center;

        margin-top: 17px;
    }


    /* VALUES */

    .om-footer-values {
        padding:
            26px
            20px
            0;
    }

    .om-footer-values-inner {
        display: grid;

        grid-template-columns: 1fr;

        gap: 17px;

        min-height: auto;
    }

    .om-footer-value {
        grid-template-columns:
            52px
            1fr;

        gap: 12px;

        padding-top: 0;
    }

    .om-footer-value-icon,
    .om-footer-value-icon img {
        width: 52px;
        height: 52px;
    }

    .om-footer-value-copy h3 {
        font-size: 15px;
    }

    .om-footer-value-copy p {
        font-size: 12.5px;
    }


    /* FAMILY */

    .om-footer-family {
        grid-column: auto;
        grid-row: auto;

        height: auto;

        margin-top: 2px;
        margin-bottom: -13px;

        justify-content: center;
    }

    .om-footer-family img {
        width: 185px;
    }


    /* PATTERN */

    .om-footer-pattern {
        margin-top: 0;
    }


    /* BOTTOM */

    .om-footer-bottom-inner {
        width:
            calc(100% - 32px);

        padding:
            18px
            0;

        display: block;

        text-align: center;
    }

    .om-footer-bottom-links {
        margin:
            12px
            0;

        justify-content: center;

        gap:
            7px
            13px;
    }

    .om-footer-language {
        justify-content: center;
    }

}


/* =========================================================
   29. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .om-header-logo img {
        width: 110px;
    }

    .om-search-button {
        display: none;
    }


    /* newsletter */

    .om-newsletter-form {
        display: grid;

        border-radius: 17px;
    }

    .om-newsletter-form input {
        min-height: 48px;

        text-align: center;
    }

    .om-newsletter-form button {
        min-height: 47px;
    }


    /* socials */

    .om-social {
        width: 42px;
        height: 42px;
    }


    /* family */

    .om-footer-family img {
        width: 170px;
    }

    .om-footer-family {
        margin-bottom: -11px;
    }

}