/* IIWII Foods Inc. — Design System
   Tokens, type classes, and component styles.
   Speedee font is declared in Speedee.css — load that first.
   ============================================================ */

:root {
  /* Brand */
  --color-arches-red:       #db0007;
  --color-arches-red-dark:  #a8030a;
  --color-golden-yellow:    #ffbc0d;

  /* Neutrals */
  --color-ink:              #1a1a1a;
  --color-stone-700:        #4b4b4b;
  --color-stone-500:        #6b7280;
  --color-bone:             #f6f4ef;

  /* Semantic */
  --color-success-strong:   #439c43;

  /* Foreground tokens */
  --fg-1: var(--color-ink);
  --fg-2: var(--color-stone-700);
  --fg-3: var(--color-stone-500);

  /* Typography */
  --font-display: "Speedee", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Speedee", "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-inset-soft: inset 0 0 8px rgba(0,0,0,0.25);
  --shadow-nav:        0 6px 20px rgba(0,0,0,0.25);

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  120ms;
  --dur-med:   220ms;

  /* Layout */
  --nav-h:     64px;
  --container: 1120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--fg-1);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; }
a { font-family: inherit; }

/* ---- Utility ---- */
.visually-hidden { display: none !important; }

/* ---- Navbar ---- */
.ds-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 24px;
  background: #fff;
  box-shadow: var(--shadow-nav);
  gap: 20px;
}
.ds-nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.ds-nav-token {
  width: 36px; height: 36px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.ds-nav-token img { width: 100%; height: 100%; display: block; }
.ds-nav-name {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: #000; letter-spacing: -0.005em; white-space: nowrap;
}
.ds-nav-group {
  display: flex; align-items: center;
  flex: 1; min-width: 0;
}
.ds-nav-links { display: flex; gap: 18px; flex: 1; flex-wrap: nowrap; min-width: 0; }
.ds-nav-link {
  position: relative;
  background: transparent; border: 0; padding: 6px 0;
  font-size: 13.5px; color: var(--fg-1);
  cursor: pointer; text-decoration: none;
  font-family: inherit; white-space: nowrap;
}
.ds-nav-link:hover { color: #000; }
.ds-nav-link.active { font-weight: 700; color: #000; }
.ds-nav-link.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; background: var(--color-golden-yellow); border-radius: 2px;
}
.ds-nav-right {
  margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ds-nav-avatar {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 0;
  padding: 4px 8px 4px 4px; border-radius: var(--radius-pill);
  cursor: default; font-family: inherit;
}
.ds-nav-avatar .av {
  width: 30px; height: 30px; border-radius: var(--radius-pill);
  background: var(--color-arches-red); color: #fff;
  font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ds-nav-avatar .who { font-size: 13px; color: var(--fg-1); }
.ds-nav-logout {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-md); padding: 6px 12px;
  cursor: pointer; font-size: 13px; color: var(--fg-1);
  text-decoration: none; font-family: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.ds-nav-logout:hover { background: #f3f4f6; }
.ds-nav-logout svg { width: 14px; height: 14px; fill: currentColor; }
.ds-admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--color-golden-yellow);
  border-radius: var(--radius-md); padding: 6px 12px;
  cursor: pointer; font-size: 13px; color: #000;
  text-decoration: none; font-family: inherit; font-weight: 600;
  transition: background var(--dur-fast) var(--ease-out);
}
.ds-admin-btn:hover { background: rgba(255,188,13,0.12); }
.ds-admin-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ---- Container ---- */
.ds-container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 32px;
}

/* ---- Hero ---- */
.ds-hero {
  position: relative;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(255,188,13,0.22) 0%, rgba(255,188,13,0) 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(219,0,7,0.10) 0%, rgba(219,0,7,0) 60%),
    linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, rgba(255,255,255,1) 82%),
    url('/assets/img/SesamePattern.png') repeat center top;
  padding: 80px 0 100px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}
.ds-hero-arches {
  position: absolute; right: -60px; top: -40px;
  font-size: 560px; line-height: 1;
  color: rgba(255,188,13,0.18);
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.05em;
  user-select: none; pointer-events: none;
}
.ds-hero-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--color-arches-red);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.ds-hero-eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--color-arches-red);
}
.ds-hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02; letter-spacing: -0.015em;
  text-transform: uppercase; color: #000;
  margin: 0 0 18px; max-width: 860px;
}
.ds-hero-title .hl {
  background: linear-gradient(180deg,
    transparent 62%, var(--color-golden-yellow) 62%,
    var(--color-golden-yellow) 88%, transparent 88%);
  padding: 0 0.05em;
}
.ds-hero-sub {
  font-size: 17px; line-height: 1.55; color: var(--fg-2);
  max-width: 560px; margin: 0 0 28px;
}
.ds-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.ds-btn {
  font-family: inherit; border: 0; border-radius: var(--radius-md);
  padding: 12px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.ds-btn:active { transform: translateY(1px); }
.ds-btn svg { width: 16px; height: 16px; fill: currentColor; }
.ds-btn-primary {
  background: var(--color-golden-yellow); color: #000;
  box-shadow: 0 4px 14px rgba(255,188,13,0.4);
}
.ds-btn-primary:hover { background: #ffc830; box-shadow: 0 6px 18px rgba(255,188,13,0.55); }
.ds-btn-secondary {
  background: transparent; color: var(--fg-1);
  border: 1px solid rgba(0,0,0,0.20);
}
.ds-btn-secondary:hover { background: #f3f4f6; }
.ds-btn-sm { padding: 8px 14px; font-size: 13px; }
.ds-btn-text {
  background: transparent; border: 0;
  color: var(--color-arches-red); font-weight: 700;
  padding: 0; cursor: pointer; font-size: 14px;
  font-family: inherit; text-decoration: none;
}
.ds-btn-text:hover { text-decoration: underline; }

/* ---- Sections ---- */
.ds-section { padding: 64px 0; }
.ds-section-head { margin-bottom: 28px; }
.ds-section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px;
}
.ds-section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.1; color: #000; letter-spacing: -0.01em; margin: 0;
}
.ds-section-sub { margin: 8px 0 0; color: var(--fg-2); font-size: 15px; max-width: 580px; }
.ds-section-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px;
}
.ds-section-row > :first-child { flex: 1 1 auto; min-width: 0; }
.ds-section-row > :last-child  { flex: 0 0 auto; }

/* ---- Quick Actions ---- */
.ds-qa-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ds-qa-card {
  background: #fff; border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow-inset-soft);
  cursor: pointer; text-align: left; border: 0;
  font-family: inherit; text-decoration: none; color: inherit;
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
  display: flex; flex-direction: column; gap: 10px; min-height: 144px;
}
.ds-qa-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.25), 0 6px 22px rgba(0,0,0,0.06);
}
.ds-qa-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-arches-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ds-qa-ico.black { background: #000; }
.ds-qa-ico.gold  { background: var(--color-golden-yellow); color: #000; }
.ds-qa-ico svg   { width: 22px; height: 22px; fill: currentColor; }
.ds-qa-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #000; margin: 0; }
.ds-qa-desc  { font-size: 12px; color: var(--fg-2); margin: 0; line-height: 1.4; }
.ds-qa-meta  { margin-top: auto; font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* ---- Announcements ---- */
.ds-ann-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px;
}
.ds-ann-card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-inset-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.ds-ann-card.featured { background: #fff; box-shadow: var(--shadow-inset-soft); }
.ds-ann-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1;
  padding: 5px 10px 3px; border-radius: var(--radius-pill);
  background: rgba(219,0,7,0.10); color: var(--color-arches-red);
}
.ds-ann-card.featured .ds-ann-pill { background: var(--color-golden-yellow); color: #000; }
.ds-ann-meta {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700; color: var(--fg-3);
}
.ds-ann-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; color: #000; margin: 0; line-height: 1.2;
}
.ds-ann-card.featured .ds-ann-title { font-size: 26px; }
.ds-ann-title-hl {
  background: linear-gradient(180deg,
    transparent 62%, var(--color-golden-yellow) 62%,
    var(--color-golden-yellow) 88%, transparent 88%);
  padding: 0 0.05em;
}
.ds-ann-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; min-height: 24px; }
.ds-ann-icon { font-size: 22px; color: var(--color-golden-yellow); }
.ds-ann-body { font-size: 13.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.ds-ann-body p, .ds-ann-body ul, .ds-ann-body ol { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 0.5em; }
.ds-ann-body p:last-child, .ds-ann-body ul:last-child, .ds-ann-body ol:last-child { margin-bottom: 0; }
.ds-ann-body ul, .ds-ann-body ol { padding-left: 1.25em; }
.ds-ann-body strong { font-weight: 700; color: var(--fg-1); }
.ds-ann-body a { color: var(--color-golden-yellow); }
.ds-ann-link { margin-top: auto; padding-top: 8px; }
.ds-ann-body.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-ann-read-more {
  background: none; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--color-arches-red);
  padding: 0; margin-top: 4px; align-self: flex-start;
  letter-spacing: 0.02em; font-family: inherit;
}
.ds-ann-read-more:hover { text-decoration: underline; }

/* ---- Announcement Modal ---- */
.ds-ann-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.ds-ann-modal-overlay.open { display: flex; }
.ds-ann-modal {
  background: #fff; border-radius: 20px; padding: 36px 36px 32px;
  max-width: 580px; width: 100%; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22); margin: auto;
}
.ds-ann-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--fg-3); line-height: 1; padding: 6px; border-radius: 50%;
}
.ds-ann-modal-close:hover { background: var(--bg-2); color: var(--fg-1); }
.ds-ann-modal-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: #000; margin: 8px 0 16px; line-height: 1.25;
}

/* ---- Acknowledgment Modal ---- */
.ds-ack-overlay {
  display: none; position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.ds-ack-overlay.open { display: flex; }
.ds-ack-modal {
  background: #fff; border-radius: 20px; padding: 32px 36px 28px;
  max-width: 560px; width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
  border-top: 4px solid var(--color-arches-red);
}
.ds-ack-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ds-ack-progress { font-size: 11px; font-weight: 700; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.ds-ack-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: #000; margin: 8px 0 16px; line-height: 1.25;
}
.ds-ack-body { max-height: 45vh; overflow-y: auto; padding-right: 4px; }
.ds-ack-footer {
  display: flex; justify-content: flex-end;
  padding-top: 20px; margin-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* ---- Next Holiday ---- */
.ds-holiday-card {
  background: #fff; border-radius: 16px; padding: 28px 32px;
  box-shadow: var(--shadow-inset-soft);
  display: flex; align-items: center; gap: 24px;
}
.ds-holiday-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: var(--color-arches-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ds-holiday-icon svg { width: 28px; height: 28px; }
.ds-holiday-info { flex: 1; min-width: 0; }
.ds-holiday-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; color: var(--color-ink); margin: 0 0 4px; line-height: 1.15;
}
.ds-holiday-date { font-size: 13.5px; color: var(--fg-2); }
.ds-holiday-badge {
  display: inline-flex; align-items: center; flex-shrink: 0;
  background: var(--color-golden-yellow); color: #000;
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--radius-pill);
}
@media (max-width: 600px) {
  .ds-holiday-card { flex-direction: column; align-items: flex-start; }
  .ds-holiday-badge { margin-top: 4px; }
}

.ds-holiday-card-sm {
  background: #fff; border-radius: 12px; padding: 14px 20px;
  box-shadow: var(--shadow-inset-soft);
  display: flex; align-items: center; gap: 16px;
  margin-top: 10px;
}
.ds-holiday-card-sm .ds-holiday-info { flex: 1; min-width: 0; }
.ds-holiday-card-sm .ds-holiday-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--color-ink); margin: 0 0 2px; line-height: 1.2;
}
.ds-holiday-card-sm .ds-holiday-date { font-size: 12px; color: var(--fg-2); }
.ds-holiday-card-sm .ds-holiday-badge {
  display: inline-flex; align-items: center; flex-shrink: 0;
  background: rgba(0,0,0,0.06); color: var(--fg-2);
  font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
@media (max-width: 600px) {
  .ds-holiday-card-sm { flex-direction: column; align-items: flex-start; }
  .ds-holiday-card-sm .ds-holiday-badge { margin-top: 2px; }
}

/* ---- FAQ ---- */
.ds-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ds-faq-item {
  background: #fff; border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px; padding: 18px 22px; cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.ds-faq-item:hover { background: #fafafa; }
.ds-faq-item.open {
  border-color: var(--color-golden-yellow);
  box-shadow: 0 0 0 3px rgba(255,188,13,0.15);
}
.ds-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-faq-q-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; color: #000; margin: 0;
}
.ds-faq-toggle {
  width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.06); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #000;
  transition:
    transform var(--dur-med) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  user-select: none;
}
.ds-faq-toggle .material-symbols-outlined {
  font-size: 18px; line-height: 1; display: block;
}
.ds-faq-item.open .ds-faq-toggle {
  background: var(--color-golden-yellow);
  transform: rotate(45deg);
}
.ds-faq-a {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-2);
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-out), margin var(--dur-med) var(--ease-out);
}
.ds-faq-item.open .ds-faq-a { max-height: 300px; margin-top: 12px; }
.ds-faq-a a { color: var(--color-arches-red); }

/* ---- Footer ---- */
.ds-footer { background: var(--color-bone); color: var(--color-ink); padding: 56px 0 24px; }
.ds-footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.ds-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ds-footer-brand .nm {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--color-ink);
}
.ds-footer-token { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.ds-footer-token img { width: 100%; height: 100%; display: block; }
.ds-footer-desc { font-size: 13px; line-height: 1.55; color: var(--fg-2); max-width: 320px; }
.ds-footer-col h5 {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-arches-red); margin: 0 0 14px;
}
.ds-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ds-footer-col a { color: var(--fg-2); text-decoration: none; font-size: 13px; }
.ds-footer-col a:hover { color: var(--color-ink); }
.ds-footer-bottom {
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-3);
  flex-wrap: wrap; gap: 8px;
}
.ds-footer-bottom a { color: var(--fg-3); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .ds-qa-grid      { grid-template-columns: 1fr 1fr; }
  .ds-ann-grid     { grid-template-columns: 1fr; }
  .ds-faq-grid     { grid-template-columns: 1fr; }
  .ds-footer-grid  { grid-template-columns: 1fr 1fr; }
  .ds-hero-title   { font-size: clamp(36px, 8vw, 60px); }
  .ds-nav-links    { gap: 12px; }
}
@media (max-width: 640px) {
  .ds-container    { padding: 0 16px; }
  .ds-ann-modal    { padding: 28px 20px 24px; }
  .ds-ack-modal    { padding: 24px 20px 20px; }
  .ds-qa-grid      { grid-template-columns: 1fr; }
  .ds-footer-grid  { grid-template-columns: 1fr; }
  .ds-section      { padding: 40px 0; }
  .ds-hero         { padding: 56px 0 72px; }
  .ds-nav-links    { display: none; }
  .ds-hero-arches  { font-size: 320px; }
}
