/* ============================================================
   PEPTIDI INFO – style.css  v2
   Sections: Reset · Variables · Base · Container · Header ·
             Hero · Value Strip · Categories · Articles ·
             Newsletter · Footer · Drawer · Responsive · Utilities
   ============================================================ */

/* ---- 1. RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ---- 2. VARIABLES ---- */
:root {
  --primary:       #1a6fd4;
  --primary-hover: #155db8;
  --primary-light: #e8f1fd;
  --text:          #0f1c35;
  --text-muted:    #4b5f7c;
  --text-light:    #8a9bb5;
  --background:    #ffffff;
  --surface:       #f5f8fe;
  --surface-alt:   #eaf2fc;
  --border:        #d6e4f5;
  --border-light:  #eaf0f9;
  --shadow-xs:     0 1px 3px rgba(15,28,53,0.06);
  --shadow-sm:     0 2px 8px rgba(15,28,53,0.08);
  --shadow-md:     0 4px 18px rgba(15,28,53,0.11);
  --shadow-lg:     0 8px 32px rgba(15,28,53,0.13);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --container:     1240px;
  --header-h:      68px;

  /* ── Typography ── */
  --font-heading:  'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:     'Noto Sans', ui-sans-serif, system-ui, sans-serif;
  --font-ui:       'Roboto', ui-sans-serif, system-ui, sans-serif;

  /* Scale (based on mfmtools.ca Poppins system, adapted) */
  --text-xs:    0.6875rem;   /* 11px */
  --text-sm:    0.8125rem;   /* 13px */
  --text-base:  1rem;        /* 16px */
  --text-md:    1.125rem;    /* 18px */
  --text-lg:    1.375rem;    /* 22px */
  --text-xl:    1.5rem;      /* 24px */
  --text-2xl:   2.25rem;     /* 36px */
  --text-hero:  clamp(2.5rem, 5vw, 3.875rem); /* 40–62px */
}

/* ---- 3. BASE ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  line-height: 1.18;
}
p { color: var(--text-muted); font-family: var(--font-body); }

/* ---- 4. CONTAINER ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---- 5. BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 24px;
  height: 48px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(26,111,212,0.28);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(26,111,212,0.38);
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ---- 6. HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 0 var(--border-light);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
  display: block;
}
.logo-img--footer { height: 40px; }

/* Nav */
.main-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px; bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Header right */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.search-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.search-icon-btn:hover { color: var(--primary); background: var(--primary-light); }

.header-search { position: relative; }
.header-search form { display: flex; align-items: center; }
.search-input {
  height: 36px;
  padding: 0 34px 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text);
  background: var(--surface);
  width: 185px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, width 0.3s;
}
.search-input::placeholder { color: var(--text-light); }
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
  width: 210px;
}
.search-submit {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-light);
  display: flex; align-items: center;
  transition: color 0.2s;
}
.search-submit:hover { color: var(--primary); }

/* Hamburger – desktop hidden */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--primary-light); }
.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(.77,0,.18,1), opacity 0.2s;
}

/* ---- 7. HERO ---- */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #dceefa 45%, #c8e2f7 100%);
  padding: 60px 0 0;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 420px;
}
.hero-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding-bottom: 60px;
}
.hero-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 480px;
}

/* Hero features */
.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  max-width: 145px;
  line-height: 1.35;
}
.hero-feature-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}

/* Hero CTA */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero image */
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 40px rgba(26,111,212,0.20));
}

/* Side labels */
.hero-side-labels {
  position: absolute;
  right: 0;
  top: 50%; transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
}
.hero-side-labels span {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  opacity: 0.75;
}
.hero-side-labels span:last-child {
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

/* ---- 8. VALUE STRIP ---- */
.value-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.value-list {
  display: flex;
  align-items: stretch;
  min-height: 88px;
}
.value-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid var(--border-light);
  transition: background 0.18s;
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: var(--surface-alt); }
.value-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.value-text { display: flex; flex-direction: column; gap: 1px; }
.value-text strong { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.value-text span   { font-size: 0.775rem; color: var(--text-muted); }

/* ---- 9. CATEGORIES ---- */
.categories-section { padding: 60px 0 48px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.section-title { font-size: clamp(1.35rem, 2.5vw, 1.875rem); }
.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.section-link:hover { opacity: 0.7; }

/* Grid of 6 cards – no horizontal scroll on desktop */
.category-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.2s;
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}
.category-card-link { display: flex; flex-direction: column; height: 100%; }

.category-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-alt);
}
.category-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
  color: transparent;
}
.category-card:hover .category-img-wrap img { transform: scale(1.07); }

.category-body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.category-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.category-desc  { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.category-arrow {
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 8px;
  display: inline-block;
  transition: transform 0.2s;
}
.category-card:hover .category-arrow { transform: translateX(4px); }

/* ---- 10. ARTICLES ---- */
.articles-section { padding: 48px 0 64px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.article-card-link { display: flex; flex-direction: column; height: 100%; }

.article-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-alt);
}
.article-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
  transition: transform 0.4s ease;
}
.article-card:hover .article-img-wrap img { transform: scale(1.04); }

.article-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
}
.article-badge--vodic        { background: var(--primary); }
.article-badge--istrazivanje { background: #0891b2; }
.article-badge--zdravlje     { background: #16a34a; }

.article-body {
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.article-title   { font-size: 1.0625rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.article-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.article-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.article-date  { font-size: 0.8rem; color: var(--text-light); }
.article-arrow {
  font-size: 1rem; color: var(--primary);
  transition: transform 0.2s;
}
.article-card:hover .article-arrow { transform: translateX(4px); }

/* ---- 11. NEWSLETTER ---- */
.newsletter-section { padding: 0 0 64px; }
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.newsletter-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.newsletter-text { flex: 1; min-width: 0; }
.newsletter-title {
  font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 3px;
}
.newsletter-desc { font-size: 0.875rem; color: var(--text-muted); }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.newsletter-input {
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text);
  background: #fff;
  width: 260px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-input::placeholder { color: var(--text-light); }
.newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.11);
}
.newsletter-btn { height: 46px; padding: 0 22px; }

/* ---- 12. FOOTER ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  display: flex;
  gap: 48px;
  padding-top: 52px;
  padding-bottom: 44px;
  align-items: flex-start;
}

.footer-brand { flex: 0 0 185px; }
.footer-logo { display: flex; }
.footer-tagline { font-size: 0.84rem; color: var(--text-muted); margin: 14px 0 18px; }

.social-list { display: flex; gap: 8px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: #fff;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

.footer-nav { flex: 1; }
.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 15px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--primary); }

.footer-contact { flex: 1; }
.footer-contact .footer-nav-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 15px; }
.footer-contact ul { display: flex; flex-direction: column; gap: 11px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-muted);
}
.footer-contact-item svg { flex-shrink: 0; color: var(--primary); }
.footer-contact-item a { color: var(--text-muted); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-quote { flex: 0 0 170px; display: flex; align-items: flex-end; justify-content: flex-end; }
.footer-quote blockquote p {
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-align: right;
}

.footer-bottom { border-top: 1px solid var(--border-light); background: #fff; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 12px;
}
.footer-copy, .footer-legal { font-size: 0.78rem; color: var(--text-light); }
.footer-legal { display: flex; gap: 8px; align-items: center; }

/* ---- 13. MOBILE DRAWER ---- */

/* Full-screen dark overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer panel – slides from the right */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 901;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.drawer-header .logo-img {
  height: 36px;
  mix-blend-mode: multiply;
}
.drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: var(--primary-light); color: var(--primary); }

/* Drawer nav links */
.drawer-nav-list {
  flex: 1;
  padding: 8px 0;
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.drawer-nav-link:hover,
.drawer-nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}
.drawer-nav-link.active { font-weight: 700; }

/* Drawer search */
.drawer-search {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}
.drawer-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.drawer-search-icon {
  position: absolute; left: 12px;
  color: var(--text-light);
  pointer-events: none;
}
.drawer-search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.drawer-search-wrap input::placeholder { color: var(--text-light); }
.drawer-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.11);
}

/* Drawer CTA */
.drawer-cta {
  padding: 16px 20px 24px;
}

/* Hamburger active state */
.hamburger.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 14. RESPONSIVE ---- */

/* ≤1100px — tighter nav */
@media (max-width: 1100px) {
  .nav-link { padding: 6px 8px; font-size: 0.84rem; }
  .search-input { width: 155px; }
  .footer-inner { gap: 32px; }
  .category-list { grid-template-columns: repeat(3, 1fr); }
}

/* ≤960px — hide desktop nav, show hamburger + drawer */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* ≤768px — tablet layout */
@media (max-width: 768px) {
  :root { --header-h: 62px; }

  /* Hero */
  .hero { padding: 40px 0 0; }
  .hero-inner { flex-direction: column; gap: 28px; min-height: auto; }
  .hero-content { flex: none; max-width: 100%; padding-bottom: 0; }
  .hero-visual  { width: 100%; justify-content: center; }
  .hero-image-wrap { max-width: 320px; }
  .hero-img { max-width: 100%; }
  .hero-side-labels { display: none; }
  .hero-description { max-width: 100%; }

  /* Categories: 3 col */
  .category-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Articles: 1 col */
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Value strip: 2×2 */
  .value-list { flex-wrap: wrap; }
  .value-item {
    flex: 0 0 calc(50% - 0px);
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .value-item:nth-child(odd)  { border-right: 1px solid var(--border-light); }
  .value-item:nth-last-child(-n+2) { border-bottom: none; }

  /* Newsletter */
  .newsletter-box { flex-direction: column; padding: 28px 24px; text-align: center; align-items: center; gap: 20px; }
  .newsletter-form { flex-direction: column; width: 100%; align-items: stretch; }
  .newsletter-input { width: 100%; }
  .newsletter-btn   { width: 100%; height: 46px; }

  /* Footer */
  .footer-inner { flex-wrap: wrap; gap: 28px; padding-top: 40px; padding-bottom: 36px; }
  .footer-brand  { flex: 0 0 100%; }
  .footer-nav    { flex: 0 0 calc(50% - 16px); }
  .footer-contact{ flex: 0 0 calc(50% - 16px); }
  .footer-quote  { flex: 0 0 100%; justify-content: flex-start; }
  .footer-quote blockquote p { text-align: left; }
}

/* ≤540px — mobile */
@media (max-width: 540px) {
  .hero-features { gap: 14px; }
  .hero-feature  { max-width: 130px; font-size: 0.8rem; }
  .hero-cta .btn { height: 44px; padding: 0 18px; font-size: 0.875rem; }

  /* Categories: 2 col */
  .category-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Value: full width */
  .value-item { flex: 0 0 100%; border-right: none !important; }
  .value-item:last-child { border-bottom: none; }

  /* Header search hide on small */
  .header-search { display: none; }
  .search-icon-btn { display: flex; }
}

/* ≤400px */
@media (max-width: 400px) {
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .footer-nav    { flex: 0 0 100%; }
  .footer-contact{ flex: 0 0 100%; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---- 15. UTILITIES ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   TYPOGRAPHY SYSTEM — mfmtools.ca scale · Inter + Noto Sans + Roboto
   ============================================================ */

/* ── Headings (Inter) ── */
h1 {
  font-family: var(--font-heading);
  font-size: var(--text-hero);           /* 40–62px, fluid */
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}
h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);            /* 36px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);             /* 22px */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);             /* 24px */
  font-weight: 300;                      /* mfmtools h4 = light */
  line-height: 1.35;
}
h5 {
  font-family: var(--font-heading);
  font-size: var(--text-md);             /* 18px */
  font-weight: 600;
  line-height: 1.45;
}
h6 {
  font-family: var(--font-heading);
  font-size: var(--text-base);           /* 16px */
  font-weight: 600;
  line-height: 1.5;
}

/* ── Body / Noto Sans ── */
body {
  font-size: var(--text-base);           /* 16px */
  line-height: 1.625;                    /* ~26px – comfortable */
  font-weight: 400;
}
p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
}

/* ── Navigation (Inter, Roboto for sub-items) ── */
.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);             /* 13px */
  font-weight: 600;
  letter-spacing: 0.01em;
}
.drawer-nav-link {
  font-family: var(--font-heading);
  font-size: 1.0625rem;                  /* 17px – comfortable tap target */
  font-weight: 500;
}

/* ── Hero text ── */
.hero-eyebrow {
  font-family: var(--font-ui);           /* Roboto for small caps label */
  font-size: var(--text-xs);            /* 11px */
  font-weight: 700;
  letter-spacing: 0.22em;
}
.hero-title {
  font-family: var(--font-heading);     /* Inter */
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-description {
  font-family: var(--font-body);        /* Noto Sans */
  font-size: 1.0625rem;                 /* 17px – mfmtools body ~16-18px */
  line-height: 1.7;
  font-weight: 400;
}
.hero-feature {
  font-family: var(--font-heading);
  font-size: var(--text-sm);            /* 13px */
  font-weight: 600;
}

/* ── Section titles ── */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, var(--text-2xl));  /* up to 36px */
  font-weight: 700;
  letter-spacing: -0.015em;
}
.section-link {
  font-family: var(--font-ui);          /* Roboto */
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── Value strip ── */
.value-text strong {
  font-family: var(--font-heading);
  font-size: 0.9375rem;                 /* 15px */
  font-weight: 700;
}
.value-text span {
  font-family: var(--font-body);
  font-size: 0.8125rem;                 /* 13px */
  font-weight: 400;
}

/* ── Category cards ── */
.category-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;                  /* 14px */
  font-weight: 700;
}
.category-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;                   /* 12px */
  font-weight: 400;
}

/* ── Article cards ── */
.article-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;                 /* 17px */
  font-weight: 700;
  line-height: 1.3;
}
.article-excerpt {
  font-family: var(--font-body);
  font-size: 0.9375rem;                 /* 15px */
  line-height: 1.6;
  font-weight: 400;
}
.article-date {
  font-family: var(--font-ui);          /* Roboto */
  font-size: 0.8125rem;                 /* 13px */
  font-weight: 400;
}
.article-badge {
  font-family: var(--font-ui);          /* Roboto */
  font-size: 0.625rem;                  /* 10px */
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ── Newsletter ── */
.newsletter-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);            /* 24px */
  font-weight: 700;
}
.newsletter-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
}
.newsletter-input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
}
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Footer ── */
.footer-nav-title {
  font-family: var(--font-ui);          /* Roboto */
  font-size: 0.6875rem;                 /* 11px */
  font-weight: 700;
  letter-spacing: 0.14em;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;                  /* 14px */
  font-weight: 400;
  line-height: 1.5;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
}
.footer-contact-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.footer-quote blockquote p {
  font-family: var(--font-heading);     /* Inter italic */
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
}
.footer-copy, .footer-legal {
  font-family: var(--font-ui);          /* Roboto */
  font-size: 0.8125rem;                 /* 13px */
  font-weight: 400;
}

/* ── Search ── */
.search-input,
.search-input::placeholder,
.drawer-search-wrap input,
.drawer-search-wrap input::placeholder {
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

/* ── Hero mobile scale (matches mfmtools.ca 45px mobile) ── */
@media (max-width: 768px) {
  .hero-title,
  h1 {
    font-size: clamp(2rem, 10vw, 2.75rem); /* ≈ 40–44px on mobile */
    letter-spacing: -0.02em;
  }
  h2, .section-title { font-size: clamp(1.35rem, 5vw, 1.875rem); }
}
