/* GoPick Ghana — solid brand colors (lighter green palette) */

:root {
  --gopick-green: #4CAF50;
  --gopick-green-deep: #43A047;
  --gopick-accent: #C9941A;
  --mobile-nav-height: 4.25rem;
  --mobile-nav-safe: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1B1B1B;
  background-color: #F7F9F7;
  overflow-x: hidden;
}

/* Prevent tiny-screen horizontal scroll */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.auth-modal-panel {
  position: relative;
  width: min(92vw, 460px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(76, 175, 80, 0.14);
}

.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 27, 27, 0.04);
  color: #1B1B1B;
}

.auth-modal-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-right: 2.5rem;
  margin-bottom: 1rem;
}

.auth-modal-logo {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.auth-modal-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #1B1B1B;
}

.auth-modal-sub {
  font-size: 0.875rem;
  color: rgba(27, 27, 27, 0.55);
  margin-top: 0.15rem;
}

.auth-modal-alert {
  margin: 0.75rem 0 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.18);
  color: rgba(27, 27, 27, 0.75);
  font-size: 0.875rem;
}

.auth-form {
  display: grid;
  gap: 0.65rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(27, 27, 27, 0.75);
}

.auth-input {
  width: 100%;
  border-radius: 0.95rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(27, 27, 27, 0.14);
  background: #fff;
}

.auth-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
  border-color: rgba(76, 175, 80, 0.55);
}

.auth-btn-primary {
  width: 100%;
  border-radius: 9999px;
  padding: 0.85rem 1rem;
  background: var(--gopick-green);
  color: #fff;
  font-weight: 800;
}

.auth-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-btn-secondary {
  width: 100%;
  border-radius: 9999px;
  padding: 0.8rem 1rem;
  background: rgba(27, 27, 27, 0.05);
  color: rgba(27, 27, 27, 0.85);
  font-weight: 800;
}

.auth-hint {
  font-size: 0.75rem;
  color: rgba(27, 27, 27, 0.5);
  margin-top: -0.25rem;
}

.auth-legal {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(27, 27, 27, 0.45);
  text-align: center;
}

.font-display {
  font-family: 'Sora', 'Inter', sans-serif;
}

.font-accent {
  font-family: 'Poppins', sans-serif;
}

.text-accent {
  color: var(--gopick-accent);
}

.text-brand-green {
  color: var(--gopick-green);
}

/* Contact section — centered logo */
.contact-logo-center {
  width: 100%;
}

.contact-logo-center img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Contact bar icon boxes (matches brand banner) */
.contact-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--gopick-green);
  border-radius: 0.25rem;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(27, 27, 27, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Soft color blobs — solid fills only */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.blob-green {
  background-color: var(--gopick-green);
  opacity: 0.14;
}

.blob-accent {
  background-color: var(--gopick-accent);
  opacity: 0.12;
}

.blob-mint {
  background-color: #81C784;
  opacity: 0.14;
}

/* Glow buttons */
.btn-glow {
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.35);
  transform: translateY(-2px);
}

.btn-glow-accent:hover {
  box-shadow: 0 8px 32px rgba(201, 148, 26, 0.35);
}

/* Card hover lift */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(76, 175, 80, 0.18);
}

/* Hero — card image + content in max-w-7xl grid */
.hero-visual-col {
  min-height: auto;
}

/* Image stack — natural size, no box/container crop */
.hero-image-stack {
  position: relative;
  width: fit-content;
  max-width: 320px;
  margin-left: 0;
  margin-right: auto;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-bg-img {
  display: block;
  max-width: 280px;
  width: auto;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  object-position: left center;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
}

.hero-bg-img:not(.hero-bg-active) {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-bg-img.hero-bg-active {
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (min-width: 640px) {
  .hero-bg-img {
    max-width: 300px;
    max-height: 420px;
  }
}

@media (min-width: 1024px) {
  .hero-image-stack {
    max-width: 380px;
  }

  .hero-bg-img {
    max-width: 360px;
    max-height: 480px;
  }
}

.hero-content {
  background: #F7F9F7;
}

/* Rotating hero text slides */
.hero-slides {
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.7s;
  pointer-events: none;
}

.hero-slide-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-slide-exit {
  opacity: 0;
  transform: translateY(-12px);
}

.hero-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background-color: rgba(76, 175, 80, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot-active {
  width: 1.75rem;
  background-color: var(--gopick-green);
}

.hero-dot:not(.hero-dot-active):hover {
  background-color: rgba(76, 175, 80, 0.45);
}

/* Floating icons animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.float-icon {
  animation: float 4s ease-in-out infinite;
}

.float-icon-delay-1 { animation-delay: 0.5s; }
.float-icon-delay-2 { animation-delay: 1s; }
.float-icon-delay-3 { animation-delay: 1.5s; }

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(76, 175, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 175, 80, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Phone mockup */
.phone-frame {
  background-color: #1B1B1B;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

/* Counter pulse on animate */
.stat-value.counting {
  color: var(--gopick-green);
}

/* Navbar scrolled state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(76, 175, 80, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Section divider */
.section-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background-color: rgba(76, 175, 80, 0.22);
}

/* Testimonial quote */
.quote-mark {
  font-family: 'Sora', serif;
  line-height: 1;
}

/* Newsletter input focus */
.input-glow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
  border-color: var(--gopick-green);
}

/* Mobile menu */
.mobile-menu-enter {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Mobile bottom app navigation ─── */
@media (max-width: 1023px) {
  body.has-mobile-nav {
    padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-nav-safe) + 0.5rem);
  }

  #contact {
    scroll-margin-bottom: calc(var(--mobile-nav-height) + var(--mobile-nav-safe) + 1rem);
  }
}

.mobile-bottom-nav {
  padding-bottom: var(--mobile-nav-safe);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(76, 175, 80, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.06);
}

.mobile-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: flex-end;
  max-width: 32rem;
  margin: 0 auto;
  min-height: var(--mobile-nav-height);
  padding: 0.35rem 0.5rem 0.25rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0.25rem 0.15rem;
  color: rgba(27, 27, 27, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item.is-active {
  color: var(--gopick-green);
}

.mobile-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.mobile-nav-label {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.mobile-nav-fab {
  position: relative;
  top: -0.65rem;
}

.mobile-nav-fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--gopick-green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-fab.is-active .mobile-nav-fab-btn,
.mobile-nav-fab:active .mobile-nav-fab-btn {
  transform: scale(0.96);
}

.mobile-nav-fab.is-active {
  color: var(--gopick-green-deep);
}

.mobile-nav-label-fab {
  margin-top: 0.15rem;
}

/* Image marquee — right to left (continuous scroll) */
.marquee-viewport {
  mask-image: none;
  -webkit-mask-image: none;
  overflow-x: clip;
  max-width: 100%;
  contain: paint;
}

.marquee-runner {
  display: flex;
  flex-wrap: nowrap;
  animation: gopick-marquee-scroll 32s linear infinite;
  will-change: transform;
  max-width: 100vw;
}

.marquee-viewport:hover .marquee-runner {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

/* Simple marquee image cards */
.marquee-card {
  margin: 0;
  width: 13rem;
  flex-shrink: 0;
}

.marquee-card-frame {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.marquee-card-frame::before {
  content: none;
}

.marquee-card-frame::after {
  content: none;
}

.marquee-viewport:hover .marquee-card-frame {
  transform: none;
  box-shadow: none;
}

.marquee-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}

.marquee-card-caption,
.marquee-card-dot,
.marquee-card-tag {
  display: none !important;
}

.marquee-card-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  transition: transform 0.5s ease;
}

.marquee-viewport:hover .marquee-card-img {
  transform: none;
}

.marquee-card-overlay {
  display: none;
}

.marquee-card-caption {
  display: none;
}

.marquee-card-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--gopick-green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  flex-shrink: 0;
}

.marquee-card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.55);
  font-family: 'Sora', 'Inter', sans-serif;
}

@keyframes gopick-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 640px) {
  .marquee-card {
    width: 15.5rem;
  }

  .marquee-card-frame {
    padding: 0;
    border-radius: 0;
  }

  .marquee-card-media {
    border-radius: 0;
  }

  .marquee-set {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .marquee-card {
    width: 17.5rem;
  }

  .marquee-card-frame {
    padding: 0;
    gap: 0;
  }

  .marquee-card-tag {
    font-size: 0.75rem;
  }
}

/* Extra-small screens */
@media (max-width: 639px) {
  .hero-image-stack {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-bg-img {
    max-width: 200px;
    max-height: 260px;
    object-position: center center;
  }

  .hero-visual-col {
    margin-bottom: 0.25rem;
  }

  #hero {
    min-height: auto;
  }

  #features,
  #about,
  #how-it-works,
  #app,
  #stats,
  #testimonials,
  #cta {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  #trusted {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  #gallery {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .marquee-card {
    width: 11.5rem;
  }

  .marquee-card-frame {
    padding: 0;
    border-radius: 0;
  }

  .marquee-card-media {
    border-radius: 0;
  }

  #contact {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .blob {
    filter: blur(60px);
    opacity: 0.08;
  }
}

@media (max-width: 359px) {
  .mobile-nav-label {
    font-size: 0.5625rem;
  }

  .mobile-nav-fab-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero-bg-img {
    max-width: 180px;
    max-height: 240px;
  }
}

/* Scroll margin for fixed header + mobile nav targets */
@media (max-width: 1023px) {
  section[id] {
    scroll-margin-top: 4.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-icon { animation: none; }
  .marquee-runner { animation-duration: 60s; }
  .marquee-viewport:hover .marquee-card-frame,
  .marquee-viewport:hover .marquee-card-img { transform: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
