/* =====================================================================
   Fresh Water Foods Inc. — freshwaterfood.ca
   Design system + components. Palette is lifted from the RiverFresh logo:
   deep navy (#23477d / #2c405d), brand red (#b21615), silver (#96a0ae).
   ===================================================================== */

:root {
  /* Brand palette */
  --navy-950: #0a1425;
  --navy-900: #0f1c30;
  --navy-800: #132a4a;
  --navy-700: #1b3560;
  --navy-600: #23477d;   /* primary (logo) */
  --navy-500: #2f5a96;
  --steel:    #537092;   /* logo mid-blue */
  --silver:   #96a0ae;   /* logo grey */
  --mist:     #a9b8c9;
  --ice:      #e9eef5;
  --paper:    #f6f8fb;
  --white:    #ffffff;
  --red-800:  #8a1010;
  --red:      #b21615;   /* accent (logo) */
  --red-500:  #c63030;
  --ink:      #0b1220;
  --ink-2:    #33415a;
  --ink-3:    #5c6b84;

  /* Type */
  --font-head: "Sora", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-brush: "Caveat Brush", "Segoe Print", "Comic Sans MS", cursive;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(15, 28, 48, .08);
  --shadow-md: 0 14px 40px rgba(15, 28, 48, .14);
  --shadow-lg: 0 30px 70px rgba(15, 28, 48, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container-wide { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.bg-paper { background: var(--paper); }
.bg-ice { background: var(--ice); }
.bg-navy { background: var(--navy-900); color: var(--mist); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .lead, .bg-navy .muted { color: var(--mist); }
.text-center { text-align: center; }
.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* Eyebrow uses the brush font to echo the RiverFresh wordmark */
.eyebrow {
  font-family: var(--font-brush);
  font-size: 1.45rem;
  color: var(--red);
  letter-spacing: .02em;
  margin-bottom: .35rem;
  display: inline-block;
}
.bg-navy .eyebrow { color: #ff6b62; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .45em; }
.section-head p { font-size: 1.08rem; color: var(--ink-3); margin: 0; }

/* Underline flourish (red brush swash, like the logo) */
.swash { position: relative; display: inline-block; }
.swash::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.08em; height: .28em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 9 Q 60 14 100 8 T 198 5' fill='none' stroke='%23b21615' stroke-width='5' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  opacity: .9; z-index: -1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(178, 22, 21, .28); }
.btn-primary:hover { background: var(--red-500); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(178, 22, 21, .36); }
.btn-navy { background: var(--navy-600); color: #fff; box-shadow: 0 10px 24px rgba(35, 71, 125, .28); }
.btn-navy:hover { background: var(--navy-500); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; transform: translateY(-2px); }
.btn-outline-navy { border-color: var(--navy-600); color: var(--navy-600); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-600); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .6em 1.1em; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--navy-950); color: var(--mist); font-size: .82rem;
  position: relative; z-index: 60;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: var(--mist); display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }
.topbar-links { display: flex; gap: 22px; }
.topbar-note { display: flex; align-items: center; gap: .5em; }
.topbar-note .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.topbar-links a { white-space: nowrap; }
@media (max-width: 900px) {
  .topbar-note { display: none; }
  .topbar-links { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 600px) { .topbar-links a:nth-child(3) { display: none; } .topbar { font-size: .78rem; } }
@media (max-width: 380px) { .topbar-links a:nth-child(2) { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(15, 28, 48, .06);
  transition: box-shadow .3s;
}
/* Blur lives on a pseudo-element so the header itself never becomes a containing block for the fixed mobile nav */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(15, 28, 48, .08); }
.header.scrolled::before { background: rgba(255, 255, 255, .97); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; transition: height .3s var(--ease); }
.header.scrolled .brand img { height: 48px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has-sub > a {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy-900);
  padding: .6em .85em; border-radius: 8px; position: relative; display: inline-flex; align-items: center; gap: .35em;
}
.nav > a::after, .nav .has-sub > a::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .3em; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:hover::after, .nav > a.active::after, .nav .has-sub > a.active::after, .nav .has-sub:hover > a::after { transform: scaleX(1); }
.nav > a:hover, .nav .has-sub > a:hover { color: var(--navy-600); }
.nav .has-sub { position: relative; }
.nav .has-sub > a svg { width: 12px; height: 12px; transition: transform .3s; }
.nav .has-sub:hover > a svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 10px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
  border: 1px solid rgba(15, 28, 48, .06);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(4px); }
.sub a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.sub a:hover { background: var(--paper); color: var(--navy-600); }
.sub a .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--ice); display: grid; place-items: center; color: var(--navy-600); flex: none; }
.sub a .ico svg { width: 18px; height: 18px; }
.sub a.all { border-top: 1px solid var(--ice); margin-top: 4px; color: var(--red); font-weight: 600; }
.sub a.all svg { width: 16px; height: 16px; margin-left: auto; }
.header .btn { margin-left: 10px; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(15, 28, 48, .12); background: #fff;
  cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 0; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1020px) {
  .nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; flex-direction: column; align-items: stretch;
         padding: 100px 26px 40px; gap: 4px; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 55; }
  .nav.open { display: flex; animation: nav-in .4s var(--ease); }
  .nav.closing { display: flex; animation: nav-out .3s var(--ease) forwards; }
  @keyframes nav-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
  @keyframes nav-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
  .nav > a, .nav .has-sub > a { font-size: 1.05rem; padding: .8em .6em; }
  .nav .has-sub > a::after, .nav > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
  .header .btn { display: none; }
  .burger { display: flex; position: relative; z-index: 56; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 37, .5); opacity: 0; visibility: hidden; transition: .3s; z-index: 45; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, 1%); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 20, 37, .94) 0%, rgba(19, 42, 74, .82) 42%, rgba(35, 71, 125, .45) 72%, rgba(10, 20, 37, .35) 100%);
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: clamp(70px, 9vw, 120px) 0 clamp(120px, 12vw, 170px); }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: #ff8a80; }
.hero .lead { color: rgba(255, 255, 255, .82); max-width: 560px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); margin-bottom: 2em; }
.hero .eyebrow { color: #ff8a80; font-size: 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badges span { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .5em .9em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1; }
.hero-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); animation: spin 40s linear infinite; }
.hero-ring::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(178, 22, 21, .25); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 8px rgba(255, 255, 255, .12);
  animation: float 7s ease-in-out infinite;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-mark { position: absolute; width: 34%; right: -6%; bottom: -2%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); animation: float 9s ease-in-out infinite reverse; }
.hero-chip {
  position: absolute; background: #fff; color: var(--navy-900); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md);
  display: flex; gap: 12px; align-items: center; font-size: .85rem; line-height: 1.25; animation: float 8s ease-in-out infinite;
}
.hero-chip strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.hero-chip .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--ice); display: grid; place-items: center; color: var(--navy-600); flex: none; }
.hero-chip .ico svg { width: 22px; height: 22px; }
.hero-chip.c1 { left: -8%; top: 12%; animation-delay: -2s; }
.hero-chip.c2 { left: -4%; bottom: 14%; animation-delay: -4s; }
.hero-chip.c3 { right: -4%; top: 22%; animation-delay: -1s; }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-bottom: 150px; }
  .hero-visual { width: min(80%, 380px); margin-top: 10px; }
  .hero-chip.c1 { left: -14%; } .hero-chip.c2 { left: -10%; } .hero-chip.c3 { right: -12%; }
}
@media (max-width: 520px) { .hero-chip { display: none; } .hero-visual { width: 74%; } }

/* Wave divider */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; overflow: hidden; line-height: 0; z-index: 1; pointer-events: none; }
.wave svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; animation: wave-slide 14s linear infinite; }
.wave svg.w2 { animation-duration: 22s; opacity: .55; animation-direction: reverse; }
@keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wave.dark svg path { fill: var(--navy-900); }

/* Bubbles (decorative, for dark sections) */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubbles span {
  position: absolute; bottom: -60px; width: var(--s, 18px); height: var(--s, 18px); border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .22); background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .02));
  left: var(--x, 50%); animation: rise var(--t, 14s) linear infinite; animation-delay: var(--d, 0s);
}
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-110vh) translateX(30px) scale(1.1); opacity: 0; } }
.bg-navy > .container { position: relative; z-index: 1; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -78px; }
.stats-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.stat { padding: 30px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--ice); }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--navy-600); line-height: 1; }
.stat .num small { font-size: .55em; color: var(--red); vertical-align: top; margin-left: 2px; }
.stat .lbl { font-size: .86rem; color: var(--ink-3); margin-top: 8px; font-weight: 500; }
@media (max-width: 860px) { .stats-card { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3)::before { display: none; } .stat:nth-child(n+3) { border-top: 1px solid var(--ice); } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.collage { position: relative; aspect-ratio: 1 / .95; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.collage .a { left: 0; top: 0; width: 66%; height: 62%; }
.collage .b { right: 0; top: 14%; width: 44%; height: 40%; border: 6px solid #fff; }
.collage .c { left: 16%; bottom: 0; width: 54%; height: 40%; border: 6px solid #fff; }
.collage .badge {
  position: absolute; right: 4%; bottom: 8%; background: var(--navy-600); color: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-md);
  text-align: center; animation: float 8s ease-in-out infinite;
}
.collage .badge .n { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; }
.collage .badge .t { font-size: .75rem; opacity: .85; margin-top: 4px; }
.collage .mark { position: absolute; left: -6%; bottom: 30%; width: 24%; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .25)); animation: float 10s ease-in-out infinite reverse; }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23b21615'/><path d='M7 12.5l3.2 3.2L17 9' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.checklist strong { color: var(--navy-900); }

/* ---------- Value cards ---------- */
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 28, 48, .05);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--navy-600), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card:hover::after { transform: scaleX(1); }
.card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--ice); color: var(--navy-600); display: grid; place-items: center; margin-bottom: 20px; transition: background .3s, color .3s, transform .45s var(--ease); }
.card .ico svg { width: 28px; height: 28px; }
.card:hover .ico { background: var(--navy-600); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.card .num { position: absolute; right: 22px; top: 18px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--ice); line-height: 1; }

/* ---------- Product category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; display: block; color: #fff; background: var(--navy-800);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: #fff; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover img { transform: scale(1.08); }
.cat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 37, .97) 0%, rgba(10, 20, 37, .82) 30%, rgba(10, 20, 37, .35) 60%, rgba(10, 20, 37, .08) 100%); transition: opacity .4s; }
.cat .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px; }
.cat .tag { font-family: var(--font-brush); color: #ffb3ad; font-size: 1.25rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.cat h3 { color: #fff; font-size: 1.45rem; margin: .1em 0 .35em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.cat p { font-size: .88rem; color: rgba(255, 255, 255, .78); margin: 0; max-height: 0; opacity: 0; transition: all .5s var(--ease); overflow: hidden; }
.cat:hover p { max-height: 120px; opacity: 1; margin-bottom: 14px; }
.cat .go { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: #fff; }
.cat .go svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.cat:hover .go svg { transform: translateX(5px); }
.cat .count { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); border-radius: 999px; font-size: .75rem; font-weight: 600; padding: .4em .8em; }
.cat.placeholder-bg { background: linear-gradient(160deg, var(--navy-600), var(--navy-900)); }
.cat.placeholder-bg img { object-fit: contain; padding: 22% 16% 30%; opacity: .55; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }

/* ---------- Brand section (RiverFresh) ---------- */
.brand-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .brand-panel { grid-template-columns: 1fr; } }
.brand-logo-box { background: #fff; border-radius: var(--radius); padding: 28px 34px; display: block; width: fit-content; box-shadow: var(--shadow-md); margin-bottom: 26px; }
.brand-logo-box img { width: 260px; }
.brand-photo { position: relative; }
.brand-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.brand-photo .stamp {
  position: absolute; left: -22px; bottom: 34px; width: 130px; height: 130px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .8rem; line-height: 1.2; padding: 16px;
  box-shadow: var(--shadow-md); animation: spin-slow 30s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.brand-photo .stamp span { animation: spin-slow 30s linear infinite reverse; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.pill-list span { font-size: .82rem; font-weight: 600; padding: .5em .95em; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.pill-list.light span { background: var(--ice); border-color: transparent; color: var(--navy-700); }

/* ---------- Process / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--navy-600), var(--red)); opacity: .35; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { text-align: center; padding: 0 6px; }
.step .dot { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ice); display: grid; place-items: center; color: var(--navy-600); position: relative; transition: transform .45s var(--ease), border-color .3s, color .3s, background .3s; }
.step .dot svg { width: 30px; height: 30px; }
.step .dot::after { counter-increment: step; content: counter(step); position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); }
.step:hover .dot { transform: translateY(-6px) scale(1.06); border-color: var(--navy-600); background: var(--navy-600); color: #fff; }
.step h4 { font-size: 1rem; margin-bottom: .3em; }
.step p { font-size: .84rem; color: var(--ink-3); margin: 0; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.badge-item { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px; background: #fff; border: 1px solid rgba(15, 28, 48, .07); box-shadow: var(--shadow-sm); white-space: nowrap; font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: .92rem; }
.badge-item svg { width: 24px; height: 24px; color: var(--red); flex: none; }
.badge-item small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--ink-3); font-size: .76rem; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border-radius: var(--radius); padding: 34px 30px 30px; box-shadow: var(--shadow-sm); position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote::before { content: "\201C"; position: absolute; top: 10px; left: 24px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--ice); }
.quote p { position: relative; font-size: 1rem; color: var(--ink-2); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-600), var(--steel)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote .who strong { display: block; color: var(--navy-900); font-family: var(--font-head); font-size: .92rem; }
.quote .who span { font-size: .82rem; color: var(--ink-3); }
.quote .stars { color: #f2b01e; letter-spacing: 2px; font-size: .9rem; margin-bottom: 8px; }
.placeholder-note { font-size: .78rem; color: var(--red); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-800), var(--navy-600) 60%, var(--navy-700)); color: #fff; border-radius: var(--radius); padding: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 30px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band .mark { position: absolute; right: -40px; top: -40px; width: 300px; opacity: .1; pointer-events: none; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--mist); padding-top: 70px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; position: relative; z-index: 1; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: var(--mist); }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer ul a { display: inline-flex; align-items: center; gap: .5em; }
.footer ul a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; transition: transform .3s; }
.footer ul a:hover::before { transform: scale(1.5); }
.footer .about-col img { width: 230px; margin-bottom: 18px; }
.footer .about-col p { font-size: .92rem; max-width: 360px; }
.footer .contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.footer .contact-list svg { width: 18px; height: 18px; flex: none; color: #ff8a80; margin-top: 3px; }
.footer .contact-list a::before { display: none; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); display: grid; place-items: center; transition: background .3s, transform .3s; }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.footer .big-mark { position: absolute; right: -60px; bottom: -40px; width: 420px; opacity: .06; pointer-events: none; }

/* ---------- Page banner (inner pages) ---------- */
.banner { position: relative; color: #fff; padding: clamp(80px, 10vw, 130px) 0 clamp(70px, 8vw, 100px); overflow: hidden; isolation: isolate; background: var(--navy-900); }
.banner-bg { position: absolute; inset: 0; z-index: -2; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); will-change: transform; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 20, 37, .93), rgba(35, 71, 125, .7) 60%, rgba(10, 20, 37, .5)); }
.banner-bg.pattern { background: radial-gradient(ellipse at 20% 20%, rgba(83, 112, 146, .6), transparent 55%), radial-gradient(ellipse at 80% 80%, rgba(178, 22, 21, .35), transparent 50%), linear-gradient(140deg, var(--navy-800), var(--navy-950)); }
.banner-bg.pattern::after { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'><path d='M0 20 Q 40 0 80 20 T 160 20' fill='none' stroke='white' stroke-opacity='0.08' stroke-width='2'/></svg>") repeat; }
.banner h1 { color: #fff; margin-bottom: .3em; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.banner .lead { color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: .5em; opacity: .5; }
.banner .mark { position: absolute; right: 4%; bottom: -8%; width: min(30vw, 360px); opacity: .18; z-index: -1; animation: float 9s ease-in-out infinite; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 28, 48, .06); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.product .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product:hover .pic img { transform: scale(1.07); }
.product .pic .flag { position: absolute; top: 12px; left: 12px; background: var(--navy-900); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4em .7em; border-radius: 6px; }
.product .pic .flag.red { background: var(--red); }
.product .pic .flag.soon { background: var(--steel); }
.product .info { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h3 { margin: 0; font-size: 1.15rem; }
.product .sci { font-style: italic; color: var(--ink-3); font-size: .86rem; margin-top: -6px; }
.product .desc { font-size: .92rem; color: var(--ink-2); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: .72rem; font-weight: 600; padding: .35em .7em; border-radius: 6px; background: var(--ice); color: var(--navy-700); letter-spacing: .02em; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .84rem; margin: 4px 0 0; }
.spec dt { color: var(--ink-3); font-weight: 500; }
.spec dd { margin: 0; color: var(--ink-2); font-weight: 500; }
.product .info .btn { margin-top: auto; align-self: flex-start; }

/* Forms/glossary */
.glossary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .glossary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .glossary { grid-template-columns: 1fr; } }
.term { background: #fff; border-radius: 14px; padding: 18px 18px 16px; border: 1px solid rgba(15, 28, 48, .06); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.term:hover { transform: translateY(-4px); }
.term .abbr { font-family: var(--font-head); font-weight: 800; color: var(--red); font-size: 1.15rem; }
.term .name { font-weight: 600; color: var(--navy-900); font-size: .92rem; }
.term p { font-size: .84rem; color: var(--ink-3); margin: 6px 0 0; }

/* Gallery strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.strip figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip figure:hover img { transform: scale(1.08); }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; color: #fff; font-size: .82rem; font-weight: 600; background: linear-gradient(to top, rgba(10, 20, 37, .85), transparent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--navy-900); color: var(--mist); border-radius: var(--radius); padding: 36px; position: relative; overflow: hidden; }
.contact-card h3 { color: #fff; }
.contact-card .row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.contact-card .row:first-of-type { border-top: 0; }
.contact-card .row .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #ff8a80; flex: none; }
.contact-card .row .ico svg { width: 22px; height: 22px; }
.contact-card .row strong { display: block; color: #fff; font-family: var(--font-head); font-size: .92rem; }
.contact-card .row a { color: var(--mist); }
.contact-card .row a:hover { color: #fff; }
.contact-card .mark { position: absolute; right: -30px; bottom: -30px; width: 200px; opacity: .12; }
.form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); border: 1px solid rgba(15, 28, 48, .06); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.field input, .field select, .field textarea { font: inherit; padding: .8em 1em; border: 1.5px solid var(--ice); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); background: #fff; box-shadow: 0 0 0 4px rgba(35, 71, 125, .12); }
.field textarea { min-height: 130px; resize: vertical; }
.form .note { font-size: .8rem; color: var(--ink-3); margin: 10px 0 0; }
.form-success { display: none; background: #e9f8ef; color: #1d6b3a; padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-top: 16px; }
.form-success.show { display: block; }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 28, 48, .06); background: var(--ice); aspect-ratio: 16 / 7; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--ink-3); position: relative; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.map-box .fallback { display: grid; gap: 6px; place-items: center; color: var(--ink-3); }
.map-box .fallback svg { width: 36px; height: 36px; color: var(--navy-600); }

/* ---------- Team / about extras ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; padding-bottom: 22px; transition: transform .45s var(--ease); }
.member:hover { transform: translateY(-6px); }
.member .avatar { aspect-ratio: 1 / .8; background: linear-gradient(160deg, var(--ice), var(--mist)); display: grid; place-items: center; color: var(--navy-600); }
.member .avatar svg { width: 80px; height: 80px; opacity: .8; }
.member h3, .bg-navy .member h3 { margin: 18px 0 2px; font-size: 1.05rem; color: var(--navy-900); }
.bg-navy .member .muted { color: var(--ink-3); }
.member .role { color: var(--red); font-weight: 600; font-size: .85rem; }
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .mvv { grid-template-columns: 1fr; } }
.mvv .card { padding-top: 36px; }
.timeline { display: grid; gap: 0; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--navy-600), var(--red)); }
.timeline .tl { position: relative; padding: 0 0 26px 18px; }
.timeline .tl::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-600); }
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl .when { font-family: var(--font-brush); color: var(--red); font-size: 1.3rem; }
.timeline .tl h4 { margin: 0 0 .25em; }
.timeline .tl p { margin: 0; font-size: .92rem; color: var(--ink-3); }

/* ---------- Services (private label) ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--ice); }
.service:first-of-type { border-top: 0; }
.service.reverse > .txt { order: 2; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } .service.reverse > .txt { order: 0; } }
.service .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: relative; aspect-ratio: 4 / 3; background: var(--ice); }
.service .pic img { width: 100%; height: 100%; object-fit: cover; }
.service .pic .tagline { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--navy-900); border-radius: 10px; padding: 8px 14px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm); }
.service .txt .eyebrow { margin-bottom: 0; }
.pack-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pack-table th, .pack-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ice); }
.pack-table th { background: var(--navy-900); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.pack-table tr:last-child td { border-bottom: 0; }
.pack-table tbody tr:hover td { background: var(--paper); }
.table-wrap { overflow-x: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .05s; }
.stagger.in > *:nth-child(2) { transition-delay: .15s; }
.stagger.in > *:nth-child(3) { transition-delay: .25s; }
.stagger.in > *:nth-child(4) { transition-delay: .35s; }
.stagger.in > *:nth-child(5) { transition-delay: .45s; }
.stagger.in > *:nth-child(6) { transition-delay: .55s; }
.stagger.in > *:nth-child(7) { transition-delay: .65s; }
.stagger.in > *:nth-child(8) { transition-delay: .75s; }
.stagger.in > *:nth-child(n+9) { transition-delay: .85s; }

/* Hero entrance */
.hero .rise { opacity: 0; transform: translateY(26px); animation: rise-in 1s var(--ease) forwards; }
.hero .rise:nth-child(1) { animation-delay: .1s; }
.hero .rise:nth-child(2) { animation-delay: .25s; }
.hero .rise:nth-child(3) { animation-delay: .4s; }
.hero .rise:nth-child(4) { animation-delay: .55s; }
.hero .rise:nth-child(5) { animation-delay: .7s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }
.hero-visual.rise { animation-delay: .5s; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-600); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .35s var(--ease); z-index: 40; border: 0; cursor: pointer; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 20px; height: 20px; }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--navy-600), var(--red)); z-index: 70; transition: width .1s linear; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal, .stagger > *, .hero .rise { opacity: 1; transform: none; }
}

/* Compliance badge wall (services page, 05) */
.badge-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: clamp(16px, 3vw, 28px); align-content: center;
  background: radial-gradient(ellipse at 20% 15%, #2a5390 0%, #163460 45%, #0f1c30 100%); }
.badge-wall::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'><path d='M0 20 Q 40 0 80 20 T 160 20' fill='none' stroke='white' stroke-opacity='0.08' stroke-width='2'/></svg>") repeat; }
.badge { position: relative; grid-column: span 2; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 14px 10px 12px; text-align: center; color: #fff; backdrop-filter: blur(2px); }
.badge:nth-child(4) { grid-column: 2 / span 2; }
.badge:nth-child(5) { grid-column: 4 / span 2; }
.badge .ring { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #ffb3ad; color: #ffb3ad; margin-bottom: 8px; box-shadow: 0 0 0 4px rgba(255, 179, 173, .15); }
.badge .ring svg { width: 22px; height: 22px; }
.badge b { display: block; font-family: var(--font-head); font-size: .82rem; line-height: 1.15; }
.badge small { display: block; font-size: .68rem; color: rgba(255, 255, 255, .72); margin-top: 3px; line-height: 1.2; }
@media (max-width: 480px) { .badge b { font-size: .74rem; } .badge .ring { width: 38px; height: 38px; } .badge-wall { gap: 8px; } }
