/*
 Beauty Clinique V0.5.2 | Desktop presentation
 Desktop visual baseline: approved 1440 x 900 first-screen composition.
 Hero / Care = 23 / 7 of the ACTUAL CSS viewport height.
 At 1440 x 900 CSS viewport: 690px + 210px exactly.
 Only visual sizing / alignment changes here. No image or route changes.
*/

@media (min-width: 900px) {
  main {
    display: flex;
    flex-direction: column;
  }

  /* 01: viewport-fitted first screen */
  .hero {
    order: 1;
    height: calc(100svh * 23 / 30);
    min-height: 0;
    flex: none;
    padding: clamp(18px, 3.4svh, 31px) max(24px, 5.3vw)
             clamp(17px, 3.8svh, 35px);
  }
  .hero-picture img { object-position: center center; }
  .hero-veil {
    background: linear-gradient(90deg,
      rgba(6,18,27,.88), rgba(8,20,29,.57) 34%,
      rgba(8,20,29,.06) 76%, rgba(8,20,29,.16));
  }
  .brand { font-size: clamp(25px, 3.6svh, 32px); }
  .site-menu { display: none; }
  .desktop-nav { display: flex; align-items: center; gap: 30px; }
  .desktop-nav > a:not(.top-book),
  .desktop-nav button {
    color: #eee9e2;
    background: none;
    border: none;
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  .desktop-nav .lang-switch { color: var(--champagne); }
  .desktop-nav .top-book {
    border: 1px solid var(--champagne);
    border-radius: 24px;
    padding: clamp(9px, 1.45svh, 13px) 20px;
    color: var(--cream);
    font-size: 10px;
    letter-spacing: .13em;
  }
  .hero-content {
    width: 490px;
    max-width: 39vw;
    margin-top: clamp(4px, 3.4svh, 35px);
  }
  .hero-kicker { margin-bottom: clamp(10px, 1.8svh, 18px); }
  .hero h1 {
    font-size: clamp(46px, min(5.1vw, 8.2svh), 82px);
    line-height: .94;
    margin: 0 0 clamp(12px, 2.4svh, 24px);
  }
  .hero-description {
    max-width: 370px;
    font-size: clamp(12px, 1.65svh, 15px);
    line-height: 1.55;
    margin: 0 0 clamp(13px, 2.5svh, 26px);
  }
  .hero-link { font-size: 11px; }
  .hero-contacts a { font-size: 13px; }
  .hero-bottom { padding-bottom: 0; }
  .hero-count { flex-direction: row; align-items: baseline; gap: 5px; }
  .hero-count strong { font: 500 16px var(--sans); }
  .hero-count small { font-size: 12px; }

  /* 02: category ribbon occupies remainder of same viewport */
  .care-section {
    order: 2;
    height: calc(100svh * 7 / 30);
    min-height: 0;
    flex: none;
    padding: clamp(6px, 1.3svh, 12px) 24px
             clamp(5px, 1.1svh, 10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, .9svh, 9px);
  }
  .care-heading-row {
    flex: 0 0 auto;
    height: clamp(27px, 4.4svh, 40px);
    align-items: center;
  }
  .care-intro .eyebrow {
    font-size: clamp(8px, 1.15svh, 10px);
    margin: 0 0 2px;
  }
  .care-intro h2 { font-size: clamp(19px, 2.9svh, 26px); }
  .care-description { display: none; }
  .care-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }
  .care-card {
    min-width: 0;
    min-height: 0;
    height: 100%;
    gap: clamp(5px, 1.1svh, 12px);
    justify-content: flex-end;
    padding: 0 6px clamp(8px, 1.75svh, 19px);
    border-radius: 3px;
    background-color: #293b46;
    background-position: center;
    background-size: cover;
    isolation: isolate;
  }
  .care-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(0deg, rgba(6,14,20,.75), transparent 90%);
  }
  .care-card span {
    font: 500 clamp(13px, 2svh, 19px) var(--serif);
    white-space: normal;
  }
  .care-icon {
    width: clamp(20px, 3svh, 27px);
    height: clamp(20px, 3svh, 27px);
  }
  .care-card:hover { filter: brightness(1.08); }
  /* Existing approved image themes. Official Desktop crops come later. */
  .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'); }

  /* 03: all content starts AFTER first viewport, with a shared left edge. */
  .consult-section {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px max(24px, 5.3vw);
  }
  .consult-section h2 { font-size: 36px; margin: 0 0 10px; }
  .consult-section p:not(.eyebrow) { font-size: 13px; margin-bottom: 0; }
  .consult-actions a { padding: 14px 22px; min-width: 150px; }

  .featured-section { order: 4; padding: 58px max(24px, 5.3vw); }
  .featured-section h2 { font-size: 45px; margin: 0 0 12px; }
  .featured-body { max-width: 550px; }
  .featured-body > p:not(.mini-label) { font-size: 13px; }
  .featured-actions { margin-top: 24px; max-width: 400px; }

  .price-section { order: 5; padding: 46px max(24px, 5.3vw); }
  .price-overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; }
  .price-section h2 { font-size: 42px; margin: 0 0 5px; }
  .price-teaser p { font-size: 13px; }

  /* Legacy home price list, pending removal under approved multi-page routing. */
  .treatments-section { order: 6; padding: 70px max(24px, 5.3vw); }
  .treatments-section h2 { font-size: 45px; }
  .treatment-list { max-width: none; margin: 0; }

  .contact-section {
    order: 7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 55px max(24px, 5.3vw);
    gap: 50px;
  }
  .contact-section h2 { font-size: 40px; }
}

@media (min-width: 900px) and (max-width: 1150px) {
  .hero { padding-inline: 34px; }
  .desktop-nav { gap: 12px; }
  .desktop-nav > a:not(.top-book),
  .desktop-nav button { font-size: 9px; }
  .desktop-nav .top-book { padding-inline: 11px; }
  .hero-content { max-width: 45vw; }
  .care-card span { font-size: 15px; }
}

/* Short CSS viewports: let the page scroll rather than crush content. */
@media (min-width: 900px) and (max-height: 620px) {
  .hero { height: auto; min-height: 450px; }
  .care-section { height: 180px; min-height: 180px; }
}
