/* === Color System === */
:root {
  /* Primary Colors */
  --color-background: #d9d4c3;        /* Sage-cream gradient background */
  --color-header: #98a99b;            /* Muted sage green - header bar */
  --color-primary-text: #344c4b;      /* Deep teal/forest - main text */
  --color-accent: #d18c5a;            /* Burnt orange - buttons, CTAs */
  --color-accent-hover: #c47a48;      /* Darker orange for hover */
  
  /* Secondary Colors */
  --color-card-sage: #c0ccc1;         /* Light sage - card backgrounds */
  --color-card-cream: #f0ede0;        /* Warm cream - alternate card bg */
  --color-nav-text: #566351;          /* Olive green - navigation text */
  
  /* Functional */
  --color-shadow: rgba(0, 0, 0, 0.1); /* Subtle shadows */
  
  /* Font Stack */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  
  /* Type Scale */
  --text-hero: 48px;          /* Main headline */
  --text-subheading: 18px;    /* Taglines, section headers */
  --text-body: 16px;          /* Body copy, navigation */
  --text-button: 14px;        /* Button labels */
  --text-small: 12px;         /* Reading times, metadata */
  
  /* Font Weights */
  --weight-bold: 700;
  --weight-medium: 500;
  --weight-regular: 400;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  
  /* Consistent gaps */
  --card-gap: 20px;
  --section-padding: 48px;
  --container-margin: 64px;
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--color-primary-text);
}

.font-serif {
  font-family: var(--font-heading);
}

/* === Header Bar === */
.header {
  background: var(--color-header);
  padding: 16px var(--section-padding);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* === Buttons === */
.btn-primary {
  background: var(--color-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: var(--weight-bold);
  font-size: var(--text-button);
  box-shadow: 2px 2px 5px var(--color-shadow);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 3px 3px 8px var(--color-shadow);
}

/* === Cards with True 3D Neo-Realism === */
.card {
  /* Base styling with subtle gradient overlay */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 35%
  ), var(--color-card-sage);
  
  border-radius: 12px;
  padding: 28px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  
  /* THE MAGIC - Multi-layer shadows with stronger contrast */
  box-shadow: 
    /* Ambient shadow - wider, deeper */
    0 25px 70px rgba(52, 76, 75, 0.14),
    /* Depth shadow - pronounced */
    0 12px 35px rgba(52, 76, 75, 0.18),
    /* Contact shadow - sharp edge */
    0 4px 10px rgba(52, 76, 75, 0.22),
    /* Inner top highlight - light source feel */
    inset 0 2px 3px rgba(255, 255, 255, 0.35);
  
  /* Smooth transitions */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blurred organic blob behind card */
.card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(152, 169, 155, 0.25) 0%,
    rgba(209, 140, 90, 0.15) 50%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 
    /* Intensified ambient - dramatic lift */
    0 35px 90px rgba(52, 76, 75, 0.18),
    /* Enhanced depth */
    0 18px 50px rgba(52, 76, 75, 0.22),
    /* Sharper contact */
    0 8px 18px rgba(52, 76, 75, 0.28),
    /* Brighter inner highlight */
    inset 0 3px 5px rgba(255, 255, 255, 0.45);
}

.card:hover::before {
  opacity: 0.8;
}

.card-sage {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 35%
  ), var(--color-card-sage);
}

.card-cream {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 35%
  ), var(--color-card-cream);
}

.card-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-subheading);
  margin-bottom: var(--space-sm);
  color: var(--color-primary-text);
}

/* === Navigation === */
.nav-link {
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* === Hero Section === */
.hero-title {
  font-size: var(--text-hero);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-primary-text);
  text-align: center;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-subheading);
  color: var(--color-nav-text);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* === Link Colors === */
a {
  color: var(--color-accent);
  transition: color 0.2s ease;
}

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

/* === Text Utilities === */
.text-primary {
  color: var(--color-primary-text);
}

.text-accent {
  color: var(--color-accent);
}

.text-nav {
  color: var(--color-nav-text);
}

.text-small {
  font-size: var(--text-small);
}

/* === Spacing Utilities === */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* === Line Clamp === */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Prose Styling === */
.prose {
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1.5em;
}

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

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

/* === Focus States === */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-card-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-card-sage);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-header);
}

/* === Print Styles === */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: white;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* === Responsive === */
/* Mobile: <768px */
@media (max-width: 767px) {
  :root {
    --text-hero: 32px;
    --text-subheading: 16px;
    --text-body: 14px;
    --section-padding: 24px;
  }
  
  .hero-title {
    font-size: var(--text-hero);
  }
  
  .card {
    padding: 20px;
  }
}

/* Tablet: 768px - 1199px */
@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --text-hero: 40px;
    --section-padding: 36px;
  }
}

/* Desktop: 1200px+ */
@media (min-width: 1200px) {
  /* Default styles apply */
}
