/* ============================================
   HUGON VENEER - Base Styles
   Premium European Material Brand Aesthetic
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-primary: #2C1810;
  --color-primary-dark: #1A0E08;
  --color-primary-light: #3D2419;
  --color-secondary: #8B6914;
  --color-secondary-dark: #6B4F0E;
  --color-accent: #D4A76A;
  --color-accent-soft: #E6C998;
  --color-bg: #FAFAF8;
  --color-bg-alt: #F2EEE7;
  --color-bg-dark: #1F1612;
  --color-text: #1A1A1A;
  --color-text-soft: #3A3A38;
  --color-muted: #6B6B6B;
  --color-muted-light: #9B9B9B;
  --color-border: #E5E0D8;
  --color-border-strong: #C9BFAA;
  --color-white: #FFFFFF;

  /* Semantic colors (status, feedback) */
  --color-success: #4A6B3A;
  --color-error: #8B2E2E;
  --color-warning: #B8862B;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-12: 10rem;
  --space-16: 12rem;
  --space-20: 14rem;
  --space-24: 16rem;

  /* Font sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-5xl: 4rem;

  /* Font weights */
  --fw-normal: 400;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line heights */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;
  --lh-loose: 1.85;
  --lh-base: 1.6;

  /* Letter spacing */
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.04em;
  --ls-wider: 0.08em;
  --ls-widest: 0.15em;

  /* Transitions */
  --t-fast: 150ms;
  --t-base: 300ms;
  --t-slow: 500ms;
  --t-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --t-ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);

  /* Borders & Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 16, 10, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 16, 10, 0.08);
  --shadow-lg: 0 8px 30px rgba(28, 16, 10, 0.12);
  --shadow-xl: 0 16px 50px rgba(28, 16, 10, 0.16);

  /* Layout */
  --container-max: 1240px;
  --container-padding: 1.5rem;
  --container-text: 720px;
  --header-height: 72px;
  --nav-height: 64px;
  --utility-height: 36px;

  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 1000;
  --z-toast: 1100;
  --z-modal: 2000;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--lh-normal);
  font-size: var(--fs-base);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Typography - Headings
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
}

h1 { font-size: var(--fs-5xl); margin-bottom: var(--space-5); }
h2 { font-size: var(--fs-4xl); margin-bottom: var(--space-5); }
h3 { font-size: var(--fs-3xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--fs-2xl); margin-bottom: var(--space-4); }
h5 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
h6 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }

/* ============================================
   Paragraphs & Links
   ============================================ */
p {
  margin-bottom: var(--space-4);
  color: var(--color-text-soft);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base) var(--t-ease);
}
a:hover { color: var(--color-secondary); }

/* ============================================
   Lists
   ============================================ */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   Images
   ============================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ============================================
   Screen Reader / Accessibility
   ============================================ */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Text Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

/* Lead text */
.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-soft);
}
.lead-lg {
  font-size: var(--fs-xl);
  line-height: var(--lh-relaxed);
  color: var(--color-text-soft);
  font-weight: var(--fw-normal);
}

/* Eyebrow label */
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

/* ============================================
   Background Utilities
   ============================================ */
.bg-white { background-color: var(--color-white); }
.bg-alt { background-color: var(--color-bg-alt); }
.bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6 { color: var(--color-white); }
.bg-dark p { color: rgba(255, 255, 255, 0.8); }

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.bg-primary h1, .bg-primary h2, .bg-primary h3,
.bg-primary h4, .bg-primary h5, .bg-primary h6 { color: var(--color-white); }

/* ============================================
   Section Styles
   ============================================ */
/* Section base padding only; component-level section styles
   (section__header, section__title, section__intro, section__cta,
   background variants) live in components.css */

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: var(--space-3) 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--color-muted);
}
.breadcrumb li::after {
  content: "/";
  margin-left: var(--space-2);
  color: var(--color-border);
}
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li[aria-current="page"] {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.6s var(--t-ease) forwards;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   Selection & Focus
   ============================================ */
::selection {
  background-color: var(--color-accent-soft);
  color: var(--color-primary);
}
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ============================================
   Smooth Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }
