/* HOUSE OF AFRERA — THE CURVED HOUSE | visual overlay, V4.0 Gate 6
   Editorial curves without altering layout contracts, scripts or commerce flags.
   Applied AFTER styles.css. Preview only until user approves. */
:root {
  --hoa-arch: clamp(32px, 5.5vw, 82px);
  --hoa-curve: clamp(22px, 3.2vw, 46px);
  --hoa-line: rgba(194, 157, 101, .35);
}

/* Tactile controls: long, elegant curves rather than app-like bubbles. */
.btn,
.top-action,
.mobile-sticky-waitlist,
.muted-button,
.image-badge,
.image-hover-cta,
.photo-flag,
.afrera-test-indicator {
  border-radius: 999px;
}
button:not(.menu-button):not([disabled]),
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  border-radius: 16px;
}
.btn:focus-visible, .top-action:focus-visible { outline-offset: 4px; }

/* The main entrance: a tall inset arch frames the campaign photograph. */
.hero {
  border-radius: 0 0 var(--hoa-arch) var(--hoa-arch);
  isolation: isolate;
}
.hero-art {
  inset: 5.5% 3.5% 7.5% 41%;
  border-radius: 49% 49% 28px 28px / 31% 31% 28px 28px;
  overflow: hidden;
  box-shadow: 0 30px 85px rgba(11, 3, 7, .32);
}
.hero-art img { border-radius: inherit; }
.hero-shade { z-index: 1; pointer-events: none; }
.hero-inner, .hero-edge { z-index: 2; }
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 1;
  inset: auto auto -19vw -14vw;
  width: min(50vw, 720px);
  height: min(50vw, 720px);
  border: 1px solid rgba(194, 157, 101, .13);
  border-radius: 50%;
}

/* The collection: soft perimeter, generous serif typography, gold hairline. */
.edit-collection { position: relative; }
.collection-panel {
  border-radius: var(--hoa-arch);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(39, 11, 20, .065);
}
.feature-photo { border-radius: var(--hoa-arch) 0 0 var(--hoa-arch); }
.feature-photo img { border-radius: inherit; }
.feature-details .detail-line:first-of-type { border-top-color: var(--hoa-line); }

/* The House: sculptural photo arches with clean editorial content. */
.heritage-scene,
.final-section { overflow: hidden; }
.heritage-photo { overflow: hidden; border-radius: 46% 46% 24px 24px / 19% 19% 24px 24px; }
.final-section { border-radius: var(--hoa-arch) var(--hoa-arch) 0 0; }
.final-photo { border-radius: var(--hoa-arch) 0 0 0; }
.inside-image img,
.access-image img { border-radius: 48% 48% 0 0 / 21% 21% 0 0; }

/* NAYA, shop and editorial: curved portraits, not generic rounded squares. */
.main-product-image { border-radius: 48% 48% 24px 24px / 19% 19% 24px 24px; }
.product-gallery-minis img { border-radius: 20px; }
.card-media, .store-card, .support-card,
.afrera-checkout-product, .afrera-checkout-panel, .afrera-checkout-summary {
  border-radius: var(--hoa-curve);
  overflow: hidden;
}
.journal-card img { border-radius: 48% 48% 20px 20px / 22% 22% 20px 20px; }
.brevo-frame-wrap { border-radius: 26px; overflow: hidden; }

/* Subtle brand framing for the written pages. */
.shop-hero, .journal-header, .inside-statement { border-radius: 0 0 var(--hoa-arch) var(--hoa-arch); }
.mobile-menu { border-radius: 0 0 28px 28px; }

@media (max-width: 1040px) {
  .hero-art { inset: 7% 2.5% 8% 29%; }
  .feature-photo { border-radius: var(--hoa-arch) var(--hoa-arch) 0 0; }
  .final-photo { border-radius: var(--hoa-arch) var(--hoa-arch) 0 0; }
}
@media (max-width: 650px) {
  :root { --hoa-arch: 38px; --hoa-curve: 22px; }
  .hero { border-radius: 0 0 42px 42px; }
  .hero-art {
    inset: 160px -35px 3% 5%;
    border-radius: 46% 46% 24px 24px / 18% 18% 24px 24px;
  }
  .hero::after { width: 75vw; height: 75vw; inset: auto auto -22vw -28vw; }
  .collection-panel { border-radius: 34px; }
  .feature-photo { border-radius: 34px 34px 0 0; }
  .feature-details { padding-top: 42px; }
  .heritage-photo { border-radius: 42% 42% 24px 24px / 14% 14% 24px 24px; }
  .main-product-image { border-radius: 45% 45% 20px 20px / 16% 16% 20px 20px; }
  .journal-card img { border-radius: 44% 44% 20px 20px / 18% 18% 20px 20px; }
  .mobile-sticky-waitlist { border-radius: 999px; }
  .btn { border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .feature-photo img { transition: none !important; }
}
