/* ═══════════════════════════════════════════════
   Veda Culinary Science — Production Stylesheet
   "Scientific Field Journal" aesthetic
   ═══════════════════════════════════════════════ */

/* ── CSS Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Custom Properties ── */
:root {
  --espresso: #3E2723;
  --cocoa: #5D4037;
  --sepia: #DED0C1;
  --aged-flour: #F5F1E9;
  --white: #FFFFFF;
  --fdfbf7: #FDFBF7;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--aged-flour);
  color: var(--espresso);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  /* Subtle paper texture via inline SVG data-URI (no external dependency) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23F5F1E9'/%3E%3Crect width='1' height='1' fill='%23EDE7DA' opacity='0.4'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }

::selection { background-color: var(--sepia); }

/* ── Typography Utility Classes ── */
.font-inter { font-family: 'Inter', sans-serif; }
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }

.mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cocoa);
}

/* ── Layout ── */
.container { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.container-narrow { max-width: 56rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ── Flexbox ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ── Grid ── */
.grid { display: grid; }

/* ── Spacing ── */
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-2 { padding: 0.5rem; }
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.-mt-1 { margin-top: -0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Sizing ── */
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.aspect-video { aspect-ratio: 16 / 9; }

/* ── Text ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.15; }
.leading-relaxed { line-height: 1.625; }
.opacity-20 { opacity: 0.2; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

/* ── Colors ── */
.text-cocoa { color: var(--cocoa); }
.text-espresso { color: var(--espresso); }
.text-aged-flour { color: var(--aged-flour); }
.text-green-800 { color: #166534; }
.bg-espresso { background-color: var(--espresso); }
.bg-cocoa { background-color: var(--cocoa); }
.bg-sepia { background-color: var(--sepia); }
.bg-white { background-color: var(--white); }
.bg-fdfbf7 { background-color: var(--fdfbf7); }
.rounded-full { border-radius: 9999px; }
.rounded-sm { border-radius: 0.125rem; }

/* ── Borders ── */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-sepia { border-color: var(--sepia); }
.border-espresso { border-color: var(--espresso); }

/* ── Shadows ── */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* ── Overflow / Display ── */
.overflow-hidden { overflow: hidden; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }

/* ── Journal Border (brand element) ── */
.journal-border {
  border: 1px solid var(--sepia);
  position: relative;
}
.journal-border::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid rgba(93, 64, 55, 0.1);
  pointer-events: none;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background-color: var(--espresso);
  color: var(--aged-flour);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--cocoa);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--espresso);
  background: transparent;
  color: var(--espresso);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: var(--sepia);
}

/* ── Links ── */
a { color: inherit; text-decoration: none; }
a.nav-link { transition: color 0.2s ease; }
a.nav-link:hover { color: var(--cocoa); }

/* ── Watercolor Background Blobs ── */
.watercolor-blob {
  position: absolute;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.15;
  background: var(--sepia);
  border-radius: 50%;
  pointer-events: none;
}
.blob-1 { width: 24rem; height: 24rem; top: -5rem; left: -5rem; }
.blob-2 { width: 20rem; height: 20rem; bottom: 0; right: 0; background: var(--cocoa); }

/* ── Values Cards ── */
.values-section { background-color: var(--espresso); color: var(--aged-flour); }

/* ── Space-y utility ── */
.space-y-3 > * + * { margin-top: 0.75rem; }

/* ── List reset ── */
ul { list-style: none; padding: 0; }

/* ── Philosophy Section ── */
.philosophy-section {
  border-top: 1px solid var(--sepia);
  border-bottom: 1px solid var(--sepia);
}

.philosophy-lead {
  max-width: 46rem;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--cocoa);
  font-weight: 300;
}

.philosophy-card {
  border: 1px solid var(--sepia);
  background-color: var(--white);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.philosophy-card::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid rgba(93, 64, 55, 0.08);
  pointer-events: none;
}
.philosophy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.08);
}

.pillar-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sepia);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.section-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--sepia);
  margin: 0 auto 2rem;
  border: none;
}

/* ═══════════════════════════════════════
   Entrance Animations
   ═══════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Hero-specific: start visible (above the fold) */
.hero-animate {
  animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-animate.delay-1 { animation-delay: 0.15s; opacity: 0; }
.hero-animate.delay-2 { animation-delay: 0.3s; opacity: 0; }
.hero-animate.delay-3 { animation-delay: 0.5s; opacity: 0; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   Responsive — Medium Screens (768px+)
   ═══════════════════════════════════════ */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1.05; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-left { text-align: left; }
}

/* ── Small screens: stack layout ── */
@media (max-width: 767px) {
  .text-5xl { font-size: 2.25rem; line-height: 1.15; }
  .text-4xl { font-size: 1.75rem; line-height: 1.2; }
  .text-2xl { font-size: 1.25rem; }
  .py-24 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-20 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .gap-12 { gap: 2rem; }
}

/* ── Footer link hover ── */
.footer-link { transition: color 0.2s ease; }
.footer-link:hover { color: var(--cocoa); text-decoration: underline; }
