/* ═══════════════════════════════════════════════════════
   CREVITA — PREMIUM LAYER
   Loaded last. Elevates every surface toward calm luxury.
   Strategy: Committed brown. Cream canvas. Gold whisper.
   ═══════════════════════════════════════════════════════ */

/* ── Global body refinement ── */
body {
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── Announcement bar — editorial strip ── */
.announcement-bar {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 11px 50px;
  font-weight: 400;
}

/* ── Trust marquee — scrolling brand signals below the navbar ── */
.crv-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: var(--cream-mid);
  border-bottom: 1px solid var(--border);
}
/* Soft fade at both edges so items glide in/out */
.crv-marquee::before,
.crv-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}
.crv-marquee::before { left: 0;  background: linear-gradient(90deg,  var(--cream-mid), transparent); }
.crv-marquee::after  { right: 0; background: linear-gradient(270deg, var(--cream-mid), transparent); }

.crv-marquee-track {
  display: inline-flex;
  align-items: center;
  padding: 9px 0;
  animation: crv-marquee-scroll 34s linear infinite;
  will-change: transform;
}
.crv-marquee:hover .crv-marquee-track { animation-play-state: paused; }

.crv-marquee-item {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brown-mid);
}
.crv-marquee-sep {
  margin: 0 22px;
  font-size: 12px;
  color: var(--gold);
}

@keyframes crv-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .crv-marquee-item { font-size: 10.5px; }
  .crv-marquee-sep  { margin: 0 14px; }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .crv-marquee-track { animation: none; }
}

/* ── Live order social-proof toast (bottom-left) ── */
.crv-liveorder {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 312px;
  max-width: calc(100vw - 48px);
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(61, 31, 10, 0.16);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.crv-liveorder.show { transform: translateX(0); opacity: 1; }

.crv-lo-thumb {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.crv-lo-body { flex: 1; min-width: 0; line-height: 1.3; }
.crv-lo-text {
  font-size: 12px;
  color: var(--muted);
}
.crv-lo-text strong { color: var(--text); font-weight: 600; }
.crv-lo-product {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brown);
  margin: 1px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crv-lo-meta {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.crv-lo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 4px;
  vertical-align: middle;
  animation: dot-pulse 2s ease-in-out infinite;
}
.crv-lo-close {
  flex-shrink: 0;
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.crv-lo-close:hover { color: var(--text); background: var(--cream-mid); }

@media (prefers-reduced-motion: reduce) {
  .crv-liveorder { transform: none; transition: opacity 0.4s ease; }
  .crv-liveorder.show { transform: none; }
  .crv-lo-dot { animation: none; }
}

/* ── Navbar: a touch more presence ── */
.navbar-inner { height: 74px; }

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.055em;
  color: var(--muted);
}

.nav-logo {
  height: 44px;
  width: 44px;
  border-radius: 12px;
}

.logo-tagline {
  font-size: 9.5px;
  letter-spacing: 0.4px;
}

/* ── Hero: push the headline to luxury scale ── */
.hero-carousel {
  height: 92vh;
  min-height: 580px;
}

.hero-content h1,
.hero-content .hero-headline {
  font-size: clamp(48px, 6.8vw, 92px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero-content h1 em,
.hero-content .hero-headline em {
  font-style: italic;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}

.hero-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 36px;
}

/* Hero tag: quieter, more credence — less pill badge */
.hero-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Hero stats: metadata, not metrics — remove the big-number template look */
.hero-stats {
  border-top: 1px solid rgba(61,31,10,0.12);
  padding-top: 22px;
  margin-top: 4px;
  gap: 28px;
}

.hero-stat strong {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
}

.hero-stat span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hero-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(61,31,10,0.12);
}

/* Hero image: deeper shadow for physical presence */
.hero-img-circle {
  width: 420px;
  height: 420px;
  box-shadow:
    0 32px 80px rgba(61,31,10,0.24),
    0 8px 24px rgba(61,31,10,0.12);
}

/* Hero flavor badge: more restrained */
.hero-flavor-badge {
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 22px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(61,31,10,0.14);
}

/* Hero slide backgrounds: warmer, less pastel startup */
.slide-1 { background: linear-gradient(155deg, #FEF7ED 0%, #EFD9B0 100%); }
.slide-2 { background: linear-gradient(155deg, #FEF3E8 0%, #F0D8B4 100%); }
.slide-3 { background: linear-gradient(155deg, #EEF7F0 0%, #C8E6CD 100%); }
.slide-4 { background: linear-gradient(155deg, #FEF4DF 0%, #F5DFA0 100%); }

/* ── Buttons: sentence case, refined proportions ── */
.btn {
  text-transform: none;
  letter-spacing: 0.015em;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 7px;
}

.btn-primary {
  background: var(--brown);
  color: #FDF5E8;
}

.btn-primary:hover {
  background: #2C1507;
  box-shadow: 0 8px 32px rgba(61,31,10,0.24);
}

.btn-outline {
  border: 1.5px solid rgba(61,31,10,0.35);
  color: var(--brown);
}

.btn-outline:hover {
  background: var(--brown);
  color: #FDF5E8;
  border-color: var(--brown);
}

/* ── Trust strip: Committed brown moment ── */
.trust-strip {
  background: var(--brown);
  border-top: none;
  border-bottom: none;
}

.trust-item {
  padding: 24px 40px;
  border-right-color: rgba(255,255,255,0.1);
}

.trust-item svg { color: var(--gold-light); opacity: 0.75; }

.trust-item strong {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}

.trust-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
}

/* ── Section headings: dramatic scale ── */
.section {
  padding: clamp(60px, 7.5vw, 112px) clamp(28px, 5vw, 80px);
}

.section-header {
  margin-bottom: clamp(36px, 4vw, 60px);
}

.section-header h2 {
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 400;
}

.section-header p {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 480px;
  color: var(--muted);
}

/* Eyebrow label: even more refined */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  opacity: 0.8;
}

/* ── Product cards: no border, atmospheric shadow ── */
.product-card {
  border: none;
  border-radius: 12px;
  box-shadow:
    0 2px 12px rgba(61,31,10,0.055),
    0 1px 2px rgba(61,31,10,0.025);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  border: none;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow:
    0 20px 52px rgba(61,31,10,0.10),
    0 4px 12px rgba(61,31,10,0.055);
}

/* Product image: richer background */
.product-img-wrap {
  background: #F6EFE3;
  border-radius: 12px 12px 0 0;
}

/* Product name: more presence */
.product-info h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Product weight tag */
.product-weight-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Bestseller carousel cards ── */
.bs-card {
  border: none;
  border-radius: 12px;
  box-shadow:
    0 2px 12px rgba(61,31,10,0.055),
    0 1px 2px rgba(61,31,10,0.025);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bs-card:hover {
  border: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(61,31,10,0.10);
}

/* ── Lux / Feature sections: more generous ── */
.lux-philosophy,
.lux-flavours,
.why-us,
.why-makhana {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

/* ── Bestsellers section ── */
.bestsellers { padding-top: 40px; }

/* ── Divider between hero and content: a gold rule ── */
.trust-strip::before {
  content: none;
}

/* ── Product page grid: more breathing room ── */
.products-grid {
  gap: 28px;
}

/* ── Testimonials ── */
.testimonial-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 16px rgba(61,31,10,0.06);
}

/* ── FAQ items ── */
.faq-item {
  border-radius: 8px;
}

/* ── Cart and checkout: refined ── */
.cart-item-card,
.order-summary {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(61,31,10,0.055);
}

/* ── Section gold accent rule ── */
.section-gold-rule {
  width: 40px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 20px;
  opacity: 0.6;
}

/* ── Why makhana cards: more spacious ── */
.why-makhana-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 14px rgba(61,31,10,0.055);
  padding: 28px;
}

/* ── Contact / Forms: refined inputs ── */
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 6px;
  font-size: 14px;
}

/* ── Footer: consistent with premium palette ── */
.footer-bottom {
  border-top-color: rgba(255,255,255,0.1);
}

/* ── Scroll progress bar: gold ── */
#scroll-progress {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  height: 2px;
}

/* ── Back to top: refined ── */
#back-to-top {
  background: var(--brown);
  color: #FDF5E8;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  box-shadow: 0 4px 20px rgba(61,31,10,0.22);
}

/* ── Journal cards ── */
.journal-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(61,31,10,0.055);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(61,31,10,0.10);
}

/* ── Dark mode adjustments ── */
body.dark .trust-strip {
  background: #120C06;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

body.dark .trust-item strong { color: rgba(240,232,216,0.9); }
body.dark .trust-item span   { color: rgba(240,232,216,0.4); }

body.dark .product-card,
body.dark .bs-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
}

body.dark .product-card:hover,
body.dark .bs-card:hover {
  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
}

body.dark .product-img-wrap { background: #1E1208; }

body.dark .slide-1 { background: linear-gradient(155deg, #1E1208 0%, #150D05 100%); }
body.dark .slide-2 { background: linear-gradient(155deg, #1C1008 0%, #120B04 100%); }
body.dark .slide-3 { background: linear-gradient(155deg, #0E1509 0%, #0A1007 100%); }
body.dark .slide-4 { background: linear-gradient(155deg, #1C1405 0%, #130E03 100%); }

/* ── Responsive: keep it tight on mobile ── */
@media (max-width: 768px) {
  .hero-carousel { height: auto; min-height: unset; }

  .hero-content h1,
  .hero-content .hero-headline {
    font-size: clamp(38px, 9vw, 56px);
    letter-spacing: -0.02em;
  }

  .hero-tag { font-size: 10px; }

  .section { padding: 48px 20px; }

  .section-header h2 { font-size: clamp(24px, 6vw, 36px); }

  .btn { font-size: 13px; padding: 13px 24px; }

  .hero-img-circle { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; }

  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 18px 20px; }
}

@media (max-width: 480px) {
  .hero-content h1,
  .hero-content .hero-headline { font-size: 36px; }

  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .trust-item:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════════════════════════
   PREMIUM REFINEMENT PASS
   Typographic finesse · tactile buttons · accessible focus ·
   brand text selection. All additive — safe to revert.
   ════════════════════════════════════════════════════════════ */

/* ── Typographic finesse: better kerning, ligatures, even rag ── */
body {
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Balanced headlines — kills orphan/widow words for an editorial look */
h1, h2, h3,
.hero-content h1, .hero-content .hero-headline,
.section-header h2,
.lux-philosophy-headline,
.farm-story-content h2 {
  text-wrap: balance;
}

/* Prettier paragraph rag (last line never a lone word) */
p, .hero-content p, .section-header p {
  text-wrap: pretty;
}

/* Editorial, fluid section headings — scales up gracefully on large screens */
.section-header h2 {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.12;
}

/* ── Brand text selection ── */
::selection {
  background: rgba(184, 113, 42, 0.22); /* gold tint */
  color: var(--brown);
}

/* ── Buttons: tactile press micro-interaction ── */
.btn {
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }

/* ── Focus: keyboard-only gold ring (accessibility + polish) ── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
/* Suppress the ring for mouse/touch (keeps it for keyboard users) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
}

/* Respect reduced-motion for the new button motion */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}
