:root {
  --color-surface-container: #edeeef;
  --color-inverse-primary: #ffb3b1;
  --color-on-tertiary-fixed: #181c21;
  --color-background: #f8f9fa;
  --color-inverse-surface: #2e3132;
  --color-surface-dim: #d9dadb;
  --color-on-secondary: #ffffff;
  --color-tertiary-fixed: #dfe2ea;
  --color-tertiary-container: #61656b;
  --color-on-secondary-container: #636467;
  --color-surface-container-highest: #e1e3e4;
  --color-error-container: #ffdad6;
  --color-on-primary-container: #ffdad8;
  --color-on-tertiary: #ffffff;
  --color-surface-tint: #bf0229;
  --color-on-background: #191c1d;
  --color-surface-container-low: #f3f4f5;
  --color-on-surface-variant: #5c403f;
  --color-secondary-container: #e2e2e5;
  --color-primary-container: #c8102e;
  --color-secondary-fixed: #e2e2e5;
  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-outline-variant: #e5bdbb;
  --color-outline: #906f6e;
  --color-surface-container-high: #e7e8e9;
  --color-tertiary-fixed-dim: #c3c6ce;
  --color-secondary-fixed-dim: #c6c6c9;
  --color-on-surface: #191c1d;
  --color-on-primary: #ffffff;
  --color-on-tertiary-fixed-variant: #43474d;
  --color-surface-variant: #e1e3e4;
  --color-surface-container-lowest: #ffffff;
  --color-inverse-on-surface: #f0f1f2;
  --color-surface: #f8f9fa;
  --color-tertiary: #494d53;
  --color-surface-bright: #f8f9fa;
  --color-on-secondary-fixed: #1a1c1e;
  --color-on-primary-fixed: #410007;
  --color-on-error-container: #93000a;
  --color-primary-fixed-dim: #ffb3b1;
  --color-secondary: #5d5e61;
  --color-primary: #9e001f;
  --color-on-tertiary-container: #e0e3ea;
  --color-primary-fixed: #ffdad8;
  --color-on-primary-fixed-variant: #92001c;
  --color-on-secondary-fixed-variant: #454749;

  /* Fonts */
  --font-body: 'Roboto', sans-serif;
  --font-headline: 'Roboto', sans-serif;
  --font-label: 'Roboto', sans-serif;

  /* Spacing */
  --spacing-margin-mobile: 16px;
  --spacing-margin-desktop: 40px;
  --spacing-unit: 8px;
  --spacing-gutter: 24px;
  --spacing-container-max: 1280px;
}

/* Base Reset */
body.modern-redesign {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-on-background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

.modern-redesign a {
  text-decoration: none;
  color: inherit;
}

/* Typography Base */
.modern-redesign h1, .modern-redesign h2, .modern-redesign h3, .modern-redesign h4, .modern-redesign h5, .modern-redesign h6 {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
}
.modern-redesign p { margin: 0 0 1rem 0; }
.modern-redesign ul { margin: 0; padding: 0; }

/* Colors */
.text-primary { color: var(--color-primary); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-on-primary { color: var(--color-on-primary); }
.text-tertiary { color: var(--color-tertiary); }
.text-on-tertiary { color: var(--color-on-tertiary); }
.text-surface { color: var(--color-surface); }
.text-surface-variant { color: var(--color-surface-variant); }
.text-tertiary-fixed-dim { color: var(--color-tertiary-fixed-dim); }
.text-on-secondary-fixed { color: var(--color-on-secondary-fixed); }
.text-on-secondary-fixed-variant { color: var(--color-on-secondary-fixed-variant); }

.bg-primary { background-color: var(--color-primary); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest); }
.bg-surface-container-highest { background-color: var(--color-surface-container-highest); }
.bg-on-surface { background-color: var(--color-on-surface); }
.bg-on-primary { background-color: var(--color-on-primary); }
.bg-tertiary { background-color: var(--color-tertiary); }
.bg-secondary-fixed { background-color: var(--color-secondary-fixed); }

/* Text Styles */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-\[10px\] { font-size: 10px; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }

.uppercase { text-transform: uppercase; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

/* Lists */
.list-none { list-style-type: none; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }
.list-outside { list-style-position: outside; }

/* Custom Type Classes */
.font-headline-xl { font-family: var(--font-headline); font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.font-headline-lg { font-family: var(--font-headline); font-size: 32px; line-height: 1.2; font-weight: 700; }
.font-headline-md { font-family: var(--font-headline); font-size: 24px; line-height: 1.3; font-weight: 600; }
.font-body-lg { font-family: var(--font-body); font-size: 18px; line-height: 1.6; font-weight: 400; }
.font-body-md { font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400; }
.font-label-sm { font-family: var(--font-label); font-size: 12px; line-height: 1.0; font-weight: 500; }

/* Layout & Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-gutter { gap: var(--spacing-gutter); }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-24 > * + * { margin-top: 6rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }

/* Sizing & Positioning */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-full { height: 100%; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.min-h-\[90px\] { min-height: 90px; }
.min-h-\[120px\] { min-height: 120px; }
.min-h-\[250px\] { min-height: 250px; }
.min-h-\[600px\] { min-height: 600px; }

.max-w-container-max { max-width: var(--spacing-container-max); }
.max-w-4xl { max-width: 56rem; }
.max-w-sm { max-width: 24rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.block { display: block; }
.inline-block { display: inline-block; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-24 { top: 6rem; }
.left-0 { left: 0; }
.left-2 { left: 0.5rem; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-margin-mobile { padding-left: var(--spacing-margin-mobile); padding-right: var(--spacing-margin-mobile); }

.pl-2 { padding-left: 0.5rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-8 { padding-left: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-8 { margin-left: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

/* Borders & Rounded */
.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-xl { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }
.rounded-bl-full { border-bottom-left-radius: 9999px; }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-dashed { border-style: dashed; }

.border-outline-variant { border-color: var(--color-outline-variant); }
.border-outline-variant\/50 { border-color: rgba(229, 189, 187, 0.5); }
.border-primary { border-color: var(--color-primary); }
.border-primary\/20 { border-color: rgba(158, 0, 31, 0.2); }

/* Shadow */
.shadow-\[0_0_0_1px_var\(--tw-colors-primary\)_inset\] {
  box-shadow: 0 0 0 1px var(--color-primary) inset;
}

/* Effects & Media */
.bg-pattern {
  background-image: radial-gradient(var(--color-surface-variant) 1px, transparent 1px);
  background-size: 20px 20px;
}
.bg-primary\/10 { background-color: rgba(158, 0, 31, 0.1); }
.bg-primary\/90 { background-color: rgba(158, 0, 31, 0.9); }
.bg-tertiary\/90 { background-color: rgba(73, 77, 83, 0.9); }
.bg-surface-container-highest\/30 { background-color: rgba(225, 227, 228, 0.3); }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center { object-position: center; }
.mix-blend-multiply { mix-blend-mode: multiply; }
.aspect-square { aspect-ratio: 1 / 1; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15)); }

/* Transitions & Hover */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.hover\:bg-primary:hover { background-color: var(--color-primary); }
.hover\:bg-primary\/90:hover { background-color: rgba(158, 0, 31, 0.9); }
.hover\:bg-tertiary:hover { background-color: var(--color-tertiary); }
.hover\:bg-tertiary\/90:hover { background-color: rgba(73, 77, 83, 0.9); }
.hover\:bg-surface-container-low:hover { background-color: var(--color-surface-container-low); }
.hover\:text-on-primary:hover { color: var(--color-on-primary); }
.hover\:text-on-tertiary:hover { color: var(--color-on-tertiary); }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:border-primary:hover { border-color: var(--color-primary); }
.hover\:border-tertiary:hover { border-color: var(--color-tertiary); }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-primary { color: var(--color-primary); }

/* Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Visibility (Mobile vs Desktop) */
.hidden { display: none !important; }

.mobile-nav-active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  padding: 16px;
  border-bottom: 1px solid var(--color-outline);
  box-shadow: 4px 4px 0px var(--color-outline);
  z-index: 40;
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:px-margin-desktop { padding-left: var(--spacing-margin-desktop); padding-right: var(--spacing-margin-desktop); }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:inline-flex { display: inline-flex !important; }
  .md\:justify-end { justify-content: flex-end; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* Accessibility: Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--color-primary, #dc2626);
  color: #fff;
  z-index: 9999;
}