/* ==========================================================================
   PSYCHOLOGUE GEMBLOUX — DESIGN SYSTEM
   Modern, accessible, responsive single-page website
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */

:root {
  /* Base sizing */
  --font-size-base: 17px;
  --line-height-base: 1.65;
  --container-max: 1140px;
  --container-padding: clamp(1rem, 5vw, 2rem);
  
  /* Spacing scale */
  --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;
  
  /* Typography */
  --font-family: 'Scope One', Georgia, 'Times New Roman', serif;
  --font-family-heading: 'Scope One', Georgia, 'Times New Roman', serif;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Shadows (will be customized per theme) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Focus ring */
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
}

/* --------------------------------------------------------------------------
   THEME: LIGHT (Default)
   -------------------------------------------------------------------------- */

[data-theme="light"] {
  color-scheme: light;
  
  /* Backgrounds */
  --bg-primary: #f8f6f3;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0ebe5;
  --bg-card: #ffffff;
  --bg-overlay: rgba(248, 246, 243, 0.95);
  
  /* Text */
  --text-primary: #362d2d;
  --text-secondary: #555a5c;
  --text-muted: #7f8587;
  --text-inverse: #ffffff;
  
  /* Accent (sage green / ginkgo inspired) */
  --accent-primary: #6b8f71;
  --accent-secondary: #8fb996;
  --accent-light: #e8f0e9;
  --accent-dark: #4a6b4f;
  
  /* Borders */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-dark: rgba(0, 0, 0, 0.2);
  
  /* Interactive states */
  --hover-bg: rgba(107, 143, 113, 0.08);
  --active-bg: rgba(107, 143, 113, 0.15);
  
  /* Focus */
  --focus-ring-color: rgba(107, 143, 113, 0.5);
  
  /* Ginkgo pattern */
  --ginkgo-opacity: 0.04;
  
  /* Specific components */
  --header-bg: rgba(248, 246, 243, 0.9);
  --quote-bg: var(--accent-light);
  --quote-border: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   THEME: DARK
   -------------------------------------------------------------------------- */

[data-theme="dark"] {
  color-scheme: dark;
  
  /* Backgrounds */
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-tertiary: #2d2d2d;
  --bg-card: #2a2a2a;
  --bg-overlay: rgba(26, 26, 26, 0.95);
  
  /* Text */
  --text-primary: #f0ebe5;
  --text-secondary: #c4c0ba;
  --text-muted: #8a8784;
  --text-inverse: #1a1a1a;
  
  /* Accent (lighter sage for dark mode) */
  --accent-primary: #8fb996;
  --accent-secondary: #a8cead;
  --accent-light: #2d3d2f;
  --accent-dark: #6b8f71;
  
  /* Borders */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(255, 255, 255, 0.2);
  
  /* Interactive states */
  --hover-bg: rgba(143, 185, 150, 0.1);
  --active-bg: rgba(143, 185, 150, 0.2);
  
  /* Focus */
  --focus-ring-color: rgba(143, 185, 150, 0.6);
  
  /* Ginkgo pattern */
  --ginkgo-opacity: 0.03;
  
  /* Specific components */
  --header-bg: rgba(26, 26, 26, 0.9);
  --quote-bg: var(--bg-tertiary);
  --quote-border: var(--accent-primary);
  
  /* Shadows for dark mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   THEME: HIGH CONTRAST
   -------------------------------------------------------------------------- */

[data-theme="contrast"] {
  color-scheme: light;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.98);
  
  /* Text - Maximum contrast */
  --text-primary: #000000;
  --text-secondary: #1a1a1a;
  --text-muted: #333333;
  --text-inverse: #ffffff;
  
  /* Accent - High contrast green */
  --accent-primary: #006400;
  --accent-secondary: #228b22;
  --accent-light: #e6ffe6;
  --accent-dark: #004d00;
  
  /* Borders - Strong and visible */
  --border-light: #666666;
  --border-medium: #333333;
  --border-dark: #000000;
  
  /* Interactive states */
  --hover-bg: #e6ffe6;
  --active-bg: #ccffcc;
  
  /* Focus - Very visible */
  --focus-ring-color: #000000;
  --focus-ring-width: 4px;
  
  /* Ginkgo pattern - Hidden in high contrast */
  --ginkgo-opacity: 0;
  
  /* Specific components */
  --header-bg: #ffffff;
  --quote-bg: #ffffcc;
  --quote-border: #000000;
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1em;
}

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

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY UTILITIES
   -------------------------------------------------------------------------- */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: var(--text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Visually hidden (screen reader 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;
}

/* Focus styles */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Placeholder text */
.placeholder {
  color: var(--text-muted);
  font-style: italic;
  background: var(--hover-bg);
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   LAYOUT: CONTAINER
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-sm) var(--container-padding);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.5rem;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-primary);
  background: var(--hover-bg);
}

.nav-link.active {
  color: var(--accent-primary);
  background: var(--accent-light);
}

.nav-link--cta {
  background: var(--accent-primary);
  color: var(--text-inverse) !important;
  margin-left: var(--space-sm);
}

.nav-link--cta:hover,
.nav-link--cta:focus {
  background: var(--accent-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  padding: var(--space-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.theme-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.theme-btn[aria-pressed="true"] {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  color: var(--accent-primary);
}

.theme-btn svg {
  flex-shrink: 0;
}

/* Mobile navigation */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    order: 3;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-md);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  }
  
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-link {
    padding: var(--space-md);
  }
  
  .nav-link--cta {
    margin: var(--space-sm) 0 0;
    text-align: center;
  }
  
  .theme-toggle {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   GINKGO PATTERN BACKGROUND
   -------------------------------------------------------------------------- */

.ginkgo-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--ginkgo-opacity);
  background-image: url('assets/ginkgo-pattern.svg');
  background-repeat: repeat;
  background-size: 300px;
  z-index: 0;
}

/* Size variations for visual interest */
.ginkgo-pattern--xs {
  background-size: 120px;
  opacity: calc(var(--ginkgo-opacity) * 0.7);
}

.ginkgo-pattern--sm {
  background-size: 200px;
}

.ginkgo-pattern--md {
  background-size: 350px;
}

.ginkgo-pattern--lg {
  background-size: 500px;
  opacity: calc(var(--ginkgo-opacity) * 1.2);
}

.ginkgo-pattern--xl {
  background-size: 700px;
  opacity: calc(var(--ginkgo-opacity) * 1.3);
}

.ginkgo-pattern--xxl {
  background-size: 1000px;
  opacity: calc(var(--ginkgo-opacity) * 1.5);
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.section--alt {
  background: var(--bg-secondary);
}

.section .container {
  position: relative;
  z-index: 1;
}

/* Section grid (visual / content alternating) */
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
  
  .section-grid--reverse .section-visual {
    order: -1;
  }
}

/* Section titles */
.section-title {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-title--center {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-secondary);
}

/* Visual placeholders */
.section-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Parallax container for images */
.parallax-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.parallax-image {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .parallax-image {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   ORGANIC SHAPED IMAGES
   -------------------------------------------------------------------------- */

.organic-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}

.organic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Shape variations */
.organic-image--circle img {
  border-radius: 50%;
}

.organic-image--blob-1 img {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-image--blob-2 img {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.organic-image--blob-3 img {
  border-radius: 70% 30% 50% 50% / 50% 50% 30% 70%;
}

.organic-image--blob-4 img {
  border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
}

.organic-image--leaf img {
  border-radius: 5% 95% 10% 90% / 90% 10% 95% 5%;
}

.organic-image--pebble img {
  border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
}

/* Soft shadow for floating effect */
.organic-image::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 10%;
  right: 10%;
  height: 20%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(8px);
}

/* Animation on hover */
.organic-image img {
  transition: transform var(--transition-slow);
}

.organic-image:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .organic-image:hover img {
    transform: none;
  }
}

/* Decorative ring behind image */
.organic-image--decorated::before {
  content: '';
  position: absolute;
  inset: -8%;
  border: 2px solid var(--accent-secondary);
  opacity: 0.3;
  z-index: -1;
}

.organic-image--circle.organic-image--decorated::before {
  border-radius: 50%;
}

.organic-image--blob-1.organic-image--decorated::before {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-image--blob-2.organic-image--decorated::before {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.organic-image--blob-3.organic-image--decorated::before {
  border-radius: 70% 30% 50% 50% / 50% 50% 30% 70%;
}

.organic-image--leaf.organic-image--decorated::before {
  border-radius: 5% 95% 10% 90% / 90% 10% 95% 5%;
}

/* Ginkgo leaf wind animation */
.ginkgo-leaf-animated {
  animation: gentle-wind 4s ease-in-out infinite;
  transform-origin: 100px 200px;
  transform-box: fill-box;
}

@keyframes gentle-wind {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-1.5deg);
  }
  75% {
    transform: rotate(1deg);
  }
}

/* Subtle leaf flutter for the veins */
.ginkgo-leaf-veins {
  animation: leaf-flutter 3s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes leaf-flutter {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ginkgo-leaf-animated,
  .ginkgo-leaf-veins {
    animation: none;
  }
}

.visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
}

.visual-placeholder span {
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.visual-placeholder small {
  font-size: 0.875rem;
}

/* Prose content */
.prose {
  max-width: 65ch;
}

.prose h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--accent-dark);
}

.prose h3:first-child {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-4xl) + 60px);
}

.section--hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .section--hero .container {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.hero-title {
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.hero-subtitle {
  display: block;
  width: 100%;
  color: var(--accent-primary);
  font-weight: 500;
}

.hero-location {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual .organic-image {
  max-width: 650px;
}

.hero-visual .organic-image img {
  object-position: center 15%;
}

.hero-visual .visual-placeholder {
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--text-inverse);
}

.btn--secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.btn--small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   LISTS
   -------------------------------------------------------------------------- */

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

.check-list li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: var(--space-sm);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.feature-list li strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.feature-list li span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   BLOCKQUOTES
   -------------------------------------------------------------------------- */

blockquote.quote {
  padding: var(--space-lg);
  background: var(--quote-bg);
  border-left: 4px solid var(--quote-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-xl) 0;
}

blockquote.quote p {
  font-style: italic;
  margin: 0;
}

/* --------------------------------------------------------------------------
   TIMELINE
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-xl) - 1px);
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-primary);
  border-radius: 50%;
}

.timeline-item--current .timeline-marker {
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline-content {
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.timeline-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.timeline-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   INFO CARDS
   -------------------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.info-card {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card--highlight {
  background: var(--accent-light);
  border-color: var(--accent-primary);
}

.info-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.info-card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.info-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.info-card__text {
  color: var(--text-secondary);
  margin: 0;
}

.info-note {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.info-note p {
  margin-bottom: var(--space-md);
}

.info-note p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   QUOTES SECTION
   -------------------------------------------------------------------------- */

.section--quotes {
  background: var(--accent-light);
}

.quotes-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.quote-card {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.quote-card blockquote {
  margin: 0 0 var(--space-md);
}

.quote-card blockquote p {
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.quote-card figcaption {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

.quote-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-primary);
}

.quote-card figcaption span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */

.section--contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-details {
  font-style: normal;
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--accent-primary);
}

/* Map OpenStreetMap */
.map-container {
  flex: 1;
  min-height: 200px;
}

.map-container iframe {
  display: block;
  width: 100%;
  min-height: 250px;
  background: var(--bg-tertiary);
}

.map-link {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 0.875rem;
}

.map-link a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-link a:hover {
  color: var(--accent-dark);
}

/* Contact form */
.contact-form-wrapper {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-title {
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Honeypot (hidden) */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.required {
  color: #c0392b;
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover {
  border-color: var(--border-dark);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-ring-color);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox */
.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-group--checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-primary);
}

.form-label--checkbox {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-tertiary);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-info address {
  font-style: normal;
  margin-top: var(--space-md);
  color: var(--text-secondary);
}

.footer-info address a {
  color: var(--text-secondary);
}

.footer-nav h4,
.footer-legal h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-legal p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-credits {
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.toast[hidden] {
  display: none;
}

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

.toast--success {
  border-color: var(--accent-primary);
}

.toast--error {
  border-color: #c0392b;
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-message {
  flex: 1;
  font-size: 0.9375rem;
}

.toast-close {
  padding: var(--space-xs);
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .toast {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   ANIMATIONS (Intersection Observer)
   -------------------------------------------------------------------------- */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for lists */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.is-visible > *:nth-child(5) { transition-delay: 0.5s; }

.animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion: no animations */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .theme-toggle,
  .nav-toggle,
  .skip-link,
  .ginkgo-pattern,
  .toast,
  .contact-form-wrapper,
  .hero-actions {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .section {
    padding: 1cm 0;
    page-break-inside: avoid;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
