/**
 * Vudavi customer homepage — mobile-only polish (max-width: 768px).
 * Loaded after customer-home.css; does not affect desktop (769px+).
 */

@media (min-width: 769px) {
  .btn-get-started__icon {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Soft botanical page backdrop */
  .v-page {
    background-color: #faf8f4;
  }

  .v-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../assets/mobile%20background.png") center top / cover no-repeat;
    opacity: 0.55;
  }

  .v-page > main,
  .v-page > footer {
    position: relative;
    z-index: 1;
  }

  /* Keep skip link accessible but off-screen (do not override sr-only positioning) */
  .v-page > .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    z-index: 1001;
  }

  .v-page > .skip-link:focus {
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    inset: 12px auto auto 12px;
    padding: 10px 14px;
    background: var(--v-green-deep, #005f3b);
    color: #fff;
    border-radius: 8px;
  }

  /* Header: logo left | language + menu right (no book button in row) */
  .header--customer {
    background: rgba(250, 248, 244, 0.95);
  }

  .header--customer > .v-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header__inner--customer {
    height: 64px;
    align-items: center;
    gap: 12px;
  }

  .header--customer .logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
    margin-right: auto;
  }

  .header--customer .logo__img {
    width: 118px;
    height: auto;
    display: block;
  }

  .header-actions--customer {
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    min-width: 0;
  }

  .header-actions--customer .btn-get-started {
    display: inline-flex !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 95, 59, 0.22);
  }

  .header-actions--customer .btn-get-started__label,
  .header-actions--customer .btn-get-started__arrow {
    display: none !important;
  }

  .header-actions--customer .btn-get-started__icon {
    display: block;
    flex-shrink: 0;
  }

  .header--customer .lang__btn {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 40px;
    align-items: center;
  }

  .header--customer .menu-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  /* Hero: headline → description → visual → CTAs → tagline (reference mobile layout) */
  .hero--customer {
    padding: 12px 0 40px;
    text-align: left;
    background: transparent;
  }

  .hero--customer .hero-bg-texture {
    opacity: 0.05;
  }

  .hero--customer .v-container {
    max-width: 100%;
  }

  .hero-grid--customer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
  }

  .hero-left {
    display: contents;
    max-width: none;
    margin: 0;
  }

  .hero-left .eyebrow-text {
    display: none !important;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
  }

  .hero-left .hero-title {
    order: 2;
    text-align: left;
    font-size: clamp(1.85rem, 8.8vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.028em;
    margin: 0 0 12px;
    color: var(--v-green-dark, #073b2d);
    max-width: 14.5em;
  }

  .hero-left .hero-title .gold-accent {
    color: var(--v-gold, #d5a52e);
  }

  .hero-left .hero-title .swoosh-curve {
    bottom: -10px;
    height: 13px;
  }

  .hero-left .hero-description {
    order: 3;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.65;
    color: #6b7f76;
    margin: 0;
    max-width: none;
  }

  /* Reference-style cluster: soft glow on cream, no visible frame box */
  .hero-right-stage {
    order: 4;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 432px;
    margin: 6px 0 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-right-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 52%;
    width: 118%;
    height: 78%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(235, 246, 240, 0.55) 38%,
      rgba(250, 248, 244, 0) 72%
    );
  }

  .hero-woman-img {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    max-width: 74%;
    width: auto;
    height: auto;
    margin: 0;
    z-index: 4;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 24px rgba(7, 59, 45, 0.08));
  }

  .hero-right-stage .floating-card {
    position: absolute;
    z-index: 5;
    width: auto !important;
    border-radius: 16px;
    border: 1px solid rgba(0, 95, 59, 0.07);
    box-shadow: 0 14px 36px rgba(7, 59, 45, 0.12), 0 4px 12px rgba(7, 59, 45, 0.05);
  }

  .hero-right-stage .f-card-calendar {
    top: 8px;
    left: -4px;
    width: 196px;
    max-width: 52%;
    transform: scale(0.86);
    transform-origin: top left;
    z-index: 6;
  }

  .hero-right-stage .f-card-confirm {
    top: 12px;
    right: -6px;
    left: auto;
    max-width: 56%;
    transform: scale(0.86);
    transform-origin: top right;
    z-index: 6;
  }

  .hero-right-stage .f-card-time {
    display: block;
    top: 34%;
    right: -8px;
    left: auto;
    width: 118px;
    max-width: 34%;
    transform: scale(0.84);
    transform-origin: top right;
    z-index: 6;
  }

  .hero-right-stage .f-card-doctor {
    bottom: 28px;
    left: -6px;
    right: auto;
    width: 228px;
    max-width: 62%;
    transform: scale(0.86);
    transform-origin: bottom left;
    z-index: 7;
  }

  .hero-right-stage .f-card-spa {
    bottom: 18px;
    right: -4px;
    left: auto;
    width: 188px;
    max-width: 52%;
    transform: scale(0.86);
    transform-origin: bottom right;
    z-index: 7;
  }

  .hero-left .hero-cta-group {
    order: 5;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin: 4px 0 0;
    justify-content: stretch;
  }

  .hero-left .btn-primary-book,
  .hero-left .btn-secondary-explore {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .hero-left .btn-primary-book {
    min-height: 50px;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 9999px;
    box-shadow: 0 8px 22px rgba(0, 95, 59, 0.28);
  }

  .hero-left .hero-brand-message {
    order: 6;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    margin: 8px 0 0;
    max-width: none;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 95, 59, 0.08);
    box-shadow: 0 6px 20px rgba(7, 59, 45, 0.06);
  }

  .hero-brand-sub {
    font-size: 13px;
  }

  .leaf-accent--hero-left,
  .leaf-accent--hero-right {
    display: none;
  }

  /* How it works — video first, app-like step cards */
  .section--works {
    padding: 32px 0 40px;
    background: transparent;
  }

  .section--works .section-header-center {
    text-align: center;
    margin-bottom: 20px;
  }

  .works-grid {
    gap: 20px;
  }

  .works-stage {
    order: 0;
  }

  .works-steps {
    order: 1;
    gap: 12px;
  }

  .works-step:not(:last-child)::before {
    display: none;
  }

  .works-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .works-step-num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .works-step-card {
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(7, 59, 45, 0.07);
  }

  .works-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  /* Overview — text then collage */
  .section--switch-overview {
    padding: 40px 0;
    background: transparent;
  }

  .overview-grid {
    gap: 28px;
  }

  .overview-left {
    text-align: left;
  }

  .overview-left .section-heading,
  .overview-left .section-lead {
    text-align: left;
  }

  .collage-container {
    gap: 14px;
  }

  .collage-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(7, 59, 45, 0.1);
  }

  .c-card--doctors,
  .c-card--salons,
  .c-card--events,
  .c-card--fitness {
    height: 140px;
  }

  .collage-pill-badge {
    border-radius: 999px;
  }

  /* Features */
  .section--features {
    padding: 40px 0;
    background: transparent;
  }

  .features-grid {
    gap: 12px;
  }

  .feature-card {
    border-radius: 18px;
    padding: 18px 14px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 22px rgba(7, 59, 45, 0.07);
    border: 1px solid rgba(0, 95, 59, 0.06);
  }

  .feature-card h3 {
    font-size: 15px;
  }

  .feature-card p {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 0;
  }

  /* Popular services — one card + dots carousel (mobile only) */
  .section--services {
    padding: 40px 0 44px;
    background: transparent;
  }

  .leaf-accent--services-edge {
    display: block;
    width: 100px;
    opacity: 0.35;
    top: 24px;
    left: -10px;
  }

  .services-carousel.is-mobile-carousel .services-carousel-viewport {
    overflow: hidden;
    width: 100%;
  }

  .services-carousel.is-mobile-carousel .services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .services-carousel.is-mobile-carousel .service-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(7, 59, 45, 0.1);
    scroll-snap-align: none;
  }

  .services-carousel.is-mobile-carousel .service-card--more {
    display: none;
  }

  .services-carousel.is-mobile-carousel .service-img-box {
    height: 176px;
    border-radius: 20px 20px 0 0;
  }

  .services-carousel.is-mobile-carousel .service-img-box img {
    object-fit: cover;
    object-position: center 22%;
  }

  .services-carousel.is-mobile-carousel .service-card:hover .service-img-box img {
    transform: none;
  }

  .services-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
  }

  .services-carousel-dots[hidden] {
    display: none !important;
  }

  .services-carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c5e6d4;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .services-carousel-dots button.is-active {
    background: #005f3b;
    transform: scale(1.12);
  }

  .services-carousel-dots button:focus-visible {
    outline: 2px solid #005f3b;
    outline-offset: 2px;
  }

  /* Newsletter — premium mobile card */
  .section--loop {
    padding: 12px 0 44px;
    background: transparent;
  }

  .loop-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    padding: 36px 20px 40px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(168deg, #0b5238 0%, #005f3b 42%, #073b2d 100%);
    box-shadow: 0 18px 44px rgba(7, 59, 45, 0.2);
  }

  .loop-banner::before {
    top: -20%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(213, 165, 46, 0.22) 0%, transparent 68%);
  }

  .loop-banner::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -2px;
    height: 88px;
    background:
      radial-gradient(ellipse 120% 100% at 50% 100%, rgba(250, 248, 244, 0.95) 0%, rgba(250, 248, 244, 0.55) 55%, transparent 72%);
    pointer-events: none;
    z-index: 0;
  }

  .loop-leaf--tl {
    display: block;
    position: absolute;
    top: 6px;
    left: 4px;
    width: 72px;
    height: auto;
    opacity: 0.75;
    z-index: 1;
  }

  .loop-leaf--br {
    display: block;
    position: absolute;
    bottom: 52px;
    right: 2px;
    width: 78px;
    height: auto;
    opacity: 0.85;
    z-index: 1;
  }

  .loop-left {
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .loop-icon-badge {
    width: 58px;
    height: 58px;
    color: #d5a52e;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(213, 165, 46, 0.45);
    box-shadow: 0 0 0 6px rgba(213, 165, 46, 0.12), 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .loop-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }

  .loop-eyebrow::before,
  .loop-eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(213, 165, 46, 0.95));
    border-radius: 1px;
  }

  .loop-eyebrow::after {
    background: linear-gradient(90deg, rgba(213, 165, 46, 0.95), transparent);
  }

  .loop-left h2 {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 6.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.28;
    margin: 4px 0 8px;
  }

  .loop-left p {
    font-size: 14px;
    line-height: 1.55;
    max-width: 22em;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
  }

  .loop-right {
    position: relative;
    z-index: 2;
    width: 100%;
  }

  .loop-form {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .loop-input-wrap {
    width: 100%;
    background: #ffffff;
    border-radius: 999px;
    padding: 14px 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  }

  .loop-form input {
    font-size: 14px;
  }

  .btn-subscribe {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 15px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #ecc55a 0%, #d5a52e 48%, #c49222 100%);
    box-shadow: 0 10px 26px rgba(213, 165, 46, 0.38);
  }

  .loop-form-feedback {
    margin-top: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .feature-icon-wrapper {
    flex-shrink: 0;
  }
}
