.service-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; margin-right: 0.4rem; color: var(--blue); }
.service-icon svg { width: 22px; height: 22px; fill: currentColor; }
/* Biosafe Solutions — clean, simple, elegant styles */
:root {
  --blue: #1e88e5;
  --green: #22c55e;
  --blue-600: #0ea5e9;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --border: #e5e7eb;
  --card: #ffffff;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

/* Page scroll snap for home */
body.page-snap {
  scroll-snap-type: y mandatory;
  scroll-padding-top: clamp(120px, 14vw, 176px); /* match responsive sticky header height */
}
body.page-snap .hero,
body.page-snap .section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.snap-fill { min-height: calc(100vh - 64px); display: flex; align-items: center; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  /* Removed blur to avoid any perceived click issues */
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(120px, 14vw, 176px);
}
.brand .logo-text {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--blue);
  text-decoration: none;
}
.brand .logo { height: clamp(120px, 12vw, 160px); width: auto; margin-right: 0.875rem; vertical-align: middle; display: block; }

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--blue);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}
.nav-ico { display: none; }
.nav-heading { display: none; }
.nav-list a:hover { color: var(--blue); }
.nav-list a.active { color: var(--blue); font-weight: 600; }

.nav-list .cta .btn { padding: 0.5rem 0.75rem; }

/* Hero */
.hero {
  position: relative;
  padding: 0;
  background: linear-gradient(180deg, rgba(30,136,229,0.10), rgba(34,197,94,0.08));
  overflow: hidden;
  min-height: 100vh;
}
.hero { min-height: 100svh; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}
.hero::before {
  width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(30,136,229,0.65), transparent);
  top: -80px; left: -80px;
}
.hero::after {
  width: 300px; height: 300px;
  background: radial-gradient(closest-side, rgba(34,197,94,0.6), transparent);
  bottom: -60px; right: -60px;
}
.hero-compact { padding: 3rem 0 2rem; }
.hero-compact {
  background-size: cover;
  background-position: center;
}
.hero-compact::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.25), rgba(15,23,42,0.45));
}
.hero-compact .hero-inner { position: relative; }
.hero-compact h1 { color: #fff; }
.hero-compact .lead { color: rgba(255,255,255,0.9); }
.hero-compact .btn-outline { border-color: rgba(255,255,255,0.75); color: #fff; }
.hero-compact .btn-outline:hover { border-color: #fff; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  animation: bounceDown 1.6s ease-in-out infinite;
  z-index: 2;
}
.scroll-indicator:hover { filter: brightness(1.05); }
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  margin: 0 0 0.75rem;
}
.lead { color: var(--muted); font-size: 1.05rem; }
.actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 3rem 0; }
.section-header { margin-bottom: 1.5rem; }
.section-header h2 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.section-header .muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Contact page lively brand background */
.section.contact-themed {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30,136,229,0.14) 0%, rgba(34,197,94,0.14) 55%, rgba(255,255,255,0.88) 100%);
}
.section.contact-themed.dark {
  background: linear-gradient(135deg, #0b1e33 0%, #0a1a2b 55%, #091725 100%);
}
.section.contact-themed::before,
.section.contact-themed::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}
.section.contact-themed::before {
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(30,136,229,0.55), transparent);
  top: -120px; left: -120px;
}
.section.contact-themed::after {
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(34,197,94,0.5), transparent);
  bottom: -100px; right: -100px;
}
.section.contact-themed > .container { position: relative; z-index: 1; }
.section.contact-themed.dark .section-header h2 { color: #fff; }
.section.contact-themed.dark .section-header .muted { color: rgba(255,255,255,0.85); }

/* About section dark solid theme */
.section.about-dark {
  background-color: #0b1e33; /* deep navy to match brand blues */
}
.section.about-dark .section-header h2 { color: #fff; }
.section.about-dark .section-header .muted,
.section.about-dark .small { color: rgba(255,255,255,0.85); }

/* Section with diagonal background image and overlay */
.section.diagonal-bg { position: relative; overflow: hidden; }
.section.diagonal-bg::before {
  content: "";
  position: absolute; inset: 0;
  /* Allow either an image URL or a gradient via CSS var */
  background-image: var(--bg-image, var(--bg-url, none));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  z-index: 0;
}
.section.diagonal-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: none;
  z-index: 0;
}
.section.diagonal-bg > .container { position: relative; z-index: 2; }
.section.diagonal-bg .section-header h2 { color: var(--heading-color, #fff); }
.section.diagonal-bg .section-header .muted { color: var(--subheading-color, rgba(255,255,255,0.85)); }

/* Decorative corner figure in sections (e.g., worker image) */
#services .corner-figure {
  position: absolute;
  right: 0.5rem;
  bottom: 0;
  width: min(36vw, 420px);
  height: auto;
  border-top-left-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(15,23,42,0.18);
  z-index: 1; /* above background, below content container */
  pointer-events: none;
}
@media (max-width: 900px) {
  #services .corner-figure { width: min(45vw, 360px); }
}
@media (max-width: 640px) {
  #services .corner-figure { display: none; }
}

/* Right-side background image band for diagonal sections */
.section.diagonal-bg.side-image-right::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30vw;
  /* Diagonal inner edge for the image band */
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  background-image:
    linear-gradient(90deg, rgba(30,136,229,0.22) 0%, rgba(30,136,229,0.10) 35%, rgba(30,136,229,0) 65%),
    var(--side-img-url, none);
  background-size: 100% 100%, cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1; /* above gradient background, below content */
}
@media (max-width: 900px) {
  .section.diagonal-bg.side-image-right::after { width: 40vw; }
}
@media (max-width: 640px) {
  .section.diagonal-bg.side-image-right::after {
    display: block;
    width: 55vw;
    background-position: right center;
  }
}

/* Fallback for browsers without clip-path polygon support */
@supports not (clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%)) {
  .section.diagonal-bg.side-image-right::after { clip-path: none; }
}

/* Did You Know section theme */
.section.didyouknow {
  background: linear-gradient(180deg, rgba(34,197,94,0.14), rgba(30,136,229,0.06));
}
.didyouknow .split-media { border-radius: 0.75rem; overflow: hidden; }
/* The existing .split.reverse .split-media img already applies a diagonal on inner edge */
.stat-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 110px;
  padding: 0.6rem 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(30,136,229,0.06), rgba(34,197,94,0.18));
  border: 1px solid rgba(30,136,229,0.25);
  box-shadow: 0 10px 20px rgba(15,23,42,0.12);
}
.stat-badge .stat-number { font-size: 1.25rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-badge .stat-caption { font-size: 0.85rem; color: var(--text); opacity: 0.9; }

/* Did You Know ticker / rotator */
.fact-ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.fact-ticker .fact-stage { position: relative; padding: 1rem; min-height: 64px; }
.fact-ticker .fact {
  position: absolute; inset: 0 auto 0 0; right: 0;
  display: inline-flex; align-items: center; gap: 0.6rem;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, rgba(30,136,229,0.08), rgba(34,197,94,0.08));
  border: 1px solid rgba(30,136,229,0.22);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.fact-ticker .fact.active { opacity: 1; transform: translateY(0); }
.fact-ticker .icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, var(--blue), var(--green)); box-shadow: 0 6px 14px rgba(15,23,42,0.12); }
.fact-ticker .text { white-space: normal; }
@media (max-width: 640px) {
  .fact-ticker .fact-stage { min-height: 74px; }
  .fact-ticker .fact { font-size: 0.93rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fact-ticker .fact { transition: none; }
}

/* Diagonal images for section banners */
.diagonal-image {
  position: relative;
  height: 220px;
  margin: 0 0 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
}

/* Split layout with side image */
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.split.no-image { grid-template-columns: 1fr; }
.split-content { min-width: 0; }
.split-media {
  position: relative;
  min-height: calc(100vh - clamp(120px, 14vw, 176px));
  min-height: calc(100svh - clamp(120px, 14vw, 176px));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Side diagonal on inner edge (image on right) */
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.06), rgba(15,23,42,0.12));
}

/* Reverse option: image on the left */
.split.reverse { grid-template-columns: 1fr 1.5fr; }
.split.reverse .split-content { order: 2; }
.split.reverse .split-media { order: 1; }
.split.reverse .split-media img { clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%); }
.diagonal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
}
.diagonal-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.06), rgba(15,23,42,0.12));
}
@supports not (clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%)) {
  .diagonal-image img { clip-path: none; }
}

/* Cards & grids */
.cards { display: grid; gap: 1rem; }
.cards.one { grid-template-columns: 1fr; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }

.card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-alt {
  background:
    linear-gradient(180deg, rgba(30,136,229,0.06), rgba(34,197,94,0.06));
  border-color: rgba(30,136,229,0.25);
}
.card:hover { box-shadow: 0 10px 28px rgba(30,136,229,0.16); transform: translateY(-2px); transition: transform 200ms ease, box-shadow 200ms ease; }
.card img { width: 100%; height: auto; border-radius: 0.5rem; margin-bottom: 0.75rem; }
.card h3 { margin: 0.25rem 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text); }
.card.card-accent { border-color: var(--blue); }

/* Title-only service boxes */
.card.title-only {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  border: 1px solid transparent;
  --start: var(--blue);
  --end: var(--green);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--start), var(--end)) border-box;
}
.card.title-only .title-stack { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.card.title-only .title-icon {
  position: relative;
  width: 80px; height: 80px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--start), var(--end));
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 20px rgba(15,23,42,0.14), inset 0 0 12px rgba(255,255,255,0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card.title-only .title-icon::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.card.title-only .title-icon svg {
  width: 40px; height: 40px; fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
  shape-rendering: geometricPrecision;
}
.card.title-only:hover .title-icon { transform: translateY(-1px) scale(1.03); }
.card.title-only::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(180px 60px at 12% 12%, rgba(30,136,229,0.08), transparent),
    radial-gradient(180px 60px at 88% 88%, rgba(34,197,94,0.08), transparent);
}
.card.title-only:hover { transform: translateY(-3px); }

.title-only .title {
  margin: 0;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--start), var(--end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-only:hover .title { filter: brightness(1.05); }

/* Color variety per box */
.cards .card.title-only:nth-child(2) { --start: var(--green); --end: var(--blue-600); }
.cards .card.title-only:nth-child(3) { --start: var(--blue-600); --end: var(--green); }
.cards .card.title-only:nth-child(4) { --start: var(--blue); --end: var(--blue-600); }
.cards .card.title-only:nth-child(5) { --start: var(--green); --end: var(--blue); }

.list { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.list li { margin-bottom: 0.5rem; }

/* Contact */
.contact-grid {
  display: grid; gap: 1rem; grid-template-columns: 1.25fr 0.75fr;
}
.contact-form .form-row { display: grid; gap: 0.375rem; margin-bottom: 0.75rem; }
.contact-form label { font-weight: 600; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
}
.contact-aside .card { height: 100%; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: white;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(16px); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in-up { animation: sectionSlideUp 600ms ease both; }
.reveal.in-down { animation: sectionSlideDown 600ms ease both; }
@keyframes sectionSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes sectionSlideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: none; }
}
.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
}

/* Slider */
.slider { position: relative; }
.slides { position: relative; overflow: hidden; border-radius: 0; }
.slide {
  position: relative;
  min-height: 100vh;
  display: none;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
  animation: slideIn 500ms ease both;
}
.slide { min-height: 100svh; }
.slide.active { display: block; }
.slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.35), rgba(15,23,42,0.55));
}
.slide-content {
  position: relative;
  padding: 2rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 960px;
}
.slide-content { min-height: 100svh; }
.hero .slide .lead { color: rgba(255,255,255,0.85); }
.hero .slide .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.hero .slide .btn-outline:hover { border-color: #fff; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.slider-controls {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem;
}
.slider-controls .prev,
.slider-controls .next {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  width: 34px; height: 34px; border-radius: 999px;
}

/* (removed misplaced mobile menu block; definitions are in the mobile media query below) */

.social-icon { color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.social-icon:hover { color: var(--blue); }

.watermark {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 140px;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  filter: grayscale(20%);
  mix-blend-mode: multiply;
  z-index: 500;
}
@media (max-width: 640px) {
  .watermark { width: 100px; right: 10px; bottom: 10px; }
}

/* Responsive */
@media (max-width: 900px) {
  .cards.two { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 50vh; min-height: 50svh; }
}
@media (max-width: 640px) {
  .nav { position: relative; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 999px;
    border: none;
    box-shadow: 0 6px 16px rgba(15,23,42,0.12);
  }
  /* Off-canvas menu panel inside mobile breakpoint */
  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
    width: 80vw;
    max-width: 360px;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 28px rgba(15,23,42,0.14);
    padding: 88px 1rem 1rem; /* space for header/close button */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open .nav-toggle { position: fixed; top: 16px; right: 16px; z-index: 1002; }
  .nav.open .nav-list { transform: translateX(0); }
  .nav.open .nav-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.875rem 0.6rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-align: left;
    font-size: 1.05rem;
    pointer-events: auto; /* explicit: ensure links are clickable */
  }
  .nav-ico { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; color: var(--blue); }
  .nav-ico svg { width: 22px; height: 22px; display: block; }
  .nav-heading { display: block; width: 100%; padding: 0.5rem 0.25rem; margin-bottom: 0.25rem; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
  .cards.three { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .slide-content { padding: 1.25rem; }
  /* Scale brand for small screens */
  .brand .logo { height: 56px; margin-right: 0.5rem; }
  .brand .logo-text { font-size: 1.375rem; }
  /* Keep service icons and boxes prominent but balanced on mobile */
  .card.title-only { min-height: 170px; }
  .card.title-only .title-icon { width: 72px; height: 72px; }
  .card.title-only .title-icon svg { width: 36px; height: 36px; }
  .title-only .title { font-size: 1.1rem; }

  /* Overlay removed: keep interface clear with no dim layer on mobile */
}

/* Prevent background scroll when menu is open */
body.menu-open { overflow: hidden; }

/* Full-bleed hero inside container */
.hero .container { max-width: none; padding: 0; }

/* Media performance tweaks */
img { max-width: 100%; height: auto; }
img[loading="lazy"] { content-visibility: auto; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  .reveal.in-up, .reveal.in-down { animation: none; }
  .slide { animation: none; }
  .scroll-indicator { animation: none; }
}

/* Services inspiration-style board */
.services-inspo {
  position: relative;
  padding: 4.5rem 0 4.5rem; /* more breathing room to reveal background */
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}
.services-board {
  background: rgba(255,255,255,0.92); /* blue & white theme: clean white panel */
  border: 1px solid rgba(30,136,229,0.20); /* subtle blue border */
  border-radius: 1.5rem;
  color: var(--text);
  box-shadow: 0 24px 48px rgba(15,23,42,0.14);
  padding: 1.25rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* separators handled by borders */
}
.services-grid .tile {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(30,136,229,0.18);
  border-bottom: 1px solid rgba(30,136,229,0.18);
}
.services-grid .tile:nth-child(3n) { border-right: none; }
.services-grid .tile:nth-last-child(-n+3) { border-bottom: none; }
.services-grid .tile .ico { color: var(--blue); opacity: 0.95; margin-bottom: 0.75rem; }
.services-grid .tile .ico svg { width: 64px; height: 64px; display: block; }
.services-grid .tile h3 { color: var(--text); font-weight: 700; margin: 0; font-size: 1rem; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .tile:nth-child(2n) { border-right: none; }
  .services-grid .tile:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 640px) {
  .services-board { border-radius: 1rem; }
  .services-grid .tile { min-height: 150px; }
}
