/* ==========================================================================
   Riselco Creation (Pvt) Ltd — main stylesheet
   Mobile-first base styles. Breakpoint overrides live in responsive.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --footer: var(--footer-bottom);
  --footer-bottom: oklch(0.205 0.05 254);
  --footer-foreground: oklch(0.96 0.004 250);
  --footer-muted: oklch(0.77 0.012 250);
  --footer-line: oklch(0.38 0.055 254);
  --footer-highlight: oklch(0.76 0.095 245);
  --radius: 0.9rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.15rem;
  --radius-2xl: 1.4rem;
  --radius-3xl: 1.65rem;

  --background: oklch(0.995 0.002 250);
  --foreground: oklch(0.22 0.03 255);
  --ink: oklch(0.17 0.035 258);
  --surface: oklch(0.97 0.008 245);
  --card: oklch(1 0 0);
  --primary: oklch(0.53 0.15 254);
  --primary-dark: oklch(0.34 0.11 256);
  --primary-foreground: oklch(0.99 0.005 250);
  --secondary: oklch(0.955 0.012 246);
  --secondary-foreground: oklch(0.3 0.05 255);
  --muted-foreground: oklch(0.53 0.025 255);
  --accent: oklch(0.47 0.18 25);
  --border: oklch(0.915 0.01 250);
  --input: oklch(0.9 0.012 250);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --shadow-soft: 0 1px 2px oklch(0.2 0.06 250 / 0.04), 0 12px 32px -12px oklch(0.2 0.06 250 / 0.18);
  --shadow-lift: 0 2px 4px oklch(0.2 0.06 250 / 0.05), 0 24px 48px -18px oklch(0.2 0.06 250 / 0.28);

  --gradient-hero: linear-gradient(
    135deg,
    oklch(0.28 0.09 258) 0%,
    oklch(0.42 0.14 256) 55%,
    oklch(0.53 0.15 254) 100%
  );

  --grid-light: linear-gradient(to right, oklch(1 0 0 / 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.07) 1px, transparent 1px);
  --grid-dark: linear-gradient(to right, oklch(0.22 0.03 255 / 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.22 0.03 255 / 0.07) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-xl {
  width: 1.5rem;
  height: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.container {
  width: 100%;
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4.5rem;
}

.section-narrow {
  padding-bottom: 4rem;
}

.section-surface {
  background-color: var(--surface);
}

.text-center {
  text-align: center;
}

.measure {
  max-width: 42rem;
  margin-inline: auto;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
}

.section-heading-sm {
  font-size: 1.875rem;
  font-weight: 700;
}

.section-lead {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background-color: var(--accent);
}

.bg-grid-overlay,
.bg-grid-light-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 56px 56px;
}

.bg-grid-overlay {
  background-image: var(--grid-dark);
  opacity: 0.4;
}

.bg-grid-light-overlay {
  background-image: var(--grid-light);
}

/* Card shell reused across the site */
.card-soft {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.card-soft:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.glass-panel {
  background-color: color-mix(in oklab, var(--card) 82%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lift);
}

/* Scroll reveal (see js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 1rem;
  height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.9rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: color-mix(in oklab, var(--primary) 90%, black);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: color-mix(in oklab, var(--secondary) 88%, black);
}

.btn-outline {
  border-color: var(--input);
  background-color: var(--background);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

/* Outline button used on dark / gradient backgrounds */
.btn-outline-light {
  border-color: color-mix(in oklab, var(--primary-foreground) 40%, transparent);
  background-color: transparent;
  color: var(--primary-foreground);
}

.btn-outline-light:hover {
  background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent);
}

.btn-ghost {
  padding: 0 0.75rem;
  justify-content: flex-start;
  color: var(--primary);
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: color-mix(in oklab, var(--primary) 8%, transparent);
}

/* Circular icon button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: background-color 0.25s ease;
}

.icon-btn:hover {
  background-color: var(--secondary);
}

/* --------------------------------------------------------------------------
   5. Header: top bar + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--background);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px -20px oklch(0.2 0.06 250 / 0.6);
}

.topbar {
  background-color: var(--primary-dark);
  color: var(--primary-foreground);
  border-bottom: 1px solid color-mix(in oklab, var(--primary-foreground) 15%, transparent);
  font-size: 0.75rem;
}

.topbar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.5rem;
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
  transition: color 0.25s ease;
}

.topbar-contact a:hover {
  color: var(--primary-foreground);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 25%, transparent);
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.topbar-social a:hover {
  background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent);
  color: var(--primary-foreground);
}

.header-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  flex: none;
  align-items: center;
}

.site-logo img {
  height: 2.25rem;
  width: auto;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.main-nav a.is-active {
  background-color: var(--secondary);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn-quote {
  display: none;
}

.nav-toggle {
  display: inline-flex;
}

.nav-toggle .icon-close,
.nav-toggle.is-open .icon-open {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding-block: 0.75rem;
}

.mobile-nav a {
  display: block;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background-color 0.25s ease;
}

.mobile-nav a:hover {
  background-color: var(--secondary);
}

.mobile-nav a.is-active {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   6. Home hero slider
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  overflow: hidden;
  background-image: var(--gradient-hero);
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}

.hero-slide-img.is-active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right,
    color-mix(in oklab, var(--primary-dark) 95%, transparent),
    color-mix(in oklab, var(--primary-dark) 75%, transparent) 50%,
    color-mix(in oklab, var(--primary-dark) 25%, transparent)
  );
}

.hero .bg-grid-light-overlay {
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: 78vh;
  align-items: center;
  padding-block: 5rem;
}

.hero-content {
  max-width: 48rem;
  color: var(--primary-foreground);
}

.hero-text {
  display: none;
}

.hero-text.is-active {
  display: block;
  animation: hero-fade 0.7s ease both;
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 25%, transparent);
  background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.hero-title {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--primary-foreground);
}

.hero-body {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-controls { bottom: 6rem; }
}

.hero-prev,
.hero-next {
  position: absolute;
  bottom: 3.25rem;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 30%, transparent);
  background-color: color-mix(in oklab, var(--primary-dark) 30%, transparent);
  color: var(--primary-foreground);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background-color: color-mix(in oklab, var(--primary-foreground) 20%, transparent);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

@media (min-width: 640px) {
  .hero-prev,
  .hero-next {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .hero-prev {
    left: 2rem;
  }
  .hero-next {
    right: 2rem;
  }
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dots button {
  height: 0.375rem;
  width: 1.25rem;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--primary-foreground) 35%, transparent);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dots button:hover {
  background-color: color-mix(in oklab, var(--primary-foreground) 60%, transparent);
}

.hero-dots button.is-active {
  width: 2.5rem;
  background-color: var(--primary-foreground);
}

/* --------------------------------------------------------------------------
   7. Quick facts panel + capability marquee
   -------------------------------------------------------------------------- */
.quickfacts {
  position: relative;
  z-index: 20;
  margin-top: -3.5rem;
}

.quickfacts-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background-color: var(--border);
}

.quickfact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--card);
  padding: 1.5rem;
}

.quickfact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-2xl);
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.quickfact-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.quickfact-body {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.marquee {
  margin-top: 4rem;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background-color: var(--surface);
  padding-block: 1rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: riselco-marquee 32s linear infinite;
}

.marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.marquee-item .icon {
  color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   8. Intro (welcome) section
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  gap: 3.5rem;
}

.intro-copy > * + * {
  margin-top: 1.5rem;
}

.intro-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
}

.intro-title span {
  display: block;
  color: var(--primary);
}

.intro-copy p {
  line-height: 1.7;
  color: var(--muted-foreground);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.intro-media {
  position: relative;
}

.intro-glow {
  display: none;
}

.intro-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}

.intro-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-badge {
  display: none;
}

.intro-badge-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

.intro-badge p:last-child {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   9. Services (home) — image cards
   -------------------------------------------------------------------------- */
.services {
  position: relative;
}

.services .container {
  position: relative;
}

.section-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.section-head .headings {
  max-width: 36rem;
}

.section-head h2 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.section-head .btn {
  justify-self: start;
}

.services-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lift);
}

.service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.1);
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to top,
    color-mix(in oklab, var(--ink) 85%, transparent),
    color-mix(in oklab, var(--ink) 25%, transparent) 55%,
    transparent
  );
}

.service-number {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  z-index: 1;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.service-media h3 {
  position: absolute;
  z-index: 1;
  inset-inline: 1.5rem;
  bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem;
}

.service-body p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.service-steps {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.service-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-steps .icon {
  color: var(--primary);
}

.service-body .btn-ghost {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   10. Featured products (home)
   -------------------------------------------------------------------------- */
.products-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lift);
}

.product-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--surface);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.1);
}

.product-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-image: linear-gradient(
    to top,
    color-mix(in oklab, var(--ink) 70%, transparent),
    transparent 60%
  );
}

.product-card:hover .product-shade {
  opacity: 1;
}

.product-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.product-hover-pill {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translate(-50%, 0.75rem);
  white-space: nowrap;
  border-radius: 999px;
  background-color: var(--background);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  opacity: 0;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card:hover .product-hover-pill {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
}

.product-foot h3 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-foot .icon {
  flex: none;
  color: var(--muted-foreground);
  transition: transform 0.25s ease, color 0.25s ease;
}

.product-card:hover .product-foot .icon {
  transform: translate(2px, -2px);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   11. Why Riselco
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  gap: 3rem;
}

.why-head h2 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
}

.why-head p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.why-head .btn {
  margin-top: 1.75rem;
}

.why-cards {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  background-color: var(--border);
}

.why-card {
  background-color: var(--card);
  padding: 2rem;
  transition: background-color 0.3s ease;
}

.why-card:hover {
  background-color: color-mix(in oklab, var(--primary) 5%, var(--card));
}

.why-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.why-card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-2xl);
  background-color: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
}

.why-card-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border);
  transition: color 0.3s ease;
}

.why-card:hover .why-card-num {
  color: color-mix(in oklab, var(--primary) 40%, transparent);
}

.why-card h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.why-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   12. Industries + statistics
   -------------------------------------------------------------------------- */
.industry-pills {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.industry-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.industry-pill:hover {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background-color: color-mix(in oklab, var(--primary) 5%, var(--card));
}

.industry-pill .icon-lg {
  color: var(--primary);
}

.industry-pill p {
  font-size: 0.875rem;
  font-weight: 500;
}

.stats {
  position: relative;
  overflow: hidden;
  background-image: var(--gradient-hero);
  padding-block: 5rem;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  text-align: center;
  color: var(--primary-foreground);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.stat-label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
  margin-top: 3rem;
  display: grid;
  align-items: stretch;
  gap: 1.5rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
}

.testimonial .quote-mark {
  width: 2rem;
  height: 2rem;
  color: color-mix(in oklab, var(--primary) 30%, transparent);
}

.testimonial-text {
  margin-top: 1.25rem;
  flex: 1;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.testimonial-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  font-weight: 600;
  color: var(--primary);
}

.testimonial-author .name {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-author .company {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   14. Call to action band + panel
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.cta-band .bg-grid-light-overlay {
  opacity: 0.3;
}

.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 80% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 2.5rem;
  text-align: center;
}

.cta-inner h2 {
  margin-inline: auto;
  max-width: 48rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.cta-inner p {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

.cta-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Rounded gradient CTA panel (About / Services pages) */
.cta-panel {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background-image: var(--gradient-hero);
  padding: 2.5rem;
  text-align: center;
  color: var(--primary-foreground);
}

.cta-panel h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.cta-panel p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

.cta-panel .cta-actions {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   15. Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  background-image: var(--gradient-hero);
  padding-block: 2.5rem;
  color: var(--primary-foreground);
}

.page-hero .container {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.page-hero p {
  margin-top: 1.25rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

/* --------------------------------------------------------------------------
   16. About page
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.about-frame {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .about-frame img { height: 400px; }
}

.about-copy > * + * {
  margin-top: 1.25rem;
}

.about-copy h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

.about-copy p {
  line-height: 1.7;
  color: var(--muted-foreground);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.5rem;
}

.about-stat {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1rem;
  text-align: center;
}

.about-stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

.about-stat .label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pillars {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.pillar {
  padding: 1.75rem;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-2xl);
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.pillar h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.pillar p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   17. Services page
   -------------------------------------------------------------------------- */
.service-list {
  display: grid;
  gap: 1.5rem;
}

.service-tile {
  padding: 2rem;
}

.service-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-2xl);
  background-color: var(--secondary);
  color: var(--primary);
}

.service-tile h2 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.service-tile p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.service-tile-steps {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.service-tile-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.step-number {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   18. Product catalogue (products pages)
   -------------------------------------------------------------------------- */
.filters {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  color: var(--foreground);
}

.filter-btn.is-active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.catalog-card {
  overflow: hidden;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card > button {
  display: block;
  width: 100%;
  text-align: left;
}

.catalog-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--surface);
}

.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.catalog-card:hover .catalog-media img {
  transform: scale(1.05);
}

.catalog-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background-color: color-mix(in oklab, var(--ink) 45%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catalog-card:hover .catalog-overlay {
  opacity: 1;
}

.catalog-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: var(--background);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.catalog-body {
  padding: 1rem;
}

.catalog-category {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.catalog-body h3 {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Quick preview modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: color-mix(in oklab, var(--ink) 80%, transparent);
  backdrop-filter: blur(4px);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 48rem;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  box-shadow: var(--shadow-lift);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-panel img {
  width: 100%;
  max-height: 45vh;
  object-fit: cover;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body > * + * {
  margin-top: 1rem;
}

.modal-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.modal-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-body .description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.modal-features {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------------------
   19. Gallery + lightbox
   -------------------------------------------------------------------------- */
.masonry {
  columns: 2;
  column-gap: 1rem;
}

.masonry > * {
  margin-bottom: 1rem;
  break-inside: avoid;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lift);
}

.gallery-item img {
  width: 100%;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-image: linear-gradient(
    to top,
    color-mix(in oklab, var(--ink) 75%, transparent),
    transparent
  );
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--background);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: color-mix(in oklab, var(--ink) 90%, transparent);
  backdrop-filter: blur(4px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  max-width: 56rem;
  max-height: 85vh;
}

.lightbox img {
  max-height: 75vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--background) 80%, transparent);
}

.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--background) 15%, transparent);
  color: var(--background);
  transition: background-color 0.25s ease;
}

.lightbox-btn:hover {
  background-color: color-mix(in oklab, var(--background) 25%, transparent);
}

.lightbox-close {
  right: 1.25rem;
  top: 1.25rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* --------------------------------------------------------------------------
   20. Contact page
   -------------------------------------------------------------------------- */
.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-2xl);
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.contact-card h2 {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact-card .lines {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-columns {
  display: grid;
  gap: 2.5rem;
}

.contact-form-card {
  padding: 1.75rem;
}

.contact-form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-form-card .intro {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 0.6rem;
  background-color: var(--card);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
}

.contact-form-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-frame {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: #25d366;
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
}

.whatsapp-float:hover {
  background-color: #1eb356;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--footer);
  color: var(--footer-foreground);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 5rem;
}

.footer-brand img {
  height: 2.25rem;
  width: auto;
  border-radius: 0.5rem;
  background-color: var(--background);
  padding: 0.25rem;
}

.footer-brand p {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--footer-muted);
}

.footer-social {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--footer-foreground) 25%, transparent);
  transition: background-color 0.25s ease;
}

.footer-social a:hover {
  background-color: color-mix(in oklab, var(--footer-foreground) 10%, transparent);
}

.site-footer h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--footer-foreground);
}

.footer-links {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--footer-muted);
}

.footer-links a,
.footer-links li > span {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transition: color 0.25s ease;
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-links a:hover {
  color: var(--footer-foreground);
}

.footer-links .icon {
  flex: none;
  color: var(--footer-highlight);
}

.footer-contact {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--footer-muted);
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
}

.footer-contact .icon {
  margin-top: 0.15rem;
  flex: none;
}

.footer-contact a:hover {
  color: var(--footer-foreground);
}

.footer-bottom {
  background-color: var(--footer-bottom);
  border-top: 1px solid color-mix(in oklab, var(--footer-foreground) 15%, transparent);
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.75rem;
  font-size: 0.75rem;
  color: var(--footer-muted);
}


.site-footer h3::after { content: ""; display: block; width: 2rem; height: 2px; margin-top: 1rem; background: var(--accent); }
.footer-contact .icon { color: var(--footer-highlight); }
@media (min-width: 1024px) { .footer-grid { padding-block: 6rem; gap: 3.5rem; } }

/* --------------------------------------------------------------------------
   22. Toast notifications (contact form feedback)
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  max-width: 24rem;
}

.toast {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: var(--shadow-lift);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  animation: toast-in 0.25s ease both;
}

.toast-success {
  border-color: #16a34a;
  color: #14532d;
  background-color: #f0fdf4;
}

.toast-error {
  border-color: #dc2626;
  color: #7f1d1d;
  background-color: #fef2f2;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Quick preview shows the product image only */
.modal-panel,
.modal-panel img {
  display: block;
}

.modal-panel img {
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

/* Red brand accent (from the logo) */
.cta-band {
  background-color: var(--accent);
  background-image: url("../images/content/thread-and-fabric.jpg");
  background-size: cover;
  background-position: center;
  color: var(--accent-foreground);
}

.cta-glow {
  background: linear-gradient(100deg, color-mix(in oklab, var(--accent) 94%, black) 0%, color-mix(in oklab, color-mix(in oklab, var(--accent) 85%, black) 90%, transparent) 55%, color-mix(in oklab, color-mix(in oklab, var(--accent) 80%, black) 82%, transparent) 100%);
}

.cta-band .cta-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.eyebrow {
  color: var(--accent);
}

.btn-quote.btn-primary {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-quote.btn-primary:hover {
  background-color: oklch(0.42 0.17 25);
}

/* Expanded industry cards */
.sectors-section { background: var(--surface); }
.sectors-intro { margin-top: 1.25rem; color: var(--muted-foreground); line-height: 1.7; }
.sectors-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.sector-card { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 8px; background: var(--card); transition: border-color .25s ease, box-shadow .25s ease; }
.sector-card:nth-child(even) { border-top-color: var(--accent); }
.sector-card:hover { box-shadow: var(--shadow-soft); }
.sector-card-top { display: flex; align-items: center; justify-content: space-between; }
.sector-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 8px; color: var(--primary); background: var(--secondary); }
.sector-card:nth-child(even) .sector-icon { color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--card)); }
.sector-number { font-family: var(--font-display); font-size: 1.25rem; color: var(--muted-foreground); }
.sector-card h3 { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 600; }
.sector-body { margin-top: .75rem; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
.sector-products { margin-top: auto; padding-top: 1.25rem; font-size: .75rem; font-weight: 600; color: var(--primary); }
.site-logo img { height: 3.5rem; width: 12rem; object-fit: contain; }
.footer-brand img { height: 4rem; width: 13rem; object-fit: contain; padding: .5rem; }
@media (min-width: 768px) { .sectors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sectors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .site-logo img { width: 11rem; } }

/* Service photography and Font Awesome sizing. */
.service-tile { overflow: hidden; }
.service-tile-image { width: calc(100% + 4rem); max-width: none; margin: -2rem -2rem 0; aspect-ratio: 16 / 9; object-fit: cover; }
.icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.icon-sm { font-size: .875rem; }
.icon-lg { font-size: 1.25rem; }
.icon-xl { font-size: 1.5rem; }

/* Client edits */
.btn-quote.btn-primary, .btn-quote.btn-primary:hover, .btn-quote.btn-primary .icon { color: #fff; }
.footer-social a, .footer-social .icon, .footer-links .icon, .footer-contact .icon { color: #fff; }

.profile-download {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--surface, #f5f6f8);
  border-left: 4px solid var(--primary, #0b4ea2);
}
.profile-download h3 { margin: 0 0 .5rem; }
.profile-download p { margin: 0 0 1rem; }
.profile-download .profile-size { margin: .5rem 0 0; font-size: .85rem; color: var(--muted-foreground, #6b7280); }


/* --------------------------------------------------------------------------
   Navigation dropdown + service detail pages (added)
   -------------------------------------------------------------------------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-dropdown-toggle .icon { font-size: 0.65rem; transition: transform 0.25s ease; }
.nav-dropdown:hover .nav-dropdown-toggle .icon,
.nav-dropdown:focus-within .nav-dropdown-toggle .icon { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; z-index: 60; min-width: 14rem;
  display: grid; gap: 0.125rem; padding: 0.5rem; margin-top: 0.5rem;
  background-color: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown-menu::before { content: ""; position: absolute; inset: -0.75rem 0 auto; height: 0.75rem; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .nav-dropdown-menu a { display: block; border-radius: var(--radius); padding: 0.625rem 0.875rem; }
.mobile-subnav { padding-left: 1rem; border-left: 2px solid var(--border); margin: 0.25rem 0 0.25rem 0.75rem; }
.mobile-subnav a { padding-block: 0.6rem; }

.service-hero { position: relative; overflow: hidden; padding-block: 4rem; isolation: isolate; }
.service-hero-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; mix-blend-mode: luminosity; }
.service-hero .page-hero-eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.service-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.service-uses { display: grid; gap: 0.6rem; }
.service-uses li { display: flex; align-items: center; gap: 0.6rem; color: var(--foreground); font-weight: 500; }
.service-uses .icon { color: var(--primary); }
.service-benefits { position: relative; }
.service-tile h3 { margin-top: 1.25rem; font-size: 1.15rem; font-weight: 600; }
.service-tile h2 a:hover { color: var(--primary); }
.service-tile-link { margin-top: 1.5rem; }
.service-detail-grid { display: grid; gap: 2.5rem; }
.service-process { margin-top: 2rem; display: grid; gap: 1.25rem; }
.service-process li { display: flex; gap: 1rem; align-items: flex-start; }
.service-process .step-number { width: 2.25rem; height: 2.25rem; font-size: 0.9rem; color: var(--primary); }
.service-process strong { font-family: var(--font-display); color: var(--ink); }
.service-process p { margin-top: 0.25rem; color: var(--muted-foreground); line-height: 1.6; font-size: 0.925rem; }
.service-specs { padding: 2rem; align-self: start; }
.service-specs h3 { font-size: 1.25rem; font-weight: 600; }
.service-specs dl { margin: 1.25rem 0 1.5rem; display: grid; }
.service-specs dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.service-specs dt { color: var(--muted-foreground); }
.service-specs dd { font-weight: 600; text-align: right; color: var(--foreground); }
.service-specs .btn { width: 100%; justify-content: center; }
.service-others { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.service-others > p { font-weight: 600; color: var(--ink); }
@media (min-width: 768px) {
  .service-hero { padding-block: 6rem; }
  .service-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .service-detail-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}

/* Products page category overview */
.product-categories-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
#catalog { scroll-margin-top: 8rem; }

/* Products page grid */
.product-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1.5rem; }
.product-card-body h3 { margin: 0; font-size: 1.25rem; }
.product-card-body p { margin: 0; flex: 1; }
.product-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.product-card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* Products page: category rows */
.cat-list { display: grid; gap: 3.5rem; }
.cat-row { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) {
  .cat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
  .cat-row-reverse .cat-media { order: 2; }
}
.cat-media { position: relative; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border); box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; background: var(--card); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-row:hover .cat-media img { transform: scale(1.04); }
.cat-number { position: absolute; top: 1rem; left: 1rem; padding: .35rem .75rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-weight: 700; font-size: .85rem; }
.cat-body h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.cat-body p { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.75; }
.cat-body p a { color: var(--primary); font-weight: 600; }
.cat-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.cat-tags li { padding: .35rem .8rem; border-radius: 999px; background: var(--secondary); color: var(--primary); font-size: .8rem; font-weight: 600; }
.cat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .product-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 767px) { .product-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-uses a, .section-head p a { color: var(--primary); }

/* Site-wide breathing room between headings, text and content */
h1, h2 { line-height: 1.2; }
h3 { line-height: 1.3; }
p { line-height: 1.75; }
.section-head h2, .intro-title { margin-top: 1.5rem !important; margin-bottom: 0.5rem; }
.section-head p { margin-top: 1.25rem !important; }
.section-head { margin-bottom: 3rem !important; }
.service-tile h3, .cat-body h3 { margin-top: 1.25rem; margin-bottom: 0.75rem; }
.cat-body p { margin-bottom: 1.25rem; }
.page-hero h1 { margin-top: 1rem; margin-bottom: 1.25rem; }
.cta-inner h2 { margin-bottom: 1rem; }
.cta-actions { margin-top: 1.75rem; }
.eyebrow + h2, .eyebrow + h1, .eyebrow + .section-heading, .eyebrow + .section-heading-sm { margin-top: 1.5rem !important; }
.section-heading-sm + *, .section-heading + * { margin-top: 1.5rem; }
