/* ==========================================================================
   FrameX — Inner-page layout
   Shared by about / services / shop / shop-detail / product / gallery /
   contact / faq. Section-specific home styles stay in story.css / catalog.css.
   ========================================================================== */

/* Breadcrumb row at the top of a task screen (product, checkout, account, ...).
   Pages that open with a headline use the shared .page-hero instead. */
.page-banner {
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 56px));
  padding-bottom: var(--space-sm);
}

.page-banner__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.page-banner__crumbs a:hover {
  text-decoration: underline;
}

.page-banner__crumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* Generic content layout ---------------------------------------------------- */
.prose {
  max-width: 72ch;
  display: grid;
  gap: 14px;
  color: var(--ink);
}

.prose p {
  color: var(--muted);
}

.prose h2 {
  margin-top: 8px;
}

.split {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

@media (min-width: 900px) {
  .split--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--asym {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--stone-soft);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.info-list .icon {
  flex: none;
  margin-top: 3px;
  color: var(--amber-strong);
}

/* Bullet / benefit list ------------------------------------------------------ */
.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

.check-list .icon {
  flex: none;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--brown-deep);
}

/* Journey steps (Services page) --------------------------------------------- */
.journey {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .journey {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}

.journey__step {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 16px;
}

.journey__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.journey__step p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.journey__arrow {
  display: none;
  position: absolute;
  top: 20px;
  right: -22px;
  color: var(--slate);
}

@media (min-width: 700px) {
  .journey__arrow {
    display: block;
  }

  .journey__step:last-child .journey__arrow {
    display: none;
  }
}

/* Service cards --------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
}

.service-card__icon {
  margin-bottom: 4px;
}

.service-card p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.service-card__tag {
  justify-self: start;
  margin-top: 4px;
}

/* Forms ----------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.form-field .hint {
  font-weight: 400;
  color: var(--muted);
}

.form-field textarea,
.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font: inherit;
  font-size: var(--text-sm);
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: var(--focus-ring);
}

.form-field[data-invalid="true"] input,
.form-field[data-invalid="true"] textarea {
  border-color: var(--danger);
}

.form-field__error {
  display: none;
  align-items: center;
  gap: 5px;
  color: var(--danger);
  font-size: var(--text-xs);
  font-weight: 600;
}

.form-field[data-invalid="true"] .form-field__error {
  display: flex;
}

.form-status {
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.form-status.is-visible {
  display: flex;
}

.form-status--info {
  background: var(--cream);
  color: #7a4a10;
}

.form-status--error {
  background: #fdeaea;
  color: #8f1d1d;
}

.form-status .icon {
  flex: none;
  margin-top: 2px;
}

/* Tabs / accordions used by product details + FAQ page ------------------------ */
.detail-tabs__list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-tabs__list::-webkit-scrollbar {
  display: none;
}

.detail-tabs__btn {
  flex: none;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition:
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.detail-tabs__btn[aria-selected="true"] {
  border-color: var(--amber-strong);
  color: var(--ink);
}

.detail-tabs__panel {
  padding-block: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.detail-tabs__panel[hidden] {
  display: none;
}

.detail-tabs__panel ul {
  display: grid;
  gap: 6px;
  padding-left: 1.1em;
  list-style: disc;
}

/* FAQ page: grouped accordion -------------------------------------------------- */
.faq-groups {
  display: grid;
  gap: 36px;
}

.faq-group__title {
  margin-bottom: 14px;
}

/* Gallery (ui/gallery-page.js): filters + photo mosaic + full-screen viewer ------ */
.gallery-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-nav::-webkit-scrollbar {
  display: none;
}

.gallery-nav .chip {
  flex: none;
}

.gallery-nav__count {
  color: var(--taupe);
  font-size: var(--text-xs);
  font-weight: 500;
}

.gallery-nav .chip[aria-pressed="true"] .gallery-nav__count {
  color: inherit;
  opacity: 0.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--beige);
  color: var(--ivory);
  text-align: left;
  cursor: zoom-in;
  isolation: isolate;
  transition: box-shadow 450ms var(--ease-out);
}

/* Every seventh photo is a larger feature tile */
.gallery-tile--feature {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

@media (min-width: 640px) {
  .gallery-tile--feature {
    grid-row: span 2;
    aspect-ratio: 4 / 5;
  }
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.gallery-tile__overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(28, 22, 16, 0.78), transparent);
  transition:
    opacity 350ms var(--ease-out),
    transform 350ms var(--ease-out);
}

.gallery-tile__tag {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-tile__name {
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-tile__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--charcoal);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

/* Pointer devices: caption and zoom badge come forward on hover / focus.
   Touch devices keep the caption visible. */
@media (hover: hover) {
  .gallery-tile__overlay {
    opacity: 0;
    transform: translateY(8px);
  }

  .gallery-tile:hover,
  .gallery-tile:focus-visible {
    box-shadow: 0 22px 44px -18px rgba(74, 52, 28, 0.5);
  }

  .gallery-tile:hover img,
  .gallery-tile:focus-visible img {
    transform: scale(1.05);
  }

  .gallery-tile:hover .gallery-tile__overlay,
  .gallery-tile:focus-visible .gallery-tile__overlay {
    opacity: 1;
    transform: none;
  }

  .gallery-tile:hover .gallery-tile__zoom,
  .gallery-tile:focus-visible .gallery-tile__zoom {
    opacity: 1;
    transform: none;
  }
}

/* Viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(4px, 2vw, 24px);
  padding: clamp(56px, 8vh, 72px) clamp(8px, 3vw, 32px) clamp(12px, 3vh, 28px);
  background: rgba(20, 16, 12, 0.94);
  color: var(--ivory);
  animation: lightbox-in 260ms var(--ease-out);
}

.lightbox[hidden] {
  display: none;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

.lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  justify-items: center;
  height: 100%;
  min-height: 0;
  max-width: 1100px;
  margin-inline: auto;
}

.lightbox__media {
  display: grid;
  place-items: center;
  min-height: 0;
  width: 100%;
}

.lightbox__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
}

.lightbox__tag {
  color: var(--champagne);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__text {
  max-width: 60ch;
  font-size: var(--text-sm);
}

.lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--ivory);
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--champagne);
  background: rgba(255, 255, 255, 0.12);
}

.lightbox__close {
  position: absolute;
  top: clamp(8px, 2vh, 16px);
  right: clamp(8px, 3vw, 32px);
}

/* Phones: arrows sit over the lower corners so the photo keeps the full width */
@media (max-width: 639px) {
  .lightbox {
    grid-template-columns: minmax(0, 1fr);
  }

  .lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    background: rgba(20, 16, 12, 0.6);
    transform: translateY(-50%);
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }
}

/* Gallery page: link to the customer gallery */
.gallery-promo {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-xl);
  background: var(--ivory);
}

.gallery-promo p {
  max-width: 56ch;
  margin-top: 4px;
  color: var(--taupe);
}

@media (min-width: 700px) {
  .gallery-promo {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Customer gallery & reviews page (ui/customer-gallery-page.js) ------------------ */
.cg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (min-width: 640px) {
  .cg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.cg-grid--empty {
  display: block;
}

.cg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cg-card__media {
  aspect-ratio: 4 / 5;
  background: var(--beige);
}

.cg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cg-card__body {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2.4vw, 20px);
}

.cg-card__text {
  color: var(--umber);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.cg-card__who {
  display: grid;
  gap: 2px;
  font-size: var(--text-sm);
}

.cg-card__who span {
  color: var(--taupe);
}

.cg-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--taupe);
  font-size: var(--text-xs);
}

.cg-card__meta .cart-line__remove {
  margin-left: auto;
  min-height: 32px;
}

/* Share form panel */
.cg-share {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(20px, 4.5vw, 56px);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-xl);
  background: var(--ivory);
  color: var(--charcoal);
}

@media (min-width: 900px) {
  .cg-share {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    column-gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
}

.cg-share__lead {
  max-width: 40ch;
  margin-top: 12px;
  color: var(--taupe);
}

.cg-share__notes {
  margin-top: 20px;
  font-size: var(--text-sm);
}

.cg-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: var(--text-sm);
}

.cg-form select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: var(--focus-ring);
}

.cg-form__label,
.cg-rating legend {
  padding: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.cg-rating {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Radios run 5 → 1 in the markup and are flipped visually, so "every label
   after the checked one" lights up the stars to its left. */
.cg-rating__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.cg-rating__stars label {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(111, 97, 82, 0.45);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}

.cg-rating__stars input:checked ~ label,
.cg-rating__stars label:hover,
.cg-rating__stars label:hover ~ label {
  color: var(--star);
}

.cg-rating__stars input:checked ~ label .icon,
.cg-rating__stars label:hover .icon,
.cg-rating__stars label:hover ~ label .icon {
  fill: currentColor;
}

.cg-rating__stars input:focus-visible + label {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.cg-form__zone {
  min-height: 96px;
  background: var(--white);
}

.cg-form__preview {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cg-form__preview[hidden] {
  display: none;
}

.cg-form__preview img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.cg-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-sm);
  font-weight: 400;
  cursor: pointer;
}

.cg-consent__label input {
  flex: none;
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 0;
  accent-color: var(--brown-deep);
}

/* Custom frame section (home) --------------------------------------------------- */
.custom-frame {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  color: var(--ink);
  overflow: hidden;
}

.custom-frame__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--stone-soft);
}

.custom-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-frame__body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 48px);
}

.custom-frame__eyebrow {
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-frame__text {
  max-width: 46ch;
  color: var(--muted);
}

.custom-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

@media (min-width: 900px) {
  .custom-frame {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .custom-frame__media {
    aspect-ratio: auto;
  }
}

/* Preview section footer link (home previews of full pages) --------------------- */
.section-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Not-found state (product / shop detail) ---------------------------------------- */
.not-found {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 64px 16px;
  text-align: center;
}

.not-found .icon {
  width: 46px;
  height: 46px;
  color: var(--slate);
}

/* Home: "How it works" steps ------------------------------------------------------- */
.how-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .how-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.how-step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.how-step__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}

.how-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.how-step__num {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.how-step__body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
}

.how-step__body p {
  color: var(--muted);
  font-size: var(--text-sm);
}

@media (hover: hover) {
  .how-step:hover .how-step__media img {
    transform: scale(1.05);
  }
}

/* About + contact + misc ---------------------------------------------------------- */
.about-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info {
  margin-top: 20px;
}

.contact-info .info-list a {
  text-decoration: underline;
}

.skeleton-hero {
  min-height: 320px;
}

.order-options__subtitle {
  margin-bottom: 20px;
}

.form-field__error .icon {
  width: 1em;
  height: 1em;
}

.pdp-option__hint {
  font-weight: 400;
  color: var(--muted);
}

/* Grid children may shrink below their content width (prevents tab bars and
   long words from stretching the layout past the viewport on phones). */
.split > *,
.pdp > *,
.shop-hero__body > * {
  min-width: 0;
}

.section-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-banner__crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.page-banner__crumbs [aria-current] {
  display: inline-flex;
  align-items: center;
}

/* Legal pages (Terms of Use, Privacy Notice) ------------------------------------------ */
.legal__layout {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .legal__layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }
}

.legal__toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--stone-soft);
  font-size: var(--text-sm);
}

.legal__toc strong {
  display: block;
  margin-bottom: 10px;
}

.legal__toc ol {
  display: grid;
  gap: 2px;
  list-style: decimal;
  padding-left: 1.1em;
}

.legal__toc a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
}

.legal__toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .legal__toc {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
  }
}

.legal__updated {
  color: var(--muted);
  font-size: var(--text-sm);
}

.legal-section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-section:first-of-type {
  padding-top: 0;
  margin-top: 8px;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 8px;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  margin-top: 8px;
  list-style: disc;
  color: var(--muted);
}

.legal__disclaimer {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: #7a4a10;
  font-size: var(--text-sm);
}

.legal__disclaimer .icon {
  flex: none;
  margin-top: 2px;
}

/* Our Story page ------------------------------------------------------------------------ */
.story-credit {
  margin-top: -4px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.story-credit strong {
  color: var(--ink);
}

/* Contact page: shown while no public contact details exist */
.contact-info__empty {
  padding: 16px 18px;
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-md);
  background: var(--ivory);
  color: var(--taupe);
  font-size: var(--text-sm);
}

/* Our Story: numbered chapters, image and text side by side from 900px (alternating) */
.chapters {
  display: grid;
  gap: clamp(40px, 7vw, 96px);
}

.chapter {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
}

.chapter__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--beige);
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter__body {
  display: grid;
  gap: 14px;
  max-width: 56ch;
  color: var(--umber);
}

.chapter__label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: var(--weight-h2);
  letter-spacing: -0.02em;
  line-height: 1;
}

.chapter__label::after {
  content: "";
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: var(--line-warm);
}

.chapter__title {
  color: var(--ink);
}

@media (min-width: 900px) {
  .chapter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(40px, 6vw, 96px);
  }

  .chapter:nth-child(even) .chapter__media {
    order: 2;
  }
}

/* Long product names in the select must not widen the form */
.cg-form .form-field {
  min-width: 0;
}

.cg-form select {
  max-width: 100%;
  text-overflow: ellipsis;
}

/* .form-field input styles must not resize the visually hidden radios / file input */
.cg-form input.visually-hidden {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
}

.cg-form__zone[hidden] {
  display: none;
}

/* Phones only: compact "How it works" + custom frame box ----------------------------
   Steps become rows (small photo beside the text) instead of four tall cards, and
   the custom frame box gets a shorter photo and tighter spacing. Larger screens
   keep their existing layout. */
@media (max-width: 639px) {
  .how-steps {
    gap: 10px;
  }

  .how-step {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
  }

  .how-step__media {
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 96px;
  }

  .how-step__num {
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .how-step__body {
    gap: 2px;
    padding: 12px 14px;
  }

  .how-step__body p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  #how-it-works .section-more {
    margin-top: 20px;
  }

  .custom-frame__media {
    aspect-ratio: 16 / 9;
  }

  .custom-frame__body {
    gap: 12px;
    padding: 20px;
  }

  .custom-frame__eyebrow {
    font-size: var(--text-xs);
  }

  .custom-frame__text {
    font-size: var(--text-sm);
  }

  .custom-frame .check-list {
    gap: 8px;
    font-size: var(--text-sm);
  }

  .custom-frame__actions .btn {
    flex: 1 1 100%;
  }
}

.shop-hours__note {
  color: var(--taupe);
  font-size: var(--text-sm);
}

/* Small status pills ("Style samples", "Coming soon", "Private preview") */
.placeholder-note {
  border: 1px solid var(--line-warm);
  background: var(--ivory);
  color: var(--taupe);
  font-weight: 600;
}
