/* ==========================================================================
   ETYMON CONSULTING LLC — DESIGN SYSTEM
   "Architectural Obsidian" — Modern, Crisp, Boutique Enterprise Aesthetic
   ========================================================================== */

:root {
  /* DAY / LIGHT THEME (Parchment & Slate) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-alt: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.12);
  --border-focus: #2563eb;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.18);
  
  --accent-gold: #b45309;
  --accent-gold-bg: rgba(180, 83, 9, 0.08);
  --accent-gold-border: rgba(180, 83, 9, 0.25);
  
  --accent-emerald: #059669;
  --accent-emerald-bg: rgba(5, 150, 105, 0.08);
  --accent-emerald-border: rgba(5, 150, 105, 0.25);

  --nav-bg: rgba(248, 250, 252, 0.88);
  --nav-border: rgba(15, 23, 42, 0.08);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.12);

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] {
  /* NIGHT / OBSIDIAN THEME (Luxury Dark Editorial) */
  --bg-main: #090c13;
  --bg-surface: #0f1422;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(24, 33, 53, 0.85);
  --bg-alt: #131a2b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: #3b82f6;
  
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.3);
  
  --accent-gold: #fbbf24;
  --accent-gold-bg: rgba(251, 191, 36, 0.1);
  --accent-gold-border: rgba(251, 191, 36, 0.28);
  
  --accent-emerald: #10b981;
  --accent-emerald-bg: rgba(16, 185, 129, 0.1);
  --accent-emerald-border: rgba(16, 185, 129, 0.28);

  --nav-bg: rgba(9, 12, 19, 0.85);
  --nav-border: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(59, 130, 246, 0.18);
}

/* ==========================================================================
   RESET & BASE TYPOGRAPHY
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: var(--theme-transition);
  overflow-x: hidden;
  position: relative;
}

/* Background Subtle Architectural Grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.07) 0%, transparent 60%),
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: var(--theme-transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .brand-monogram {
  background: linear-gradient(135deg, #0f172a, #334155);
  border-color: rgba(0, 0, 0, 0.1);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-focus);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.45);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-emerald {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.badge-gold {
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding: 150px 0 80px;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.etymology-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.etymology-pill strong {
  color: var(--text-main);
  font-family: var(--font-heading);
}

.etymology-pill span.greek {
  font-style: italic;
  color: var(--primary);
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 740px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* METRICS STRIP */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.metric-item {
  text-align: center;
  padding: 8px 12px;
}

.metric-item:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  display: block;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ==========================================================================
   THESIS SECTION ("WHY WE EXIST")
   ========================================================================== */

.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 38px);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16.5px;
  color: var(--text-muted);
}

/* COMPARISON GRID */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.comparison-card {
  padding: 36px 32px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.comparison-card.fluff {
  border-top: 3px solid #ef4444;
}

.comparison-card.etymon {
  border-top: 3px solid var(--primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.comparison-card h3 {
  font-size: 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-list li {
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.comparison-list li strong {
  color: var(--text-main);
}

/* ==========================================================================
   PRACTICE AREAS / CAPABILITIES
   ========================================================================== */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.capability-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.capability-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.capability-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ENGAGEMENT MODELS
   ========================================================================== */

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.engagement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.engagement-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.engagement-card.featured {
  border-color: var(--accent-gold-border);
  background: var(--bg-card-hover);
  position: relative;
}

.engagement-card.featured::before {
  content: "MOST REQUESTED";
  position: absolute;
  top: -12px;
  left: 28px;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.engagement-cadence {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.engagement-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.engagement-card p {
  font-size: 14px;
  margin-bottom: 22px;
}

.engagement-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.engagement-deliverables li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.engagement-deliverables li strong {
  color: var(--text-main);
}

/* ==========================================================================
   LEADERSHIP SECTION
   ========================================================================== */

.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.leadership-avatar-frame {
  text-align: center;
}

.leadership-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  margin-bottom: 14px;
}

.leadership-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.leadership-role {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.leadership-bio h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.leadership-bio p {
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.leadership-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   DIRECT SCHEDULING & CONTACT (NETLIFY)
   ========================================================================== */

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin: 0 auto;
}

.calendar-banner {
  background: var(--bg-surface);
  border: 1.5px solid var(--accent-emerald-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.calendar-banner:hover {
  border-color: var(--accent-emerald);
}

.calendar-banner h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.calendar-banner p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.divider-row {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0 28px;
  color: var(--text-dim);
  font-size: 12.5px;
}

.divider-row::before,
.divider-row::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.divider-row span {
  padding: 0 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
}

/* FORM STYLES */
.contact-form p {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-surface);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 64px 0 36px;
  transition: var(--theme-transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 360px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 960px) {
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .comparison-grid,
  .capabilities-grid,
  .engagements-grid {
    grid-template-columns: 1fr;
  }
  .leadership-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .leadership-creds {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-card);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 32px 20px;
  }
}
