/*
 * BerryFoods Base — reset, CSS variables, typography, global defaults
 * Primary: Deep Forest Green  |  Accent: Lime/Sage  |  Dark: Charcoal
 */

/* ── Google Fonts ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ───────────────────────────────────── */
:root {
	/* Brand Greens */
	--green-950:   #0a1f0f;
	--green-900:   #0f2d17;
	--green-800:   #1a4a28;
	--green-700:   #256636;
	--green-600:   #2e7d3f;
	--green-500:   #3a9e52;   /* primary */
	--green-400:   #52b96a;
	--green-300:   #7ecf91;
	--green-200:   #b3e4bf;
	--green-100:   #e2f5e7;
	--green-50:    #f3fbf5;

	/* Accent */
	--lime-400:    #a3e635;
	--lime-300:    #bef264;
	--sage-500:    #6a9e6f;
	--sage-200:    #c8dfc9;

	/* Neutrals */
	--charcoal:    #1c2420;
	--gray-800:    #2c3830;
	--gray-700:    #3d4f45;
	--gray-500:    #6b7c72;
	--gray-400:    #8fa097;
	--gray-300:    #b8c9be;
	--gray-200:    #d8e6dc;
	--gray-100:    #eef5f0;
	--gray-50:     #f6faf7;
	--white:       #ffffff;

	/* Semantic */
	--color-primary:        var(--green-500);
	--color-primary-dark:   var(--green-700);
	--color-primary-light:  var(--green-200);
	--color-accent:         var(--lime-400);
	--color-bg:             var(--gray-50);
	--color-surface:        var(--white);
	--color-border:         var(--gray-200);
	--color-text:           var(--charcoal);
	--color-text-muted:     var(--gray-500);
	--color-footer-bg:      var(--green-900);

	/* Typography */
	--font-display: 'Playfair Display', Georgia, serif;
	--font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;

	/* Spacing */
	--space-xs:  0.25rem;
	--space-sm:  0.5rem;
	--space-md:  1rem;
	--space-lg:  1.5rem;
	--space-xl:  2rem;
	--space-2xl: 3rem;
	--space-3xl: 4rem;
	--space-4xl: 6rem;

	/* Radius */
	--radius-sm:  6px;
	--radius-md:  10px;
	--radius-lg:  16px;
	--radius-xl:  24px;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-xs:   0 1px 2px rgba(15,45,23,0.06);
	--shadow-sm:   0 2px 8px rgba(15,45,23,0.08);
	--shadow-md:   0 4px 16px rgba(15,45,23,0.12);
	--shadow-lg:   0 8px 32px rgba(15,45,23,0.16);
	--shadow-xl:   0 16px 48px rgba(15,45,23,0.20);

	/* Transitions */
	--ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
	--duration-fast: 150ms;
	--duration-base: 250ms;
	--duration-slow: 400ms;

	/* Layout */
	--max-width: 1200px;
	--header-height: 72px;
}

/* ── Reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

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

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	background-color: var(--color-bg);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--duration-fast) var(--ease);
}

a:hover {
	color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	line-height: 1.2;
	font-weight: 700;
	color: var(--color-text);
}

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: var(--space-lg); }

button {
	font-family: var(--font-body);
	cursor: pointer;
}

input, textarea, select {
	font-family: var(--font-body);
}

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

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
	.container { padding: 0 var(--space-md); }
}