/* =============================================
   G&R ESSENTIALS LTD
   Premium Minimalist — Warm Neutral + Navy
   Fonts: Instrument Serif (display) · DM Sans (UI)
   ============================================= */

/* ─── Custom Properties ────────────────────── */
:root {
  --bg-0: #F9F8F5;
  --bg-1: #F2F0EB;
  --bg-2: #E8E4DC;
  --bg-3: #DDD8CE;

  --ink-0: #1A1916;
  --ink-1: #3A3731;
  --ink-2: #6B6760;
  --ink-3: #7A756E; /* B3: was #A09C95 (2.8:1 fail) → #7A756E (~4.6:1 pass) */

  --navy:       #1E3A6E;
  --navy-light: #3060A8;
  --navy-pale:  rgba(30,58,110,0.06);
  --navy-muted: rgba(30,58,110,0.14);

  --border:        rgba(26,25,22,0.09);
  --border-mid:    rgba(26,25,22,0.15);
  --border-strong: rgba(26,25,22,0.25);

  --shadow-sm: 0 1px 3px rgba(26,25,22,0.05), 0 4px 16px rgba(26,25,22,0.04);
  --shadow-md: 0 4px 16px rgba(26,25,22,0.07), 0 12px 32px rgba(26,25,22,0.05);
  --shadow-lg: 0 8px 24px rgba(26,25,22,0.09), 0 24px 48px rgba(26,25,22,0.07);

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --spring:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--ink-2);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: auto;
}

::selection { background: rgba(30,58,110,0.12); color: var(--ink-0); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* B2: Focus-visible rings for keyboard nav */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Typography ───────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink-0);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Serif italic accent — hero, section headings */
.serif-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* C1: Inline serif word within a heading */
.serif-word {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}

/* Custom cursor removed — using default arrow cursor */

/* ─── Navbar ───────────────────────────────── */
#navbar {
  transition: background 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(249,248,245,0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 16px rgba(26,25,22,0.06);
}

/* A4: Nav link — text-slide on hover */
.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  vertical-align: middle;
}

.navl-a,
.navl-b {
  display: block;
  transition: transform 0.32s var(--spring);
  white-space: nowrap;
}

.navl-b {
  color: var(--ink-0);
  font-weight: 600;
}

.nav-link:hover .navl-a { transform: translateY(-100%); }
.nav-link:hover .navl-b { transform: translateY(-100%); }

/* Active state: show bottom label statically */
.nav-link.active .navl-a { transform: translateY(-100%); }
.nav-link.active .navl-b { transform: translateY(-100%); }

#mobile-menu { transition: opacity 0.22s ease; }
#mobile-menu.hidden { display: none; }

/* D1: Mobile menu link entrance */
.mob-link {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.38s var(--spring), transform 0.38s var(--spring);
}

.mob-link.mob-visible {
  opacity: 1;
  transform: translateX(0);
}

/* D2: Touch feedback on cards */
@media (max-width: 768px) {
  .card-glass:active {
    transform: scale(0.985);
    border-color: var(--border-mid);
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease, border-color 0.12s ease;
  }
}

/* ─── Buttons ──────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--ink-0);
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  border-radius: 7px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
  white-space: nowrap;
  isolation: isolate;
}

.btn-primary:hover {
  background: var(--ink-1);
  box-shadow: 0 6px 20px rgba(26,25,22,0.2);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

/* Navy accent variant */
.btn-gold {
  background: var(--navy);
  color: #FFFFFF;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.btn-gold:hover {
  background: var(--navy-light);
  box-shadow: 0 6px 20px rgba(30,58,110,0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--ink-0);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  border-radius: 7px;
  text-decoration: none;
  border: 1.5px solid var(--border-mid);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  isolation: isolate;
}

.btn-secondary:hover {
  background: var(--bg-1);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* A3: Button ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  opacity: 0.35;
  animation: rippleOut 0.55s var(--ease) forwards;
}

.btn-primary .btn-ripple  { background: rgba(255,255,255,0.4); }
.btn-secondary .btn-ripple { background: rgba(26,25,22,0.08); }

@keyframes rippleOut {
  to { transform: scale(5); opacity: 0; }
}

/* ─── Cards ────────────────────────────────── */
.card-glass {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--spring);
}

.card-glass:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}

/* A1: Specular highlight overlay */
.card-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    circle at var(--sx, 50%) var(--sy, 50%),
    rgba(255,255,255,0.18) 0%,
    transparent 62%
  );
  z-index: 1;
}

.card-glass:hover .card-specular { opacity: 1; }

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.card-glass:hover .icon-wrap {
  background: var(--navy);
  border-color: var(--navy);
}

.card-glass:hover .icon-wrap svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* ─── Eyebrow Label ─────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 1px;
  flex-shrink: 0;
}

.cta-dark .section-tag { color: rgba(255,255,255,0.45); }
.cta-dark .section-tag::before { background: rgba(122,174,212,0.7); }

/* ─── Dividers ─────────────────────────────── */
.gold-divider { height: 1px; background: var(--border); }
.gold-divider-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid) 50%, transparent);
}

/* ─── Hero ─────────────────────────────────── */
.hero-bg { background: #08101e; }

/* Full-screen background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}

/* Dark cinematic overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8,16,30,0.82) 0%, rgba(8,16,30,0.52) 50%, rgba(30,58,110,0.42) 100%),
    linear-gradient(to bottom, rgba(8,16,30,0.18) 0%, rgba(8,16,30,0.0) 60%, rgba(8,16,30,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Navbar: transparent + white-text when over dark video hero */
.dark-hero #navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.72); }
.dark-hero #navbar:not(.scrolled) .navl-b   { color: #FFFFFF; }
.dark-hero #navbar:not(.scrolled) .logo-name { color: #FFFFFF !important; }
.dark-hero #navbar:not(.scrolled) .logo-sub  { color: rgba(148,196,235,0.9) !important; }
.dark-hero #navbar:not(.scrolled) .menu-icon-btn { color: #FFFFFF !important; }

/* Hero typography on dark background */
.dark-hero .hero-headline { color: #FFFFFF; }
.dark-hero .reveal-line-inner.serif-accent { color: rgba(148,196,235,0.95); }

/* Hero section-tag on dark bg */
.hero-tag { color: rgba(255,255,255,0.52) !important; }
.hero-tag::before { background: rgba(122,174,212,0.65) !important; }

/* Stats panel dark variant */
.hero-stats-dark { border-top-color: rgba(255,255,255,0.14) !important; }
.hero-stats-dark .hero-stat { border-bottom-color: rgba(255,255,255,0.09) !important; }
.hero-stats-dark .hero-stat-n { color: #FFFFFF !important; }
.hero-stats-dark .hero-stat-l { color: rgba(255,255,255,0.42) !important; }

/* hero-stats-footer sits outside .hero-stats-dark, so target via body class */
.dark-hero .hero-stats-footer { color: rgba(255,255,255,0.48) !important; }
.dark-hero .hero-stats-footer::before { background: rgba(122,174,212,0.6) !important; }

/* CTA dark section — heading colour override (main.css h2 rule wins over text-white) */
.cta-dark h2 { color: #FFFFFF; }

/* CTA dark section — button contrast fix */
.cta-dark .btn-gold {
  background: #FFFFFF !important;
  color: var(--navy) !important;
  box-shadow: none;
}
.cta-dark .btn-gold:hover {
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 6px 20px rgba(255,255,255,0.15) !important;
}

/* CTA dark section-tag boost */
.cta-dark .section-tag { color: rgba(255,255,255,0.6); }
.cta-dark .section-tag::before { background: rgba(148,196,235,0.75); }

/* Hero secondary button on dark video background */
.dark-hero .hero-bg .btn-secondary {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.35);
  background: transparent;
}
.dark-hero .hero-bg .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}

/* C2: Hero headline with fluid clamp scale */
.hero-headline {
  color: var(--ink-0);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

/* ─── Line Reveal ──────────────────────────── */
.reveal-line {
  overflow: hidden;
  padding-bottom: 0.1em;
}

.reveal-line-inner { display: block; transform: translateY(112%); }

.reveal-line-inner.serif-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ─── Hero Stats Panel ─────────────────────── */
.hero-stats { border-top: 1px solid var(--border-mid); }

.hero-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.hero-stat-n {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-0);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.hero-stat-l {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
}

.hero-stats-footer {
  padding-top: 16px;
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stats-footer::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--navy);
  flex-shrink: 0;
}

/* ─── Ticker ───────────────────────────────── */
.ticker-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerScroll 44s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Page Hero ────────────────────────────── */
.page-hero {
  background: #FFFFFF;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(30,58,110,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── Step Numbers ─────────────────────────── */
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  flex-shrink: 0;
}

/* ─── A2: Scroll-direction-aware Reveal ─────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* When scrolling up, elements descend in from above */
[data-reveal].reveal-from-above { transform: translateY(-20px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-20px); }
[data-reveal="right"] { transform: translateX(20px); }
[data-reveal="scale"] { transform: scale(0.96); }

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

[data-delay="50"]  { transition-delay: 50ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="250"] { transition-delay: 250ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="350"] { transition-delay: 350ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* A5: Per-child stagger via JS-injected delays */
[data-stagger] > [data-reveal] { transition-delay: 0ms; }

/* ─── Accordion ────────────────────────────── */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 !important; /* zero padding when closed — prevents content leak */
  transition: max-height 0.4s var(--ease), padding-bottom 0.4s var(--ease);
}

.accordion-body.open {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem !important; /* restore px-6 pb-5 when open */
}

.accordion-chevron {
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  color: var(--ink-3);
}

.accordion-chevron.open { transform: rotate(180deg); }

.accordion-btn { transition: background 0.2s ease; }
.accordion-btn:hover { background: var(--bg-1); }

/* ─── Form ─────────────────────────────────── */
.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.form-field {
  width: 100%;
  padding: 11px 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-mid);
  border-radius: 8px;
  color: var(--ink-0);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
}

.form-field:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,110,0.08);
  transform: translateY(-1px);
}

.form-field::placeholder { color: var(--ink-3); }
.form-field option { background: #FFF; color: var(--ink-0); }

/* ─── Dark CTA ─────────────────────────────── */
.cta-dark { background: var(--ink-0); }

/* ─── Footer ───────────────────────────────── */
footer {
  background: var(--ink-0);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-link {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover { color: rgba(255,255,255,0.85); }

/* ─── Misc ─────────────────────────────────── */
.card-accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 12px 12px 0 0;
}

.scroll-cue { animation: scrollBounce 2.5s ease-in-out infinite; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50%       { transform: translateY(7px); opacity: 0.7; }
}

address { font-style: normal; }

/* ─── Prefers Reduced Motion ───────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-line-inner { transform: none !important; }
  .ticker-inner { animation: none !important; }
  .scroll-cue { animation: none !important; }
  .mob-link { opacity: 1 !important; transform: none !important; }
  /* Hide autoplaying video; fallback dark bg remains */
  .hero-video { display: none; }
}

/* ─── Mobile hero: poster + blurred video overlay ── */
@media (max-width: 767px) {
  .hero-bg {
    background-image: url('../media/hero_poster_mobile.jpg');
    background-size: cover;
    background-position: center top;
  }
  .hero-video {
    filter: blur(6px) brightness(0.75) saturate(1.2);
    transform: scale(1.08);
  }
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary { padding: 11px 22px; font-size: 0.83rem; }
}

/* ═══════════════════════════════════════════════
   CATEGORY CARDS & CATALOGUE ROWS — Trade editorial
   Ruled borders · Instrument Serif headings · Signal green
   ═══════════════════════════════════════════════ */

:root {
  --signal: #174d35;
}

/* ── Homepage: Category grid ─────────────────── */
.section-product-range {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .section-product-range {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  transition-delay: calc(var(--index, 0) * 80ms);
}

.category-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}

.category-card.is-visible {
  opacity: 1;
  transform: none;
}

.cat-card-img {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .cat-card-img { height: 220px; }
}

@media (min-width: 1024px) {
  .cat-card-img { height: 240px; }
}

.cat-card-img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.97) contrast(1.02);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.category-card:hover .cat-card-img img {
  filter: none;
  transform: scale(1.03);
}

.cat-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cat-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 20px;
  flex: 1;
}

/* ── Products page: Catalogue rows ───────────── */
.section-catalogue {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .section-catalogue {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

.catalogue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalogue-row {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.catalogue-row:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}

.catalogue-row.is-visible {
  opacity: 1;
  transform: none;
}

.cat-row-img {
  overflow: hidden;
  height: 220px;
  flex-shrink: 0;
}

.cat-row-img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cat-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
  transition: filter 0.3s ease;
}

.catalogue-row:hover .cat-row-img img {
  filter: none;
}

.cat-row-body {
  padding: 28px;
}

@media (min-width: 768px) {
  .catalogue-row { flex-direction: row; }
  .cat-row-img {
    width: 200px;
    height: auto;
  }
  .cat-row-img img { height: 100%; }
  .cat-row-body {
    flex: 1;
    padding: 28px 32px;
  }
}

@media (min-width: 1024px) {
  .cat-row-img { width: 280px; }
}

/* ── Enquire / View Category button ──────────── */
.btn-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  min-height: 44px;
  min-width: 120px;
  background: var(--navy);
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 7px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
  isolation: isolate;
}

.btn-enquire:hover {
  background: var(--navy-light);
  box-shadow: 0 6px 20px rgba(30,58,110,0.28);
  transform: translateY(-1px);
}

.btn-enquire:active { transform: translateY(0); }

.btn-enquire:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .btn-enquire { cursor: pointer; padding: 11px 22px; font-size: 0.83rem; }
}

/* ── Category tags ───────────────────────────── */
.cat-tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-1);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  line-height: 1.6;
}

/* ─── Mobile Fixes ──────────────────────────
   A: Mobile-first layout
   B: Breathing hierarchy
   C: Invisible quality
   D: Refined motion / performance
   ─────────────────────────────────────────── */

/* A1: Hero CTAs full-width on small screens */
@media (max-width: 639px) {
  .hero-bg .btn-primary,
  .hero-bg .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* A2: Stats grid — tighter padding on mobile, larger labels */
@media (max-width: 768px) {
  #stats .grid > div { padding-top: 2rem; padding-bottom: 2rem; }
  #stats .text-xs { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* A3: Card left-border navy accent — visual rhythm when stacked */
@media (max-width: 639px) {
  .card-glass {
    border-left: 3px solid var(--navy-muted);
    border-radius: 8px;
  }
}

/* A4: Trust row — single column on small mobile */
@media (max-width: 479px) {
  .hero-bg .flex.flex-wrap { flex-direction: column; align-items: center; gap: 0.65rem; }
}

/* B: Section rhythm on mobile — visible separator between sections */
@media (max-width: 768px) {
  section + section { border-top: 1px solid var(--border); }
}

/* D: Ticker — off on mobile (unnecessary animation, wastes GPU) */
@media (max-width: 768px) {
  .ticker-track { display: none; }
}
