/* ============================================================================
   Rymal Variety — your friendly neighbourhood corner store, Hamilton, ON.
   Brand from the store sign: bold YELLOW card, NAVY wordmark, RED accent.
   Mood: warm, local, cheerful, trustworthy. Print-clean & accessible.
   Type: Fredoka (friendly display) + Nunito (rounded body) + Inter fallback.
   ========================================================================== */

:root {
  /* ── Brand palette (from the Rymal Variety sign) ── */
  --primary: #16243a;       /* navy — wordmark, primary text & buttons */
  --primary-700: #0f1a2c;   /* deeper navy for surfaces */
  --primary-900: #0a1320;   /* darkest navy base */
  --accent: #e8402b;        /* red — highlights, the "Variety" wordmark */
  --accent-600: #cf3320;    /* red pressed/hover */
  --accent-300: #ff7a68;    /* soft red for on-dark text */
  --highlight: #f5c518;     /* yellow — the energetic background pop */
  --highlight-600: #e0b30a; /* yellow pressed */
  --highlight-soft: #fdf3cf;/* pale yellow wash */

  /* ── Surfaces / text ── */
  --bg: #ffffff;
  --bg-alt: #fff9e9;        /* warm off-white (a whisper of yellow) */
  --surface: #ffffff;
  --text: #0f172a;          /* near-black text */
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #7a8699;
  --line: #e7ebf2;
  --line-warm: #f0e6c4;
  --on-dark: #eef3fc;
  --on-dark-soft: #aab8d0;
  --on-dark-line: rgba(255, 255, 255, 0.14);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(8, 15, 30, 0.06), 0 2px 8px rgba(8, 15, 30, 0.05);
  --shadow-md: 0 12px 32px rgba(8, 15, 30, 0.12);
  --shadow-glow: 0 16px 44px rgba(22, 36, 58, 0.28);
  --shadow-yellow: 0 14px 40px rgba(245, 197, 24, 0.40);

  --maxw: 1160px;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Fluid type */
.t-display { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 700; }
.t-h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; }
.t-h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  font-family: var(--font-body);
}
.eyebrow.on-dark { color: var(--highlight); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.55rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); background: #1d2f4d; box-shadow: 0 20px 56px rgba(22, 36, 58, 0.36); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--on-dark); border-color: var(--on-dark-line); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-light { background: var(--highlight); color: var(--primary); box-shadow: var(--shadow-yellow); }
.btn-light:hover { transform: translateY(-2px); background: var(--highlight-600); box-shadow: 0 18px 48px rgba(245, 197, 24, 0.5); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Wordmark — yellow chip mark + "Rymal" navy / "Variety" red.
   On the (light) page the navy/red read clearly; over the dark hero the nav is
   transparent so we keep the brand colours but lift them on a yellow chip. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand .mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--highlight); color: var(--primary);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: -0.02em; box-shadow: 0 2px 8px rgba(245,197,24,0.5);
}
.brand .word { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; letter-spacing: -0.01em; }
.brand .rymal { color: var(--primary); }
.brand .variety { color: var(--accent); }
/* Over the dark hero, before scroll, lift the wordmark to white/yellow. */
.nav:not(.scrolled) .brand .rymal { color: #fff; }
.nav:not(.scrolled) .brand .variety { color: var(--highlight); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.82); font-size: 0.95rem; font-weight: 700; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-app { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.nav:not(.scrolled) .nav-app { background: var(--highlight); color: var(--primary); box-shadow: 0 8px 24px rgba(245,197,24,0.4); }
.nav:not(.scrolled) .nav-app:hover { background: var(--highlight-600); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.nav.scrolled .nav-toggle { color: var(--primary); }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-app { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open { background: #fff; box-shadow: var(--shadow-sm); }
  .nav.open .brand .rymal { color: var(--primary); }
  .nav.open .brand .variety { color: var(--accent); }
  .nav.open .nav-toggle { color: var(--primary); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem;
    position: absolute; top: 72px; left: 0; right: 0; padding: 14px 24px 22px;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 0.65rem 0; width: 100%; color: var(--ink-soft); font-size: 1.02rem; }
  .nav.open .nav-links a:hover { color: var(--accent); }
}

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; background: var(--primary); color: var(--on-dark); overflow: hidden; padding: 172px 0 112px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(56rem 30rem at 80% -10%, rgba(245, 197, 24, 0.28), transparent 60%),
    radial-gradient(40rem 26rem at 4% 12%, rgba(232, 64, 43, 0.22), transparent 58%);
}
/* Cheerful polka-dot texture (echoes a candy-shop / corner-store feel). */
.hero .dots-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.07) 2px, transparent 2.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(80% 62% at 50% 22%, #000, transparent);
  mask-image: radial-gradient(80% 62% at 50% 22%, #000, transparent);
}
.hero-inner { position: relative; max-width: 780px; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem;
  border: 1px solid var(--on-dark-line); border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06); font-size: 0.74rem; color: var(--on-dark-soft);
  letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase;
}
.chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 0 rgba(245,197,24,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245,197,24,0.5);} 70%{ box-shadow:0 0 0 10px rgba(245,197,24,0);} 100%{box-shadow:0 0 0 0 rgba(245,197,24,0);} }
.hero h1 { margin-top: 26px; color: #fff; }
.hero h1 .grad { color: var(--highlight); }
.hero .lede { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--on-dark-soft); max-width: 640px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid var(--on-dark-line); padding-top: 28px; }
.hero-stats .stat .k { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--highlight); }
.hero-stats .stat .v { font-size: 0.85rem; color: var(--on-dark-soft); margin-top: 2px; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } .hero { padding: 134px 0 82px; } }

/* ───────────────────────── Sections ───────────────────────── */
section { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }
.alt { background: var(--bg-alt); }
.dark { background: var(--primary-700); color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-soft); }
.dark h2, .dark h3 { color: #fff; }

/* Category cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--highlight); }
.card .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--highlight-soft); color: var(--accent); margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; color: var(--primary); }
.card p { margin-top: 9px; color: var(--ink-soft); font-size: 0.97rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 0.98fr 1.02fr; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > *:first-child { order: 1; }
}
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { flex-shrink: 0; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: rgba(245,197,24,0.22); color: var(--highlight); margin-top: 2px; }
.feature-list .tick.alt { background: var(--highlight-soft); color: var(--accent); }
.dark .feature-list li strong { color: #fff; }
.dark .feature-list li span { color: var(--on-dark-soft); }
.feature-list li strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--primary); }
.feature-list li span { color: var(--ink-soft); font-size: 0.95rem; }
.feature-list.light li strong { color: var(--primary); }

/* Services panel ("at the counter" card) */
.panel { border-radius: var(--radius-lg); border: 1px solid var(--on-dark-line); background: linear-gradient(180deg, var(--primary), var(--primary-900)); box-shadow: var(--shadow-md); overflow: hidden; }
.panel .bar { display: flex; align-items: center; gap: 7px; padding: 16px 20px; border-bottom: 1px solid var(--on-dark-line); }
.panel .bar .tag { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--highlight); letter-spacing: 0.02em; }
.panel .body { padding: 14px 22px 22px; }
.panel .body .ln { display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 0; font-size: 0.98rem; color: var(--on-dark); border-bottom: 1px dashed rgba(255,255,255,0.08); }
.panel .body .ln:last-child { border-bottom: 0; }
.panel .body .emoji { font-size: 1.15rem; line-height: 1; }

/* Hours card */
.hours-card { background: var(--surface); border: 1px solid var(--line-warm); border-radius: var(--radius-lg); padding: 30px 30px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.hours-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--highlight), var(--accent)); }
.hours-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }
.hours-list { list-style: none; padding: 0; margin: 12px 0 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--ink-soft); font-weight: 600; }
.hours-list .time { color: var(--primary); font-weight: 700; font-family: var(--font-display); }
.hours-list .holiday .time { color: var(--accent); font-size: 0.92rem; }
.hours-note { margin-top: 14px; font-size: 0.84rem; color: var(--ink-mute); }
.hours-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* About visual badge */
.about-visual { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.about-badge {
  width: 100%; max-width: 360px; aspect-ratio: 1.35 / 1; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--highlight), var(--highlight-600));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  box-shadow: var(--shadow-yellow); position: relative; overflow: hidden;
}
.about-badge::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(22,36,58,0.08) 2px, transparent 2.4px); background-size: 26px 26px; }
.about-mark { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; background: var(--primary); color: var(--highlight); font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.04em; box-shadow: 0 10px 28px rgba(10,19,32,0.35); }
.about-est { position: relative; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--primary); line-height: 1.3; }
.about-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 380px; }
.about-tags span { font-size: 0.82rem; font-weight: 700; color: var(--primary); background: var(--highlight-soft); border: 1px solid var(--line-warm); padding: 0.32rem 0.7rem; border-radius: var(--radius-pill); }

/* CTA band */
.cta-band { position: relative; background: var(--primary); color: #fff; overflow: hidden; padding: 100px 0; text-align: center; }
.cta-band::before { content:''; position:absolute; inset:0; background: radial-gradient(48rem 24rem at 50% 130%, rgba(245,197,24,0.34), transparent 60%), radial-gradient(40rem 20rem at 50% -10%, rgba(232,64,43,0.2), transparent 60%); }
.cta-band .inner { position: relative; max-width: 660px; margin: 0 auto; }
.cta-band p { margin-top: 16px; color: var(--on-dark-soft); font-size: 1.1rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 32px; }
.cta-fine { margin-top: 26px; font-size: 0.86rem; color: var(--on-dark-soft); letter-spacing: 0.02em; }

/* Footer */
.footer { background: var(--primary-900); color: var(--on-dark-soft); border-top: 1px solid var(--on-dark-line); padding: 56px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .rymal { color: #fff; }
.footer-brand .variety { color: var(--highlight); }
.footer .blurb { max-width: 380px; font-size: 0.93rem; line-height: 1.65; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--highlight); margin: 0 0 12px; font-weight: 800; }
.footer-col a { display: block; color: var(--on-dark-soft); font-size: 0.93rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--on-dark-line); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 0.82rem; }
.footer-bottom .powered { color: var(--on-dark-soft); }

/* Reveal on scroll — progressive enhancement: only hidden when JS present. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}
