/* ── Premium polish layer ── */

body {
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }
body.menu-open { overflow: hidden; }

/* Grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav polish */
.nav {
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after { width: 100%; }
.nav-links .nav-cta::after { display: none; }
.nav-links .btn::after { display: none; }

/* Button shimmer */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Hero refinements */
.hero-bg {
  background-position: center top;
  background-size: 100% auto;
  animation: none;
  transform: none;
  will-change: auto;
}
.hero-overlay {
  background:
    linear-gradient(100deg, rgba(21, 26, 63, 0.82) 0%, rgba(21, 26, 63, 0.55) 34%, rgba(21, 26, 63, 0.22) 58%, rgba(21, 26, 63, 0.08) 100%),
    linear-gradient(to bottom, transparent 0%, transparent 24%, rgba(21, 26, 63, 0.45) 46%, rgba(21, 26, 63, 0.88) 68%);
}
.hero h1 { max-width: 13ch; text-wrap: balance; }
.hero-sub { text-wrap: pretty; }

.hero-koala {
  position: relative;
  padding-bottom: 1rem;
}
.hero-koala::before {
  content: "";
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45) 0%, transparent 70%);
  filter: blur(4px);
}
.hero-koala-ring {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,194,25,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.hero-koala-bubble {
  animation: bubblePop 0.6s var(--ease) 1.2s both;
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.92) translateX(8px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

.stat-card {
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 194, 25, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

/* Wave dividers */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg { display: block; width: 100%; height: auto; }

/* Trust strip polish */
.trust-strip {
  padding: 0;
  border-bottom: none;
  position: relative;
}
.trust-strip::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--red));
  background-size: 200% 100%;
  animation: trustBar 6s linear infinite;
}
@keyframes trustBar {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.trust-inner {
  padding: 1.1rem 0;
  gap: 0;
  justify-content: space-between;
}
.trust-item {
  flex: 1;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  background: linear-gradient(135deg, rgba(240,194,25,0.2), rgba(213,40,47,0.15));
  border-radius: 10px;
}

/* Meet Cleveland stage */
.meet-cleveland {
  padding: 6rem 0;
}
.koala-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem 1rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 26, 63, 0.06);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.koala-stage-floor {
  width: 80%;
  height: 24px;
  margin-top: -8px;
  background: radial-gradient(ellipse, rgba(21,26,63,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.koala-speech {
  background: linear-gradient(135deg, var(--white), #f8f6f2);
  border-left: 3px solid var(--red);
}
.koala-speech::before { display: none; }
.koala-perk {
  padding: 0.65rem 1rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(21,26,63,0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.koala-perk:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

/* Service cards — image headers */
.service-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.service-card:hover {
  border-color: rgba(213, 40, 47, 0.12);
}
.service-card .service-num {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: auto;
  z-index: 2;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(21, 26, 63, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  line-height: 1.4;
}

/* COLT mockup polish */
.colt-mockup {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}
.colt-visual:hover .colt-mockup {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.colt-mockup-koala {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  width: 5.5rem;
  z-index: 2;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.35));
  animation: koala-idle 3.2s ease-in-out 0.5s infinite;
  transform-origin: 50% 100%;
}
.colt-search-bar {
  animation: searchPulse 3s ease-in-out infinite;
}
@keyframes searchPulse {
  0%, 100% { border-color: rgba(21,26,63,0.08); }
  50% { border-color: rgba(213,40,47,0.25); }
}
.colt-product-row {
  transition: transform 0.2s, box-shadow 0.2s;
}
.colt-product-row:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(21,26,63,0.08);
}
.colt-product-row:nth-child(1) { animation: rowIn 0.5s var(--ease) 0.2s both; }
.colt-product-row:nth-child(2) { animation: rowIn 0.5s var(--ease) 0.4s both; }
.colt-product-row:nth-child(3) { animation: rowIn 0.5s var(--ease) 0.6s both; }
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* About image */
.about-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,26,63,0.35) 0%, transparent 50%);
  pointer-events: none;
}
.about-image-wrap img {
  transition: transform 8s var(--ease);
}
.about-image-wrap:hover img { transform: scale(1.04); }

/* Contact */
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-header .section-lead { margin-inline: auto; }

/* Floating Cleveland FAB */
.koala-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.1rem 0.5rem 0.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  border: 2px solid rgba(240,194,25,0.4);
  box-shadow: 0 8px 32px rgba(21,26,63,0.35), 0 0 0 0 rgba(240,194,25,0.3);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: fabPulse 3s ease-in-out infinite;
}
.koala-fab img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}
.koala-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(21,26,63,0.4);
  animation: none;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(21,26,63,0.35), 0 0 0 0 rgba(240,194,25,0.2); }
  50% { box-shadow: 0 8px 32px rgba(21,26,63,0.35), 0 0 0 8px rgba(240,194,25,0); }
}

/* Footer */
.footer {
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--red), var(--amber), transparent);
}

/* Section headers centred variant */
.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header-center .section-lead { margin-inline: auto; }

@media (max-width: 960px) {
  .trust-item {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem;
  }
  .colt-mockup { transform: none; }
  .colt-mockup-koala { width: 4rem; right: 0.5rem; bottom: -1rem; }
  .hero-koala-bubble { display: none; }
}

@media (max-width: 720px) {
  .hero-colt-card { max-width: 220px; margin-bottom: 1.5rem; }
  .hero-colt-card-logo { max-width: 170px; }
  .koala-fab span { display: none; }
  .koala-fab { padding: 0.5rem; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { opacity: 1; }
  .colt-mockup { transform: none; }
}

/* ── Polish v2 ── */
.hero {
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(21, 26, 63, 0.55));
  pointer-events: none;
  z-index: 1;
}
.hero-layout {
  align-items: end;
  min-height: calc(100vh - var(--nav-h) - 4rem);
  min-height: calc(100dvh - var(--nav-h) - 4rem);
}
.hero-koala {
  align-self: end;
  justify-self: end;
  margin-bottom: 0;
  margin-top: auto;
  padding-top: 2rem;
  margin-left: 0.5rem;
}
.hero-koala .koala-mascot,
.hero-koala .hero-koala-video {
  width: clamp(100px, 12vw, 165px);
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .hero-koala {
    justify-self: center;
    align-self: end;
    order: 10;
    margin-top: 0.5rem;
    padding-top: 0;
    align-items: center;
  }
  .hero-koala-bridge {
    position: static;
    width: min(16rem, 88vw);
    margin: 0 auto 0.65rem;
  }
  .hero-koala-bubble::after {
    top: auto;
    bottom: -6px;
    right: 50%;
    left: auto;
    margin-right: -6px;
    transform: rotate(45deg);
    border-right: none;
    border-bottom: 1px solid rgba(21, 26, 63, 0.09);
    border-left: 1px solid rgba(21, 26, 63, 0.09);
  }
  .hero-koala .koala-mascot,
  .hero-koala .hero-koala-video {
    width: clamp(90px, 20vw, 140px);
  }
}
.nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(21, 26, 63, 0.55), transparent);
}
.section-title {
  text-wrap: balance;
}
.services-grid {
  counter-reset: service;
}
.service-card {
  background: linear-gradient(160deg, var(--white) 0%, #fdfcfa 100%);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at top right, rgba(240, 194, 25, 0.06), transparent 55%);
  pointer-events: none;
}
.meet-cleveland {
  background:
    radial-gradient(ellipse 70% 50% at 15% 40%, rgba(213, 40, 47, 0.04), transparent),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%);
}
.koala-stage {
  border: 1px solid rgba(21, 26, 63, 0.08);
  box-shadow: 0 24px 60px rgba(21, 26, 63, 0.1);
}
.colt-section {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(213, 40, 47, 0.12), transparent 50%),
    var(--navy);
}
.contact-card {
  background: linear-gradient(135deg, var(--white), #faf9f7);
}
.trust-inner {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trust-inner::-webkit-scrollbar { display: none; }
@media (min-width: 961px) {
  .trust-item { min-width: 0; }
}
/* ── Polish v3 ── */
.hero-sub {
  border-left: 3px solid rgba(240, 194, 25, 0.5);
  padding-left: 1rem;
  margin-left: 0.1rem;
}
.meet-cleveland {
  border-top: 1px solid rgba(21, 26, 63, 0.05);
}
.trust-item-koala img {
  animation: koala-idle 3.2s ease-in-out 1s infinite;
  transform-origin: 50% 100%;
}

@media (max-width: 960px) {
  .trust-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-inline: 4vw;
  }
  .trust-item {
    flex: 0 0 auto;
    min-width: max-content;
    border-right: none;
    border-bottom: none;
    padding: 0.65rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
  }
}
