/* ============================================================
   Garg Farms — Base / Design Tokens
   Converted from artifacts/garg-farms/src/index.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

:root {
  /* Cream/off-white background */
  --background: 40 33% 98%;
  --foreground: 96 57% 10%;

  --border: 96 20% 85%;

  --card: 0 0% 100%;
  --card-foreground: 96 57% 10%;
  --card-border: 96 20% 90%;

  --popover: 0 0% 100%;
  --popover-foreground: 96 57% 10%;
  --popover-border: 96 20% 90%;

  /* Deep forest green */
  --primary: 96 57% 20%;
  --primary-foreground: 0 0% 100%;

  /* Warm amber/gold */
  --secondary: 33 69% 51%;
  --secondary-foreground: 0 0% 100%;

  --muted: 96 20% 90%;
  --muted-foreground: 96 20% 40%;

  --accent: 96 20% 92%;
  --accent-foreground: 96 57% 15%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --input: 96 20% 85%;
  --ring: 33 69% 51%;

  --button-outline: rgba(0, 0, 0, .10);
  --opaque-button-border-intensity: -8;

  --app-font-sans: 'DM Sans', sans-serif;
  --app-font-serif: 'Fraunces', serif;
  --app-font-mono: Menlo, monospace;
  --radius: 0.5rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Solid color helpers (so non-HSL contexts can reuse) */
  --color-primary: hsl(var(--primary));
  --color-secondary: hsl(var(--secondary));
  --color-background: hsl(var(--background));
  --color-foreground: hsl(var(--foreground));
  --color-muted-foreground: hsl(var(--muted-foreground));
  --color-border: hsl(var(--border));

  --primary-border: hsl(from hsl(var(--primary)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
  --secondary-border: hsl(from hsl(var(--secondary)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);

  /* Products section / testimonials warm panel */
  --panel: #F3EFE9;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--app-font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--app-font-serif);
  line-height: 1.1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

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

/* ---------- Layout primitives ---------- */
.container-7xl {
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1rem;
}
.container-5xl {
  max-width: 64rem; /* 1024px */
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container-7xl, .container-5xl { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-7xl, .container-5xl { padding-inline: 2rem; }
}

/* ============================================================
   Buttons — recreated from shadcn Button variants
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn:disabled { pointer-events: none; opacity: 0.5; }

.btn-lg { min-height: 2.5rem; padding-inline: 2rem; }
.btn-sm { min-height: 2rem; padding: 0 0.75rem; font-size: 0.75rem; }

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: var(--primary-border);
}
.btn-primary:hover { background-color: hsl(96 57% 20% / 0.9); }

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: var(--secondary-border);
}
.btn-secondary:hover { background-color: hsl(33 69% 51% / 0.9); }

.btn-outline {
  border-color: var(--button-outline);
  box-shadow: var(--shadow-sm);
}

/* Hero ghost/glass outline button */
.btn-glass {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-glass:hover { background-color: rgba(255, 255, 255, 0.2); }

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  min-height: auto;
  background: none;
  border: none;
  font-weight: 700;
  color: hsl(var(--secondary));
  transition: color .2s;
}
.btn-link:hover { color: hsl(var(--primary)); }

/* ============================================================
   Form controls
   ============================================================ */
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  transition: border-color .2s, box-shadow .2s;
}
.field-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.field-input::placeholder,
.field-textarea::placeholder { color: hsl(var(--muted-foreground)); }

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 1px hsl(var(--ring));
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2399a18f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.375rem;
}

/* ============================================================
   Toast (shared) — mirrors the React useToast popup
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  max-width: 22rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast-title { font-weight: 700; color: hsl(var(--primary)); font-size: 0.875rem; margin-bottom: 0.25rem; }
.toast-desc { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* Utility */
.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;
}
