/**
 * ═══════════════════════════════════════════════════════
 *  OLEA CARTHA - Responsive Overlay
 *  Additive only - never overrides core functionality
 *  Breakpoints: 991px (tablet), 767px (mobile-lg), 479px (mobile-sm)
 * ═══════════════════════════════════════════════════════
 */

/* --- 1. SVH support: real mobile viewport height --- */
@supports (height: 100svh) {
  :root {
    --_100svh: 100svh;
  }
}

/* ═══════════════════════════════════════════════════════
   TABLET <= 991px
   ═══════════════════════════════════════════════════════ */
@media screen and (max-width: 991px) {

  html {
    font-size: clamp(14px, 2.4vw, 16px);
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .cookies_card {
    max-width: calc(100vw - 48px);
  }

  .contact-s_map {
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
  }

  .modal_cta_c {
    max-width: 100%;
  }

  .img-w {
    overflow: hidden;
  }

  .loc-path-s_path {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Preloader Symmetry & Centering on Mobile */
  .preloader_ctn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .preloader_t {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .preloader_c {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .preloader_c .grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .preloader_title-l,
  .preloader_title-r {
    display: none !important;
  }

  .preloader_logo {
    grid-area: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .preloader_logo [data-part="h"] {
    text-align: center !important;
    width: 100% !important;
  }

  .preloader_b {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .preloader_b .grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .preloader_b .s_title {
    grid-area: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .preloader_b .s_title [data-part="p"] {
    text-align: center !important;
    width: 100% !important;
  }

  .preloader_progress {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .loc-s_media_c,
  .lot-s_media_c {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .flower {
    width: calc(var(--40px) * 8) !important;
    height: calc(var(--40px) * 8) !important;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE-LG <= 767px
   ═══════════════════════════════════════════════════════ */
@media screen and (max-width: 767px) {

  html {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  body {
    overflow-x: hidden;
  }

  .section,
  .container {
    width: 100%;
    min-width: 0;
  }

  .quote-w_bg {
    aspect-ratio: auto !important;
    min-height: 60vw;
  }

  .hero-s_title {
    flex-wrap: wrap;
    gap: var(--_units---u-8, 8px);
  }

  .loc-path-s_path_c {
    width: 200%;
  }

  .loc-intro-s_title_line.is-1 {
    margin-left: 0 !important;
  }

  .contact-s_map {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }


  .btn,
  .btn-ico {
    min-height: 44px;
  }

  .cookies_card {
    max-width: calc(100vw - 32px);
  }

  .flower {
    width: calc(var(--40px) * 6) !important;
    height: calc(var(--40px) * 6) !important;
  }

  .interior-s_l_img-w {
    padding-right: var(--_units---u-32, 24px) !important;
    padding-left: var(--_units---u-32, 24px) !important;
  }

  .modal_lightbox_content {
    width: 100% !important;
    height: calc(100% - 96px) !important;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE-SM <= 479px
   ═══════════════════════════════════════════════════════ */
@media screen and (max-width: 479px) {

  html {
    font-size: 13px;
  }


  .apart-type-slide_data .data-list,
  .lot-s_info_data {
    grid-template-columns: 1fr 1fr;
  }

  .hero-scroll-area {
    height: calc((var(--_special-units---100vh, 100vh) * 2) + (50rem + var(--_special-units---100vh, 100vh)));
  }

  .apart-benefits-cms_list,
  .apart-cms_list {
    grid-template-columns: 1fr !important;
  }

  .header-nav {
    width: auto;
  }


  .cookies_card {
    flex-direction: column !important;
    max-width: calc(100vw - 24px);
  }

  .flower {
    width: calc(var(--40px) * 4) !important;
    height: calc(var(--40px) * 4) !important;
  }

  .cookies_card_btn-list,
  .cookies_card_t {
    width: 100% !important;
  }

  .modal_cta_form_c {
    width: 100% !important;
  }

  img:not(.img) {
    max-width: 100%;
  }

  .img {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   TOUCH DEVICE ENHANCEMENTS
   ═══════════════════════════════════════════════════════ */
@media (pointer: coarse) {

  [data-cookies],
  .btn-menu,
  .pag_next,
  .pag_prev,
  .amen-tab,
  .tab,
  [hover-tab] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ═══════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════ */
@media print {
  .flower,
  .preloader,
  .master-preloader,
  .cookies,
  .modal,
  .header-nav,
  .header-logo,
  .s-bar-w,
  .s-down,
  .floating-tips,
  .landscape-cover {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ═══════════════════════════════════════════════════════
   OLIVE BRANCH ANIMATIONS
   Replaces the bougainvillea video motion with CSS keyframe
   gentle breeze sway - matching original parallax feel
   ═══════════════════════════════════════════════════════ */

@keyframes olive-sway-1 {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(1.2deg) scale(1.005); }
  50%  { transform: rotate(-0.8deg) scale(0.998); }
  75%  { transform: rotate(1.5deg) scale(1.003); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes olive-sway-2 {
  0%   { transform: rotate(0deg) translateY(0px); }
  30%  { transform: rotate(-1.4deg) translateY(-3px); }
  60%  { transform: rotate(0.9deg) translateY(2px); }
  100% { transform: rotate(0deg) translateY(0px); }
}

@keyframes olive-sway-3 {
  0%   { transform: rotate(0deg) translateX(0px); }
  33%  { transform: rotate(1deg) translateX(4px); }
  66%  { transform: rotate(-0.6deg) translateX(-2px); }
  100% { transform: rotate(0deg) translateX(0px); }
}

/* Apply sway animations to transparent olive branch images */
.olive-branch-img {
  transform-origin: center top;
  will-change: transform;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Each flower position gets a different sway timing for natural feel */
.flower.loc-info     .olive-branch-img { animation: olive-sway-1 6s ease-in-out infinite; transform-origin: top left; }
.flower.loc-intro    .olive-branch-img { animation: olive-sway-2 8s ease-in-out infinite; transform-origin: bottom left; }
.flower.loc-path     .olive-branch-img { animation: olive-sway-3 7s ease-in-out infinite; transform-origin: center right; }
.flower.apart-info   .olive-branch-img { animation: olive-sway-1 9s ease-in-out infinite 1s; transform-origin: center left; }
.flower.arch-intro-l .olive-branch-img { animation: olive-sway-2 7.5s ease-in-out infinite 0.5s; transform-origin: bottom left; }
.flower.interior     .olive-branch-img { animation: olive-sway-3 6.5s ease-in-out infinite 2s; transform-origin: top right; }
.flower.arch-intro-r .olive-branch-img { animation: olive-sway-1 8.5s ease-in-out infinite 1.5s; transform-origin: center right; }
.flower.other        .olive-branch-img { animation: olive-sway-2 7s ease-in-out infinite 3s; transform-origin: top right; }
.flower.apart        .olive-branch-img { animation: olive-sway-3 6s ease-in-out infinite 0.8s; transform-origin: top right; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .olive-branch-img {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   CUSTOM TUNING FOR THE 3 MAIN OLIVE BRANCH POSITIONS
   1. loc-info: Scaled down to prevent covering body text
   2. loc-intro: Flipped direction (scaleX(-1)) away from title
   3. loc-path: Positioned higher up at the top edge
   ═══════════════════════════════════════════════════════ */

/* 1. First Section (The Soul) - Balanced luxury scale */
.flower.loc-info {
  width: calc(var(--80px) * 7.8) !important;
  height: calc(var(--80px) * 7.8) !important;
  max-width: 580px !important;
  max-height: 580px !important;
  top: calc((110rem / var(--_special-units---scale-ratio)) * -1) !important;
  left: calc(((75rem / var(--_special-units---scale-ratio)) * -1) - var(--_special-units---offset-r)) !important;
}

/* 2. Second Section (New Golden Mile) - Rotated 60deg counter-clockwise, larger scale */
.flower.loc-intro {
  width: calc(var(--80px) * 8.5) !important;
  height: calc(var(--80px) * 8.5) !important;
  max-width: 650px !important;
  max-height: 650px !important;
  left: calc((240rem / var(--_special-units---scale-ratio)) * -1) !important;
  bottom: calc((140rem / var(--_special-units---scale-ratio)) * -1) !important;
  transform: rotate(30deg) scaleX(-1) !important;
}

/* 3. Third Section (The terroir you desired) - Placed at the top */
.loc-path-w_flower {
  top: 0% !important;
  overflow: visible !important;
  pointer-events: none !important;
}

.flower.loc-path {
  position: absolute !important;
  top: calc((110rem / var(--_special-units---scale-ratio)) * -1) !important;
  right: calc(((30rem / var(--_special-units---scale-ratio)) * -1) - var(--_special-units---offset-r)) !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
  width: calc(var(--80px) * 5.8) !important;
  height: calc(var(--80px) * 5.8) !important;
  max-width: 440px !important;
  max-height: 440px !important;
  transform: scaleX(1) !important;
}

/* 4. Fourth Section (Reserves strictly limited / apart-info) - Scaled down to clear text */
.flower.apart-info {
  width: calc(var(--80px) * 5.5) !important;
  height: calc(var(--80px) * 5.5) !important;
  max-width: 420px !important;
  max-height: 420px !important;
  bottom: calc((60rem / var(--_special-units---scale-ratio)) * -1) !important;
  left: calc(((90rem / var(--_special-units---scale-ratio)) * -1) - var(--_special-units---offset-l)) !important;
}

/* 5. Fifth Section (Bottle showcase / interior) - Scaled down to accent top-right shoulder */
.flower.interior {
  width: 58% !important;
  max-width: 320px !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  right: 0% !important;
  top: calc((40rem / var(--_special-units---scale-ratio)) * -1) !important;
}

/* 6. Sixth Section (Architecture / arch-intro) - Rotated left branch 90deg clockwise and scaled both branches */
.flower.arch-intro-l {
  transform: rotate(-60deg) !important;
  width: calc(var(--80px) * 6.8) !important;
  height: calc(var(--80px) * 6.8) !important;
  max-width: 540px !important;
  max-height: 540px !important;
  left: calc(((110rem / var(--_special-units---scale-ratio)) * -1) - var(--_special-units---offset-r)) !important;
  bottom: calc((100rem / var(--_special-units---scale-ratio)) * -1) !important;
}

.flower.arch-intro-r {
  width: calc(var(--80px) * 7.2) !important;
  height: calc(var(--80px) * 7.2) !important;
  max-width: 560px !important;
  max-height: 560px !important;
  right: calc(((60rem / var(--_special-units---scale-ratio)) * -1) - var(--_special-units---offset-r)) !important;
  bottom: calc((110rem / var(--_special-units---scale-ratio)) * -1) !important;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 991px) {
  .flower.loc-info {
    width: 330px !important;
    height: 330px !important;
    top: -45px !important;
    left: -30px !important;
  }
  .flower.loc-intro {
    width: 390px !important;
    height: 390px !important;
    left: -110px !important;
    bottom: -40px !important;
    transform: rotate(30deg) scaleX(-1) !important;
  }
  .flower.loc-path {
    width: 290px !important;
    height: 290px !important;
    top: -50px !important;
    right: -20px !important;
  }
  .flower.apart-info {
    width: 280px !important;
    height: 280px !important;
    bottom: -40px !important;
    left: -40px !important;
  }
  .flower.interior {
    width: 58% !important;
    max-width: 250px !important;
    top: -20px !important;
  }
  .flower.arch-intro-l {
    width: 360px !important;
    height: 360px !important;
  }
  .flower.arch-intro-r {
    width: 380px !important;
    height: 380px !important;
  }
}

@media screen and (max-width: 479px) {
  .flower.loc-info {
    width: 200px !important;
    height: 200px !important;
    top: -30px !important;
    left: -25px !important;
  }
  .flower.loc-intro {
    width: 220px !important;
    height: 220px !important;
    left: -40px !important;
    bottom: -30px !important;
  }
  .flower.loc-path {
    width: 200px !important;
    height: 200px !important;
    top: -30px !important;
    right: -10px !important;
  }
  .flower.apart-info {
    width: 190px !important;
    height: 190px !important;
    bottom: -25px !important;
    left: -25px !important;
  }
  .flower.interior {
    width: 62% !important;
    max-width: 180px !important;
    top: -15px !important;
  }
  .flower.arch-intro-l {
    width: 250px !important;
    height: 250px !important;
  }
  .flower.arch-intro-r {
    width: 260px !important;
    height: 260px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE SECTION REFINEMENTS
   ═══════════════════════════════════════════════════════ */
@media screen and (max-width: 991px) {
  /* Optical balance: shift 'Mediterranean' slightly left towards center emblem */
  .info-s_logo_r {
    transform: translateX(-10px) !important;
  }

  /* Center Section Titles, Subtitles, and Slide Captions on Mobile */
  .s_title,
  .benefit-slide_cap,
  .loc-intro-s_cap {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .s_title > *,
  .benefit-slide_cap > *,
  .loc-intro-s_cap > * {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Products section (The Collection): Clean separation between image and title on mobile */
  .apart-type-slide_b {
    margin-top: 1rem !important;
    padding-top: 0.5rem !important;
  }
}

/* ═══════════════════════════════════════════════════════
   PRODUCTS SECTION (THE COLLECTION): DESKTOP ALIGNMENT & SPACING
   ═══════════════════════════════════════════════════════ */
@media screen and (min-width: 992px) {
  .apart-type-slide {
    position: relative !important;
  }

  /* 1. Left Data Text: shift to Column 1 with ample breathing room away from center image */
  .apart-type-slide_data {
    grid-area: 1 / 1 / 2 / 4 !important;
    max-width: min(340px, 26vw) !important;
    padding-right: 2rem !important;
    z-index: 2 !important;
    position: relative !important;
  }

  /* 2. Center Image: horizontally & vertically centered, elegant scale to clear bottom title */
  .apart-type-slide_img-w {
    position: absolute !important;
    top: 42% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .apart-type-slide_img {
    width: auto !important;
    height: auto !important;
    max-height: min(42vh, 390px) !important;
    max-width: min(310px, 23vw) !important;
    aspect-ratio: 3 / 4 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: auto !important;
  }

  .apart-type-slide_img .img-w {
    width: 100% !important;
    height: 100% !important;
    max-height: min(42vh, 390px) !important;
    max-width: min(310px, 23vw) !important;
    aspect-ratio: 3 / 4 !important;
  }

  .apart-type-slide_img .img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 3. Right Description Text */
  .apart-type-slide_desc {
    grid-area: 1 / 7 / 2 / 9 !important;
    z-index: 2 !important;
    position: relative !important;
  }

  /* 4. Bottom Title Text: clean, elegant separation below image, zero overlap */
  .apart-type-slide_b {
    position: relative !important;
    z-index: 2 !important;
    padding-bottom: 2rem !important;
    margin-top: 0 !important;
  }

  .apart-type-slide_b h3 {
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 0 !important;
    padding-top: 1rem !important;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE FLOATING PILL NAVBAR
   ═══════════════════════════════════════════════════════ */
.mob-pill-nav {
  display: none;
}

@media screen and (max-width: 991px) {
  .mob-pill-nav {
    display: flex !important;
    position: fixed !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 950 !important;
    pointer-events: none !important;
    width: auto !important;
    animation: pillFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
  }

  @keyframes pillFadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, 20px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }

  .mob-pill-container {
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* Ergonomically fitted to mobile screen dimensions: sleek 240px width */
    width: min(240px, calc(100vw - 44px)) !important;
    padding: 6px 8px !important;
    background: rgba(22, 21, 19, 0.84) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
  }

  .mob-pill-link {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  .mob-pill-link:active {
    transform: scale(0.9) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  .mob-pill-link.is-cta {
    background: rgba(180, 172, 158, 0.22) !important;
    border: 1px solid rgba(180, 172, 158, 0.45) !important;
    color: #d4af37 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  }

  .mob-pill-link.is-cta:active {
    background: rgba(180, 172, 158, 0.38) !important;
  }

  .mob-pill-link.is-wa {
    color: #25d366 !important;
  }

  .mob-pill-link.is-wa:hover,
  .mob-pill-link.is-wa:active {
    background: rgba(37, 211, 102, 0.16) !important;
    color: #2ee872 !important;
  }

  .mob-pill-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
  }

  .mob-pill-emblem {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d4af37 !important;
  }
}

@media screen and (max-width: 360px) {
  .mob-pill-container {
    width: min(216px, calc(100vw - 24px)) !important;
    padding: 4px 6px !important;
  }
  .mob-pill-link {
    width: 38px !important;
    height: 38px !important;
  }
  .mob-pill-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .mob-pill-emblem .olea-emblem {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   MULTI-LANGUAGE SWITCHER (EN / FR / IT)
   ═══════════════════════════════════════════════════════ */
.modal_lang_switch {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
  position: relative !important;
  z-index: 20 !important;
}

.lang-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-family: inherit !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.lang-btn.is-active {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: rgba(180, 172, 158, 0.22) !important;
  border: 1px solid rgba(180, 172, 158, 0.45) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2) !important;
  font-size: 8px !important;
  line-height: 1 !important;
}





