  /* ── Custom Styles for Johnson & Johnson Masonry ── */

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Selection color */
  ::selection {
    background: #065f46;
    color: #fefdf8;
  }

  /* ── Hero Animations ── */
  .hero-eyebrow {
    animation: fadeInDown 0.8s ease-out both;
  }

  .hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
  }

  .hero-subheadline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
  }

  .hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s both;
  }

  .hero-trust {
    animation: fadeInUp 0.8s ease-out 0.8s both;
  }

  .hero-scroll {
    animation: fadeIn 1s ease-out 1.2s both;
  }

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

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

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ── Scroll Reveal (progressive enhancement) ── */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Default visible state for reduced-motion / no-JS */
  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* Fallback: always show reveals if JS is blocked */
  .no-js .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  /* ── Navbar transitions ── */
  #navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  }

  #navbar.scrolled .nav-logo-text {
    color: #1c1917;
  }

  #navbar.scrolled .nav-logo-sub {
    color: #065f46;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f5f5f4;
  }

  ::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #059669;
  }

  /* ── Focus visible styles ── */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* ── Mobile menu animation ── */
  #mobile-menu {
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 500px;
    }
  }

  /* ── Gallery hover image quality ── */
  .group img {
    will-change: transform;
  }

  /* ── Form focus ring custom ── */
  input:focus,
  textarea:focus,
  select:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  }

  /* ── Print styles ── */
  @media print {
    #navbar, #back-to-top, .hero-scroll {
      display: none;
    }

    body {
      color: #000;
      background: #fff;
    }

    .scroll-reveal {
      opacity: 1;
      transform: none;
    }
  }
