/*
Theme Name: ReDefine & Co.
Theme URI: https://example.com/redefine-co
Author: Codex
Author URI: https://example.com
Description: A crisp fitness and wellness editorial theme — blog, products, and contact templates.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redefine-co
Tags: blog, custom-menu, featured-images, fitness, wellness, one-column, two-columns
*/

/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  /* Palette */
  --ink:         #111110;
  --muted:       #6b7280;
  --line:        #e5e7eb;
  --paper:       #fafaf8;
  --panel:       #ffffff;
  --accent:      #c8f03a;      /* electric lime */
  --accent-dim:  #a8cb2a;
  --accent-2:    #f04e37;
  --dark:        #18181b;
  --dark-mid:    #27272a;
  --dark-soft:   #3f3f46;

  /* Typography */
  --f-head: 'Poppins', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max: 1180px;
  --r:   10px;
}

/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dim); }
img { display: block; max-width: 100%; height: auto; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════
   LOGO — shared across header & footer
═══════════════════════════════════════════ */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}

.logo-re     { font-weight: 300; font-style: italic; }
.logo-define { font-weight: 800; }
.logo-amp    { color: var(--accent); font-weight: 900; padding-inline: 3px; }
.logo-co     { font-weight: 300; letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════
   HEADER TICKER STRIP
═══════════════════════════════════════════ */
.header-ticker {
  height: 30px;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  animation: ticker-scroll 30s linear infinite;
  padding-left: 100%;
  will-change: transform;
}

.ticker-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   HEADER MAIN ROW
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 32px rgba(0,0,0,0.06);
}

.header-main {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  height: 60px;
}

/* Logo in header */
.site-header .brand-logo {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--ink);
}

/* ── Desktop nav ── */
.site-navigation { display: contents; }

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 32px);
  margin: 0; padding: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(.4,0,.2,1);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--ink); }

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after { width: 100%; }

/* ── Header actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  position: relative;
  z-index: 300;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; 
  height: 48px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  position: relative;
  z-index: 999;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.search-toggle:hover {
  background: var(--line);
}

.search-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Expanded click area for better mobile touch detection */
.search-toggle::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  border-radius: 50%;
}

@media (min-width: 901px) {
  .search-toggle {
    width: 140px;
    border-radius: 999px;
    background: var(--line);
    gap: 8px;
  }

  .search-toggle::after {
    content: 'Search';
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
  }

  .search-toggle:hover {
    background: var(--accent);
    color: var(--ink);
  }

  .search-toggle:hover::after {
    color: var(--ink);
  }
}

/* ── Search bar ── */
.header-search {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s ease;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  max-height: none;
}

.header-search.is-open {
  opacity: 1;
  padding: 40px 20px;
}

.header-search .container {
  max-width: 100%;
  padding: 0;
}

.header-search .search-form {
  display: flex;
  gap: 0;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.header-search.is-open .search-form {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(200, 240, 58, 0.15);
}

.header-search input[type="search"] {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 14px 20px;
  font-family: var(--f-body);
  font-size: 1rem;
  min-height: unset;
  color: var(--ink);
}

.header-search input[type="search"]::placeholder {
  color: var(--muted);
}

.header-search input[type="search"]:focus {
  outline: none;
}

.header-search input[type="submit"] {
  border: none;
  border-left: 2px solid #f0f0f0;
  border-radius: 0;
  background: linear-gradient(135deg, #c8f03a 0%, #a8cb2a 100%);
  color: #1a1a1a;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: unset;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-search input[type="submit"]:hover {
  opacity: 0.9;
  transform: none;
}

.header-search input[type="submit"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(200, 240, 58, 0.3);
}

/* ── Hamburger ── */
.menu-toggle {
  display: none;
  width: 48px; 
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  position: relative;
  z-index: 999;
  flex-shrink: 0;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Expanded click area for better mobile touch detection */
.menu-toggle::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  border-radius: 50%;
}

.menu-toggle:hover { background: var(--line); }

.hb-box {
  width: 22px; height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hb-bar {
  display: block;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(.77,0,.18,1),
              opacity 0.2s, width 0.3s;
}

.hb-top { width: 100%; }
.hb-mid { width: 70%; }
.hb-bot { width: 100%; }

/* X state */
.is-menu-open .hb-top { transform: translateY(7px) rotate(45deg); width: 100%; }
.is-menu-open .hb-mid { opacity: 0; width: 0; }
.is-menu-open .hb-bot { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 240;
}

body.menu-is-open { overflow: hidden; }

/* ═══════════════════════════════════════════
   CATEGORY RIBBON
═══════════════════════════════════════════ */
.category-ribbon {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-ribbon::-webkit-scrollbar { display: none; }

.ribbon-inner { display: flex; }

.ribbon-list {
  display: flex;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
}

.ribbon-link {
  display: inline-block;
  padding: 11px 16px;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.ribbon-link:hover,
.ribbon-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.ribbon-list li:first-child .ribbon-link { padding-left: 0; }

/* ═══════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════ */
.site-main { flex: 1; }

/* Shared button/input */
.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

input, textarea {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}

textarea { min-height: 150px; resize: vertical; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  padding: clamp(54px,8vw,104px) 0 clamp(36px,6vw,74px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(280px,0.7fr);
  gap: clamp(28px,6vw,72px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.hero h1 {
  max-width: 880px; margin: 0;
  font-family: var(--f-head);
  font-size: clamp(2.8rem,8vw,6.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.page-hero h1 {
  max-width: 880px; margin: 0;
  font-family: var(--f-head);
  font-size: clamp(1.4rem,4vw,2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-copy, .page-hero p {
  margin: 24px 0 0;
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(1rem,1.8vw,1.2rem);
}

.insight-panel { border-top: 3px solid var(--accent-2); padding-top: 18px; }
.insight-panel h2 { margin: 0 0 14px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--f-body); }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.stat { padding: 16px 0; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--f-head); font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.8rem; }

/* ═══════════════════════════════════════════
   SECTIONS / POST CARDS
═══════════════════════════════════════════ */
.section { padding: clamp(40px,7vw,76px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1.05; }
.view-link { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dim); }

.post-grid { display: grid; border-top: 1px solid var(--line); }
.post-card { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-date, .post-category, .product-meta { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.post-card h3 { margin: 0 0 6px; font-family: var(--f-head); font-size: clamp(1.1rem,2vw,1.7rem); font-weight: 600; line-height: 1.2; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Featured image in post cards */
.post-card .featured-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 120px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
  flex-shrink: 0;
}

.post-card .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter { background: var(--dark); color: #fff; border-bottom: 0; }
.newsletter .container { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.newsletter h2 { margin: 0; font-family: var(--f-head); font-size: clamp(1.8rem,5vw,3.6rem); font-weight: 700; line-height: 1.05; }
.newsletter p { margin: 14px 0 0; color: rgba(255,255,255,0.55); }
.newsletter-form { display: flex; gap: 10px; width: min(100%,480px); }

.page-hero { padding: clamp(48px,8vw,96px) 0 34px; border-bottom: 1px solid var(--line); }

.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.product-card, .contact-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; }
.product-card { display: grid; gap: 18px; }
.product-card h2 { margin: 0; font-family: var(--f-head); font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.product-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.product-price { font-family: var(--f-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }

.feature-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.feature-list li { padding-left: 18px; position: relative; font-size: 0.9rem; }
.feature-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); position: absolute; left: 0; top: 0.6em; }

.platform-band { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 36px; align-items: start; }
.platform-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.platform-link { min-height: 118px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font-weight: 700; font-family: var(--f-head); }
.platform-link span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.88rem; font-weight: 400; font-family: var(--f-body); }

.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
.contact-card h2 { margin-top: 0; font-family: var(--f-head); font-weight: 700; }
.contact-card form, form.contact-card { display: grid; gap: 12px; }
.contact-details { display: grid; gap: 18px; margin-top: 28px; }
.contact-detail { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-detail strong { display: block; font-family: var(--f-head); font-weight: 600; }

/* ═══════════════════════════════════════════
   FOOTER — MARQUEE DIVIDER
═══════════════════════════════════════════ */
.footer-marquee {
  background: var(--accent);
  overflow: hidden;
  height: 46px;
  display: flex;
  align-items: center;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.footer-marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--f-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  animation: ticker-scroll 22s linear infinite;
  padding-left: 100%;
  will-change: transform;
}

.mq-sep {
  font-size: 0.7rem;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   FOOTER — BODY
═══════════════════════════════════════════ */
.footer-body {
  background: var(--dark);
  padding: clamp(52px,7vw,90px) 0 clamp(36px,5vw,60px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(28px,4vw,64px);
  align-items: start;
}

/* Brand column */
.footer-col--brand .footer-logo {
  font-size: clamp(1.7rem,3vw,2.6rem);
  color: #fff;
  margin-bottom: 22px;
  display: inline-flex;
}

.footer-col--brand .footer-logo .logo-re,
.footer-col--brand .footer-logo .logo-define,
.footer-col--brand .footer-logo .logo-co { color: #fff; }
.footer-col--brand .footer-logo .logo-amp { color: var(--accent); }

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin: 0 0 30px;
  max-width: 280px;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-icon:hover {
  background: rgba(200, 240, 58, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* Nav columns */
.footer-col-title {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin: 0 0 20px;
}

.footer-nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  transition: color 0.18s, padding-left 0.18s;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #fff;
  padding-left: 4px;
}

/* ═══════════════════════════════════════════
   FOOTER — BASE BAR
═══════════════════════════════════════════ */
.footer-base {
  background: #0d0d0c;
  padding: 16px 0;
}

.footer-base-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy,
.footer-made {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.02em;
}

.footer-made { font-style: italic; }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET ≤ 900px
═══════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Show hamburger */
  .menu-toggle { display: inline-flex; }

  /* Slide-in drawer */
  .site-navigation {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw);
    background: var(--panel);
    z-index: 260;
    padding: 90px 28px 48px;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.38s cubic-bezier(.77,0,.18,1);
    box-shadow: -12px 0 60px rgba(0,0,0,0.14);
  }

  .is-menu-open .site-navigation { transform: translateX(0); }

  .mobile-overlay { display: block; }
  .is-menu-open .mobile-overlay { opacity: 1; pointer-events: auto; }

  /* Mobile nav list */
  .primary-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .primary-menu li { width: 100%; border-bottom: 1px solid var(--line); }
  .primary-menu a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; font-size: 0.95rem; font-weight: 600; border-bottom: none; }
  .primary-menu a::after { content: "›"; font-size: 1.2rem; opacity: 0.35; }

  /* Layout collapses */
  .hero-grid, .platform-band, .contact-layout,
  .newsletter .container { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-card .featured-image { width: 100%; height: 180px; }
  .newsletter-form { flex-direction: column; }

  /* Hide search label on tablet */
  .search-toggle::after { display: none; }
  .search-toggle { width: 48px !important; height: 48px !important; background: transparent !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col--brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE ≤ 560px
═══════════════════════════════════════════ */
@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }

  .header-inner { gap: 16px; height: 62px; }
  .site-header.is-scrolled .header-inner { height: 54px; }

  .hero h1, .page-hero h1 { font-size: clamp(2.4rem,14vw,3.6rem); }

  .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .platform-links { grid-template-columns: 1fr; }

  .footer-marquee-track { font-size: 0.72rem; }

  .footer-base-inner { flex-direction: column; text-align: center; }
}
