/* =================================================================
   GOLDENWOOD AGRO — Base Styles: Reset, Typography, Global
   ================================================================= */

/* ── Global Reset / Box Model ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--gw-font-body);
  font-size: var(--gw-text-base);
  font-weight: var(--gw-fw-normal);
  line-height: var(--gw-lh-relaxed);
  color: var(--gw-text-primary);
  background-color: var(--gw-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--gw-accent);
  text-decoration: none;
}

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

/* ── Typography: Headings ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--gw-font-heading);
  font-weight: var(--gw-fw-bold);
  line-height: var(--gw-lh-tight);
  letter-spacing: var(--gw-ls-tight);
  color: var(--gw-text-primary);
  margin-bottom: 0.75em;
  margin-top: 0;
}

h1, .h1 {
  font-size: clamp(var(--gw-text-4xl), 5vw, var(--gw-text-6xl));
  font-weight: var(--gw-fw-extrabold);
  line-height: 1.1;
}

h2, .h2 {
  font-size: clamp(var(--gw-text-3xl), 4vw, var(--gw-text-5xl));
  font-weight: var(--gw-fw-bold);
  line-height: 1.15;
}

h3, .h3 {
  font-size: clamp(var(--gw-text-2xl), 3vw, var(--gw-text-3xl));
  font-weight: var(--gw-fw-semibold);
  line-height: 1.25;
}

h4, .h4 {
  font-size: clamp(var(--gw-text-xl), 2vw, var(--gw-text-2xl));
  font-weight: var(--gw-fw-semibold);
  line-height: 1.35;
}

h5, .h5 {
  font-size: var(--gw-text-xl);
  font-weight: var(--gw-fw-medium);
}

h6, .h6 {
  font-size: var(--gw-text-lg);
  font-weight: var(--gw-fw-medium);
}

/* ── Typography: Body ──────────────────────────────────────────── */
p {
  margin-top: 0;
  margin-bottom: var(--gw-space-4);
  color: var(--gw-text-secondary);
}

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

.lead {
  font-size: var(--gw-text-lg);
  line-height: var(--gw-lh-relaxed);
  color: var(--gw-text-600);
  font-weight: var(--gw-fw-normal);
}

.text-sm { font-size: var(--gw-text-sm); }
.text-xs { font-size: var(--gw-text-xs); }
.text-lg { font-size: var(--gw-text-lg); }
.text-xl { font-size: var(--gw-text-xl); }

.text-muted     { color: var(--gw-text-muted) !important; }
.text-primary   { color: var(--gw-primary) !important; }
.text-accent    { color: var(--gw-accent) !important; }
.text-white     { color: #ffffff !important; }
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }

/* ── Blockquote / Pullquote ────────────────────────────────────── */
blockquote {
  font-family: var(--gw-font-accent);
  font-style: italic;
  font-size: var(--gw-text-xl);
  color: var(--gw-primary);
  border-left: 4px solid var(--gw-accent);
  padding: var(--gw-space-4) var(--gw-space-6);
  margin: var(--gw-space-8) 0;
  background: var(--gw-bg-green-light);
  border-radius: 0 var(--gw-radius) var(--gw-radius) 0;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--gw-font-body);
  font-size: var(--gw-text-sm);
  color: var(--gw-text-muted);
  margin-top: var(--gw-space-2);
}

/* ── Lists ─────────────────────────────────────────────────────── */
.gw-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gw-list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gw-list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--gw-space-2);
  color: var(--gw-text-secondary);
  line-height: var(--gw-lh-relaxed);
}

.gw-list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='8' fill='%231A3D20'/%3E%3Cpath d='M4.5 8L7 10.5L11.5 6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.gw-list-check.gold li::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23C8962A'/%3E%3Cpath d='M4.5 8L7 10.5L11.5 6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Section Label (eyebrow text above headings) ───────────────── */
.section-label,
.gw-eyebrow {
  display: inline-block;
  font-family: var(--gw-font-heading);
  font-size: var(--gw-text-xs);
  font-weight: var(--gw-fw-semibold);
  letter-spacing: var(--gw-ls-wider);
  text-transform: uppercase;
  color: var(--gw-accent);
  margin-bottom: var(--gw-space-3);
}

.gw-eyebrow.on-dark {
  color: var(--gw-gold-300);
}

/* ── Dividers ──────────────────────────────────────────────────── */
hr, .gw-divider {
  border: none;
  border-top: 1px solid var(--gw-border);
  margin: var(--gw-space-8) 0;
}

.gw-divider-accent {
  border: none;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--gw-accent), var(--gw-gold-300));
  border-radius: var(--gw-radius-full);
  margin-bottom: var(--gw-space-6);
}

.gw-divider-accent.center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Selection ─────────────────────────────────────────────────── */
::selection {
  background: var(--gw-green-100);
  color: var(--gw-green-800);
}

/* ── Focus Styles ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gw-accent);
  outline-offset: 3px;
  border-radius: var(--gw-radius-sm);
}

/* ── Utilities ─────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.d-none    { display: none !important; }
.d-block   { display: block !important; }
.d-flex    { display: flex !important; }
.d-grid    { display: grid !important; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--gw-space-4) !important; }
.mb-4 { margin-bottom: var(--gw-space-4) !important; }
.mt-8 { margin-top: var(--gw-space-8) !important; }
.mb-8 { margin-bottom: var(--gw-space-8) !important; }
