/* ==========================================================================
   FASTDELHIVERY — Design System : Foundations
   Tokens, reset, typography, buttons, forms, utilities.
   Every page loads base.css → layout.css → components.css in that order.
   ========================================================================== */

:root {
  /* ---- Brand palette ---------------------------------------------------- */
  --brand: #ff5a1f;
  --brand-600: #e8480f;
  --brand-700: #c93c0b;
  --brand-50: #fff3ec;
  --brand-100: #ffe3d4;

  --navy: #0c1734;
  --navy-700: #16234a;
  --navy-500: #2b3a67;

  /* ---- Neutrals --------------------------------------------------------- */
  --ink: #0b1220;
  --ink-700: #263041;
  --muted: #667085;
  --muted-2: #8a94a6;
  --line: #e7ebf2;
  --line-2: #f0f3f8;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #eef2f9;

  /* ---- Semantic --------------------------------------------------------- */
  --success: #0e9f6e;
  --success-bg: #e7f7f0;
  --danger: #e11d48;
  --danger-bg: #fdeaef;
  --warn: #f59e0b;
  --warn-bg: #fff6e6;
  --info: #2563eb;
  --info-bg: #eaf1ff;
  --star: #f5a623;

  /* ---- Radii ------------------------------------------------------------ */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ---- Elevation -------------------------------------------------------- */
  --sh-1: 0 1px 2px rgba(11, 18, 32, .05), 0 1px 3px rgba(11, 18, 32, .05);
  --sh-2: 0 6px 20px rgba(11, 18, 32, .08);
  --sh-3: 0 18px 44px rgba(11, 18, 32, .13);
  --sh-brand: 0 10px 24px rgba(255, 90, 31, .28);

  /* ---- Metrics ---------------------------------------------------------- */
  /* Page width. The gutter is a token because more than one rule needs it —
     anything that hard-codes it drifts out of alignment the moment it changes. */
  --container: 1240px;
  --container-narrow: 940px;
  --container-wide: 1440px;
  --container-pad: 20px;

  --header-h: 72px;
  --gap: 24px;

  /* ---- Motion ----------------------------------------------------------- */
  --t-fast: 140ms cubic-bezier(.4, 0, .2, 1);
  --t: 240ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 420ms cubic-bezier(.4, 0, .2, 1);

  /* ---- Type ------------------------------------------------------------- */
  /* Devanagari comes from Noto Sans Devanagari (fonts.css), then the system's
     own Marathi faces — Latin letters still use Plus Jakarta Sans. */
  --font: "Plus Jakarta Sans", "Noto Sans Devanagari", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Nirmala UI", "Mangal", "Kohinoor Devanagari", sans-serif;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button[disabled] { cursor: not-allowed; }

a { color: var(--brand-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }

hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); }
h4 { font-size: 1.05rem; }
h5 { font-size: .95rem; }
h6 { font-size: .85rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--ink); }
small { font-size: .82rem; }

.lead {
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}

.text-center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

/**
 * The page container: one horizontal rhythm for the whole site.
 *
 * Every full-width band (header, hero, sections, footer) puts a .container
 * inside it, so their contents line up on a single pair of edges no matter
 * what the band's own background is doing.
 */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

/** Edge-to-edge child (a full-bleed image inside an otherwise padded column). */
.container--flush { padding-inline: 0; }

/**
 * Measure: constrain and centre a block that is ALREADY inside a container.
 * Use this instead of nesting containers, which would double the gutter.
 */
.measure { max-width: 820px; margin-inline: auto; }
.measure--lg { max-width: 940px; }
.measure--sm { max-width: 640px; }

.section { padding: clamp(48px, 3vw + 34px, 84px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(34px, 2vw + 24px, 56px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-head__text { max-width: 640px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }

.grid { display: grid; gap: var(--gap); }
.stack > * + * { margin-top: 14px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: var(--r-pill);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast),
    color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 12px 28px rgba(255, 90, 31, .34); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-600); background: var(--brand-50); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-soft-2); color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-700); }

.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { background: #0b8a5f; color: #fff; }

.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .82rem; }
.btn--lg { min-height: 54px; padding: 15px 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn[disabled],
.btn.is-disabled {
  opacity: .5;
  pointer-events: none;
  box-shadow: none;
  filter: grayscale(.35);
}

.btn.is-loading { pointer-events: none; position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: fd-spin .7s linear infinite;
  color: #fff;
}
.btn--outline.is-loading::after, .btn--light.is-loading::after { color: var(--brand); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .88rem;
}
.link-arrow::after { content: "→"; transition: transform var(--t-fast); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Badges & pills
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.5;
}

.badge--offer { background: var(--danger); color: #fff; }
.badge--brand { background: var(--brand); color: #fff; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warn { background: var(--warn-bg); color: #a86a04; }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--muted { background: var(--bg-soft-2); color: var(--muted); }
.badge--dark { background: var(--navy); color: #fff; }

/* ==========================================================================
   Price atoms — shared by every surface that shows money
   ========================================================================== */

.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__sell { font-size: 1.12rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price__mrp { font-size: .85rem; color: var(--muted-2); text-decoration: line-through; }
.price__off { font-size: .78rem; font-weight: 800; color: var(--success); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field > label,
.field__label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.field__label .req { color: var(--danger); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .92rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, .13);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(225, 29, 72, .12); }

.field__error {
  display: none;
  font-size: .78rem;
  font-weight: 600;
  color: var(--danger);
}
.field.has-error .field__error { display: block; }

.field__hint { font-size: .78rem; color: var(--muted); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* ==========================================================================
   Accessibility
   ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible {
  outline: 3px solid rgba(255, 90, 31, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fd-spin { to { transform: rotate(360deg); } }

@keyframes fd-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fd-pop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes fd-shimmer {
  0% { background-position: -420px 0; }
  100% { background-position: 420px 0; }
}

.reveal { animation: fd-fade-up var(--t-slow) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Responsive foundations
   ========================================================================== */

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* Narrow phones: hand a little of the gutter back to the content. Because the
   gutter is a token, every band that uses .container follows automatically. */
@media (max-width: 420px) {
  :root { --container-pad: 16px; }
}

@media print {
  .site-header, .site-footer, .fab-stack, .mobile-bar { display: none !important; }
}

/* ==========================================================================
   Language: English / मराठी (assets/js/core/i18n.js)
   ========================================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  gap: 2px;
}
.lang-switch__btn {
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-700);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch__btn:hover { background: var(--bg-soft-2); }
.lang-switch__btn.is-active,
.lang-switch__btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.lang-switch__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang-switch__btn[lang="mr"] { font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--font); }

/* Full width inside a menu (the mobile drawer). */
.lang-switch--block { display: flex; width: 100%; }
.lang-switch--block .lang-switch__btn { flex: 1 1 0; min-height: 38px; font-size: .86rem; }

/* Marathi text: no letter-spacing (it pulls conjuncts and vowel signs apart)
   and a little more line height for the marks above and below the line. */
html[lang="mr"] body { line-height: 1.7; }
html[lang="mr"] body *:not(code):not(pre):not(kbd) { letter-spacing: normal !important; }
html[lang="mr"] h1, html[lang="mr"] h2, html[lang="mr"] h3, html[lang="mr"] h4 { line-height: 1.35; }
