/* =====================================================================
   Arihant Food — global.css
   Design tokens, theme system (light/dark), base typography & resets
   ===================================================================== */

/* ---- Fonts (premium pairing): Cormorant Garamond + Jost ------------- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap");

/* ---- Design Tokens -------------------------------------------------- */
:root {
  /* Light theme — Cotton, Cherry Red, Maroon, Noir Black */
  --bg: #EDEBDD;
  --bg-elevated: #ffffff;
  --bg-soft: #f5f3eb;
  --surface: #faf8f3;
  --text: #1B1717;
  --text-soft: #2B2626;
  --text-muted: #6B6464;
  --primary: #C41E3A;
  --primary-hover: #A01830;
  --primary-soft: #E63D52;
  --border: rgba(27, 23, 23, 0.08);
  --border-strong: rgba(27, 23, 23, 0.16);
  --shadow-color: 27 23 23;

  --header-bg: rgba(237, 235, 221, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(129, 1, 0, 0.15);

  /* Type scale (fluid) */
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.8rem);
  --step-5: clamp(3.2rem, 2.2rem + 5vw, 6.2rem);

  /* Spacing & shape */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --maxw: 1240px;
  --gutter: clamp(1rem, 0.5rem + 3vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}



/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--primary); color: #EDEBDD; }

/* ---- Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title { font-size: var(--step-3); }
.section-lead {
  color: var(--text);
  max-width: 56ch;
  font-size: var(--step-1);
  font-weight: 400;
}

.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

.sr-only {
  position: absolute; 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: 1rem; top: -3rem;
  background: var(--primary); color: #EDEBDD;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-pill);
  z-index: 1000; transition: top 0.2s var(--ease); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 10px 30px -12px rgb(var(--shadow-color) / 0.5);
  font-weight: 600;
}
.btn--gold:hover { background: var(--primary-hover); color: #FFFFFF; }

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

.btn--ghost { color: var(--text-soft); padding-inline: 1rem; }
.btn--ghost:hover { color: var(--primary); }

.btn--whatsapp {
  background: #1faf54;
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(31, 175, 84, 0.6);
}
.btn--whatsapp:hover { background: #1a974a; }

.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2.4rem; }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---- Forms ---------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--text-soft);
  font-weight: 500;
}
.input, .textarea, .select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(184 146 79 / 0.15);
}
.textarea { resize: vertical; min-height: 120px; }

/* ---- Utility -------------------------------------------------------- */
.flex { display: flex; }
.gold-text { color: var(--primary); }
.divider-dot { color: var(--primary); }

/* ---- Toast ---------------------------------------------------------- */
.toast-stack {
  position: fixed; inset-block-end: 1.5rem; inset-inline: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 999; pointer-events: none; padding-inline: 1rem;
}
.toast {
  pointer-events: auto;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--primary);
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -18px rgb(var(--shadow-color) / 0.55);
  font-size: var(--step--1);
  display: flex; align-items: center; gap: 0.6rem;
  animation: toast-in 0.4s var(--ease);
  max-width: 92vw;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
.toast.leaving { animation: toast-out 0.35s var(--ease) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---- Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
