/* V1.0.1: scoped visual fixes; booking behavior and approved copy stay unchanged. */
body #site-header > div { padding-top: 12px !important; padding-bottom: 12px !important; }
body #site-navigation a,
body #site-header #site-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
body #site-navigation a { padding: 0 6px; }
body .unified-site-footer .unified-footer-links a { min-height: 44px; }
body main #contact.contact h2 { color: #faf8f5 !important; }

html body main .legal-layout { width: min(1120px, calc(100% - 48px)); }
html body main .legal-layout .article { min-width: 0; }
html body main .legal-layout section { scroll-margin-top: 144px; }
html body main .legal-layout .toc { top: 112px; }
html body main .legal-layout .toc a { display: block; min-height: 44px; }

body #demo-form .appointment-field label { font-size: 14px; line-height: 1.6; }
body #demo-form .appointment-field input {
  min-height: 48px;
  font-size: 16px;
  line-height: 1.5;
  padding: 11px 12px;
}
body #demo-form button[type="submit"] { min-height: 48px; font-size: 16px; }
body #demo-form .privacy-notice { grid-template-columns: 24px minmax(0,1fr); gap: 12px; }
body #demo-form .privacy-notice #privacy-consent { width: 24px; height: 24px; margin-top: 10px; }
body #demo-form #privacy-notice-title { display: flex; align-items: center; min-height: 44px; font-size: 14px; margin: 0; }
body #demo-form .privacy-notice a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
body #result-close { min-height: 48px; font-size: 16px; }

body main .carousel-controls { gap: 12px; }
body main .journey-tabs { gap: 0; }
body main .journey-tabs button,
body main .journey-tabs button[aria-selected="true"],
body main .carousel-arrow { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
body main .journey-tabs button:focus-visible { outline: 2px solid #254f43; outline-offset: -3px; border-radius: 4px; }

body #hero.minimal-hero { min-height: 500px; padding: 64px 24px; }
body #hero.minimal-hero h1 { font-size: 46px; }

/* Fixed source selection: left 43%; desktop keeps its full height and stone plinth. */
body #product-hero {
  --product-stage-width: min(100vw, 1920px);
  position: relative; height: auto;
  min-height: max(540px, calc(var(--product-stage-width) * 0.29875));
  max-height: none; overflow: hidden; background: #eeebe5 !important;
}
body #product-hero .product-hero-art { position: absolute; inset: 0; width: min(100%, 1920px); margin: auto; overflow: hidden; background: #eeebe5; }
body #product-hero .product-hero-floral { position: absolute; inset: 0 auto 0 0; width: 46.5%; overflow: hidden; }
body #product-hero .product-hero-floral img {
  display: block; width: auto; max-width: none; height: 100%; aspect-ratio: 1672 / 941;
  object-fit: contain; object-position: left bottom; clip-path: inset(0 57% 0 0);
  -webkit-mask-image: linear-gradient(to right, #000 32%, transparent 43%);
  mask-image: linear-gradient(to right, #000 32%, transparent 43%);
}
body #product-hero .hero-overlay-media {
  position: absolute; inset: auto 0 0 auto; width: 53.5%; height: auto; aspect-ratio: 1678 / 937;
  object-fit: contain; object-position: center bottom;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px), linear-gradient(to bottom, transparent, #000 20px);
  mask-image: linear-gradient(to right, transparent, #000 24px), linear-gradient(to bottom, transparent, #000 20px);
  mask-composite: intersect;
}
body #product-hero .hero-inner { position: relative; height: auto; min-height: inherit; padding-top: 48px; padding-bottom: 48px; z-index: 2; }
body #product-hero .hero-copy { width: 44%; }

/* Pad and phone: floral background with live text, followed by the device image. */
@media (max-width: 1279px) {
  body #product-hero { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  body #product-hero .product-hero-art { display: contents; }
  body #product-hero .product-hero-floral {
    position: relative; inset: auto; grid-area: 1 / 1; width: 100%; min-height: 0; background: #eeebe5;
  }
  /* Only source rows 0..700 are shown; the stone starts below this fixed selection. */
  body #product-hero .product-hero-floral img {
    position: absolute; inset: 0 auto auto 0; height: 134.428571%; object-position: left top;
  }
  body #product-hero .product-hero-floral::after {
    content: ""; position: absolute; inset: auto 0 0; height: 28px;
    background: linear-gradient(to bottom, transparent, #eeebe5); pointer-events: none;
  }
  body #product-hero .hero-inner {
    grid-area: 1 / 1; width: 100%; height: auto; min-height: 420px;
    padding: 40px 40px 56px; align-items: center;
  }
  body #product-hero .hero-copy { width: 100%; max-width: 600px; padding: 0; }
  body #product-hero .hero-copy h1 { font-size: 32px !important; line-height: 1.3 !important; }
  body #product-hero .hero-lead { margin-top: 16px; font-size: 22px; }
  body #product-hero .hero-detail { max-width: 420px; font-size: 14px; }
  body #product-hero .hero-actions { margin-top: 20px; }
  body #product-hero .hero-overlay-media {
    position: relative; inset: auto; grid-area: 2 / 1; order: initial;
    display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 1678 / 937;
    object-fit: contain; object-position: center; margin: 0; border-radius: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20px);
    mask-image: linear-gradient(to bottom, transparent, #000 20px);
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  body #product-hero .hero-inner { padding-left: 32%; }
}
@media (max-width: 767px) {
  body #product-hero .hero-inner { min-height: 0; padding: 32px 24px 20px; align-items: flex-start; }
}
@media (max-width: 1100px) {
  body #hero.minimal-hero { min-height: 380px; padding: 48px 24px; }
  body #hero.minimal-hero h1 { font-size: 38px; }
}
@media (max-width: 900px) {
  body #site-header > div { padding: 10px 24px !important; gap: 4px 12px; }
  body #site-navigation { gap: 12px; }
  body #site-navigation a { padding: 0 8px; font-size: 14px; }
}
@media (max-width: 760px) {
  html body main.legal-page { width: 100%; }
  html body main .legal-hero { width: calc(100% - 48px); }
  html body main .legal-layout .legal-contents { position: static; }
  html body main .legal-layout summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
  html body main .legal-layout .mobile-toc a { display: block; min-height: 44px; }
  body #product-hero .hero-copy { width: 100%; }
  body #product-hero .hero-copy h1 { font-size: 32px !important; }
  body #product-hero .hero-copy .hero-lead { font-size: 20px; margin-top: 12px; }
  body #product-hero .hero-copy .eyebrow { margin-bottom: 12px; }
  body #product-hero .hero-detail { font-size: 13px; line-height: 1.8; }
  body #product-hero .hero-actions { gap: 12px; flex-wrap: wrap; }
  body #product-hero .hero-actions a { padding: 12px 20px !important; }
  body main .carousel-controls { gap: 8px; }
  body #hero.minimal-hero { min-height: 0; padding: 40px 24px 44px; }
  body #hero.minimal-hero .product-en { margin-bottom: 24px; }
  body #hero.minimal-hero h1 { font-size: 30px; line-height: 1.5; margin-bottom: 28px; }
}
@media (max-width: 380px) {
  body #site-header > div { padding-left: 16px !important; padding-right: 16px !important; }
  body #site-navigation { gap: 6px; }
  body #product-hero .hero-copy h1 { font-size: 29px !important; }
}
