/**
 * YardNAcre Design System — Tokens & Base
 * Brand colors are fixed; typography, spacing, and layout are standardized.
 */

:root {
  /* Brand (do not change) */
  --color-primary: #0A192F;
  --color-primary-light: #172A45;
  --color-secondary: #1E293B;
  --color-accent: #C5A880;
  --color-accent-hover: #A18A5F;
  --color-accent-light: #F4EFE6;
  --color-text-dark: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #FAF8F5;
  --color-bg-light: #FAF8F5;
  --color-bg-white: #FFFFFF;
  --color-border: #E8E2D9;

  /* Typography */
  --font-headings: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: clamp(2.25rem, 4vw, 3.5rem);
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --tracking-wide: 0.08em;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6.25rem;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.05);
  --shadow-md: 0 8px 16px -2px rgba(10, 25, 47, 0.06), 0 4px 6px -2px rgba(10, 25, 47, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(10, 25, 47, 0.1), 0 10px 10px -5px rgba(10, 25, 47, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(10, 25, 47, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s var(--ease-out);
  --transition-normal: all 0.3s var(--ease-out);
  --transition-slow: all 0.5s var(--ease-out);

  /* Layout */
  --container-max: 1240px;
  --container-padding: 24px;
  --section-y: clamp(4rem, 8vw, 6.25rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0;
  line-height: var(--leading-tight);
}

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

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

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

.section-padding {
  padding: var(--section-y) 0;
}

.section-padding--sm {
  padding: calc(var(--section-y) * 0.65) 0;
}

.bg-white { background-color: var(--color-bg-white); }
.bg-light { background-color: var(--color-bg-light); }
.bg-navy-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-light);
}

.text-gold { color: var(--color-accent) !important; }
.text-muted { color: var(--color-text-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-light); }
::-webkit-scrollbar-thumb { background: var(--color-primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* Reveal animation */
.yn-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.yn-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .yn-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
