/*
 Beauty Clinique V0.5.2 | Mobile presentation
 Original EN / Simplified Chinese mobile visual reference is authoritative.
 This is a measured density pass, NOT the rejected 2.5 : 1.5 : 2 layout.
*/

@media (max-width: 899px) {
  body { padding-bottom: calc(55px + env(safe-area-inset-bottom, 0px)); }

  /* More compact editorial hero; no content or photo replacement. */
  .hero {
    min-height: clamp(395px, 52svh, 460px);
    padding: 22px 24px 21px;
  }
  .hero-picture img { object-position: 55% 49%; }
  .brand { font-size: 20px; }
  .site-header { width: 100%; }
  .hero-content { max-width: 245px; margin-top: 24px; }
  .hero-kicker {
    margin: 0 0 10px;
    font-size: 8.5px;
  }
  .hero h1 {
    margin: 0 0 13px;
    font-size: clamp(36px, 10.2vw, 43px);
    letter-spacing: .135em;
  }
  .hero-description {
    max-width: 207px;
    margin: 0 0 17px;
    font-size: 10.5px;
    line-height: 1.46;
  }
  .hero-link { font-size: 8.5px; }
  .hero-bottom { min-height: 24px; }
  .hero-contacts .separator { display: none; }
  .hero-contacts a { font-size: 9.5px; }

  /* Condensed icon grid, respecting the approved 3x2 dark-slate design. */
  .care-section { padding: 23px 24px 20px; }
  .care-heading-row { margin-bottom: 13px; }
  .care-intro .eyebrow { font-size: 8.5px; margin: 0 0 8px; }
  .care-intro h2 { font-size: clamp(26px, 7.3vw, 30px); }
  .care-description { max-width: 265px; font-size: 10px; line-height: 1.43; }
  .care-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .care-card {
    height: 74px;
    border-radius: 4px;
    gap: 7px;
  }
  .care-icon { width: 22px; height: 22px; }
  .care-card span { font-size: 9.5px; }
  .care-heading-arrow { margin-bottom: 0; }

  /* Existing sections retain approved order and design language. */
  .featured-section { padding: 28px 24px 23px; min-height: 175px; }
  .featured-section h2 { font-size: 24px; line-height: 1.05; margin-bottom: 8px; }
  .featured-body > p:not(.mini-label) { font-size: 10px; max-width: 230px; }
  .featured-actions { margin-top: 13px; }
  .price-section { padding: 25px 24px; }
  .price-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(110px, 1fr); gap: 15px; }
  .price-section h2 { font-size: 24px; line-height: 1.04; margin-bottom: 6px; }
  .price-overview p { font-size: 10px; }
  .price-teaser p { font-size: 9px; gap: 4px; }
  .consult-section { padding: 26px 24px; min-height: 175px; }
  .consult-section h2 { font-size: 25px; margin: 0 0 6px; }
  .consult-section p:not(.eyebrow) { font-size: 10px; max-width: 285px; }
  .consult-actions { margin-top: 16px; }
  .consult-actions a { flex: 1; }
  .treatments-section { padding: 45px 24px; }
  .treatments-section h2 { font-size: 32px; }
  .contact-section { padding: 35px 24px 48px; }
  .contact-section h2 { font-size: 26px; }

  .mobile-sticky {
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: calc(55px + env(safe-area-inset-bottom, 0px));
    padding: 0 12px env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #142733;
    border-top: 1px solid rgba(195,169,143,.25);
    color: var(--champagne);
  }
  .mobile-sticky a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    min-height: 45px;
    white-space: nowrap;
  }
  .mobile-sticky a + a { border-left: 1px solid rgba(195,169,143,.3); }
}

@media (max-width: 360px) {
  .hero { min-height: 392px; padding-left: 20px; padding-right: 20px; }
  .hero-content { max-width: 230px; }
  .hero h1 { font-size: 36px; letter-spacing: .115em; }
  .care-section { padding-left: 20px; padding-right: 20px; }
  .care-card span { font-size: 9px; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero { min-height: 495px; }
  .care-card { height: 95px; }
}

/*
 Beauty Clinique V0.5.3 | Shared category photography
 iPhone and iPad Portrait reuse the exact six Desktop image assets.
 No change to the approved responsive grid dimensions or Hero.
*/
@media (max-width: 899px) {
  .care-card {
    background-color: #293b46;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    isolation: isolate;
  }

  .care-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(6, 14, 20, .36) 0%,
      rgba(6, 14, 20, .48) 45%,
      rgba(6, 14, 20, .76) 100%
    );
    pointer-events: none;
  }

  .care-card .care-icon,
  .care-card > span {
    position: relative;
    z-index: 1;
  }

  .care-card > span {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  }

  .care-basic { background-image: url('../images/categories/desktop/basic.webp'); }
  .care-hydration { background-image: url('../images/categories/desktop/hydration.webp'); }
  .care-acne { background-image: url('../images/categories/desktop/acne.webp'); }
  .care-sensitive { background-image: url('../images/categories/desktop/sensitive.webp'); }
  .care-aging { background-image: url('../images/categories/desktop/aging.webp'); }
  .care-more { background-image: url('../images/categories/desktop/more.webp'); }
}
