@import url("./content-layout.css");

:root {
  --navy: #12335d;
  --navy-deep: #0f294a;
  --blue: #285d96;
  --green: #2c6653;
  --ink: #253247;
  --muted: #5a6675;
  --warm: #f4ebe6;
  --soft: #f3f6f9;
  --white: #ffffff;
  --line: #d6dee7;
  --display: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --page-x: clamp(1.2rem, min(6vw, 76.8px), 7rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(47, 116, 94, .5); outline-offset: 3px; }

.detail-header { position: sticky; top: 0; z-index: 20; min-height: 72px; padding: 0 var(--page-x); display: flex; align-items: center; color: var(--white); background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.15); }
.detail-brand { min-height: 56px; display: inline-flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; }
.detail-brand img { width: 48px; height: 48px; object-fit: contain; }
.detail-brand span { display: grid; gap: .12rem; }
.detail-brand strong { font-family: var(--display); font-size: 1rem; font-weight: 400; letter-spacing: .02em; }
.detail-brand small { color: #cbd8e6; font-size: .54rem; letter-spacing: .055em; }
.detail-brand:hover { opacity: .86; }
.detail-back { min-width: 92px; min-height: 44px; padding: .7rem 1rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.55); color: var(--white); font-size: .78rem; font-weight: 700; text-decoration: none; }
.detail-back:hover { color: var(--navy); background: var(--white); }

.detail-intro { min-height: 520px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); background: var(--soft); }
.detail-intro-copy { padding: clamp(3rem, min(8vw, 102.4px), 7rem) var(--page-x); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 .8rem; color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.detail-intro h1 { max-width: 760px; margin: 0; color: var(--navy-deep); font-family: var(--display); font-size: clamp(3rem, min(6vw, 76.8px), 4rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.detail-lead { max-width: 680px; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, min(1.35vw, 17.28px), 1.2rem); line-height: 1.72; }
.detail-intro-media { min-height: 520px; overflow: hidden; background: #dfe6ec; }
.detail-intro-media img { height: 100%; object-fit: cover; }
.options-visual { padding: clamp(2.2rem, min(5vw, 64px), 4.5rem); display: grid; place-items: center; background: radial-gradient(circle at 50% 48%, #a9bfd5 0%, #527fab 38%, var(--navy-deep) 76%); }
.options-gummy-showcase { width: min(100%, 500px); margin: 0; display: grid; justify-items: center; }
.options-gummy-stage { position: relative; width: min(64%, 328px); aspect-ratio: 1; display: grid; place-items: center; background: transparent; border: 2px solid #f26b3d; border-radius: 50%; box-shadow: none; overflow: visible; }
.options-gummy-stage img { width: 47%; height: 58%; object-fit: contain; background: transparent; mix-blend-mode: normal; filter: drop-shadow(0 12px 15px rgba(0,0,0,.38)); opacity: 1; transform: scale(1) rotate(0); transition: opacity 130ms ease-out, transform 130ms ease-out; }
.options-gummy-stage img.is-coin { width: 62.7%; height: 77.3%; }
.options-gummy-stage img.is-changing { opacity: 0; transform: scale(.8) rotate(-4deg); }
.options-gummy-showcase figcaption { min-height: 1.4em; margin-top: 1rem; color: #d6e4f1; font-size: .72rem; font-weight: 700; letter-spacing: .055em; text-align: center; text-transform: uppercase; }

.detail-section { padding: clamp(3.2rem, min(6vw, 76.8px), 6rem) var(--page-x); }
.detail-section.warm { background: var(--warm); }
.section-heading { max-width: 880px; margin-bottom: clamp(2rem, min(4vw, 51.2px), 3.5rem); }
.section-heading h2 { margin: 0; color: var(--navy-deep); font-family: var(--display); font-size: clamp(2.1rem, min(4vw, 51.2px), 4rem); font-weight: 400; line-height: 1.05; }
.section-heading p { max-width: 760px; margin: 1rem 0 0; color: var(--muted); line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-card { min-height: 230px; padding: clamp(1.5rem, min(3vw, 38.4px), 2.7rem); background: var(--white); }
.detail-card span { color: var(--green); font-size: .68rem; font-weight: 700; letter-spacing: .07em; }
.detail-card h2, .detail-card h3 { margin: .7rem 0 1rem; color: var(--navy-deep); font-family: var(--display); font-size: clamp(1.6rem, min(2.4vw, 30.72px), 2.35rem); font-weight: 400; }
.detail-card p { margin: 0; color: var(--muted); line-height: 1.72; }
.detail-card strong { color: var(--navy-deep); }

.detail-gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: 6px; background: var(--white); }
.detail-gallery figure { min-height: 360px; margin: 0; overflow: hidden; background: #e7eaed; }
.detail-gallery img { height: 100%; object-fit: cover; }
.detail-gallery figure:last-child img { object-position: center; }
.detail-photo-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); background: var(--soft); }
.detail-photo-story figure { min-height: 430px; margin: 0; overflow: hidden; background: #e7eaed; }
.detail-photo-story img { height: 100%; object-fit: cover; object-position: center; }
.detail-photo-story > div { padding: clamp(2.5rem, min(5vw, 64px), 5rem); display: flex; flex-direction: column; justify-content: center; }
.detail-photo-story h2 { margin: 0; color: var(--navy-deep); font-family: var(--display); font-size: clamp(2rem, min(3.5vw, 44.8px), 3.5rem); font-weight: 400; line-height: 1.08; }
.detail-photo-story p:last-child { margin: 1.2rem 0 0; color: var(--muted); line-height: 1.72; }

.sweetener-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #cfc2ba; border: 1px solid #cfc2ba; }
.sweetener-card { min-height: 220px; padding: 1.5rem; background: var(--warm); }
.sweetener-card span { color: var(--green); font-size: .68rem; font-weight: 700; }
.sweetener-card h3 { margin: .8rem 0; color: var(--navy-deep); font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
.sweetener-card p { margin: 0; color: #625c59; font-size: .88rem; line-height: 1.62; }

.format-section { color: var(--ink); background: var(--soft); }
.format-section .eyebrow { color: #b59a3b; }
.format-section .section-heading h2 { color: var(--navy-deep); }
.format-section .section-heading p:not(.eyebrow) { color: var(--muted); }
.format-showcase-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; }
.format-card { min-height: 260px; padding: 1.25rem; display: grid; grid-template-rows: 1fr auto auto; place-items: center; background: #122545; border: 1px solid rgba(255,255,255,.14); text-align: center; }
.format-card-art { width: min(100%, 120px); height: 130px; display: grid; place-items: center; }
.format-icon { width: auto; max-width: 99px; height: auto; max-height: 87px; object-fit: contain; justify-self: center; align-self: center; }
.format-card h3 { margin: .5rem 0 .35rem; color: var(--white); font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
.format-card p { margin: 0; color: #aabbd0; font-size: .61rem; letter-spacing: .13em; text-transform: uppercase; }
.format-weight-band { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1.2fr 1.25fr; gap: 1.5rem; align-items: center; padding: 1.2rem 1.5rem; color: #dfe8f3; background: #1a3153; border: 1px solid #b59a3b; }
.format-weight-copy p { margin: 0 0 .35rem; color: #d6b851; font-size: .61rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.format-weight-copy strong { color: var(--white); font-family: var(--display); font-size: clamp(2rem, min(3vw, 38.4px), 2.8rem); font-weight: 400; line-height: 1; }
.format-weight-steps { height: 4.8rem; display: flex; align-items: end; justify-content: center; gap: .35rem; }
.format-weight-steps span { width: clamp(1.15rem, min(2.5vw, 32px), 2rem); background: #b59a3b; }
.format-weight-steps .step-1 { height: 1.2rem; }
.format-weight-steps .step-2 { height: 1.85rem; }
.format-weight-steps .step-3 { height: 2.5rem; }
.format-weight-steps .step-4 { height: 3.2rem; }
.format-weight-steps .step-5 { height: 4rem; }
.format-weight-note { margin: 0; color: #c7d4e3; font-size: .82rem; line-height: 1.55; text-align: center; }

.detail-contact { padding: clamp(2.5rem, min(5vw, 64px), 4.5rem) var(--page-x); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; color: var(--white); background: var(--navy-deep); }
.detail-contact h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, min(3vw, 38.4px), 3.2rem); font-weight: 400; }
.detail-contact p { margin: .7rem 0 0; color: #cbd8e6; }
.detail-contact a { min-height: 46px; padding: .8rem 1rem; display: inline-flex; align-items: center; color: var(--navy-deep); background: var(--white); font-weight: 700; text-decoration: none; }

.detail-footer { padding: 2rem var(--page-x); display: grid; grid-template-columns: 1fr auto; gap: 2rem; color: #506075; background: #e9eef4; border-top: 4px solid var(--blue); font-size: .72rem; line-height: 1.55; }
.detail-footer p { margin: 0; }
.detail-footer strong { color: var(--navy-deep); }
.detail-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.detail-footer .trademark { max-width: 360px; text-align: right; }


@media (max-width: 900px) {
  .detail-intro { grid-template-columns: 1fr; }
  .detail-intro-copy { padding-block: 3.5rem; }
  .detail-intro-media { min-height: 360px; }
  .sweetener-grid { grid-template-columns: repeat(2, 1fr); }
  .format-showcase-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .format-weight-band { grid-template-columns: 1fr; gap: 1rem; }
  .format-weight-steps { justify-content: flex-start; }
  .detail-photo-story { grid-template-columns: 1fr; }
  .detail-photo-story figure { min-height: 360px; }
}

@media (max-width: 620px) {
  .detail-header { min-height: 64px; }
  .detail-intro { min-height: 0; }
  .detail-intro h1 { font-size: clamp(2.6rem, min(13vw, 166.4px), 4rem); }
  .detail-intro-media { min-height: 260px; }
  .options-visual { min-height: 360px; padding: 2rem 1.2rem; }
  .options-gummy-stage { width: min(57.6vw, 232px); }
  .detail-grid, .detail-gallery, .sweetener-grid, .detail-contact, .detail-footer { grid-template-columns: 1fr; }
  .format-showcase-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card, .sweetener-card { min-height: 0; }
  .detail-gallery figure { min-height: 250px; }
  .detail-photo-story figure { min-height: 270px; }
  .format-card { min-height: 220px; padding: 1rem .75rem; }
  .format-card-art { height: 112px; }
  .format-weight-band { padding: 1.1rem; }
  .format-weight-note { text-align: left; }
  .detail-contact a { justify-content: center; }
  .detail-footer .trademark { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
