/* MCT Design System v2.0 - Jack Turner Aesthetic */
/* Privacy-first, lightweight, calm elegance */

:root {
  /* Base — Muted Basalt/Dusk Palette */
  --basalt-900: #1a1b1e; /* Deep basalt */
  --basalt-800: #2d2e33; /* Basalt shadow */
  --basalt-700: #3a3b42; /* Basalt medium */
  --dusk-600: #4a4b54; /* Dusk falling */
  --dusk-500: #5a5b66; /* Dusk */
  --dusk-400: #6d6e7a; /* Light dusk */
  
  /* Accent — Deep Sea Green */
  --sea-green-primary: #2d5a4e; /* Deep sea green */
  --sea-green-light: #3a7365; /* Sea green light */
  --sea-green-pale: #4a8c7c; /* Sea green pale */
  
  /* Micro-Accent — Warm Sand/Amber */
  --amber-warm: #d4a574; /* Warm sand */
  --amber-glow: #e6b885; /* Amber glow */
  --amber-pale: #f0d3a8; /* Pale amber */
  
  /* Text Colors */
  --text-primary: #e8e6e3; /* Warm white */
  --text-secondary: #b8b5b0; /* Muted light */
  --text-muted: #8a8782; /* Subtle text */
  
  /* Semantic Colors */
  --danger: #c67165; /* Muted coral */
  --success: #5a7a6c; /* Sage green */
  --warning: #d4a574; /* Warm sand (reuse) */
  
  /* Typography - System fonts only (privacy-first) */
  --font-prose: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-code: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
  --font-display: 'Georgia', 'Cambria', 'Times New Roman', serif;
  
  /* Font scales using golden ratio (1.618) */
  --text-xs: 0.618rem;    /* 9.89px */
  --text-sm: 0.764rem;    /* 12.22px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.236rem;    /* 19.78px */
  --text-xl: 1.618rem;    /* 25.89px */
  --text-2xl: 2.618rem;   /* 41.89px */
  --text-3xl: 4.236rem;   /* 67.78px */
  
  /* Line heights for readability */
  --leading-dense: 1.25;   /* Headlines */
  --leading-normal: 1.618; /* Body text (golden ratio) */
  --leading-loose: 2;      /* Breathing room */
  
  /* Letter spacing for elegance */
  --tracking-tight: -0.025em;  /* Headlines */
  --tracking-normal: 0;        /* Body */
  --tracking-wide: 0.025em;    /* Captions */
  --tracking-wider: 0.05em;    /* Buttons */
  
  /* Spacing using golden ratio */
  --space-xs: 0.382rem;   /* 6.11px */
  --space-sm: 0.618rem;   /* 9.89px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.618rem;   /* 25.89px */
  --space-xl: 2.618rem;   /* 41.89px */
  --space-2xl: 4.236rem;  /* 67.78px */
  --space-3xl: 6.854rem;  /* 109.66px */
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 74ch;
  --gutter: var(--space-lg);
  
  /* Visual depth layers */
  --depth-surface: 0;
  --depth-raised: 100;
  --depth-overlay: 200;
  --depth-priority: 300;
  
  /* Rounded Corners - Moderate, not bubbly */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows - Soft, minimal */
  --shadow-hover: 0 8px 24px -8px rgba(26, 27, 30, 0.3);
  --shadow-subtle: 0 2px 8px -2px rgba(26, 27, 30, 0.2);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-prose);
  color: var(--text-primary);
  background: var(--basalt-900);
  min-height: 100vh;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cdefs%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3C/defs%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E"),
    radial-gradient(circle at 20% 80%, var(--basalt-800) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--dusk-600) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-dense);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  font-weight: 300;
}

/* Hero headline special treatment */
.hero h1 {
  background: linear-gradient(135deg, var(--sea-green-light) 0%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--text-2xl);
  line-height: var(--leading-dense);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  color: var(--sea-green-light);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: var(--space-lg);
  color: var(--highlight);
}

p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* First paragraph emphasis */
p:first-of-type {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: 300;
}

em {
  color: var(--amber-warm);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

strong {
  color: var(--highlight);
  font-weight: 700;
}

a {
  color: var(--sea-green-light);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  border-radius: var(--radius-sm);
}

a:hover {
  color: var(--sea-green-pale);
}

/* Header - Minimal, elegant */
.mct-header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--depth-priority);
  padding: var(--space-lg) 0;
  transition: var(--transition-smooth);
}

/* Header becomes visible on scroll */
.mct-header.scrolled {
  background: rgba(26, 27, 30, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: var(--space-md) 0;
}

.mct-header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.mct-logo {
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.mct-logo__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sea-green);
}

.mct-logo__tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Navigation */
.mct-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.mct-nav__link {
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: var(--space-sm) 0;
  position: relative;
}

.mct-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sea-green);
  transition: width 0.3s ease;
}

.mct-nav__link:hover::after,
.mct-nav__link.active::after {
  width: 100%;
}

.mct-nav__link.active {
  color: var(--sea-green-light);
}

/* Header Contact */
.mct-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.mct-contact-cluster {
  display: none;
}

@media (min-width: 1024px) {
  .mct-contact-cluster {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.875rem;
  }
}

.mct-phone, .mct-email {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.mct-phone:hover, .mct-email:hover {
  color: var(--sea-green);
}

/* Buttons */
.mct-btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.mct-btn--primary {
  background: var(--sea-green-primary);
  color: var(--text-primary);
  border: 2px solid transparent;
}

.mct-btn--primary:hover {
  background: var(--sea-green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.mct-btn--ghost {
  background: transparent;
  color: var(--sea-green-light);
  border: 2px solid var(--sea-green-primary);
}

.mct-btn--ghost:hover {
  background: var(--basalt-800);
  border-color: var(--sea-green-light);
  box-shadow: var(--shadow-subtle);
}

.mct-btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* Mobile Toggle */
.mct-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mct-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--sea-green);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mct-mobile-toggle {
    display: flex;
  }
  
  .mct-nav {
    display: none;
  }
  
  .mct-header__right .mct-btn {
    display: none;
  }
}

/* Main Content - Breathing room */
.mct-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  min-height: 100vh;
  position: relative;
}

/* Content breathing animation */
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

.mct-main > * {
  animation: breathe 8s ease-in-out infinite;
}

article {
  max-width: var(--content-width);
  margin: 0 auto;
}

article h1 {
  margin-bottom: var(--space-lg);
  text-align: left;
}

article > p:first-of-type {
  font-size: 1.25rem;
  color: var(--sea-green);
  font-style: italic;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

article ul, article ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

article li {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  opacity: 0.9;
}

article blockquote {
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  background: rgba(45, 90, 78, 0.08);
  border-left: 4px solid var(--sea-green-primary);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--text-secondary);
}

/* Code blocks */
pre {
  background: var(--basalt-800);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border: 1px solid var(--dusk-600);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--amber-warm);
  background: rgba(212, 165, 116, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

pre code {
  background: none;
  padding: 0;
}

/* Footer */
.mct-footer {
  background: var(--basalt-900);
  border-top: 1px solid var(--dusk-600);
  margin-top: var(--space-3xl);
  padding: var(--space-xl) 0 var(--space-lg);
}

.mct-footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.mct-footer__heading {
  font-size: 1.125rem;
  color: var(--sea-green);
  margin-bottom: var(--space-md);
}

.mct-footer__description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.mct-footer__location {
  color: var(--highlight);
  font-weight: 600;
}

.mct-footer__list {
  list-style: none;
  padding: 0;
}

.mct-footer__list li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.mct-footer__list a {
  color: var(--text-secondary);
}

.mct-footer__list a:hover {
  color: var(--sea-green);
}

.mct-footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.mct-footer__copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.mct-footer__tagline {
  color: var(--sea-green);
  font-style: italic;
  font-size: 0.875rem;
}

/* Animations */
@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(100, 255, 218, 0.5); }
  50% { box-shadow: 0 0 20px rgba(100, 255, 218, 0.8); }
  100% { box-shadow: 0 0 5px rgba(100, 255, 218, 0.5); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Utilities */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
