/* ================================================
   PantryBridge — Landing Page Styles
   Complements css/styles.css for the marketing page
   ================================================ */

/* Landing header — simplified, no org context */
.landing-header {
  background: var(--dark-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.landing-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.landing-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
}

.landing-header .logo-icon {
  font-size: 1.6rem;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.landing-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.landing-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.landing-nav .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Language toggle in landing header */
.landing-nav .language-selector-header {
  margin: 0;
}

/* FOUC prevention for language switch */
.lang-loading [data-i18n],
.lang-loading [data-i18n-html] {
  visibility: hidden;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero dot-grid overlay */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.25;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal:nth-child(4) {
  transition-delay: 0.3s;
}
.reveal:nth-child(5) {
  transition-delay: 0.4s;
}
.reveal:nth-child(6) {
  transition-delay: 0.5s;
}

/* Stats bar */
.stats-bar {
  background: var(--lighter-bg);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  text-align: center;
}

.stats-bar .stats-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stats-bar .stat {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.stats-bar .stat strong {
  color: var(--dark-blue);
  font-size: 1.1rem;
}

/* Steps grid (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.step-card {
  text-align: center;
  padding: 20px;
  position: relative;
}

/* Connector line between steps */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 45px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-light) 0,
    var(--border-light) 4px,
    transparent 4px,
    transparent 8px
  );
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.step-card h4 {
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 35px 0;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--brand-primary);
  position: relative;
  box-shadow: var(--shadow-md);
  transform: scale(1.04);
  z-index: 1;
}

.pricing-card:not(.featured) {
  opacity: 0.92;
}

.pricing-card:not(.featured):hover {
  opacity: 1;
}

.pricing-card.featured .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .tier-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.pricing-card .price {
  margin-bottom: 5px;
}

.pricing-card .price .amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark-blue);
}

.pricing-card .price .period {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.pricing-card .annual {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.pricing-card .feature-list {
  list-style: none;
  text-align: left;
  margin-bottom: 25px;
}

.pricing-card .feature-list li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-gray);
  border-bottom: 1px solid var(--light-bg);
}

.pricing-card .feature-list li::before {
  content: '\2713';
  color: var(--brand-primary);
  font-weight: 700;
  margin-right: 8px;
}

/* Comparison table */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table thead th {
  background: var(--dark-blue);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--lighter-bg);
}

.comparison-table .row-label {
  text-align: left;
  font-weight: 500;
  color: var(--text-dark);
}

.comparison-table .highlight {
  background: rgba(14, 168, 94, 0.06);
  font-weight: 600;
  color: var(--dark-blue);
}

.comparison-table thead th.highlight {
  background: var(--brand-primary);
}

.comparison-table .check {
  color: var(--brand-primary);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-light);
}

/* Landing footer */
.landing-footer {
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 0;
  text-align: center;
  font-size: 0.85rem;
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.landing-footer a:hover {
  color: var(--white);
}

.landing-footer .footer-links {
  margin-top: 8px;
}

.landing-footer .footer-links a {
  margin: 0 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--darker-blue);
    flex-direction: column;
    padding: 15px 20px;
    gap: 12px;
  }

  .landing-nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .landing-nav .language-selector-header {
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .step-card::after {
    display: none;
  }

  .stats-bar .stats-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    order: -1;
  }
}

/* ================================================
   Pantry Finder
   ================================================ */

.pantry-search-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pantry-search-input {
  flex: 1;
  min-width: 250px;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.pantry-search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.pantry-search-btn {
  padding: 14px 30px;
  display: inline-flex;
  align-items: center;
}

.find-pantry-hero {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
  color: white;
  text-align: center;
  padding: 60px 0 40px;
}

.find-pantry-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.find-pantry-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.find-pantry-hero .pantry-search-input {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.find-pantry-hero .pantry-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.find-pantry-hero .pantry-search-input:focus {
  border-color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.15);
}

.result-count {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.pantry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.pantry-card {
  background: var(--white, #fff);
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.pantry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pantry-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pantry-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.pantry-card-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pantry-card-name {
  font-family: 'DM Serif Display', serif;
  color: var(--dark-blue, #1a365d);
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.pantry-card-location,
.pantry-card-phone,
.pantry-card-hours {
  color: var(--text-gray, #6b7280);
  font-size: 0.9rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
}

.pantry-card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

.pantry-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray, #6b7280);
}

.pantry-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light, #9ca3af);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .pantry-grid {
    grid-template-columns: 1fr;
  }

  .find-pantry-hero h1 {
    font-size: 1.6rem;
  }

  .pantry-search-form {
    flex-direction: column;
  }

  .pantry-search-input {
    min-width: unset;
  }
}

/* ================================================
   Trust & Security Section
   ================================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  background: var(--bg-light, #f8f9fa);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 36px;
  height: 36px;
  color: var(--brand-primary);
  margin-bottom: 14px;
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark-blue);
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
