/* ==========================================================================
   WOOLLEMIA INFOSEC — Section Optimisation Layer
   Loaded AFTER woollemia.css. Hero section is intentionally untouched.
   Improves layout rhythm, colour depth, hover states and micro-animations
   for every non-hero section.
   ========================================================================== */

:root {
  --wm-ink: #0b132b;
  --wm-accent: #0066ff;
  --wm-accent-2: #00c8ff;
  --wm-lift: 0 24px 48px -24px rgba(11, 19, 43, 0.28), 0 2px 6px rgba(11, 19, 43, 0.04);
  --wm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wm-sheen {
  from { transform: translateX(-120%); }
  to   { transform: translateX(220%); }
}
@keyframes wm-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}
@keyframes wm-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}

/* --------------------------------------------------------------------------
   1. Section rhythm — alternating tone bands + hairline separators
   -------------------------------------------------------------------------- */
.why-section,
.wm-svc,
.poc-section,
.wm-cases,
.workflow-section,
.wm-certs,
.wm-faq,
.wm-tools2 {
  position: relative;
}

.why-section::before,
.wm-svc::before,
.poc-section::before,
.wm-cases::before,
.wm-certs::before,
.wm-faq::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 102, 255, 0.28) 22%,
    rgba(0, 200, 255, 0.35) 50%,
    rgba(0, 102, 255, 0.28) 78%,
    transparent
  );
  pointer-events: none;
}

/* Soft ambient light in the tinted sections */
.why-section::after,
.wm-cases::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.09), transparent 68%);
  pointer-events: none;
  animation: wm-drift 14s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   2. "Why Woollemia" commitment cards
   -------------------------------------------------------------------------- */
.why-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--wm-ease),
    box-shadow 0.45s var(--wm-ease),
    border-color 0.45s var(--wm-ease);
}

.why-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--wm-accent), var(--wm-accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--wm-ease);
}

.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--wm-ease);
  pointer-events: none;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--wm-lift);
  border-color: rgba(0, 102, 255, 0.25);
}
.why-card:hover::before { transform: scaleY(1); }
.why-card:hover::after  { opacity: 1; }

.why-card .why-stat,
.why-card .stat,
.why-card h3 + span,
.why-card .why-num {
  background: linear-gradient(120deg, #0066ff, #00c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Services image tiles
   -------------------------------------------------------------------------- */
.wm-svc__card {
  overflow: hidden;
  transition: transform 0.5s var(--wm-ease), box-shadow 0.5s var(--wm-ease);
}
.wm-svc__card:hover {
  transform: translateY(-10px);
  box-shadow: var(--wm-lift);
}
.wm-svc__card img {
  transition: transform 0.9s var(--wm-ease), filter 0.6s var(--wm-ease);
}
.wm-svc__card:hover img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}
.wm-svc__card .wm-svc__label,
.wm-svc__card .wm-svc__title {
  position: relative;
  overflow: hidden;
  transition: background 0.45s var(--wm-ease), letter-spacing 0.45s var(--wm-ease);
}
.wm-svc__card:hover .wm-svc__label,
.wm-svc__card:hover .wm-svc__title {
  background: linear-gradient(120deg, #0b1f4d, #0066ff);
  letter-spacing: 0.01em;
}
.wm-svc__card .wm-svc__label::after,
.wm-svc__card .wm-svc__title::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
}
.wm-svc__card:hover .wm-svc__label::after,
.wm-svc__card:hover .wm-svc__title::after {
  animation: wm-sheen 0.9s var(--wm-ease) forwards;
}

/* --------------------------------------------------------------------------
   4. Free POC + Compliance readiness
   -------------------------------------------------------------------------- */
.poc-section .card {
  transition: transform 0.45s var(--wm-ease), box-shadow 0.45s var(--wm-ease);
}
.poc-section .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wm-lift);
}
.poc-section .price-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.poc-section .price-line .strike { order: 2; }
.poc-section .price-line .big { order: 1; }

.poc-section input:focus,
.poc-section textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(0, 102, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.14);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.cs-card {
  transition: transform 0.45s var(--wm-ease), box-shadow 0.45s var(--wm-ease),
    background 0.45s var(--wm-ease);
}
.cs-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.55);
}
.cs-section .cs-eyebrow .dot,
.cs-section .dot {
  animation: wm-pulse-dot 2.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   5. Case studies
   -------------------------------------------------------------------------- */
.wm-case {
  overflow: hidden;
  transition: transform 0.5s var(--wm-ease), box-shadow 0.5s var(--wm-ease),
    border-color 0.5s var(--wm-ease);
}
.wm-case:hover {
  transform: translateY(-10px);
  box-shadow: var(--wm-lift);
  border-color: rgba(0, 102, 255, 0.22);
}
.wm-case img {
  transition: transform 1s var(--wm-ease), filter 0.6s var(--wm-ease);
}
.wm-case:hover img {
  transform: scale(1.07);
  filter: saturate(1.1);
}
.wm-case a[class*="link"],
.wm-case .wm-case__link {
  transition: color 0.3s ease, gap 0.3s var(--wm-ease);
}
.wm-case:hover a[class*="link"],
.wm-case:hover .wm-case__link {
  color: var(--wm-accent);
}

/* --------------------------------------------------------------------------
   6. Certifications
   -------------------------------------------------------------------------- */
.wm-cert {
  transition: transform 0.45s var(--wm-ease), box-shadow 0.45s var(--wm-ease),
    border-color 0.45s var(--wm-ease), background 0.45s var(--wm-ease);
}
.wm-cert img,
.wm-cert svg {
  transition: filter 0.5s var(--wm-ease), transform 0.5s var(--wm-ease);
  filter: grayscale(0.55) contrast(0.95);
}
.wm-cert:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 20px 40px -22px rgba(0, 102, 255, 0.5);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
}
.wm-cert:hover img,
.wm-cert:hover svg {
  filter: grayscale(0) contrast(1);
  transform: scale(1.07);
}

/* --------------------------------------------------------------------------
   7. Platform & tooling grid
   -------------------------------------------------------------------------- */
.wm-tool2 {
  transition: transform 0.35s var(--wm-ease), box-shadow 0.35s var(--wm-ease),
    border-color 0.35s var(--wm-ease), background 0.35s var(--wm-ease);
}
.wm-tool2:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, #ffffff, #eff5ff);
  border-color: rgba(0, 102, 255, 0.28);
  box-shadow: 0 18px 34px -20px rgba(0, 102, 255, 0.45);
}
.wm-tool2 [class*="icon"] {
  transition: transform 0.35s var(--wm-ease);
}
.wm-tool2:hover [class*="icon"] {
  transform: scale(1.12) rotate(-3deg);
}

/* Filter chips */
.wm-tools2 button,
.wm-tools2 .chip {
  transition: transform 0.25s var(--wm-ease), background 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease;
}
.wm-tools2 button:hover,
.wm-tools2 .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(0, 102, 255, 0.6);
}

/* --------------------------------------------------------------------------
   8. FAQ
   -------------------------------------------------------------------------- */
.wm-faq__item {
  position: relative;
  transition: background 0.35s ease;
  border-radius: 12px;
}
.wm-faq__item:hover {
  background: linear-gradient(90deg, rgba(0, 102, 255, 0.05), transparent 70%);
}
.wm-faq__item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--wm-accent), var(--wm-accent-2));
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.35s ease, transform 0.35s var(--wm-ease);
}
.wm-faq__item.is-open::before,
.wm-faq__item.active::before,
.wm-faq__item[open]::before {
  opacity: 1;
  transform: scaleY(1);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0066ff, #00c8ff, #0066ff);
  background-size: 200% 100%;
}
.footer-links a {
  display: inline-block;
  transition: transform 0.3s var(--wm-ease), color 0.3s ease;
}
.footer-links a:hover {
  transform: translateX(6px);
  color: var(--accent-cyan);
}
.social-icon {
  transition: transform 0.35s var(--wm-ease), background 0.35s ease, color 0.35s ease,
    box-shadow 0.35s ease;
}
.social-icon:hover {
  transform: translateY(-4px) scale(1.06);
  background: linear-gradient(135deg, #0066ff, #00c8ff);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(0, 200, 255, 0.7);
}
.footer-contact-item {
  transition: color 0.3s ease, transform 0.3s var(--wm-ease);
}
.footer-contact-item:hover {
  color: #fff;
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. Shared: buttons + section headers (outside the hero)
   -------------------------------------------------------------------------- */
body :not(.hero-section) > * .btn-primary,
.footer .btn-primary,
.wm-faq .btn-primary,
.poc-section .btn-primary,
.contact-section .btn-primary {
 position: relative;
    overflow: hidden;
    top: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif !important;
}

.poc-section .btn-primary:hover,
.contact-section .btn-primary:hover,
.wm-faq .btn-primary:hover {
  box-shadow: 0 16px 30px -14px rgba(0, 102, 255, 0.65);
  transform: translateY(-2px);
}

.section-header h2 {
  position: relative;
}

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