/* =========================================================
   StillFresh Compliance Site — Shared Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
p  { margin-bottom: 1rem; color: var(--slate-700); }
a  { color: var(--green-700); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; color: var(--slate-700); }
li { margin-bottom: 0.35rem; }
strong { color: var(--slate-900); font-weight: 600; }

/* ── Navigation ───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--green-50);
  color: var(--green-700);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--slate-700); border-radius: 2px;
  transition: transform 0.2s;
}
.nav-toggle span + span { margin-top: 5px; }

/* ── Hero Banners ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-500) 100%);
  color: white;
  padding: 72px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -200px; right: -150px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -100px; left: -50px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero h1 { color: white; margin-bottom: 14px; position: relative; }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto;
}

.hero-date {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 4px 14px;
}

/* ── Main Content Container ───────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.card-highlight {
  background: var(--green-50);
  border-color: var(--green-100);
}

/* ── Section Divider ──────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--slate-200);
  margin: 2rem 0;
}

/* ── Info Boxes ───────────────────────────────────────── */
.info-box {
  border-left: 4px solid var(--green-500);
  background: var(--green-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 1.5rem 0;
}

.info-box p { margin: 0; color: var(--green-900); font-size: 0.9rem; }

.warn-box {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 1.5rem 0;
}

.warn-box p { margin: 0; color: #92400e; font-size: 0.9rem; }

/* ── TOC (Table of Contents) ──────────────────────────── */
.toc {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 0.875rem; color: var(--slate-600); font-weight: 400; }
.toc a:hover { color: var(--green-700); }

/* ── Tags / Compliance Badges ────────────────────────── */
.compliance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-green  { background: var(--green-100); color: var(--green-800); }
.tag-blue   { background: #dbeafe; color: #1e40af; }
.tag-purple { background: #ede9fe; color: #5b21b6; }
.tag-orange { background: #ffedd5; color: #9a3412; }

/* ── Home page feature grid ───────────────────────────── */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}

.page-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
  text-decoration: none;
}

.page-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.page-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
}

.page-card-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

.page-card-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-600);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Support FAQ ──────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--white);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s;
  font-family: inherit;
}

.faq-question:hover { background: var(--slate-50); }

.faq-chevron {
  font-size: 1.2rem;
  color: var(--slate-400);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
}

.faq-answer p { font-size: 0.9rem; color: var(--slate-600); }

.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 18px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── Contact Card ─────────────────────────────────────── */
.contact-card {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  color: white;
  margin-top: 2rem;
}

.contact-card h2 { color: white; margin-top: 0; }
.contact-card p  { color: rgba(255,255,255,0.85); }

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--green-800);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.contact-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--green-800);
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

footer a { color: var(--slate-400); }
footer a:hover { color: var(--green-400); }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--slate-200); flex-direction: column; padding: 12px 16px; gap: 2px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 52px 20px 40px; }
  .container { padding: 36px 20px 60px; }
  .card { padding: 20px; }
  .contact-card { padding: 28px 20px; }
}
