/* ==========================================================================
   Biovatrix (Pty) Ltd — Main Stylesheet (v2, world-class edition)
   Brand colours unchanged: teal #066ba3, dark blue #1e3a8a, accent #10b981
   ========================================================================== */

:root {
  --teal: #066ba3;
  --dark-blue: #1e3a8a;
  --accent: #10b981;
  --black: #1A202C;
  --white: #FFFFFF;
  --ink: #0f172a;
  --slate: #475569;
  --mist: #f5f9fc;
  --gradient: linear-gradient(135deg, var(--teal), var(--dark-blue));
  --gradient-accent: linear-gradient(135deg, var(--teal), var(--accent));
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Stop the page bouncing/continuing past the footer on phones */
  overscroll-behavior-y: none;
}

/* The overscroll "bounce" area on phones shows the html background.
   Making it match the footer means scrolling visually ends at the footer. */
html { background-color: var(--dark-blue); }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--teal);
  color: var(--white);
}

/* No grey/blue square flash when tapping things on phones */
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* Focus outlines only for keyboard users, never on tap/click */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

section[id] { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Reading progress bar ---------- */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient-accent);
  z-index: 1100; /* just above the header */
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  pointer-events: none;
}

/* ---------- Header ---------- */

.header-bg {
  background: rgba(6, 107, 163, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  animation: fadeInHeader 0.8s ease-in;
}

@keyframes fadeInHeader {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Solidifies + gains depth once you scroll */
.header-bg.scrolled {
  background: rgba(6, 90, 140, 0.96);
  box-shadow: 0 10px 30px rgba(6, 60, 100, 0.28);
}

.logo-container {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease);
}

.logo-container:hover { transform: scale(1.04); }

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

/* ---------- Buttons ---------- */

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Soft shine sweep on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(6, 107, 163, 0.35);
}

.btn-primary:hover::before { transform: translateX(100%); }

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

.btn-primary.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  transition: all 0.3s var(--ease);
  border: 2px solid var(--teal);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(6, 107, 163, 0.25);
}

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

/* Compact outline button for the header nav */
.btn-nav {
  background: transparent;
  color: var(--white) !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  font-weight: 600 !important;
  font-size: 0.9rem;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.btn-nav::after { display: none !important; }

.btn-nav:hover {
  background: var(--white);
  color: var(--teal) !important;
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Ghost button for use on dark/hero backgrounds */
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

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

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  height: 100vh;
  height: 100svh; /* stable height on mobile browsers */
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* CRITICAL: gives the hero its own stacking context so the video
     (z-index: -1) stays INSIDE the hero instead of dropping behind
     the page's white background. Do not remove. */
  isolation: isolate;
  /* Deep blue shows while the video loads — never a white flash */
  background-color: #04466e;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(16, 185, 129, 0.14), transparent 55%),
    linear-gradient(to right, rgba(4, 70, 110, 0.72), rgba(20, 40, 100, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-logo-img {
  height: 96px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Pill badge above the headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge i { color: var(--accent); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.scroll-cue:hover { opacity: 1; }

.scroll-cue {
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.scroll-cue:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Hide the scroll cue when there's no room for it (small phones,
   landscape phones) so it never overlaps the buttons */
@media (max-height: 700px), (max-width: 480px) {
  .scroll-cue { display: none; }
}

.scroll-cue .mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  position: relative;
}

.scroll-cue .mouse::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--white);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ---------- Stats strip ---------- */

.stats-strip {
  background: var(--gradient);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(16, 185, 129, 0.25), transparent 50%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.35rem;
  display: block;
}

/* ---------- Sections ---------- */

.section-padding { padding: 5.5rem 1.5rem; }

.section-eyebrow {
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-rule {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-accent);
  margin: 0 auto 1.25rem;
}

.section-sub {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--slate);
}

.section-divider {
  width: 100%;
  height: 60px;
  position: relative;
  margin: 0;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-divider.top { margin-top: -1px; }
.section-divider.bottom { margin-bottom: -1px; }

.bg-mist { background: var(--mist); }

/* ---------- About ---------- */

.about-image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 60, 100, 0.45), transparent 55%);
}

.about-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about-image-frame:hover img { transform: scale(1.04); }

.mini-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 107, 163, 0.08);
  border-top: 3px solid var(--teal);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

/* ---------- Cards ---------- */

.service-card, .value-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 107, 163, 0.1);
  position: relative;
}

/* Gradient accent line that slides in on hover */
.service-card::before, .value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover::before, .value-card:hover::before { transform: scaleX(1); }

.service-card:hover, .value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 107, 163, 0.25);
}

.service-card { cursor: pointer; }

/* Icon inside a soft gradient badge */
.icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6, 107, 163, 0.1), rgba(16, 185, 129, 0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
  transition: all 0.35s var(--ease);
}

.service-card:hover .icon-badge, .value-card:hover .icon-badge {
  background: var(--gradient);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 20px rgba(6, 107, 163, 0.3);
}

.card-link {
  color: var(--teal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--ease), color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.service-card:hover .card-link {
  gap: 0.7rem;
  color: var(--dark-blue);
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  height: 100%;
}

/* ---------- Modals ---------- */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.72);
  backdrop-filter: blur(6px);
  z-index: 4001;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 680px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid;
  border-image: var(--gradient-accent) 1;
  position: relative;
}

.modal.active .modal-content { transform: translateY(0) scale(1); }

.modal-content ul li { color: var(--slate); }

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mist);
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--teal);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  transform: rotate(90deg);
  background: rgba(6, 107, 163, 0.12);
}

.close-modal:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- Navigation ---------- */

.header-bg nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.header-bg nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: all 0.3s var(--ease);
  transform: translateX(-50%);
}

.header-bg nav a:hover,
.header-bg nav a.active { color: var(--white); }

.header-bg nav a:hover::after,
.header-bg nav a.active::after { width: 70%; }

.header-bg nav a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------- Mobile menu ---------- */

#nav-menu {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  #nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 290px;
    transform: translateX(-100%);
    z-index: 1001;
    padding: 4.5rem 1.5rem 2rem;
    overflow-y: auto;
    background: var(--white);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border-radius: 0 24px 24px 0;
  }

  #nav-menu.active { transform: translateX(0); }

  #nav-menu a {
    color: var(--ink);
    padding: 0.85rem 1rem;
    margin: 0.2rem 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  #nav-menu a:hover, #nav-menu a.active {
    background: rgba(6, 107, 163, 0.09);
    color: var(--teal);
  }

  #nav-menu a::after { display: none; }

  .section-padding { padding: 3.5rem 1rem; }
}

@media (min-width: 768px) {
  #nav-menu {
    display: flex;
    align-items: center;
  }
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-icon span {
  background: var(--white);
  height: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-icon span:nth-child(1) { top: 6px; }
.hamburger-icon span:nth-child(2) { top: 12px; }
.hamburger-icon span:nth-child(3) { top: 18px; }

.hamburger-icon.active span { background: var(--teal); }
.hamburger-icon.active span:nth-child(1) { transform: rotate(45deg); top: 12px; }
.hamburger-icon.active span:nth-child(2) { opacity: 0; }
.hamburger-icon.active span:nth-child(3) { transform: rotate(-45deg); top: 12px; }

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Contact ---------- */

.contact-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(6, 107, 163, 0.08);
  height: 100%;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 107, 163, 0.1), rgba(16, 185, 129, 0.12));
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-row strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.15rem;
}

.contact-row a { color: var(--teal); }
.contact-row a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(6, 107, 163, 0.25);
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: var(--mist);
}

.form-input:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(6, 107, 163, 0.14);
}

.form-input:invalid:not(:placeholder-shown) { border-color: #f87171; }

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 100%, rgba(16, 185, 129, 0.3), transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-band p {
  opacity: 0.9;
  max-width: 38rem;
  margin: 0 auto 2rem;
  position: relative;
}

/* ---------- Footer ---------- */

.footer-bg {
  background: linear-gradient(160deg, #05517c, var(--dark-blue));
  position: relative;
  /* Breathing room for phone home bars so the footer never feels cut off */
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)) !important;
}

.footer-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.footer-links a {
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  padding: 0.25rem 0;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover::after { width: 100%; }

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transition: all 0.3s var(--ease);
  font-size: 1.25rem;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
}

.social-icon:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.newsletter-form .form-input {
  border-radius: 12px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.newsletter-form .form-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.newsletter-form .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.newsletter-form .btn-primary {
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
}

/* ---------- Floating elements ---------- */

.back-to-top {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  right: 2rem;
  background: var(--gradient);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 16px rgba(6, 60, 100, 0.35);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover, .back-to-top:active {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(6, 60, 100, 0.45);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.fab-container {
  position: fixed;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.fab-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(6, 107, 163, 0.4);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease);
  font-size: 1.25rem;
  pointer-events: auto;
}

.fab-button:hover, .fab-button:focus { transform: scale(1.12); }
.fab-button.active i { transform: rotate(45deg); }
.fab-button i { transition: transform 0.25s var(--ease); }

.fab-menu {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.fab-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--teal);
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
  pointer-events: auto;
}

.fab-menu-item:hover, .fab-menu-item:focus {
  transform: translateX(-5px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Misc ---------- */

.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.animated-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.bee-certificate-icon {
  color: var(--teal);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bee-certificate-icon i { font-size: 1.1rem; }

.bee-certificate-icon:hover {
  color: var(--dark-blue);
  transform: scale(1.12);
}

/* ---------- Cookie consent ---------- */

.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 3500;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  border: 1px solid rgba(6, 107, 163, 0.15);
  border-top: 4px solid;
  border-image: var(--gradient-accent) 1;
  will-change: transform, opacity;
}

.cookie-popup.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-popup .btn-primary,
.cookie-popup .btn-secondary {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  margin: 0.25rem;
}

#cookie-preferences-modal .modal-content {
  max-width: 600px;
  padding: 2.5rem;
}

#cookie-preferences-modal input[type="checkbox"] { accent-color: var(--teal); }

#cookie-preferences-modal input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Content pages (privacy policy, etc.) ---------- */

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}

.page-content h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--teal);
}

.page-content p, .page-content li { margin-bottom: 0.75rem; }

.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 1024px) {
  .hero-section { min-height: 560px; }
}

@media (max-width: 640px) {
  .hero-section { min-height: 520px; }
  .hero-logo-img { height: 64px; }
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
  }
  .btn-primary, .btn-ghost {
    padding: 0.7rem 1.6rem;
    font-size: 0.85rem;
  }
  .cookie-popup {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 100%;
    padding: 1.5rem;
  }
  .back-to-top, .fab-container { right: 1.25rem; }
}

/* ==========================================================================
   LEAN UTILITIES — replaces the entire Tailwind CDN library (~200 KB saved).
   Only the classes this site actually uses, hand-written.
   ========================================================================== */

/* Layout */
.container { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.hidden { display: none; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Gaps & spacing between siblings */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-10 { margin-top: 2.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }

/* Padding */
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-6 { padding-top: 1.5rem; }
.pl-5 { padding-left: 1.25rem; }

/* Sizing */
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-lg { max-width: 32rem; }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.tracking-tight { letter-spacing: -0.025em; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }
.list-disc { list-style-type: disc; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Colours */
.text-white { color: #ffffff; }
.text-gray-600 { color: #4B5563; }
.text-gray-800 { color: #1F2937; }
.text-teal-600 { color: var(--teal); }
.text-green-600 { color: #059669; }
.hover\:text-green-400:hover { color: #34D399; }
.hover\:text-teal-800:hover { color: var(--dark-blue); }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #F9FAFB; }
.opacity-80 { opacity: 0.8; }
.opacity-85 { opacity: 0.85; }
.opacity-90 { opacity: 0.9; }

/* Borders */
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white { border-color: #ffffff; }
.border-white.border-opacity-20 { border-color: rgba(255, 255, 255, 0.2); }
.rounded-lg { border-radius: 0.5rem; }
.overflow-hidden { overflow: hidden; }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Focus helpers */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2.focus\:ring-white:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,0.85); }

/* Simple animation */
@keyframes bounceY {
  0%, 100% { transform: translateY(-12%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
.animate-bounce { animation: bounceY 1s infinite; }

/* Responsive variants */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:inline-flex { display: inline-flex; }
  .md\:inline-block { display: inline-block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   MODERN MOBILE MENU (v7) — glass panel, staggered sliding links,
   numbered items, spinning hamburger
   ========================================================================== */

.hamburger-icon {
  transition: transform 0.45s var(--ease);
}

.hamburger-icon.active {
  transform: rotate(180deg); /* spins while morphing into an X */
}

@media (max-width: 767px) {
  #nav-menu {
    width: min(84vw, 340px);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(240, 249, 255, 0.97));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 0 28px 28px 0;
    box-shadow: 8px 0 40px rgba(6, 60, 100, 0.25);
    counter-reset: navnum;
    overflow: hidden;
  }

  /* Gradient accent along the panel's top */
  #nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-accent);
  }

  /* Soft floating orb decoration */
  #nav-menu::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--gradient-accent);
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
  }

  /* Links: hidden and shifted until the panel opens, then they
     slide in one after another */
  #nav-menu a.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem 1.1rem;
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease),
                background 0.3s ease, color 0.3s ease;
  }

  #nav-menu.active a.nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  /* The stagger: each link waits a touch longer than the previous */
  #nav-menu.active a.nav-link:nth-child(1) { transition-delay: 0.10s; }
  #nav-menu.active a.nav-link:nth-child(2) { transition-delay: 0.17s; }
  #nav-menu.active a.nav-link:nth-child(3) { transition-delay: 0.24s; }
  #nav-menu.active a.nav-link:nth-child(4) { transition-delay: 0.31s; }
  #nav-menu.active a.nav-link:nth-child(5) { transition-delay: 0.38s; }

  /* Numbered items: 01 02 03... in gradient text */
  #nav-menu a.nav-link::before {
    counter-increment: navnum;
    content: counter(navnum, decimal-leading-zero);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 1.6rem;
  }

  #nav-menu a.nav-link:active {
    transform: translateX(6px) scale(0.98);
  }
}

/* ==========================================================================
   BONUS: newest web platform features (progressive enhancements —
   browsers that don't support them simply ignore them)
   ========================================================================== */

/* 1. Cross-document View Transitions: navigating between pages
      (home <-> privacy policy) smoothly cross-fades instead of flashing */
@view-transition {
  navigation: auto;
}

/* 2. Scroll-driven animation: where supported, the reading progress bar
      is driven directly by the compositor — perfectly smooth, zero
      JavaScript work per frame */
@supports (animation-timeline: scroll()) {
  #scroll-progress {
    animation: progressGrow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progressGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ==========================================================================
   v8 FIXES — safety reset + justified paragraphs + menu button
   ========================================================================== */

/* Safety reset: even if the Tailwind CDN ever fails to load, the site
   never falls back to 1998 browser defaults again */
a { text-decoration: none; color: inherit; }
button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
ul { margin: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6, figure { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }

/* Re-apply the underlines we actually WANT (links inside text content) */
.underline { text-decoration: underline; }
.page-content a, .contact-row a { text-decoration: underline; }

/* Menu (hamburger) button — explicit, always correct */
#menu-toggle {
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#menu-toggle:active { background: rgba(255, 255, 255, 0.15); }

/* Justified paragraphs for a clean, newspaper-quality text block */
#about > .container > .grid p,
.page-content p,
.page-content li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Keep bullet lists inside the privacy page properly indented */
.page-content ul { padding-left: 1.5rem; }



/* ==========================================================================
   v9 — services carousel, PC menu fix, version badge
   ========================================================================== */

/* FIX: hamburger must never appear on desktop (my #menu-toggle rule was
   overpowering Tailwind's md:hidden — this settles it for good) */
@media (min-width: 768px) {
  #menu-toggle { display: none !important; }
}

/* ---------- Swipeable services carousel ---------- */

.carousel-wrap {
  position: relative;
  padding: 0 3.25rem;
}

.services-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.services-carousel::-webkit-scrollbar { display: none; }

.services-carousel .service-card {
  flex: 0 0 340px;
  scroll-snap-align: center;
  display: flex; /* equal heights */
}

.services-carousel .service-card > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.services-carousel .service-card .card-link { margin-top: auto; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  border: 1px solid rgba(6, 107, 163, 0.2);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s var(--ease);
}

.carousel-btn:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-hint { user-select: none; }

@media (max-width: 640px) {
  .carousel-wrap { padding: 0; }
  .carousel-btn { display: none; }         /* phones: swipe */
  .services-carousel .service-card { flex: 0 0 82%; }
}

/* ---------- Version badge ---------- */

.version-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  letter-spacing: 1px;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Consistent page alignment ---------- */

/* Every section's content column lines up on the same grid */
section > .container { max-width: 1200px; }

/* Reg number link styled like the other contact links */
.contact-row a[href$=".pdf"] { text-decoration: underline; }

/* ==========================================================================
   v10 — upgraded detail modals, toast notifications, 3D tilt cards
   ========================================================================== */

/* ---------- Modal upgrade ---------- */

.modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem; /* keep clear of the × button */
}

.modal-head .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(6, 107, 163, 0.3);
}

.modal-head .icon-badge.success {
  background: linear-gradient(135deg, var(--accent), #059669);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.modal-head h3 { margin: 0; }

.modal-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.modal-list li {
  position: relative;
  padding: 0.65rem 1rem 0.65rem 2.8rem;
  background: var(--mist);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.modal-list li:hover {
  transform: translateX(4px);
  background: #ecf6fc;
}

.modal-list li::before {
  content: '\f00c'; /* check mark */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.9rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(6, 107, 163, 0.12);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

/* ---------- Toast notifications (goodbye ugly alert boxes) ---------- */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 150%);
  background: var(--ink);
  color: var(--white);
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  max-width: min(90vw, 420px);
  border-left: 4px solid var(--accent);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}

.toast.error { border-left-color: #f87171; }
.toast.show { transform: translate(-50%, 0); }
.toast i { flex-shrink: 0; }

/* ---------- 3D tilt (desktop pointers only) ---------- */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card, .value-card { transform-style: preserve-3d; }
  .service-card.tilting, .value-card.tilting {
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  }
  .service-card .icon-badge, .value-card .icon-badge {
    transform: translateZ(30px); /* icon floats above the tilting card */
  }
}
