 /* ============================================================
   AMAIA SNACKS — Global Styles
   Brand Colors:
   - Dark green: #194534
   - Hot pink: #E6466B
   - Lime yellow: #DBE48B
   - Pale pink: #F0E9E8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400&display=swap');

@font-face {
  font-family: 'HanleyBlock';
  src: url('fonts/HANLEYPRO-BLOCK.OTF') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'HanleySans';
  src: url('fonts/HanleyPro-SansWideExtra.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Brice';
  src: url('fonts/Brice-BoldSemiCondensed.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Brand colors */
  --green-dark: #194534;
  --green-bright: #5BBF2E;
  --green-bag: #6CC24A;
  --green-mid: #3A8A2A;
  --lime-yellow: #DBE48B;
  --lime-light: #EDF2BB;
  --pink-hot: #E6466B;
  --pink-light: #F5A0B0;
  --pale-pink: #F0E9E8;
  --cream: #F9F5EC;
  --cream-warm: #F2ECD9;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray-warm: #6B6560;
  --gray-light: #B5B0A8;

  /* Type scale */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --letter-body: 0.01em;
  --letter-label: 0.12em;
  --letter-heading: -0.01em;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: var(--letter-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============ SCREEN READER ONLY ============ */
.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;
}

/* ============ SKIP NAVIGATION ============ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 24px;
  font-family: 'HanleySans', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ============ FOCUS STYLES ============ */
:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer :focus-visible,
.page-hero :focus-visible,
.store-cta-section :focus-visible,
.product-cta :focus-visible,
.story-cta :focus-visible {
  outline-color: var(--lime-yellow);
}
.nav :focus-visible { outline-color: var(--pink-hot); }

/* ============ BACKGROUND TEXTURE UTILITY ============ */
.bg-texture { position: relative; }
.bg-texture::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* ============ SHARED: NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 40px;
  padding: 16px 48px;
  background: rgba(240,233,232,0.97);
  backdrop-filter: blur(16px);
}
.nav-logo img { height: 32px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--green-dark); text-decoration: none;
  font-family: 'HanleySans', sans-serif; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.7; }
.nav-links a.active { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta {
  background: var(--pink-hot); color: var(--white); border: none;
  padding: 10px 24px; border-radius: 50px; cursor: pointer;
  font-family: 'HanleySans', sans-serif; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { transform: scale(1.03); background: #D42E4E; }

/* ============ SHARED: SECTION HELPERS ============ */
.section-label {
  font-family: 'HanleySans', sans-serif; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-heading {
  font-family: 'HanleyBlock', sans-serif;
  text-transform: uppercase; line-height: 1.05; margin-bottom: 16px;
}
.accent-green { color: var(--green-bright); }
.accent-lime { color: var(--lime-yellow); }
.accent-pink { color: var(--pink-hot); }
.accent-white { color: var(--white); }
.accent-dark { color: var(--green-dark); }

/* ============ SHARED: CLAIMS BAR ============ */
.claims-bar {
  background: var(--green-dark); padding: 28px 48px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.claims-bar img { height: 56px; }

/* ============ SHARED: FOOTER ============ */
.footer { background: var(--green-dark); padding: 64px 48px 32px; color: var(--white); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-logos { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.footer-brand-logos img:first-child { height: 36px; }
.footer-brand-logos .snakking-logo { height: 18px; margin-top: 6px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.footer-col h4 {
  font-family: 'HanleySans', sans-serif; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6);
  text-decoration: none; margin-bottom: 12px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--lime-yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ============ SHARED: ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade { animation: fadeUp 0.8s ease-out both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-fade { animation: none; opacity: 1; transform: none; }
  .claims-ticker { animation-play-state: paused; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; gap: 16px; justify-content: space-between; }
  .nav-links { gap: 16px; }
  .claims-bar { gap: 24px; padding: 20px 24px; }
  .claims-bar img { height: 40px; }
  .footer { padding: 48px 24px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
