:root {
  /* Quiet Luxury & Woodworking Color Palette */
  --bg-primary: #fdfaf6;
  --bg-secondary: #faf5ec;
  --bg-accent: #f5ede0;
  
  --brand-primary: #8b5e2e;
  --brand-secondary: #b07d3a;
  --brand-accent: #d4a843;
  
  --text-primary: #3d2c1e;
  --text-secondary: #7a5c3e;
  --text-tertiary: #a38c75;
  
  --border-color: #e8d5bb;
  --border-highlight: #f0e0cc;
  
  --success: #10b981;
  --danger: #ef4444;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(61, 44, 30, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(61, 44, 30, 0.1), 0 2px 4px -1px rgba(61, 44, 30, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1410;
    --bg-secondary: #261f18;
    --bg-accent: #332921;
    
    --brand-primary: #b07d3a;
    --brand-secondary: #d4a843;
    --brand-accent: #f3d484;
    
    --text-primary: #fdfaf6;
    --text-secondary: #e8d5bb;
    --text-tertiary: #a38c75;
    
    --border-color: #3d2c1e;
    --border-highlight: #5a422e;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Artisanal Text Selection */
::selection {
  background-color: var(--brand-primary);
  color: #fdfaf6;
}

/* Premium Keyboard Focus */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.4);
  border-radius: 2px;
}

/* Custom Cinematic Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 5, 2, 0.8); 
}
::-webkit-scrollbar-thumb {
  background: var(--brand-primary); 
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-accent); 
}

/* Cinematic Page Transition */
.page-transition {
  animation: fade-in-page 0.4s ease-out forwards;
}

@keyframes fade-in-page {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Interactive Table Rows */
.interactive-row {
  transition: transform 0.2s ease, background 0.2s ease;
}
.interactive-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Base Utility Classes (Vanilla CSS alternatives) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-sans);
  min-height: 44px; /* Mobile touch target standard */
}

.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;
}

.standard-header {
  height: 200px;
  background-image: url('/new_hero_page.png');
  background-size: cover;
  background-position: top center;
  /* Organic smooth curve to cut off the skylight */
  clip-path: polygon(
    0 0, 
    100% 0, 
    100% 62%, 
    38% 62%, 
    34% 65%, 
    30% 72%, 
    26% 76%, 
    0 76%
  );
  position: relative;
  border-bottom: 2px solid var(--brand-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}

/* Laser Engraved Navigation */
.laser-nav {
  position: absolute;
  right: 4%;
  top: 35%;
  transform: translateY(-50%);
  display: flex;
  gap: 32px;
  z-index: 100;
  /* Brighter light faded background to make text pop on dark wood */
  background: radial-gradient(ellipse at center, rgba(255, 230, 200, 0.45) 0%, rgba(255, 230, 200, 0.15) 60%, transparent 100%);
  padding: 16px 48px;
  border-radius: 60px;
}

.laser-nav a {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  /* Deep burnt wood color for the engraving */
  color: rgba(10, 5, 2, 0.95);
  /* Highlight on bottom edge, deep inner shadow on top edge creates realistic 3D burn */
  text-shadow: 
    0px 1px 1px rgba(255, 255, 255, 0.4), 
    0px -1px 2px rgba(0, 0, 0, 0.9),
    0px -2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.laser-nav a:hover {
  color: rgba(0, 0, 0, 1);
  text-shadow: 
    0px 1px 1px rgba(255, 255, 255, 0.5), 
    0px -1px 3px rgba(0, 0, 0, 1),
    0px -2px 6px rgba(0, 0, 0, 0.9);
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-secondary);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
}

/* Phase 6: Vertical Drop Panel Transitions */
.page-transition {
  animation: slide-down-in 0.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.slide-up-out {
  animation: slide-up-out 0.3s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
}

@keyframes slide-down-in {
  0% { transform: translateY(-100vh); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slide-up-out {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Footer Brand Hover */
.footer-brand:hover {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive Grid Base */
.grid {
  display: grid;
  gap: 24px;
}

/* Mobile first grids */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* V2.1 Glass Panel - Optimized for Admin Eye Comfort */
.glass-panel {
  background: rgba(22, 18, 15, 0.85); /* Dark, warm translucent base */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fdfaf6;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-panel h1, .glass-panel h2, .glass-panel h3, .glass-panel h4 {
  color: #f3d484; /* Soft gold for headers to ensure readability */
}

.glass-panel p, .glass-panel label, .glass-panel span {
  color: #e8d5bb; /* Soft off-white for body text */
}

.glass-panel input, .glass-panel textarea, .glass-panel select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.glass-panel input:focus, .glass-panel textarea:focus, .glass-panel select:focus {
  border-bottom-color: var(--brand-accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

