/* ============================================================
   PALMORA FOODS — LANDING PAGE STYLES
   The very first screen: logo, language choice, and the doors
   into the storefront (Enter Palmora / Browse Products / Sign
   In / Wholesale). Loads standalone — only design-system.css's
   tokens are required, storefront.css is NOT loaded here.
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
.landing-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-latin);
  background: var(--teal-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="hi"] .landing-body {
  font-family: var(--font-devanagari);
}

/* ── Landing Screen ───────────────────────────────────────── */
.landing-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

/* Background photo (peppercorns / betel nut ingredients) */
.landing-bg {
  position: absolute;
  inset: 0;
  background: url('../images/landing.png') center/cover no-repeat;
  z-index: 0;
}

/* Dark brand-tinted overlay so white text always stays legible
   over whatever photo sits behind it */
.landing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 46, 46, 0.86) 0%,
    rgba(0, 35, 35, 0.88) 45%,
    rgba(26, 18, 11, 0.92) 100%
  );
  z-index: 1;
}

/* Soft ambient glow orbs — pure decoration, no interaction */
.landing-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.landing-orb--1 {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -90px;
  background: radial-gradient(circle, rgba(201, 152, 46, 0.14) 0%, transparent 70%);
  animation: orbFloat1 13s ease-in-out infinite;
}

.landing-orb--2 {
  width: 260px;
  height: 260px;
  bottom: -70px;
  left: -70px;
  background: radial-gradient(circle, rgba(122, 46, 29, 0.10) 0%, transparent 70%);
  animation: orbFloat2 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-10px, 10px); }
}

/* ── Content Card ─────────────────────────────────────────── */
.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  width: 100%;
  animation: contentFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trust strip — mirrors the ribbon on the reference mock */
.landing-trust-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(244, 239, 227, 0.65);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.landing-trust-strip .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Logo */
.landing-logo-wrap {
  animation: logoScaleIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoScaleIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.landing-logo {
  width: 116px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
  object-fit: contain;
}

/* Brand Name */
.landing-brand {
  text-align: center;
}

.landing-brand-name {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #F4EFE3;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.landing-brand-sub {
  font-size: 0.62rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin: 5px 0 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.landing-brand-parent {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 239, 227, 0.18);
  color: rgba(244, 239, 227, 0.75);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Separator */
.landing-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  opacity: 0.55;
}

.landing-separator::before,
.landing-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 152, 46, 0.45), transparent);
}

.landing-separator-text {
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Tagline */
.landing-tagline {
  font-size: 0.83rem;
  color: rgba(244, 239, 227, 0.82);
  line-height: 1.6;
  max-width: 300px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  margin: 0;
}

/* Language Row */
.landing-lang-row {
  display: flex;
  gap: 8px;
  animation: contentFadeIn 0.6s 0.15s ease both;
}

.landing-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(244, 239, 227, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 239, 227, 0.85);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  text-decoration: none;
}

.landing-lang-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.landing-lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 152, 46, 0.5);
  color: rgba(244, 239, 227, 0.95);
}

.landing-lang-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A120B;
  box-shadow: 0 3px 14px rgba(201, 152, 46, 0.35);
}

.landing-lang-btn.is-active svg { opacity: 1; }

/* Action Buttons Container */
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
  animation: contentFadeIn 0.6s 0.3s ease both;
}

/* Single Button Style */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
}

.landing-btn svg { flex-shrink: 0; }

.landing-btn:active {
  transform: scale(0.97);
}

/* Primary Button — "Enter Palmora" */
.landing-btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(122, 46, 29, 0.45);
  overflow: hidden;
}

.landing-btn--primary:hover {
  background: linear-gradient(135deg, #8B3522 0%, #6A2818 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(122, 46, 29, 0.55);
  color: #fff;
}

.landing-btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.14) 50%, transparent 70%);
  transform: skewX(-20deg);
  animation: btnShine 4.5s ease-in-out infinite;
}

@keyframes btnShine {
  0% { left: -60%; opacity: 0; }
  8% { opacity: 1; }
  45% { left: 120%; opacity: 1; }
  46% { opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

/* Outline Button — "Browse Products" */
.landing-btn--outline {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 239, 227, 0.9);
  border: 1.5px solid rgba(244, 239, 227, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.landing-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 239, 227, 0.48);
  transform: translateY(-1px);
  color: #fff;
}

/* Ghost Button — "Sign In" */
.landing-btn--ghost {
  background: transparent;
  color: rgba(244, 239, 227, 0.72);
  border: 1.5px solid transparent;
  padding: 10px 22px;
  font-size: 0.78rem;
}

.landing-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Gold Button */
.landing-btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1A120B;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(201, 152, 46, 0.35);
}

.landing-btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 152, 46, 0.45);
  color: #1A120B;
}

/* Wholesale Link (GST banner CTA) */
.landing-wholesale-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(201, 152, 46, 0.10);
  border: 1px solid rgba(201, 152, 46, 0.22);
  text-decoration: none;
  animation: contentFadeIn 0.6s 0.45s ease both;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  transition: all 0.22s ease;
}

.landing-wholesale-card:hover {
  background: rgba(201, 152, 46, 0.16);
  border-color: rgba(201, 152, 46, 0.4);
  transform: translateY(-1px);
}

.landing-wholesale-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 152, 46, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.landing-wholesale-card-text {
  flex: 1;
  min-width: 0;
}

.landing-wholesale-card-text strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #F4EFE3;
  line-height: 1.3;
}

.landing-wholesale-card-text span {
  font-size: 0.66rem;
  color: rgba(244, 239, 227, 0.65);
  line-height: 1.3;
}

.landing-wholesale-card-arrow {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Auth Overlay ─────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Auth Sheet / Modal ───────────────────────────────────── */
/* ── Auth Sheet / Modal ───────────────────────────────────── */
.auth-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  max-height: 85dvh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 101;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 18px 20px;
  box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.auth-sheet.is-open {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;   /* ADD THIS LINE */
}

.auth-sheet.is-open {
  transform: translateX(-50%) translateY(0);
}

/* Drag Handle (Mobile bottom sheet — draggable via JS, this is
   the visual grab affordance) */
/* Drag Handle */
.auth-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border-dark);
  border-radius: 2px;
  margin: 8px auto 12px;
  cursor: grab;
  touch-action: none;
}
.auth-sheet-handle:active {
  cursor: grabbing;
}

/* Header */
.auth-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.auth-sheet-title-group h2.auth-sheet-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1px;
}

.auth-sheet-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.auth-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  flex-shrink: 0;
}

.auth-sheet-close:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.auth-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg);
  padding: 2px;
  gap: 2px;
}

.auth-tab {
  flex: 1;
  padding: 7px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.auth-tab.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.auth-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.auth-input:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.auth-password-wrap {
  position: relative;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  z-index: 1;
  pointer-events: auto;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(122, 46, 29, 0.25);
}

.auth-submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(122, 46, 29, 0.32);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Form Footer */
.auth-form-footer {
  text-align: center;
  margin: 2px 0 0;
}

.auth-form-footer a {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
}

.auth-form-footer a:hover {
  color: var(--primary);
}

/* Error Message */
.auth-error {
  background: #FFEBEE;
  color: #C62828;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Social Proof */
.auth-social-proof {
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.auth-social-proof p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Toast ────────────────────────────────────────────────── */
.landing-toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  width: calc(100% - 40px);
  max-width: 380px;
}

.landing-toast {
  padding: 11px 18px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.landing-toast--success { background: var(--success); }
.landing-toast--error { background: var(--danger); }

/* ── Desktop: Centered Modal instead of Bottom Sheet ───────── */
@media (min-width: 769px) {
  .auth-sheet {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    border-radius: 20px;
    max-width: 420px;
    max-height: 82vh;
    opacity: 0;
    border: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s ease;
  }

  .auth-sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  .auth-sheet-handle {
    display: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 360px) {
  .landing-screen { padding: 28px 16px; }
  .landing-logo { width: 98px; }
  .landing-brand-name { font-size: 1.7rem; letter-spacing: 3px; }
  .landing-btn { padding: 12px 18px; font-size: 0.78rem; }
  .landing-tagline { font-size: 0.76rem; }
}

@media (min-width: 640px) {
  .landing-content { max-width: 440px; gap: 18px; }
  .landing-logo { width: 132px; }
  .landing-brand-name { font-size: 2.5rem; letter-spacing: 5px; }
  .landing-tagline { max-width: 340px; font-size: 0.88rem; }
}

@media (min-width: 1024px) {
  .landing-screen { padding: 56px 32px; }
  .landing-content { max-width: 460px; gap: 20px; }
  .landing-logo { width: 144px; }
  .landing-brand-name { font-size: var(--fs-3xl); letter-spacing: 6px; }
  .landing-orb--1 { width: 420px; height: 420px; }
  .landing-orb--2 { width: 360px; height: 360px; }
}

@media (min-width: 1440px) {
  .landing-content { max-width: 480px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .landing-orb,
  .landing-btn--primary::after,
  .landing-content,
  .landing-logo-wrap {
    animation: none !important;
  }
}