/* Fast Track — shared motion + favicon-linked styles */

/* ---------- Kill the red colored periods/dots everywhere ---------- */
.dot, .period,
h1 .dot, h1 .period,
h2 .dot, h2 .period,
.crumbs .dot, .crumbs .period {
  color: inherit !important;
}

/* ---------- Brand logo image (replaces the text wordmark) ---------- */
.wordmark {
  padding: 0 !important;
  min-width: 0 !important;
  gap: 14px !important;
  font-size: 0;
  display: inline-flex !important;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wordmark:hover { transform: scale(1.03); }
.brand-logo {
  height: 90px;
  width: auto;
  display: block;
  max-width: 340px;
}
.brand-name {
  font-family: 'Parkinsans', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--teal, #223A3F);
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.brand-name-sub {
  font-family: 'Parkinsans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange, #DC3D2D);
  line-height: 1;
}
.brand-logo-footer {
  height: 90px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 14px;
  border-radius: 14px;
}
.brand-name-footer {
  color: #fff;
}
.brand-name-footer .brand-name-sub {
  color: var(--yellow, #FDCA06);
}
header .nav { padding: 14px 0 !important; }
@keyframes ft-logo-wobble {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-3deg); }
}
.wordmark:active .brand-logo { animation: ft-logo-wobble 0.4s ease-in-out; }

/* ---------- Hero entrance ---------- */
@keyframes ft-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ft-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ft-anim-1 { animation: ft-fade-up 0.7s ease-out 0.05s both; }
.ft-anim-2 { animation: ft-fade-up 0.7s ease-out 0.18s both; }
.ft-anim-3 { animation: ft-fade-up 0.7s ease-out 0.32s both; }
.ft-anim-4 { animation: ft-fade-up 0.7s ease-out 0.46s both; }
.ft-fade-in { animation: ft-fade-in 0.9s ease-out both; }

/* ---------- Cart count bump ---------- */
@keyframes ft-cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.cart-count.bump { animation: ft-cart-bump 0.35s ease-out; }

/* ---------- Card hover lift (extends existing styles) ---------- */
.product-card, .kit-card, .school-card { transition: transform 0.25s ease-out, border-color 0.2s, box-shadow 0.25s; }

/* ---------- Scroll-triggered reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"].visible { transition-delay: 0.05s; }
.reveal[data-delay="200"].visible { transition-delay: 0.12s; }
.reveal[data-delay="300"].visible { transition-delay: 0.2s; }

/* ---------- CTA glow on hover ---------- */
.btn-primary, .checkout-btn, .kit-card-btn {
  position: relative;
  transition: background 0.15s, transform 0.15s, box-shadow 0.25s;
}
.btn-primary:hover, .checkout-btn:hover:not(:disabled), .kit-card-btn:hover {
  box-shadow: 0 14px 36px rgba(220, 61, 45, 0.35);
}

/* ---------- Floating supply icons in hero ---------- */
.hero-floats { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.float-icon { position: absolute; opacity: 0.18; color: #FDCA06; }
.float-icon svg { width: 100%; height: 100%; }
.float-1 { top: 18%; left: 8%; width: 64px; height: 64px; animation: ft-float 8s ease-in-out infinite; }
.float-2 { top: 30%; right: 10%; width: 56px; height: 56px; animation: ft-float 9s ease-in-out infinite 1.2s; }
.float-3 { bottom: 22%; left: 14%; width: 48px; height: 48px; animation: ft-float 7s ease-in-out infinite 0.6s; }
.float-4 { bottom: 28%; right: 18%; width: 72px; height: 72px; animation: ft-float 10s ease-in-out infinite 2s; }
@keyframes ft-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}

/* ---------- Toast slide-in (already exists, just smoother) ---------- */
.toast { transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.2s; }

/* ============================================== */
/* ACCESSIBILITY (WCAG 2.1 AA)                     */
/* ============================================== */

/* Screen-reader-only utility (visually hidden, readable by assistive tech) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Skip-to-main-content link — only visible when focused */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--teal, #223A3F);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-family: 'Parkinsans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--yellow, #FDCA06); outline-offset: 0; }

/* Visible focus indicator for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--orange, #DC3D2D);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Tighter focus ring on rounded buttons/pills */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-yellow:focus-visible,
.cart-btn:focus-visible,
.checkout-btn:focus-visible,
.hero-cta:focus-visible,
.add-btn:focus-visible,
.qty-btn-card:focus-visible,
.qty-btn:focus-visible,
.qty-btn-small:focus-visible,
.kit-card-btn:focus-visible,
.close-btn:focus-visible,
.mobile-menu-btn:focus-visible {
  outline-offset: 4px;
}

/* Remove default outline only for non-keyboard focus (mouse clicks) */
:focus:not(:focus-visible) { outline: none; }

/* ============================================== */
/* MOBILE — global responsive baseline             */
/* ============================================== */

/* Prevent horizontal scroll anywhere */
html, body { overflow-x: hidden; max-width: 100%; }

/* Homepage inline-styled grids */
.three-ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gift-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }

/* Mobile menu button (hamburger) — hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: var(--teal, #223A3F);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px; max-width: 80vw;
  height: 100vh;
  background: var(--teal, #223A3F);
  color: #fff;
  z-index: 200;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu-close {
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  margin-bottom: 24px;
  margin-left: auto;
}
.mobile-menu a {
  display: block;
  font-family: 'Parkinsans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--yellow, #FDCA06); }

/* ---------- Sub-768 mobile ---------- */
@media (max-width: 768px) {
  /* Show hamburger, swap to mobile menu */
  .mobile-menu-btn { display: inline-flex; }
  .mobile-menu { display: block; }
  .mobile-menu-overlay { display: block; }
  .nav-links { display: none !important; }

  /* Collapse the homepage 3-up grids */
  .three-ways-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .gift-grid { grid-template-columns: 1fr !important; gap: 40px; }

  /* Collapse 2/3/4-col grids that get squished on phones */
  .steps,
  .promise-grid,
  .product-grid,
  .grid,
  .kits-grid,
  .schools-grid,
  .why-grid,
  .pick-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Footer can stay 2-col for compactness, but tighten gap */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }

  /* Generic containers — tighten padding */
  .container { padding: 0 20px !important; }

  /* Brand logo a touch smaller on mobile */
  .brand-logo { height: 72px !important; }
  .brand-logo-footer { height: 78px !important; }
  .brand-name { font-size: 24px; }
  .brand-name-sub { font-size: 11px; }

  /* Reduce massive section padding on mobile */
  section { padding-left: 0; padding-right: 0; }

  /* Make sticky checkout cards no longer sticky on mobile (they take up too much space) */
  .checkout-card, .gift-summary { position: static !important; }

  /* Cart drawer should be near-full width on phones */
  .cart-drawer { width: 100vw !important; max-width: 100vw !important; }

  /* Buttons big enough to tap */
  button, .btn-primary, .btn-secondary, .btn-yellow, .hero-cta, .checkout-btn { min-height: 44px; }

  /* Hero typography scales down */
  .hero h1 { font-size: clamp(38px, 9vw, 56px) !important; }
  .hero p.lead { font-size: 17px !important; }

  /* Upload-banner — let photo center, no negative margin spill */
  .upload-visual { margin-right: auto !important; margin-left: auto !important; max-width: 240px !important; }
  .upload-banner { padding: 40px 28px !important; grid-template-columns: 1fr !important; }
}

/* ---------- Sub-480 small phones (iPhone SE, etc) ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px !important; }
  .hero h1 { font-size: 36px !important; }
  .nav { padding: 12px 0 !important; }
  .brand-logo { height: 56px !important; }
  .brand-name { font-size: 19px; }
  .brand-name-sub { font-size: 9px; letter-spacing: 0.06em; }
  .wordmark { gap: 10px !important; }
  /* No tilted shadows; keep things clean at tiny widths */
  .upload-visual { transform: none !important; }
}

/* ============================================== */
/* COOKIE CONSENT BANNER                           */
/* ============================================== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  background: var(--teal, #223A3F);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 500;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  font-family: 'Parkinsans', sans-serif;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.25s;
  max-width: 880px;
  margin: 0 auto;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 280px;
  color: rgba(255, 255, 255, 0.92);
}
.cookie-banner a {
  color: var(--yellow, #FDCA06);
  text-decoration: underline;
  font-weight: 600;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner button {
  font-family: 'Parkinsans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.cookie-banner .cookie-accept {
  background: var(--yellow, #FDCA06);
  color: var(--teal, #223A3F);
}
.cookie-banner .cookie-accept:hover { transform: translateY(-1px); background: #ffd633; }
.cookie-banner .cookie-decline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cookie-banner .cookie-decline:hover { background: rgba(255, 255, 255, 0.22); }
@media (max-width: 480px) {
  .cookie-banner { padding: 14px 16px; gap: 12px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner button { flex: 1; }
}

/* ---------- Respect reduced motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .wordmark .dot, .float-icon, .ft-anim-1, .ft-anim-2, .ft-anim-3, .ft-anim-4, .ft-fade-in, .cart-count.bump, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
