/*
Theme Name: Open Hearts Mobile Lite
Theme URI: https://www.open-hearts.fr/
Description: Child theme for VW Pet Care with a trimmed mobile header, simplified navigation, and mobile signup form repositioning.
Author: OpenAI
Template: vw-pet-care
Version: 1.0.7
Text Domain: open-hearts-mobile-lite
*/

/* Global stability tweaks */
html,
body {
  overflow-x: hidden;
}
body {
  overflow-y: visible;
}

/* Reduce transition overhead in navigation/header */
header *,
.mobile-menu-drawer *,
.mobile-header-action,
.topbar-button a {
  transition-duration: 0.2s !important;
}

/* Hide noisy desktop elements on mobile and tighten header */
.desktop-header-cta,
.mobile-header-cta,
.mobile-header-toggle {
  display: none;
}


.desktop-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.desktop-menu-wrapper .main-navigation {
  flex: 1 1 auto;
}

.desktop-header-cta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.desktop-header-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #ff642f;
  color: #ffffff !important;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(255, 100, 47, 0.22);
}

.desktop-header-cta a:hover,
.desktop-header-cta a:focus {
  color: #ffffff !important;
  opacity: 0.92;
}

@media screen and (max-width: 991px) {
  .topbar {
    display: none !important;
  }

  .middle-header {
    padding: 0;
    background: var(--ohml-header-bg);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

  .middle-header .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .middle-header1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    margin: 0;
  }

  .middle-header1 > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: initial;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0 !important;
  }

  .middle-header1 .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .middle-header1 .site-logo img,
  .middle-header1 .custom-logo {
    max-height: 44px;
    width: auto;
  }

  .middle-header1 .site-title,
  .middle-header1 .site-description {
    line-height: 1.2;
    margin: 0;
  }

  .middle-header1 .site-title a {
    font-size: 16px;
  }

  .middle-header1 .site-description {
    display: none;
  }

  .menu-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .search-cart,
  .middle-header1 .topbar-button,
  .middle-header1 .header-search-shortcut,
  .middle-header1 .desktop-menu-wrapper {
    display: none !important;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .mobile-header-actions > * {
    flex-shrink: 0;
  }

  .mobile-header-cta,
  .mobile-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-header-cta a,
  .mobile-header-toggle button {
    min-height: 42px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
  }

  .mobile-header-cta a {
    background: #ff642f;
    color: #fff;
    padding: 11px 14px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(255, 100, 47, 0.22);
  }

  .mobile-header-toggle button {
    width: 42px;
    background: #111;
    color: #fff;
    font-size: 18px;
  }

  .mobile-menu-drawer {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.48);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
  }

  .mobile-menu-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    box-shadow: -12px 0 32px rgba(0,0,0,0.18);
  }

  .mobile-menu-drawer.is-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .mobile-menu-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .mobile-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111;
    font-size: 18px;
  }

  .mobile-menu-body {
    overflow-y: auto;
    padding: 12px 18px 24px;
  }

  .mobile-menu-body ul,
  .mobile-menu-body li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-body .main-menu > ul > li,
  .mobile-menu-body .main-menu ul.sub-menu > li {
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .mobile-menu-body .main-menu a {
    display: block;
    padding: 14px 0;
    color: #111;
    font-size: 16px;
    font-weight: 600;
  }

  .mobile-menu-body .main-menu ul.sub-menu {
    position: static;
    display: block !important;
    width: 100%;
    box-shadow: none;
    padding-left: 14px;
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-cta {
    margin-top: 18px;
  }

  .mobile-menu-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #ff642f;
    color: #fff;
    font-weight: 700;
  }

  .mobile-home-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .mobile-home-content > * {
    width: 100%;
  }

  .mobile-signup-relocated {
    margin-top: 6px;
    padding-top: 6px;
  }

  .mobile-signup-relocated .mobile-signup-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  }

  .mobile-signup-relocated .mobile-signup-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff642f;
  }

  .mobile-signup-relocated h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .mobile-signup-relocated p {
    margin-bottom: 16px;
  }

  #content-vw {
    padding-top: 18px !important;
  }

  #slider .carousel-caption {
    padding: 28px 18px 18px;
  }

  #slider .inner_carousel h1,
  #slider .slide_splice {
    font-size: 30px !important;
    line-height: 1.15;
  }
}



  .ohml-language-switcher .mls2-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .ohml-language-switcher .mls2-lang-link {
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 6px;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(0,0,0,0.08) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .ohml-language-switcher .mls2-lang-link:hover,
  .ohml-language-switcher .mls2-lang-link:focus {
    background: rgba(255,255,255,0.28);
    border-color: rgba(0,0,0,0.16) !important;
    transform: translateY(-1px);
  }

  .ohml-language-switcher .mls2-lang-link[style*="background:rgba(0,0,0,.04)"],
  .ohml-language-switcher .mls2-lang-link[style*="background: rgba(0,0,0,.04)"] {
    background: rgba(255,255,255,0.3) !important;
    border-color: rgba(0,0,0,0.18) !important;
  }

  .ohml-language-switcher .mls2-flag {
    line-height: 1;
  }

  .ohml-language-switcher-header {
    display: inline-flex;
    align-items: center;
  }

  .ohml-language-switcher-drawer .mls2-lang-link {
    background: #f3f4f6;
  }

@media screen and (min-width: 992px) {
  .desktop-header-cta {
    display: inline-flex;
  }

  .mobile-menu-drawer {
    display: none !important;
  }

  .desktop-menu-wrapper {
    display: flex;
  }
}


/* Refined global link styling */
a,
a:visited,
.entry-content a,
.entry-summary a,
.page-content a,
.textwidget a,
.widget a,
.post-main-box a,
.postbox a,
#content-vw a,
#primary a,
#secondary a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease, opacity 0.22s ease;
}

a:hover,
a:focus,
.entry-content a:hover,
.entry-content a:focus,
.entry-summary a:hover,
.entry-summary a:focus,
.page-content a:hover,
.page-content a:focus,
.textwidget a:hover,
.textwidget a:focus,
.widget a:hover,
.widget a:focus,
.post-main-box a:hover,
.post-main-box a:focus,
.postbox a:hover,
.postbox a:focus,
#content-vw a:hover,
#content-vw a:focus,
#primary a:hover,
#primary a:focus,
#secondary a:hover,
#secondary a:focus {
  color: #ff642f;
  text-decoration: none;
}

/* Keep buttons looking like buttons */
a.button,
.wp-block-button__link,
.slider-btn,
.more-btn a,
.read-btn a,
.topbar-button a,
.mobile-header-cta a,
.mobile-menu-cta a,
.pagination a,
.page-numbers,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
input[type="submit"],
button,
button[type="submit"] {
  color: initial;
  text-decoration: none;
}

/* Respect the header colors configured in the theme customizer */
.home-page-header,
.middle-header,
.middle-header1 {
  background: var(--ohml-header-bg);
}

body:not(.home):not(.page-template-custom-home-page) .home-page-header,
body.blog .home-page-header,
body.archive .home-page-header,
body.search .home-page-header,
body.error404 .home-page-header,
body.single .home-page-header,
body.page:not(.page-template-custom-home-page) .home-page-header {
  background: var(--ohml-header-bg);
  position: static;
  padding-bottom: 20px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.05);
}

body:not(.home):not(.page-template-custom-home-page) .middle-header1,
body.blog .middle-header1,
body.archive .middle-header1,
body.search .middle-header1,
body.error404 .middle-header1,
body.single .middle-header1,
body.page:not(.page-template-custom-home-page) .middle-header1 {
  background: transparent;
}

body:not(.home):not(.page-template-custom-home-page) .site-title a,
body:not(.home):not(.page-template-custom-home-page) .logo h1 a,
body:not(.home):not(.page-template-custom-home-page) .logo p.site-description,
body:not(.home):not(.page-template-custom-home-page) .main-navigation a,
body:not(.home):not(.page-template-custom-home-page) .menu-bar-sec i,
body:not(.home):not(.page-template-custom-home-page) .topbar,
body.blog .site-title a,
body.archive .site-title a,
body.search .site-title a,
body.single .site-title a,
body.page:not(.page-template-custom-home-page) .site-title a {
  color: var(--ohml-menu-color);
}

body:not(.home):not(.page-template-custom-home-page) .main-navigation a:hover,
body:not(.home):not(.page-template-custom-home-page) .main-navigation li.current-menu-item > a,
body:not(.home):not(.page-template-custom-home-page) .main-navigation li.current_page_item > a,
body.blog .main-navigation a:hover,
body.archive .main-navigation a:hover,
body.search .main-navigation a:hover,
body.single .main-navigation a:hover,
body.page:not(.page-template-custom-home-page) .main-navigation a:hover {
  color: var(--ohml-menu-hover);
}

@media screen and (max-width: 991px) {
  body:not(.home):not(.page-template-custom-home-page) .home-page-header,
  body.blog .home-page-header,
  body.archive .home-page-header,
  body.search .home-page-header,
  body.error404 .home-page-header,
  body.single .home-page-header,
  body.page:not(.page-template-custom-home-page) .home-page-header {
    padding-bottom: 0;
    box-shadow: none;
  }
}



.ohml-header-nav .main-navigation ul a {
  color: var(--ohml-menu-color);
}

.ohml-header-nav .main-navigation ul a:hover,
.ohml-header-nav .main-navigation li.current-menu-item > a,
.ohml-header-nav .main-navigation li.current_page_item > a {
  color: var(--ohml-menu-hover);
}


/* Respect the footer background color configured in the theme customizer */
footer #footer,
#footer.copyright-wrapper,
footer aside#footer {
  background-color: var(--ohml-footer-bg) !important;
}

/* Keep any footer background image from the parent theme while restoring the chosen color underneath it */
footer #footer,
footer aside#footer {
  background-repeat: no-repeat;
  background-size: cover;
}


/* v1.0.7 place CTA next to language switcher with matching visual style */
.desktop-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.desktop-header-actions .ohml-language-switcher,
.mobile-header-actions .ohml-language-switcher {
  display: inline-flex;
  align-items: center;
}

.desktop-header-cta-inline,
.mobile-header-cta {
  display: inline-flex;
  align-items: center;
}

.ohml-switcher-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: inherit !important;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ohml-switcher-like-button:hover,
.ohml-switcher-like-button:focus {
  background: rgba(255,255,255,0.28) !important;
  border-color: rgba(0,0,0,0.16) !important;
  color: inherit !important;
  transform: translateY(-1px);
  opacity: 1;
}

.ohml-language-switcher-header .mls2-switcher {
  gap: 8px;
}

@media screen and (min-width: 992px) {
  .desktop-menu-wrapper {
    gap: 12px;
  }

  .desktop-menu-wrapper .main-navigation {
    flex: 1 1 auto;
    min-width: 0;
  }

  .desktop-header-actions {
    margin-left: 12px;
  }

  .desktop-header-cta {
    display: inline-flex;
  }

  .desktop-header-cta a {
    min-height: 34px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 999px !important;
    color: inherit !important;
    box-shadow: none !important;
    font-weight: 600;
  }

  .desktop-header-cta a:hover,
  .desktop-header-cta a:focus {
    background: rgba(255,255,255,0.28) !important;
    border-color: rgba(0,0,0,0.16) !important;
    color: inherit !important;
    opacity: 1;
  }
}

@media screen and (max-width: 991px) {
  .mobile-header-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .mobile-header-cta a {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
  }
}
