/* ==========================================================================
   Greenway Packers and Movers — Site styles
   Brand palette: primary #499A13 · secondary #BBDC12 · accent #8ECA3C · dark #276F27
   Typography: fluid clamp() scale via --fs-* variables (responsive, no fixed sizes).
   ========================================================================== */

:root {
  --gw-primary: #499a13;
  --gw-secondary: #bbdc12;
  --gw-accent: #8eca3c;
  --gw-dark: #276f27;
  --gw-whatsapp: #25d366;
  --gw-bg: #f7f7f8;

  /* Fluid, responsive type scale — adapts across mobile / tablet / desktop.
     Each token: clamp(min, preferred + viewport, max). No fixed sizes. */
  --fs-2xs: clamp(0.72rem, 0.68rem + 0.18vw, 0.82rem);
  --fs-xs: clamp(0.78rem, 0.73rem + 0.24vw, 0.9rem);
  --fs-sm: clamp(0.86rem, 0.8rem + 0.3vw, 1rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.32vw, 1.08rem);
  --fs-md: clamp(1.02rem, 0.94rem + 0.42vw, 1.2rem);
  --fs-lg: clamp(1.15rem, 1.02rem + 0.7vw, 1.45rem);
  --fs-xl: clamp(1.3rem, 1.08rem + 1.1vw, 1.75rem);
  --fs-h3: clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  --fs-h2: clamp(1.3rem, 1.05rem + 1.05vw, 1.85rem);
  --fs-h1: clamp(1.75rem, 1.35rem + 2.2vw, 2.75rem);
  --fs-hero: clamp(2.1rem, 1.4rem + 3.4vw, 3.85rem);
  --fs-stat: clamp(2.1rem, 1.5rem + 2.8vw, 3.25rem);

  --lh-tight: 1.1;
  --lh-heading: 1.22;
  --lh-body: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Base + typography (site-wide sizing rules)                                 */
/* -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  overflow-x: clip;
}

body {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

p {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}
small,
.gw-small {
  font-size: var(--fs-xs);
}

/* Fluid heading scale (responsive, no fixed sizes) */
.gw-h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
}
.gw-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: -0.012em;
}
.gw-h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
}
.gw-h4 {
  font-size: var(--fs-md);
  line-height: 1.35;
}
.gw-lead {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}
.gw-tagline {
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
}
.gw-stat-num {
  font-size: var(--fs-stat);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Homepage hero — largest display type */
.gw-hero-title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}
.gw-hero-sub {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

/* Buttons */
button,
.gw-btn,
.gw-btn-primary,
[data-quote-open] {
  font-size: var(--fs-xs);
}

/* Utility container */
.gw-container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* Navigation                                                                 */
/* -------------------------------------------------------------------------- */
.gw-nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gw-dark);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.gw-nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gw-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.gw-nav-link:hover {
  color: var(--gw-primary);
}
.gw-nav-link:hover::after,
.gw-nav-link.is-active::after {
  transform: scaleX(1);
}
.gw-nav-link.is-active {
  color: var(--gw-primary);
}

.gw-header.is-scrolled {
  box-shadow: 0 8px 30px -12px rgba(39, 111, 39, 0.18);
}

.gw-dropdown-menu {
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

/* -------------------------------------------------------------------------- */
/* Mobile menu                                                                */
/* -------------------------------------------------------------------------- */
.gw-mobile-menu.is-open {
  visibility: visible;
}
.gw-mobile-menu.is-open .gw-mobile-overlay {
  opacity: 1;
}
.gw-mobile-menu.is-open .gw-mobile-panel {
  transform: translateX(0);
}

/* -------------------------------------------------------------------------- */
/* Cards, glass, decorative                                                   */
/* -------------------------------------------------------------------------- */
.gw-card {
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px -6px rgba(39, 111, 39, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.gw-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -18px rgba(39, 111, 39, 0.3);
  border-color: rgba(73, 154, 19, 0.25);
}

.gw-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gw-noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.gw-dots {
  background-image: radial-gradient(rgba(73, 154, 19, 0.18) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

.gw-mesh {
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(142, 202, 60, 0.2), transparent 60%),
    radial-gradient(50% 50% at 90% 20%, rgba(187, 220, 18, 0.16), transparent 55%),
    radial-gradient(55% 55% at 80% 100%, rgba(73, 154, 19, 0.14), transparent 60%);
}

.gw-gradient-text {
  background: linear-gradient(120deg, var(--gw-primary), var(--gw-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------------------- */
/* Buttons (shared)                                                           */
/* -------------------------------------------------------------------------- */
.gw-btn-primary {
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.gw-btn-primary:hover {
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Scroll reveal animations                                                   */
/* -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.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;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* -------------------------------------------------------------------------- */
/* Keyframe effects                                                           */
/* -------------------------------------------------------------------------- */
@keyframes gw-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.gw-anim-float {
  animation: gw-float 6s ease-in-out infinite;
}

@keyframes gw-float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-16px) rotate(3deg);
  }
}
.gw-anim-float-slow {
  animation: gw-float-slow 9s ease-in-out infinite;
}

@keyframes gw-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}
.gw-ping {
  animation: gw-ping 2s ease-out infinite;
}

@keyframes gw-spin {
  to {
    transform: rotate(360deg);
  }
}
.gw-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: gw-spin 0.7s linear infinite;
}

/* Marquee (partners strip) */
.gw-marquee {
  overflow: hidden;
}
.gw-client-logo {
  max-width: 80%;
  max-height: 72%;
}
.gw-marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: gw-marquee 28s linear infinite;
  animation-play-state: paused;
  white-space: nowrap;
}
.gw-marquee-track.is-ready {
  animation-play-state: running;
}
.gw-marquee:hover .gw-marquee-track.is-ready {
  animation-play-state: paused;
}
@keyframes gw-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--gw-shift, -50%));
  }
}

/* -------------------------------------------------------------------------- */
/* Counters                                                                   */
/* -------------------------------------------------------------------------- */
.gw-counter {
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------- */
/* Process connector                                                          */
/* -------------------------------------------------------------------------- */
.gw-step-line::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(73, 154, 19, 0.35), rgba(73, 154, 19, 0.05));
}

/* -------------------------------------------------------------------------- */
/* Accordion (FAQ)                                                            */
/* -------------------------------------------------------------------------- */
.gw-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.gw-acc.is-open .gw-acc-body {
  max-height: 400px;
}
.gw-acc.is-open .gw-acc-icon {
  transform: rotate(180deg);
}
.gw-acc-icon {
  transition: transform 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* Gallery + lightbox                                                         */
/* -------------------------------------------------------------------------- */
.gw-filter-btn.is-active {
  background: var(--gw-primary);
  color: #fff;
  border-color: var(--gw-primary);
}
.gw-blog-cat.is-active {
  background: var(--gw-primary);
  color: #fff;
  border-color: var(--gw-primary);
}
.gw-blog-item.is-hidden {
  display: none;
}
.gw-gallery-item {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.gw-gallery-item.is-hidden {
  display: none;
}

.gw-lightbox {
  transition: opacity 0.3s ease;
}
.gw-lightbox.is-open {
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */
.gw-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gw-input.just-validate-error-field,
.gw-input.is-invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

.just-validate-error-label {
  color: #e11d48 !important;
  font-size: var(--fs-2xs) !important;
  margin-top: 4px !important;
  display: block;
}

.gw-form-msg.is-success {
  background: var(--gw-primary);
}
.gw-form-msg.is-error {
  background: #e11d48;
}

.gw-submit.is-loading {
  opacity: 0.85;
  cursor: not-allowed;
}
.gw-submit.is-loading .gw-submit-text {
  display: none;
}
.gw-submit.is-loading .gw-submit-loading {
  display: inline-flex;
}

/* -------------------------------------------------------------------------- */
/* Modal                                                                      */
/* -------------------------------------------------------------------------- */
.gw-modal.is-open {
  display: block;
}
.gw-modal.is-open .gw-modal-overlay {
  opacity: 1;
}
.gw-modal.is-open .gw-modal-panel {
  opacity: 1;
  transform: none;
}
body.gw-no-scroll {
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Back to top                                                                */
/* -------------------------------------------------------------------------- */
#gw-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Give body padding on mobile so sticky CTA never covers content */
@media (max-width: 1023px) {
  body {
    padding-bottom: 56px;
  }
}

/* Blockquote / testimonial */
.gw-quote-mark {
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  line-height: 1;
  color: rgba(73, 154, 19, 0.15);
}

/* Prose (blog) — fluid, readable long-form type */
.gw-prose h2 {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--gw-dark);
  line-height: 1.25;
  margin: 1.8rem 0 0.7rem;
}
.gw-prose h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--gw-dark);
  margin: 1.3rem 0 0.5rem;
}
.gw-prose p {
  font-size: var(--fs-base);
  color: #4b5563;
  line-height: var(--lh-body);
  margin-bottom: 1rem;
}
.gw-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: var(--fs-base);
  color: #4b5563;
  line-height: var(--lh-body);
}
.gw-prose li {
  margin-bottom: 0.4rem;
}
.gw-prose a {
  color: var(--gw-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Phase 1 UI/UX enhancements
   ========================================================================== */

/* Content entrance on load */
.gw-page-enter {
  animation: gw-enter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes gw-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Premium mega dropdown ---- */
.gw-mega {
  width: 40rem;
  max-width: calc(100vw - 2rem);
}
.gw-mega-item {
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.gw-mega-item:hover {
  transform: translateY(-2px);
}
.gw-mega-figure {
  background: radial-gradient(120% 120% at 20% 0%, rgba(142, 202, 60, 0.22), transparent 60%), linear-gradient(135deg, var(--gw-dark), var(--gw-primary));
}

/* ---- Header nav refinements ---- */
.gw-nav {
  gap: 0.4rem;
}
.gw-nav-link {
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-sm);
}
@media (min-width: 1200px) {
  .gw-nav {
    gap: 0.65rem;
  }
  .gw-nav-link {
    padding: 0.65rem 1.25rem;
  }
}

/* ---- Hero decorative helpers ---- */
.gw-hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  z-index: 0;
}
.gw-hero-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
}
.gw-chip-float {
  animation: gw-float 6s ease-in-out infinite;
}
.gw-chip-float.delay {
  animation-delay: 1.4s;
}
.gw-shine {
  background-size: 200% auto;
  background-image: linear-gradient(100deg, var(--gw-secondary) 0%, #eaffa0 30%, var(--gw-secondary) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gw-shine 5s linear infinite;
}
@keyframes gw-shine {
  to {
    background-position: 200% center;
  }
}

/* ---- Seamless, draggable testimonials marquee ---- */
.gw-tmarquee {
  overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gw-tmarquee.is-dragging {
  cursor: grabbing;
}
.gw-tmarquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  touch-action: pan-y;
}
.gw-testimonial-card {
  width: clamp(17rem, 26vw, 22rem);
  flex: 0 0 auto;
  user-select: none;
}

/* ---- Section divider (soft wave already inline); decorative dot grid ---- */
.gw-deco-dots {
  background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

/* ---- Entrance micro-animations for reveal children ---- */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  #gw-page-transition,
  .gw-page-enter,
  .gw-chip-float,
  .gw-shine,
  .gw-pt-logo {
    animation: none !important;
    transition: none !important;
  }
  .gw-tmarquee-track {
    animation: none !important;
  }
}

/* ---- Pricing table ---- */
.gw-table-wrap {
  padding: 0;
  border-radius: 1.25rem;
}
.gw-price-table thead tr th:first-child {
  border-radius: 0;
}
.gw-table-wrap::-webkit-scrollbar {
  height: 8px;
}
.gw-table-wrap::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.gw-table-wrap::-webkit-scrollbar-thumb {
  background: var(--gw-primary);
  border-radius: 999px;
}

/* -------------------------------------------------------------------------- */
/* Service landing pages: editorial guide and inline story imagery            */
/* -------------------------------------------------------------------------- */
.gw-service-intro {
  align-items: center;
}
.gw-service-intro-copy {
  max-width: 44rem;
}
.gw-service-intro-list {
  display: grid;
  gap: 0.65rem;
}
.gw-service-intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #4b5563;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.gw-service-intro-list svg {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--gw-primary);
}
.gw-service-image {
  min-height: clamp(19rem, 30vw, 27rem);
  overflow: hidden;
  border: 1px solid rgba(73, 154, 19, 0.16);
  border-radius: 1.4rem;
  box-shadow: 0 22px 46px -24px rgba(39, 111, 39, 0.34);
}
.gw-service-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gw-service-image:hover img {
  transform: scale(1.03);
}
.gw-service-prose {
  max-width: 54rem;
}
.gw-service-prose h2:first-child {
  margin-top: 0;
}
.gw-inline-media {
  overflow: hidden;
  margin: 2rem 0;
  background: #fff;
  border: 1px solid rgba(73, 154, 19, 0.14);
  border-radius: 1.1rem;
  box-shadow: 0 14px 32px -22px rgba(39, 111, 39, 0.3);
}
.gw-inline-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gw-inline-media figcaption {
  padding: 0.75rem 1rem 0.85rem;
  color: #6b7280;
  font-size: var(--fs-xs);
  line-height: 1.45;
}
.gw-inline-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gw-inline-gallery-grid .gw-inline-media {
  margin: 0;
}
.gw-service-sidebar .gw-card:hover {
  transform: none;
}
@media (max-width: 1023px) {
  .gw-service-image {
    max-width: 42rem;
  }
}
@media (max-width: 639px) {
  .gw-service-intro {
    gap: 2.5rem;
  }
  .gw-service-image {
    min-height: 18rem;
    border-radius: 1.15rem;
  }
  .gw-inline-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Accessibility: contrast-safe brand utilities                                */
/* -------------------------------------------------------------------------- */
/* Retain the approved green palette while using the dark brand green whenever
   small text or white text needs an AA-compliant foreground/background pair. */
body .text-gray-400 {
  color: #4b5563;
}

a.text-primary,
.gw-nav-link,
.gw-nav-link:hover,
.gw-nav-link.is-active {
  color: var(--gw-dark);
}

.bg-primary.text-white {
  background-color: var(--gw-dark);
}
.bg-primary.text-white.hover\:bg-white:hover {
  background-color: #fff;
  color: var(--gw-dark);
}

.bg-primary\/10.text-primary {
  color: var(--gw-dark);
}

.bg-dark .text-white\/60,
.bg-dark .text-white\/70,
.bg-dark .text-white\/75,
.bg-dark .text-white\/80 {
  color: rgba(255, 255, 255, 0.9);
}
.bg-dark .text-secondary:not(svg) {
  color: #fff;
}

/* Trusted client carousel: keep the cards compact while giving each logo more breathing room. */
.gw-client-logo {
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.86);
  transform-origin: center;
}
