/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://mener.ai
 Description:  Дочерняя тема для Hello Elementor
 Author:       Alina Vetrova
 Author URI:   https://mener.ai
 Template:     hello-elementor
 Version:      1.0.2
 Text Domain:  hello-elementor-child
*/

/* ========== LENIS SMOOTH SCROLL ========== */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* ========== HEADER ========== */
.site-header,
.site-header:not(.dynamic-header) {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    max-width: 100% !important;
    width: 100% !important;
}
.site-header .header-inner {
    max-width: 1440px !important;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.header-logo img {
    height: 48px;
    width: auto;
}
.header-nav,
.header-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav a {
    text-decoration: none;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}
.header-nav a:hover {
    color: #FD057F;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.lang-switcher {
    position: relative;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
    user-select: none;
}
.lang-switcher__current {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-switcher__current svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}
.lang-switcher.open .lang-switcher__current svg {
    transform: rotate(180deg);
}
.lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    min-width: 80px;
    z-index: 10;
}
.lang-switcher.open .lang-switcher__dropdown {
    display: block;
}
.lang-switcher__dropdown a {
    display: block;
    padding: 8px 16px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.lang-switcher__dropdown a:hover {
    background: #f5f5f5;
}
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(169.24deg, #FF77BA -36.2%, #FD057F 5.2%, #73033A 104.74%, #4A0E58 144.37%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0px 0px 9px 1px #F1BDFE54 inset;
    transition: opacity 0.3s;
}
.header-cta:hover {
    opacity: 0.9;
    color: #fff;
}
.header-cta img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1001;
    outline: none;
    -webkit-tap-highlight-color: rgba(255,255,255,0);
    -webkit-appearance: none;
}
.burger:focus,
.burger:active,
.burger:focus-visible {
    outline: none;
    background: #fff !important;
    box-shadow: none;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: all 0.3s;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.burger.active {
    background: #fff !important;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 998;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 100px;
    box-sizing: border-box;
    visibility: hidden;
    clip-path: circle(0% at calc(100% - 36px) 40px);
    transition: clip-path 0.5s ease-in-out, visibility 0s 0.5s;
}
.admin-bar .mobile-menu {
    padding-top: 146px;
}
@media (max-width: 782px) {
    .admin-bar .mobile-menu {
        padding-top: 156px;
    }
}
.mobile-menu.open {
    visibility: visible;
    clip-path: circle(200% at calc(100% - 36px) 40px);
    transition: clip-path 0.5s ease-in-out, visibility 0s 0s;
}
.mobile-menu__nav,
.mobile-menu__nav ul {
    display: flex;
    flex-direction: column;
    padding: 8px 24px;
    list-style: none;
    margin: 0;
}
.mobile-menu__nav ul {
    padding: 0;
}
.mobile-menu__nav li {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu__nav li:last-child {
    border-bottom: none;
}
.mobile-menu__nav a {
    text-decoration: none;
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 0;
    display: block;
}
.mobile-menu__nav a:hover {
    color: #FD057F;
}

/* ========== FOOTER ========== */
.site-footer,
.site-footer:not(.dynamic-footer) {
    background: #1D1D1B;
    color: #fff;
    max-width: 100% !important;
    width: 100% !important;
}
.site-footer .footer-inner {
    display: flex;
    max-width: 1440px !important;
    margin: 0 auto;
    padding: 48px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 31px;
    box-sizing: border-box;
}
.footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 40px;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}
.footer-logo {
    flex: 0 0 auto;
}
.footer-nav {
    flex: 1 1 auto;
    justify-content: center;
}
.footer-contact {
    flex: 0 0 auto;
}
.footer-logo img {
    height: 48px;
    width: auto;
}
.footer-nav,
.footer-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}
.footer-nav a:hover {
    color: #fff;
}
.footer-contact-title {
    display: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-contact .wpcf7-response-output {
    display: none !important;
}
.footer-contact .wpcf7 {
    display: flex;
    align-items: stretch;
}
.footer-contact .wpcf7 form {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-direction: row;
}
.footer-contact .wpcf7 form p {
    margin: 0;
    display: flex;
    align-items: stretch;
}
.footer-contact .wpcf7 form .wpcf7-form-control-wrap {
    display: flex;
}
.footer-contact .wpcf7 .wpcf7-spinner {
    display: none !important;
}
.footer-contact .wpcf7 input[type="email"] {
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 0 16px;
    font-size: 14px;
    width: 200px;
    outline: none;
    height: 44px;
    box-sizing: border-box;
    margin: 0;
}
.footer-contact .wpcf7 input[type="submit"],
.footer-contact .wpcf7 button[type="submit"],
.footer-contact .wpcf7 .wpcf7-submit,
.footer-contact input[type="submit"],
.footer-contact button[type="submit"] {
    background: #FD4AA2 url('https://mener.ai/wp-content/uploads/2026/03/Vector.svg') no-repeat center / 16px !important;
    color: transparent !important;
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
    line-height: 0 !important;
    display: inline-block !important;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    margin: 0;
}
.footer-contact .wpcf7 input[type="submit"]:hover,
.footer-contact .wpcf7 button[type="submit"]:hover,
.footer-contact .wpcf7 .wpcf7-submit:hover,
.footer-contact input[type="submit"]:hover,
.footer-contact button[type="submit"]:hover {
    opacity: 0.9;
}
.footer-divider {
    height: 1px;
    width: 100%;
    background: rgba(255,255,255,0.15);
}
.footer-bottom {
    width: 100%;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin: 0;
}

/* ========== DECORATIVE BACKGROUND ========== */
html {
    overflow-x: hidden;
}
body.home,
body.page-template-default {
    position: relative;
}
.page-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1;
}
.page-decorations img,
.page-decorations svg {
    width: 1440px;
    max-width: 100vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Our Process section decorations */
.process-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
/* Contain the section on desktop */
.process-section-wrap {
    overflow: hidden;
}
.process-section-wrap > .e-con-inner {
    overflow: hidden;
}
@media (max-width: 1024px) {
    .process-section-wrap,
    .process-section-wrap > .e-con-inner {
        overflow: visible !important;
    }
}
.process-ellipse-12 {
    top: -200px;
    right: -200px;
    width: 800px;
    height: auto;
}
.process-ellipse-13 {
    bottom: -250px;
    left: -200px;
    width: 800px;
    height: auto;
}
.process-ellipse-14 {
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: auto;
}

/* CTA section decorations */
.cta-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.cta-ellipse-12 {
    top: -100px;
    right: -100px;
    width: 500px;
    height: auto;
}
.cta-ellipse-13 {
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: auto;
}
.cta-ellipse-14 {
    top: 0;
    left: 5%;
    width: 400px;
    height: auto;
}

/* Contact page decoration */
.contact-ellipse-8 {
    position: absolute;
    right: 60px;
    width: 900px;
    height: auto;
    pointer-events: none;
    z-index: -1;
}

/* ========== CONTACT PAGE ========== */
/* Dark body so no white gap shows below footer */
body.page-id-508 {
    background-color: #1D1D1B !important;
}
body.page-id-508 main#content {
    background-color: #ffffff;
}

/* heading gradient sphere */
/* Make contact-ellipse-8 smaller so it doesn't clip */
.contact-ellipse-8 {
    width: 500px !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 120px !important;
}

/* ========== ABOUT US CTA (desktop only) ========== */
@media (min-width: 1025px) {
    #form-about,
    .elementor-element-1e4b4d5 {
        background: #1D1D1B !important;
        border-radius: 24px !important;
        padding: 40px !important;
    }
    #form-about label,
    #form-about .cta-label,
    .elementor-element-1e4b4d5 label {
        color: #fff !important;
    }
    #form-about .wpcf7 input:not([type="submit"]),
    #form-about .wpcf7 textarea {
        background: #fff !important;
        border: 1px solid #E5E7EB !important;
        color: #1a1a2e !important;
    }
    #form-about .wpcf7 input::placeholder,
    #form-about .wpcf7 textarea::placeholder {
        color: #9CA3AF !important;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .header-nav {
        gap: 24px;
    }
    .header-cta {
        padding: 10px 16px;
        font-size: 14px;
    }
    .footer-top {
        flex-wrap: wrap;
    }
    /* Project cards: 2 per row on tablet */
    .project-card {
        max-width: calc((100% - 24px) / 2);
        min-width: calc((100% - 24px) / 2);
    }
    /* Our Process cards: 2x2 on tablet */
    .elementor-element-36f31ee {
        flex-wrap: wrap !important;
    }
    .elementor-element-36f31ee > .e-con-inner {
        flex-wrap: wrap !important;
        gap: 20px !important;
    }
    .elementor-element-36f31ee > .e-con-inner > .e-con,
    .elementor-element-36f31ee > .e-con-inner > .e-child {
        width: calc(50% - 10px) !important;
        min-width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        flex-grow: 0 !important;
    }
    /* What we build cards: better sizing */
    .cards_build_row {
        min-width: 0 !important;
    }
    /* Hide decorative ellipses on tablet - they clip badly */
    .process-deco,
    .cta-deco {
        display: none !important;
    }
    /* Contact page: force single column on tablet */
    body.page-id-508 main#content .e-con-inner {
        flex-direction: column !important;
    }
    body.page-id-508 main#content .e-con-inner > .e-con,
    body.page-id-508 main#content .e-con-inner > .e-child {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .site-header .header-inner {
        padding: 16px 24px;
    }
    .header-nav,
    .header-actions .lang-switcher,
    .header-actions .header-cta {
        display: none;
    }
    .burger {
        display: flex;
    }
    .site-footer .footer-inner {
        padding: 40px 24px;
    }
    .footer-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 24px;
    }
    .footer-logo {
        order: 1;
    }
    .footer-logo img {
        height: 56px;
    }
    .footer-contact {
        order: 2;
    }
    .footer-contact-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 16px !important;
    }
    .footer-contact .wpcf7,
    .footer-contact .wpcf7 form {
        width: auto !important;
        max-width: 300px !important;
    }
    .footer-contact .wpcf7 input[type="email"] {
        width: 100% !important;
        height: 48px;
        font-size: 16px;
        padding: 0 20px;
        box-sizing: border-box;
        margin: 0 !important;
    }
    .footer-contact .wpcf7 input[type="submit"],
    .footer-contact .wpcf7 button[type="submit"],
    .footer-contact .wpcf7 .wpcf7-submit,
    .footer-contact input[type="submit"],
    .footer-contact button[type="submit"] {
        width: 52px !important;
        height: 48px !important;
        margin: 0 !important;
    }
    .footer-nav {
        order: 3;
    }
    .footer-nav a {
        font-size: 18px;
    }
    .footer-nav,
    .footer-nav ul {
        gap: 32px;
    }
    .footer-contact-title {
        display: block;
    }
    /* Mobile menu full height */
    .mobile-menu__nav a {
        display: block;
        padding: 16px 0;
    }
    .mobile-menu__nav li {
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-menu__nav li:last-child {
        border-bottom: none;
    }
    /* Scale decorative gradients on mobile */
    .page-decorations {
        opacity: 0.6;
    }
    .page-decorations img,
    .page-decorations svg {
        width: 100vw !important;
    }
    /* Our Process cards: 2x2 grid on mobile */
    .elementor-element-36f31ee {
        flex-wrap: wrap !important;
    }
    .elementor-element-36f31ee > .e-con-inner {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    .elementor-element-36f31ee > .e-con-inner > .e-con,
    .elementor-element-36f31ee > .e-con-inner > .e-child {
        width: calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        flex-grow: 0 !important;
    }
    body.page-id-508 .page-decorations {
        display: block !important;
    }
    body.page-id-508 .contact-ellipse-8 {
        width: 300px !important;
    }
    .site-footer .footer-inner {
        padding: 48px 24px 24px;
        gap: 32px;
    }
    .footer-bottom p {
        font-size: 15px;
    }
    /* Kill ALL gaps between content and footer */
    main#content,
    main#content .page-content,
    main#content [data-elementor-type="wp-page"],
    main#content .elementor-element-eec4e20 {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    /* Remove border-radius and border from contact form section on mobile */
    .elementor-element-58e5fe1,
    .elementor-element-58e5fe1 > .e-con-inner,
    .elementor-element-378ee1f,
    .elementor-element-3cd02ab,
    .elementor-element-1f55bd9 {
        border-radius: 0 !important;
        border: none !important;
    }
    .elementor-element-58e5fe1 input:not([type="submit"]),
    .elementor-element-58e5fe1 textarea {
        border: 1px solid #E2DEE2 !important;
        border-radius: 0 !important;
    }
    .elementor-element-58e5fe1 label,
    .elementor-element-58e5fe1 .wpcf7-form p {
        color: #2E2A2A !important;
    }
    /* White background for shortcode/form container on mobile */
    .elementor-element-3cd02ab {
        background-color: #ffffff !important;
        padding-bottom: 24px !important;
    }
    .elementor-element-58e5fe1 {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .site-footer {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .footer-contact .wpcf7 form {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        align-items: stretch !important;
    }
    .footer-contact .wpcf7 form p {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }
    .footer-contact .wpcf7 form p br,
    .footer-contact .wpcf7 .wpcf7-spinner {
        display: none !important;
    }
    .footer-contact .wpcf7 form .wpcf7-form-control-wrap {
        display: flex !important;
        flex: 1 !important;
    }
    .footer-contact .wpcf7 input[type="email"] {
        border-radius: 12px 0 0 12px !important;
    }
    .footer-contact .wpcf7 .wpcf7-submit,
    .footer-contact .wpcf7 input[type="submit"],
    .footer-contact .wpcf7 button[type="submit"] {
        border-radius: 0 12px 12px 0 !important;
    }
}