/* Sugar Whirl Atelier - Main Stylesheet */
:root {
  --cream: #FFF8EF;
  --cream-2: #FFF0D9;
  --coral: #FF6B6B;
  --tangerine: #FF8C42;
  --raspberry: #E8487F;
  --plum: #411743;
  --plum-soft: #6D2E6B;
  --mint: #2EC4B6;
  --honey: #FFC94A;
  --cacao: #3A2415;
  --sky: #D6FFF5;
  --lime: #E8FF6A;
  --ink: #1A0B1A;
  --line: rgba(65, 23, 67, 0.12);
  --shadow: 0 12px 30px rgba(65, 23, 67, 0.12);
  --shadow-soft: 0 6px 18px rgba(65, 23, 67, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Topbar ---------- */
.top-ribbon {
  background: var(--plum);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  font-family: Optima, Candara, "Segoe UI", sans-serif;
}

.top-ribbon span {
  color: var(--honey);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 239, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1;
}

.brand-name {
  font-family: Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--plum);
}

.brand-sub {
  font-family: Optima, Candara, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plum);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--plum);
  color: var(--cream);
}

.header-cta {
  background: var(--coral);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.menu-toggle {
  display: none;
  background: var(--plum);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ---------- Hero ---------- */
.hero-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 10px;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.hero-main {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8C42 46%, #FFC94A 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--plum);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.hero-main::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), transparent 60%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--plum);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  width: fit-content;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 18px 0 12px;
  max-width: 520px;
}

.hero-title em {
  font-style: normal;
  color: white;
  text-shadow: 0 2px 0 rgba(65, 23, 67, 0.15);
}

.hero-copy {
  font-size: 16px;
  color: #4A1A3A;
  max-width: 480px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--plum);
  color: var(--cream);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  background: white;
  color: var(--plum);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
}

.hero-visual {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: linear-gradient(180deg, #FFF8EF 0%, #FFF0D9 100%);
  border-radius: var(--radius-md);
  padding: 10px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-card {
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.mini-card strong {
  display: block;
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 22px;
  line-height: 1;
  color: var(--raspberry);
}

.mini-card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------- Bento Feature Grid ---------- */
.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-title {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-title span {
  color: var(--raspberry);
}

.section-desc {
  max-width: 520px;
  font-size: 15px;
  opacity: 0.8;
  margin: 6px 0 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}

.bento-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.bento-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #FFF8EF;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.bento-card-body {
  padding: 16px;
}

.bento-card-body h3 {
  margin: 0 0 6px;
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 18px;
  line-height: 1.2;
}

.bento-card-body p {
  margin: 0;
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sky);
  color: var(--plum);
  padding: 5px 9px;
  border-radius: 999px;
}

.tag.coral {
  background: #FFE0E0;
  color: #A81E3A;
}

.tag.honey {
  background: #FFF2B8;
  color: #6B4A00;
}

.tag.mint {
  background: #D6FFF5;
  color: #0E6B62;
}

/* bento spans */
.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-8 {
  grid-column: span 8;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

/* ---------- Editorial Showcase ---------- */
.museum-showcase {
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 6px;
}

.museum-text {
  padding: 36px 32px;
}

.museum-text h2 {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 38px;
  line-height: 0.95;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.museum-text h2 em {
  color: var(--honey);
  font-style: normal;
}

.museum-text p {
  opacity: 0.88;
  font-size: 15px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 14px;
  border-radius: 14px;
}

.feature-list li strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.feature-list li span {
  font-size: 13px;
  opacity: 0.85;
}

.bullet-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--honey);
  color: var(--plum);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}

.museum-visual {
  background: var(--cream);
  padding: 18px;
  display: grid;
  place-items: center;
}

.museum-visual img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ---------- Flavor Vault Timeline ---------- */
.vault-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.vault-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.vault-copy h2 {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 30px;
  margin: 0 0 8px;
}

.vault-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.step-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  align-items: center;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--honey);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.step-card h4 {
  margin: 0 0 2px;
  font-size: 15px;
}

.step-card p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

.vault-art img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: linear-gradient(180deg, #FFF0D9 0%, #FFE4E6 100%);
  border-radius: var(--radius-md);
  padding: 12px;
}

/* ---------- Widgets ---------- */
.widget-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.widget-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.widget-panel h3 {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 22px;
  margin: 0 0 6px;
}

.widget-panel p {
  font-size: 13px;
  opacity: 0.75;
  margin: 0 0 14px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ctrl-btn {
  border: 1.5px solid var(--line);
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ctrl-btn.is-active {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}

.widget-result {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 160px;
}

.widget-result img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 8px;
}

.result-title {
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 4px;
}

.result-desc {
  font-size: 13px;
  opacity: 0.78;
  margin: 0;
}

.result-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.meta-pill {
  background: white;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Texture widget specific */
.texture-display {
  background: linear-gradient(135deg, #FFC94A 0%, #FF6B6B 100%);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--plum);
  display: grid;
  gap: 10px;
}

.texture-stage {
  background: white;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}

.texture-stage img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.texture-bars {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.bar-track {
  height: 10px;
  background: #FFF0D9;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 0.5s ease;
}

.bar-fill.coral {
  background: var(--coral);
}

.bar-fill.mint {
  background: var(--mint);
}

.bar-fill.honey {
  background: var(--honey);
}

.bar-fill.plum {
  background: var(--plum);
}

/* ---------- Journal Grid ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.journal-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.journal-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #FFF8EF;
  padding: 10px;
}

.journal-body {
  padding: 14px 16px 16px;
}

.journal-body h4 {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 17px;
  margin: 0 0 6px;
}

.journal-body p {
  font-size: 13px;
  opacity: 0.76;
  margin: 0;
}

.journal-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin-bottom: 6px;
}

/* ---------- Newsletter / Info strip ---------- */
.info-strip {
  background: linear-gradient(90deg, #411743 0%, #E8487F 50%, #FF8C42 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.info-strip h3 {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 26px;
  margin: 0 0 6px;
  line-height: 1;
}

.info-strip p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.info-note {
  background: white;
  color: var(--plum);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
}

.info-note strong {
  color: var(--raspberry);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 28px;
  background: #1A0B1A;
  color: #FFF0D9;
  border-radius: 24px 24px 0 0;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 22px;
}

.footer-brand h3 {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 22px;
  margin: 8px 0 6px;
}

.footer-brand p {
  font-size: 13px;
  opacity: 0.75;
  margin: 0;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--honey);
}

.footer-address {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}

.contact-title {
  margin-top: 0;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.7;
}

/* ---------- Legal pages ---------- */
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 20px 32px;
}

.legal-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.legal-card h1 {
  font-family: Iowan Old Style, Georgia, serif;
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.legal-card h2 {
  font-size: 18px;
  margin-top: 22px;
}

.legal-card p,
.legal-card li {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.legal-updated {
  display: inline-block;
  background: var(--cream-2);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.contact-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 720px;
  width: calc(100% - 32px);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  z-index: 60;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-cookie.primary {
  background: var(--plum);
  color: white;
}

.btn-cookie.secondary {
  background: var(--cream-2);
  color: var(--plum);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-bento,
  .vault-grid,
  .widget-area,
  .museum-showcase,
  .journal-grid,
  .info-strip,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .span-7,
  .span-5,
  .span-4,
  .span-8,
  .span-6 {
    grid-column: span 6;
  }

  .hero-title {
    font-size: 44px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .hero-visual img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-5,
  .span-4,
  .span-8,
  .span-6,
  .span-12 {
    grid-column: span 1;
  }

  .hero-title {
    font-size: 38px;
  }

  .museum-text {
    padding: 24px 18px;
  }

  .legal-card {
    padding: 18px;
  }

  .widget-result {
    grid-template-columns: 1fr;
  }

  .texture-stage {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

