/* Taskquatch website freshness layer – modern tokens and homepage polish */

:root {
  --fresh-container: 1120px;
  --fresh-section-y: 88px;
  --fresh-radius-lg: 28px;
  --fresh-radius-md: 20px;
  --fresh-radius-sm: 14px;
  --fresh-line: rgba(15, 27, 36, 0.1);
  --fresh-shadow: 0 24px 70px rgba(15, 27, 36, 0.1);
  --fresh-shadow-soft: 0 16px 48px rgba(15, 27, 36, 0.08);
  --fresh-surface: #ffffff;
  --fresh-surface-soft: #f7f4ef;
  --fresh-muted: rgba(15, 27, 36, 0.68);
}

/* Softer page backdrop */
body {
  background:
    radial-gradient(circle at top left, rgba(0, 63, 78, 0.06), transparent 34rem),
    linear-gradient(180deg, var(--brand-cream) 0%, #ffffff 100%);
}

/* Frosted sticky navigation */
.navbar.navbar-fixed-top {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

.navbar.navbar-fixed-top.navbar-fresh-glass,
.navbar.navbar-fixed-top:not(.navbar-transparent) {
  background: rgba(0, 63, 78, 0.9) !important;
  background-color: rgba(0, 63, 78, 0.9) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 40px rgba(15, 27, 36, 0.08);
}

.navbar.navbar-fixed-top.navbar-transparent:not(.navbar-fresh-glass) {
  background: rgba(0, 63, 78, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.navbar.navbar-fixed-top.navbar-fresh-glass .navbar-nav > li > a,
.navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar.navbar-fixed-top.navbar-fresh-glass .navbar-nav > li > a:hover,
.navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a:hover {
  color: var(--brand-cream) !important;
}

.navbar.navbar-fixed-top .navbar-nav > li > a.nav-cta {
  margin-left: 6px;
  padding: 10px 18px !important;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(255, 144, 119, 0.28);
}

.navbar-logo-dark,
.navbar.navbar-fresh-glass .navbar-logo-dark,
.navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-logo-dark {
  display: none !important;
}

.navbar.navbar-fresh-glass .navbar-logo-light,
.navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-logo-light {
  display: block !important;
}

@media (max-width: 991px) {
  .navbar.navbar-fixed-top.navbar-transparent,
  .navbar.navbar-fixed-top.navbar-color-on-scroll {
    background: rgba(0, 63, 78, 0.92) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  }

  .navbar.navbar-fixed-top .navbar-nav > li > a {
    color: #ffffff !important;
  }

  .navbar.navbar-fixed-top .navbar-toggle .icon-bar {
    background-color: #ffffff;
  }

  .navbar.navbar-fixed-top .navbar-logo-light {
    display: block !important;
  }

  .navbar.navbar-fixed-top .navbar-logo-dark {
    display: none !important;
  }
}

/* Hero typography */
.tt-main-header {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 144, 119, 0.12), transparent 24rem),
    linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-soft) 100%);
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(249, 247, 242, 0.95);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero product stack */
.hero-product-stack {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  min-height: 500px;
}

.hero-stack-glow {
  position: absolute;
  inset: 58px 4px 20px 44px;
  border-radius: 36px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(204, 251, 241, 0.12)
  );
  transform: rotate(3deg);
  z-index: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.hero-float-card {
  display: none;
}

.hero-product-stack .hero-mockup {
  position: relative;
  z-index: 2;
  min-height: 0;
  margin-top: 0;
  justify-content: center;
}

.hero-product-stack .hero-mockup-img {
  width: 106%;
  max-width: 560px !important;
  filter: drop-shadow(0 24px 58px rgba(0, 0, 0, 0.28));
  transform: translateY(4px);
}

@media (max-width: 991px) {
  .hero-product-stack {
    max-width: 360px;
    margin: 34px auto 0;
    min-height: 420px;
  }

  .hero-product-stack .hero-mockup-img {
    width: 100%;
  }
}

/* Section rhythm and headings */
.section-padding {
  padding-top: var(--fresh-section-y);
  padding-bottom: var(--fresh-section-y);
}

.section-padding .title,
.main .section-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-description {
  color: var(--fresh-muted) !important;
  font-size: 1.05rem;
  line-height: 1.65;
}

.light-grey-bg,
.section-padding.light-grey-bg {
  background: var(--fresh-surface-soft) !important;
  border-top: 1px solid var(--fresh-line);
  border-bottom: 1px solid var(--fresh-line);
}

/* Card chrome */
.feature-card,
.story-card,
.step-item,
.community-stat-inline,
.service-card-catalog,
.why-bar {
  border-radius: var(--fresh-radius-lg) !important;
  border: 1px solid var(--fresh-line);
  box-shadow: var(--fresh-shadow-soft);
}

.feature-card,
.story-card {
  background: var(--fresh-surface) !important;
}

.feature-card:hover,
.story-card:hover,
a.common-task-card:hover .feature-card {
  transform: translateY(-4px);
  box-shadow: var(--fresh-shadow);
}

.feature-card p,
.story-content,
.step-content p {
  color: var(--fresh-muted) !important;
}

.step-number,
.step-number-icon {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 63, 78, 0.12);
}

.trust-glass {
  border-radius: var(--fresh-radius-md);
}

.service-match-search-inner {
  border-radius: 999px !important;
}

.service-match-search-inner input {
  border-radius: 999px 0 0 999px;
}

.hero-cta-primary,
.btn.hero-cta-glow {
  border-radius: 999px !important;
  box-shadow: 0 14px 32px rgba(255, 144, 119, 0.32);
}

.hero-cta-secondary {
  border-radius: 999px !important;
}

/* Scroll reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-reveal-delay="1"] {
  transition-delay: 80ms;
}

.reveal[data-reveal-delay="2"] {
  transition-delay: 160ms;
}

.reveal[data-reveal-delay="3"] {
  transition-delay: 240ms;
}

.reveal[data-reveal-delay="4"] {
  transition-delay: 320ms;
}

.reveal[data-reveal-delay="5"] {
  transition-delay: 400ms;
}

.reveal[data-reveal-delay="6"] {
  transition-delay: 480ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
