/* ============================================================
   custom.css — ignashev-ai personal AI consultant website
   ============================================================ */

/* Google Fonts — Playfair Display (editorial display) + Outfit (body) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* === OBSIDIAN INTELLIGENCE PALETTE === */
  --primary: #0c0b09;
  --accent: #d4a534;
  --accent-hover: #e8b84b;
  --accent-light: rgba(212, 165, 52, 0.1);
  --text: #c4bdb4;
  --muted: #8a8078;
  --bg: #0c0b09;
  --bg-alt: #141210;
  --border: rgba(212, 165, 52, 0.14);
  --success: #4ade80;
  --error: #f87171;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.8);
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;
}

/* ============================================================
   Base Reset and 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: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
  color: #f0ece6;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip to main content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   Section Spacing Utilities
   ============================================================ */
.section {
  padding: 4rem 1rem;
}

.section-alt {
  background-color: var(--bg-alt);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
}

.section-heading p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Breakpoints: md 768px, lg 1024px, xl 1280px */
@media (min-width: 768px) {
  .section {
    padding: 5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 2rem;
  }
}

/* ============================================================
   Button Styles
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

/* ============================================================
   Card Styles
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow),
              box-shadow var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  margin-bottom: 1.25rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 90% 70% at 15% 60%, rgba(28, 20, 8, 0.97) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 25%, rgba(20, 13, 5, 0.85) 0%, transparent 55%),
    #0c0b09;
  position: relative;
  overflow: hidden;
  padding: 8rem 1rem 4rem;
}

/* Subtle amber grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 165, 52, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 52, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

/* Amber right-side orb glow */
.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -20%;
  width: 65%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(212, 165, 52, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metric {
  text-align: center;
}

.hero-metric .metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-metric .metric-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* ============================================================
   Service Cards
   ============================================================ */
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--accent-light), #ddd6fe);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
}

.service-card p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.375rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.service-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ============================================================
   Blog Card Styles
   ============================================================ */
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-badge.blog {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.category-badge.case-study {
  background-color: #d1fae5;
  color: #065f46;
}

.category-badge.automation {
  background-color: #fce7f3;
  color: #9d174d;
}

.category-badge.audit {
  background-color: #fef3c7;
  color: #92400e;
}

.category-badge.insights {
  background-color: #ede9fe;
  color: #5b21b6;
}

.blog-card-date {
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  color: var(--primary);
  transition: color var(--transition);
}

.blog-card:hover h3 {
  color: var(--accent);
}

.blog-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--transition);
  margin-top: auto;
}

.blog-card-link:hover {
  gap: 0.625rem;
  color: var(--accent-hover);
}

/* ============================================================
   Contact Form Styles
   ============================================================ */
.contact-form-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--error);
  margin-left: 0.25rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control.error {
  border-color: var(--error);
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.375rem;
  font-weight: 500;
}

/* Honeypot — visually hidden */
.form-honeypot {
  display: none !important;
}

/* ============================================================
   Footer Styles
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1rem 2rem;
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand .tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 300px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

/* ============================================================
   Navbar Styles
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 9, 7, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 165, 52, 0.1);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.025em;
  line-height: 1.2;
  flex-shrink: 0;
}

.navbar-brand span {
  color: var(--accent);
}

.navbar-nav {
  display: none;
  list-style: none;
  gap: 0;
}

@media (min-width: 1024px) {
  .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.navbar-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger:hover {
  background: var(--bg-alt);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 1rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.2s ease;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 1.625rem;
  border-radius: 9999px;
  color: var(--muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.03em;
}

.lang-switcher a:hover {
  color: var(--text);
}

.lang-switcher a.active {
  background: var(--accent);
  color: #ffffff;
}

/* ============================================================
   About Section
   ============================================================ */
.about-avatar {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 3rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: var(--bg);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   Filter Tabs
   ============================================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

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

.breadcrumb-sep {
  color: var(--border);
}

/* ============================================================
   Prose / Article Content
   ============================================================ */
.prose {
  max-width: 720px;
  color: var(--text);
  line-height: 1.8;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.prose p {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.375rem;
  color: var(--text);
}

.prose code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.prose pre {
  background: var(--primary);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.5rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
}

.prose blockquote p {
  color: var(--text);
  font-style: italic;
  margin: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.prose th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

.prose img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

/* ============================================================
   Skeleton / Loading Animations
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5rem;
}

.skeleton-text.wide { width: 100%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.short { width: 40%; }

.skeleton-card {
  height: 300px;
}

/* ============================================================
   Animations — Fade In
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease both;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease both;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Intersection observer animation targets */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Flash / Alert messages
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ============================================================
   Responsive Utilities
   ============================================================ */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (min-width: 768px) {
  .hide-md { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-lg { display: none !important; }
}

/* Lazy load placeholder */
img[data-src] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

img.loaded {
  opacity: 1;
}

/* ============================================================
   T18: Responsive CSS Polish + Design Enhancements
   (frontend-dev-2 — appended, do not remove T15 content above)
   ============================================================ */

/* ── Additional keyframe animations ── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Note: slideDown already defined above; here we add a named alias used by
   the mobile nav expansion — kept separate so both names resolve correctly. */
@keyframes mobileNavSlideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    max-height: 80vh;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
}

/* ── Utility: gradient-hero ── */
.gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #312e81 100%);
  position: relative;
  overflow: hidden;
}

.gradient-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(99, 102, 241, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Utility: card-hover ── */
.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

/* ── Utility: btn-glow ── */
.btn-glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}

.btn-glow:hover {
  animation: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35), 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* ── Utility: section-fade (used with JS IntersectionObserver) ── */
.section-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll-triggered animation class ── */
/* Initial state: invisible, shifted down */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Final state: fully visible */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ── Mobile nav: animated slide-down (enhanced) ── */
.mobile-menu {
  /* already defined above — we enhance the open animation */
}

.mobile-menu.open {
  animation: mobileNavSlideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Navbar: enhanced .scrolled state ── */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 0 var(--border), 0 4px 16px -4px rgba(0, 0, 0, 0.08);
}

/* ── Service cards: border glow on hover ── */
.service-card {
  /* transition already defined; adding border glow */
  border-color: var(--border);
}

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(99, 102, 241, 0.15);
}

/* ── Service icon: hover animation ── */
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Blog cards: hover lift + border highlight ── */
.blog-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* ── Contact section: gradient background ── */
.contact-gradient {
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
}

/* ── Hero: animated text reveal ── */
.hero-animate-title {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-animate-sub {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-animate-actions {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-animate-metrics {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* ── Footer: reinforced dark theme ── */
.site-footer {
  background: #0a0f1e;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ── Language switcher: hover + active polish ── */
.lang-switcher a.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.lang-switcher a:hover:not(.active) {
  background: var(--border);
  color: var(--text);
}

/* ── Color transitions: global smoothness ── */
a,
button,
input,
textarea,
select,
.nav-link,
.sidebar-link {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 0.18s;
  transition-timing-function: ease;
}

/* ── Touch targets: 44x44px minimum ── */
@media (max-width: 1023px) {
  .nav-link,
  .sidebar-link,
  .hamburger,
  .lang-switcher a,
  .filter-tab,
  .page-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    min-height: 44px;
  }
}

/* ── Responsive: mobile (max-width: 767px) ── */
@media (max-width: 767px) {
  /* Blog grid: 1 column */
  .blog-grid {
    grid-template-columns: 1fr !important;
  }

  /* Service cards: full-width stacked */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Service card padding scaled down */
  .service-card {
    padding: 1.75rem;
  }

  /* Contact layout: single column */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero adjustments */
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-metrics {
    justify-content: center;
    gap: 1.5rem;
  }

  /* Filter tabs: wrap cleanly */
  .filter-tabs {
    justify-content: center;
  }

  /* About: stack avatar above text */
  .about-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .about-avatar {
    margin: 0 auto;
  }

  /* No horizontal overflow */
  body {
    overflow-x: hidden;
  }

  /* Section heading: smaller top margin */
  .section-heading {
    margin-bottom: 2rem;
  }
}

/* ── Responsive: sm (640px+) ── */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }
}

/* ── Responsive: md (768px+) — 2-column grids ── */
@media (min-width: 768px) {
  /* Services: 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog: 2 columns */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact: 2-column side-by-side */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  /* Hero: left-aligned on wider screens */
  .hero {
    text-align: left;
  }

  .hero-badge,
  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  /* About: 2 columns */
  .about-grid {
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    text-align: left;
  }

  .about-avatar {
    margin: 0;
  }
}

/* ── Responsive: lg (1024px+) — 3-column blog grid ── */
@media (min-width: 1024px) {
  /* Blog: 3 columns */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Desktop nav fully visible, hamburger hidden (already in T15) */

  /* Hero: full width content */
  .hero-content {
    max-width: 750px;
  }
}

/* ── Responsive: xl (1280px+) — max content width centering ── */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 2rem;
  }

  .navbar-inner {
    max-width: 1280px;
  }
}

/* ── Print styles ── */
@media print {
  .navbar,
  .mobile-menu,
  .lang-switcher,
  .site-footer,
  .hamburger,
  .btn,
  .filter-tabs,
  .pagination {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  .prose {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widths: 3;
  }
}


/* ============================================================
   OBSIDIAN INTELLIGENCE — Dark Theme Overrides
   Amber gold on near-black obsidian. Playfair Display + Outfit.
   ============================================================ */

/* ── Grain noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Headings inherit dark theme ── */
h2 { color: #f0ece6; }
h3 { color: #e4ddd5; }
h4 { color: #c4bdb4; font-weight: 600; }
p  { color: var(--muted); }
a  { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ── Hero: editorial typography ── */
.hero h1 {
  color: #f5f0e8;
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #e8b84b 0%, #d4a534 45%, #c9813a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(194, 183, 170, 0.75);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Hero badge — refined amber tag */
.hero-badge {
  background: rgba(212, 165, 52, 0.08);
  color: #e8b84b;
  border: 1px solid rgba(212, 165, 52, 0.22);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Hero metrics — editorial gold numbers */
.hero-metrics {
  border-top: 1px solid rgba(212, 165, 52, 0.15);
}

.metric-value {
  background: linear-gradient(135deg, #e8b84b 0%, #d4a534 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Playfair Display', serif !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
}

.metric-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(138, 128, 120, 0.85) !important;
}

/* ── Navbar: dark glass ── */
.navbar.scrolled {
  background: rgba(10, 9, 7, 0.97);
  box-shadow: 0 1px 0 rgba(212, 165, 52, 0.12), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  color: #f0ece6;
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.navbar-brand .brand-subtitle {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  opacity: 1;
}

.navbar-brand .brand-name {
  color: var(--dark-text-muted);
  font-style: normal;
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 1;
}

.navbar-nav a {
  color: rgba(196, 189, 180, 0.75);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent);
  background-color: rgba(212, 165, 52, 0.07);
}

/* Mobile menu: dark */
.mobile-menu {
  background: #0c0b09;
  border-bottom: 1px solid rgba(212, 165, 52, 0.1);
}

.mobile-menu ul li a {
  color: rgba(196, 189, 180, 0.8);
  font-family: 'Outfit', sans-serif;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
  color: var(--accent);
  background: rgba(212, 165, 52, 0.07);
}

.mobile-menu-divider {
  background: rgba(212, 165, 52, 0.1);
}

.hamburger span {
  background: rgba(196, 189, 180, 0.8);
}

/* ── Sections ── */
.section-alt {
  background-color: #141210;
}

.section-heading p {
  font-family: 'Outfit', sans-serif;
  color: var(--muted);
}

/* Decorative amber dot before section headings */
.section-heading::before {
  content: '◆';
  display: block;
  color: rgba(212, 165, 52, 0.5);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

/* ── About section ── */
#about {
  background: #141210;
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(212,165,52,0.5) 35%, rgba(212,165,52,0.5) 65%, transparent 100%);
}

.about-avatar {
  background: linear-gradient(135deg, rgba(212,165,52,0.15), rgba(184,112,80,0.12));
  border: 1px solid rgba(212, 165, 52, 0.2);
  box-shadow: 0 0 0 5px rgba(212,165,52,0.05), 0 20px 60px rgba(0,0,0,0.6);
}

.expertise-tag {
  background: rgba(212, 165, 52, 0.07);
  color: rgba(212, 165, 52, 0.9);
  border: 1px solid rgba(212, 165, 52, 0.18);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Service cards: dark glass with amber glow ── */
.service-card {
  background: #141210;
  border: 1px solid rgba(212, 165, 52, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.service-card::before {
  background: linear-gradient(90deg, #c9813a, #d4a534, #e8b84b, #d4a534);
}

.service-card:hover {
  border-color: rgba(212, 165, 52, 0.28);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 165, 52, 0.12),
    inset 0 1px 0 rgba(212,165,52,0.06);
}

.service-card h3 { color: #f0ece6; }
.service-card p  { color: var(--muted); }

.service-card .service-icon {
  background: rgba(212, 165, 52, 0.07);
  border: 1px solid rgba(212, 165, 52, 0.15);
  color: var(--accent);
}

.service-features li { color: rgba(138, 128, 120, 0.85); }
.service-features li::before { color: var(--accent); }

/* ── Blog cards: dark glass ── */
.blog-card {
  background: #141210;
  border: 1px solid rgba(212, 165, 52, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.blog-card:hover {
  border-color: rgba(212, 165, 52, 0.25);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212,165,52,0.1);
}

.blog-card h3    { color: #e4ddd5; }
.blog-card:hover h3 { color: var(--accent); }
.blog-card p     { color: var(--muted); }
.blog-card-date  { color: rgba(138, 128, 120, 0.65); }

.blog-card-image {
  background: linear-gradient(135deg, #1a1816, #241f18);
}

/* Blog category badges — amber toned */
.category-badge.blog       { background: rgba(59,130,246,0.1);   color: #93c5fd; border: 1px solid rgba(59,130,246,0.18); }
.category-badge.case-study { background: rgba(212,165,52,0.09);  color: #d4a534; border: 1px solid rgba(212,165,52,0.2); }
.category-badge.automation { background: rgba(184,112,80,0.1);   color: #c9813a; border: 1px solid rgba(184,112,80,0.2); }
.category-badge.audit      { background: rgba(245,158,11,0.09);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.18); }
.category-badge.insights   { background: rgba(167,139,250,0.09); color: #a78bfa; border: 1px solid rgba(167,139,250,0.18); }

/* ── Contact CTA section ── */
#contact-cta {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30, 22, 8, 0.9) 0%, transparent 70%),
    #141210 !important;
  border-top: 1px solid rgba(212, 165, 52, 0.1);
  border-bottom: 1px solid rgba(212, 165, 52, 0.1);
  position: relative;
  overflow: hidden;
}

#contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 165, 52, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 52, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

#contact-cta h2 { color: #f0ece6 !important; }
#contact-cta p  { color: rgba(138, 128, 120, 0.9) !important; }

/* ── Buttons: amber gold ── */
.btn {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, #d4a534 0%, #e8b84b 100%);
  color: #0c0b09 !important;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212, 165, 52, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e8b84b 0%, #f5c94f 100%);
  color: #0c0b09 !important;
  border-color: transparent;
  box-shadow: 0 6px 28px rgba(212, 165, 52, 0.45);
}

.btn-outline {
  color: var(--accent);
  border-color: rgba(212, 165, 52, 0.38);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(212, 165, 52, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-white {
  color: rgba(240, 236, 230, 0.8);
  border-color: rgba(240, 236, 230, 0.22);
}

.btn-outline-white:hover {
  background: rgba(240, 236, 230, 0.07);
  border-color: rgba(240, 236, 230, 0.45);
  color: #f0ece6;
}

/* ── Language switcher: dark ── */
.lang-switcher {
  background: rgba(18, 16, 14, 0.85);
  border: 1px solid rgba(212, 165, 52, 0.18);
}

.lang-switcher a {
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.lang-switcher a:hover:not(.active) {
  color: #f0ece6;
  background: rgba(212, 165, 52, 0.07);
}

.lang-switcher a.active {
  background: linear-gradient(135deg, #d4a534, #e8b84b);
  color: #0c0b09;
  font-weight: 700;
}

/* ── Forms: dark style ── */
.contact-form-wrapper {
  background: #141210;
  border: 1px solid rgba(212, 165, 52, 0.12);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55);
}

.form-label {
  color: #c4bdb4;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.form-control {
  background: #1a1816;
  border: 1.5px solid rgba(212, 165, 52, 0.14);
  color: #f0ece6;
  font-family: 'Outfit', sans-serif;
}

.form-control::placeholder {
  color: rgba(138, 128, 120, 0.55);
}

.form-control:focus {
  background: #1d1a14;
  border-color: rgba(212, 165, 52, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 165, 52, 0.09);
}

/* ── Footer: deep dark ── */
.site-footer {
  background: #070604;
  border-top: 1px solid rgba(212, 165, 52, 0.1);
}

.site-footer .footer-bottom {
  border-top-color: rgba(212, 165, 52, 0.08);
}

/* ── Alerts: dark variants ── */
.alert-success {
  background: rgba(74, 222, 128, 0.07);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.alert-error {
  background: rgba(248, 113, 113, 0.07);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.18);
}

.alert-warning {
  background: rgba(212, 165, 52, 0.08);
  color: #d4a534;
  border: 1px solid rgba(212, 165, 52, 0.2);
}

/* ── Prose: dark content ── */
.prose { color: var(--text); }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #f0ece6; }
.prose p, .prose li { color: var(--muted); }

.prose code {
  background: #1a1816;
  border-color: rgba(212,165,52,0.14);
  color: #d4a534;
}

.prose pre {
  background: #080706;
  border: 1px solid rgba(212,165,52,0.1);
}

.prose blockquote {
  border-left-color: var(--accent);
  background: rgba(212,165,52,0.05);
}

.prose blockquote p { color: #c4bdb4; }
.prose th { background: #1a1816; color: #f0ece6; }
.prose th, .prose td { border-color: rgba(212,165,52,0.1); }
.prose img { box-shadow: 0 8px 32px rgba(0,0,0,0.6); }

/* ── Pagination: dark ── */
.page-link {
  background: #141210;
  border-color: rgba(212,165,52,0.14);
  color: var(--muted);
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,165,52,0.07);
}

.page-link.active {
  background: linear-gradient(135deg, #d4a534, #e8b84b);
  border-color: transparent;
  color: #0c0b09;
}

/* ── Filter tabs: dark ── */
.filter-tab {
  background: #141210;
  border-color: rgba(212,165,52,0.14);
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
}

.filter-tab:hover {
  border-color: rgba(212,165,52,0.38);
  color: var(--accent);
}

.filter-tab.active {
  background: linear-gradient(135deg, #d4a534, #e8b84b);
  border-color: transparent;
  color: #0c0b09;
  font-weight: 700;
}

/* ── Skip link ── */
.skip-link { background: var(--accent); color: #0c0b09; }

/* ── Skeleton loading: dark ── */
.skeleton {
  background: linear-gradient(90deg, #1a1816 25%, #242018 50%, #1a1816 75%);
  background-size: 200% 100%;
}

/* ── Card base: dark surface ── */
.card {
  background: #141210;
  border-color: rgba(212,165,52,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* ── Gold line utility ── */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,165,52,0.55), transparent);
  border: none;
  margin: 2.5rem 0;
}

/* ── Gold shimmer keyframe ── */
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 52, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(212, 165, 52, 0); }
}

/* Hero CTA primary button: pulsing gold glow */
.hero-actions .btn-primary {
  animation: goldGlow 3s ease-in-out infinite;
}

.hero-actions .btn-primary:hover {
  animation: none;
}

/* ── Scrollbar: dark amber ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0c0b09; }
::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 52, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 52, 0.45);
}

/* ── Selection: amber highlight ── */
::selection {
  background: rgba(212, 165, 52, 0.25);
  color: #f5f0e8;
}

/* ── Breadcrumb: dark ── */
.breadcrumb { color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: rgba(212,165,52,0.2); }
