/* ===================================================
   DJIDALI — Premium Rosehip Beverage Brand
   =================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg:           hsl(36, 47%, 97%);
  --fg:           hsl(20, 25%, 15%);
  --primary:      hsl(350, 60%, 35%);
  --primary-dark: hsl(350, 65%, 28%);
  --primary-fg:   hsl(36, 47%, 97%);
  --secondary:    hsl(36, 30%, 92%);
  --secondary-fg: hsl(20, 25%, 20%);
  --muted:        hsl(36, 20%, 90%);
  --muted-fg:     hsl(20, 15%, 45%);
  --card:         hsl(36, 35%, 95%);
  --border:       hsl(36, 25%, 85%);
  --gold:         hsl(40, 65%, 50%);
  --leaf:         hsl(120, 35%, 35%);
  --bottle-glass: hsl(20, 30%, 18%);
  --radius:       0.5rem;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.2; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { text-decoration: none; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-ru .uz { display: none; }
.lang-uz .ru { display: none; }

/* ===== LAYOUT ===== */
.container   { max-width: 1200px; margin: 0 auto; }
.container-md { max-width: 960px;  margin: 0 auto; }
.container-sm { max-width: 720px;  margin: 0 auto; }

.section {
  padding: 4rem 1rem;
}
@media (min-width: 768px) {
  .section { padding: 6rem 2rem; }
}

.section-alt { background: hsla(36, 30%, 92%, 0.4); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--muted-fg);
  max-width: 38rem;
  margin: 0 auto;
}

/* ===== COMPONENTS ===== */

/* Card */
.card {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 14px rgba(143, 26, 47, 0.3);
  width: 100%;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 26, 47, 0.4);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  width: 100%;
}
.btn-outline:hover, .card:hover .btn-outline {
  background: var(--primary);
  color: var(--primary-fg);
}

/* Input */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(143, 26, 47, 0.12);
}
.input-field::placeholder { color: var(--muted-fg); }

/* ===== LANGUAGE SWITCHER UI ===== */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 0.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  border: none;
  background: transparent;
  color: var(--muted-fg);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 5rem 1rem 4rem;
}
@media (min-width: 768px) { .hero { padding: 5rem 2rem 4rem; } }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, 0.83);
  backdrop-filter: blur(2px);
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(64px);
}
.hero-deco-1 {
  top: 5rem; left: 2rem;
  width: 16rem; height: 16rem;
  background: hsla(350, 60%, 35%, 0.06);
}
.hero-deco-2 {
  bottom: 4rem; right: 2rem;
  width: 24rem; height: 24rem;
  background: hsla(40, 65%, 50%, 0.1);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 9rem);
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-title .highlight { color: var(--primary); }

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--muted-fg);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 2rem;
}
.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.hero-benefit-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Bottle */
.hero-bottle {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) { .hero-bottle { justify-content: flex-end; } }

.bottle-wrapper { position: relative; display: inline-block; }
.bottle-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, hsla(350,60%,35%,0.18) 0%, hsla(40,65%,50%,0.1) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}
.bottle-img {
  position: relative;
  z-index: 1;
  height: clamp(300px, 60vh, 680px);
  width: auto;
  object-fit: contain;
  transform: rotate(18deg);
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
}
@keyframes float {
  0%, 100% { transform: rotate(18deg) translateY(0); }
  50%       { transform: rotate(18deg) translateY(-20px); }
}

/* ===== ORDER FORM ===== */
.order-card { padding: 1.5rem; }
.order-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-bottom: 0.375rem;
}

/* Quantity */
.qty-control { display: flex; align-items: center; gap: 0.75rem; }
.qty-btn {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--secondary);
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.qty-btn:hover { background: var(--muted); }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-input { width: 4.5rem; text-align: center; }

/* Variant buttons */
.variant-group { display: flex; gap: 0.5rem; }
.variant-btn {
  flex: 1;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.variant-btn.active { background: var(--primary); color: var(--primary-fg); }

/* Total */
.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: hsla(36, 30%, 92%, 0.6);
  border-radius: 0.75rem;
  margin: 1rem 0;
}
.order-total .total-label { color: var(--muted-fg); }
.order-total .total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Success */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; }
.success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: hsla(120, 35%, 35%, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.success-icon svg { width: 2rem; height: 2rem; color: var(--leaf); stroke: var(--leaf); }
.form-success h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-success p { color: var(--muted-fg); }

/* ===== WHY SECTION ===== */
.why-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card { padding: 1.5rem; text-align: center; }
.why-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: hsla(350, 60%, 35%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  transition: background 0.3s;
}
.why-card:hover .why-icon { background: hsla(350, 60%, 35%, 0.2); }
.why-icon svg { width: 1.625rem; height: 1.625rem; stroke: var(--primary); }
.why-card h3 { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ===== VARIANTS SECTION ===== */
.variants-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .variants-grid { grid-template-columns: 1fr 1fr; } }

.variant-card { padding: 2rem; transition: transform 0.3s; }
.variant-card:hover { transform: scale(1.02); }
.variant-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.variant-card > p { color: var(--muted-fg); margin-bottom: 1.5rem; }
.variant-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.variant-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem;
}
.variant-features li::before {
  content: '';
  width: 0.375rem; height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===== PROCESS SECTION ===== */
.process-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .process-grid { grid-template-columns: 1fr 1fr; } }

.process-img-wrap {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.process-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.process-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(20,30%,18%,0.55) 0%, transparent 60%);
}

.process-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.process-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: hsla(350, 60%, 35%, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
}
.step-content h3 { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.25rem; }
.step-content p { color: var(--muted-fg); font-size: 0.9375rem; }

/* ===== PRICE SECTION ===== */
.price-card { padding: 2rem; text-align: center; }
@media (min-width: 768px) { .price-card { padding: 3rem 3.5rem; } }
.price-card h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 2rem; }

.price-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .price-info { flex-direction: row; justify-content: center; gap: 3rem; }
  .price-divider { width: 1px; height: 4rem; background: var(--border); display: block; }
}
.price-divider { display: none; }

.price-item { text-align: center; }
.price-item .pi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}
.price-item .pi-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}
.price-item .pi-value-dark {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--fg);
}
.price-item .pi-note { font-size: 0.875rem; color: var(--muted-fg); }
.price-desc { color: var(--muted-fg); max-width: 32rem; margin: 0 auto 2rem; }

/* ===== AUDIENCE SECTION ===== */
.audience-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 560px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }

.audience-card { padding: 1.5rem; text-align: center; }
.audience-icon {
  width: 4rem; height: 4rem;
  border-radius: 1rem;
  background: hsla(350, 60%, 35%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s;
}
.audience-card:hover .audience-icon {
  background: var(--primary);
}
.audience-icon svg { width: 1.75rem; height: 1.75rem; stroke: var(--primary); transition: stroke 0.3s; }
.audience-card:hover .audience-icon svg { stroke: var(--primary-fg); }
.audience-card h3 { font-weight: 700; margin-bottom: 0.375rem; }
.audience-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ===== PARTNERSHIP SECTION ===== */
.partnership-card { padding: 2rem; }
.partnership-fields { display: flex; flex-direction: column; gap: 1rem; }

/* ===== FAQ SECTION ===== */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-arrow {
  width: 1.125rem; height: 1.125rem;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.3s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  padding: 0 1.5rem;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq-item.open .faq-answer {
  max-height: 20rem;
  padding: 0 1.5rem 1.25rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bottle-glass);
  color: var(--primary-fg);
  padding: 4rem 1rem;
}
@media (min-width: 768px) { .footer { padding: 5rem 2rem; } }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; } }

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-subtitle { color: rgba(250,248,243,0.65); margin-bottom: 1.5rem; }
.footer-phone { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer-phone-hint { font-size: 0.875rem; color: rgba(250,248,243,0.45); }

.footer-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 480px) { .footer-actions { flex-direction: row; } }

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
  color: var(--primary-fg);
}
.footer-btn svg { width: 1.125rem; height: 1.125rem; stroke: currentColor; flex-shrink: 0; }
.footer-btn-ghost { background: rgba(250,248,243,0.1); }
.footer-btn-ghost:hover { background: rgba(250,248,243,0.2); }
.footer-btn-solid { background: var(--primary); }
.footer-btn-solid:hover { background: var(--primary-dark); }

.footer-bottom {
  border-top: 1px solid rgba(250,248,243,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(250,248,243,0.3);
  font-size: 0.8125rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 999;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-success { background: hsl(120, 35%, 35%); color: white; }
.toast-error   { background: hsl(0, 65%, 50%);   color: white; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
