/* QlutchGrid home — custom effects beyond Tailwind utilities */

/* ── Floating glass navbar (Infosys-style) ── */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.float-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0.85rem auto 0;
  padding: 0.35rem 0.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: margin 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled .float-nav {
  margin-top: 0.65rem;
}

.float-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  justify-self: start;
}

/* Hamburger: mobile only — desktop keeps logo alone on the left */
.float-nav__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: #1a2e4e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 767px) {
  .float-nav__menu {
    display: inline-flex;
  }
}

.float-nav__menu:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.float-nav__menu:focus-visible {
  outline: 2px solid #fe785f;
  outline-offset: 2px;
}

.float-nav__logo {
  position: relative;
  display: block;
  line-height: 0;
}

.float-nav__logo img {
  display: block;
  height: 2.35rem;
  width: auto;
  transition: opacity 0.35s ease;
}

@media (min-width: 640px) {
  .float-nav__logo img {
    height: 2.65rem;
  }
}

.float-nav__logo-light {
  opacity: 1;
  visibility: visible;
}

.float-nav__logo-dark {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header.is-scrolled .float-nav__logo-light {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header.is-scrolled .float-nav__logo-dark {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* If dark logo is missing, keep light logo visible on scroll */
.site-header.is-scrolled .float-nav__logo:not(:has(.float-nav__logo-dark)) .float-nav__logo-light {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.float-nav__links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  background: rgba(198, 204, 214, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.is-scrolled .float-nav__links {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .float-nav__links {
    display: flex;
  }
}

.float-nav__links a {
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a2e4e;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.float-nav__links a:hover {
  background: rgba(2, 25, 56, 0.08);
  color: #021938;
}

.float-nav__links a[aria-current="page"] {
  background: rgba(2, 25, 56, 0.12);
  color: #021938;
  font-weight: 600;
}

.float-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  justify-self: end;
  flex-shrink: 0;
}

.float-nav__apps {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .float-nav__apps {
    display: flex;
  }
}

.float-nav__app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.float-nav__app:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(254, 120, 95, 0.45);
  color: #fe785f;
  transform: translateY(-1px);
}

.site-header.is-scrolled .float-nav__app {
  background: rgba(2, 25, 56, 0.08);
  border-color: rgba(2, 25, 56, 0.12);
  color: #021938;
}

.site-header.is-scrolled .float-nav__app:hover {
  background: rgba(2, 25, 56, 0.12);
  border-color: rgba(167, 56, 38, 0.35);
  color: #a73826;
}

.float-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 9999px;
  background: #a73826;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(167, 56, 38, 0.35);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.float-nav__cta:hover {
  background: #8f2e1f;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(167, 56, 38, 0.45);
}

.float-nav__cta-label-short {
  display: inline;
}

.float-nav__cta-label-full {
  display: none;
}

@media (min-width: 480px) {
  .float-nav__cta-label-short {
    display: none;
  }
  .float-nav__cta-label-full {
    display: inline;
  }
}

.float-nav__panel {
  display: none;
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0.55rem auto 0;
  padding: 0.75rem;
  border-radius: 1.35rem;
  background: rgba(18, 28, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.float-nav__panel.open {
  display: block;
}

.site-header.is-scrolled .float-nav__panel {
  background: rgba(236, 238, 242, 0.96);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.float-nav__panel a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.float-nav__panel a:hover,
.float-nav__panel a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-header.is-scrolled .float-nav__panel a {
  color: #1a2e4e;
}

.site-header.is-scrolled .float-nav__panel a:hover,
.site-header.is-scrolled .float-nav__panel a[aria-current="page"] {
  background: rgba(2, 25, 56, 0.08);
  color: #021938;
}

.float-nav__panel-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .float-nav__panel-apps {
  border-top-color: rgba(2, 25, 56, 0.1);
}

.float-nav__panel-apps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  font-weight: 600;
}

.site-header.is-scrolled .float-nav__panel-apps a {
  border-color: rgba(2, 25, 56, 0.12);
}

.float-nav__panel-cta {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
  padding: 0.75rem 1rem !important;
  border-radius: 9999px !important;
  background: #a73826 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 12px 28px rgba(167, 56, 38, 0.3);
}

.site-header.is-scrolled .float-nav__panel-cta {
  background: #a73826 !important;
  color: #fff !important;
}

@media (min-width: 768px) {
  .float-nav__panel-nav {
    display: none;
  }
}

@media (max-width: 767px) {
  .float-nav {
    display: flex;
    justify-content: space-between;
  }
}

.hero-grid-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black, transparent);
}

/* ── Motion: hero entrance ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes rating-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.anim-hero-badge {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}

.anim-hero-title {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.15s;
}

.anim-hero-copy {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.28s;
}

.anim-hero-cta {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}

.anim-hero-meta {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.52s;
}

.anim-hero-media {
  animation: fade-in 1s ease both;
  animation-delay: 0.2s;
}

.anim-hero-media-inner {
  animation: soft-float 6s ease-in-out infinite;
  animation-delay: 1.2s;
}

.anim-hero-rating {
  animation: rating-pop 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.65s;
}

/* ── Motion: scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Motion: navbar settle ── */
.anim-nav .float-nav {
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bar-chart span {
  transform: scaleY(0);
  transform-origin: bottom;
}

.reveal.is-visible .bar-chart span {
  animation: bar-grow 1.2s ease-out both;
}

.reveal.is-visible .bar-chart span:nth-child(1) { animation-delay: 0.1s; }
.reveal.is-visible .bar-chart span:nth-child(2) { animation-delay: 0.2s; }
.reveal.is-visible .bar-chart span:nth-child(3) { animation-delay: 0.3s; }
.reveal.is-visible .bar-chart span:nth-child(4) { animation-delay: 0.4s; }
.reveal.is-visible .bar-chart span:nth-child(5) { animation-delay: 0.5s; }
.reveal.is-visible .bar-chart span:nth-child(6) { animation-delay: 0.6s; }
.reveal.is-visible .bar-chart span:nth-child(7) { animation-delay: 0.7s; }

@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

#mobile-menu:not(.open),
.float-nav__panel:not(.open) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .anim-hero-badge,
  .anim-hero-title,
  .anim-hero-copy,
  .anim-hero-cta,
  .anim-hero-meta,
  .anim-hero-media,
  .anim-hero-media-inner,
  .anim-hero-rating,
  .anim-nav .float-nav,
  .reveal.is-visible .bar-chart span {
    animation: none !important;
  }

  .float-nav,
  .site-header.is-scrolled .float-nav {
    transition: none !important;
  }

  .bar-chart span,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #021938;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: #a73826;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #44474e;
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 10px 20px rgba(26, 46, 78, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(26, 46, 78, 0.14);
  border-color: rgba(167, 56, 38, 0.2);
}

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f2f8;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-card-media img {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(2, 25, 56, 0.88) 0%, rgba(2, 25, 56, 0.35) 55%, transparent 100%);
}

.service-card-overlay h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.service-card-overlay p {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.service-card-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(254, 120, 95, 0.9);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.service-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #021938;
}

.service-card-action span {
  color: #a73826;
}

.service-card--icon {
  min-height: 100%;
}

.service-card-icon-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1rem;
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(2, 25, 56, 0.06);
  color: #021938;
  transition: background 0.2s, color 0.2s;
}

.service-card--icon:hover .service-card-icon {
  background: #021938;
  color: #fff;
}

.service-card-icon-wrap h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #021938;
  line-height: 1.3;
}

/* Garage listing cards */
.garage-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 10px 20px rgba(26, 46, 78, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.garage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26, 46, 78, 0.12);
  border-color: rgba(167, 56, 38, 0.2);
}

.garage-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.garage-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #021938, #1a2e4e);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.garage-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 3.25rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
}

.garage-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.garage-logo-wrap.is-fallback {
  padding: 0;
  border: none;
  background: linear-gradient(135deg, #021938, #1a2e4e);
}

.garage-logo-wrap.is-fallback .garage-logo {
  display: none;
}

.garage-logo-wrap.is-fallback::after {
  content: attr(data-initials);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.garage-name {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #021938;
  line-height: 1.35;
}

.garage-location {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: #44474e;
}

.garage-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.garage-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 25, 56, 0.06);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #021938;
}

.garage-rating {
  display: none;
}

.garage-desc {
  flex: 1;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #44474e;
}

.garage-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: #a73826;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 20px rgba(167, 56, 38, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.garage-book-btn:hover {
  background: #8f2e1f;
  transform: translateY(-1px);
}

.service-card-icon-wrap p {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #44474e;
}
