/* ============================================================
   CRAFTBYTE DESIGN SYSTEM — style.css
   Branding: Final Palette
   Primary:       Deep wine / aubergine  #4B1835
   Secondary:     Dark plum              #321225
   Accent:        Muted champagne        #C8A46B
   Background:    Warm ivory             #F7F4EF
   Dark sections: Near-black charcoal    #111113
   Body text:     Graphite               #29282B
   Soft neutral:  Warm grey              #E7E2DD
   ============================================================ */

/* --- 1. FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* --- 2. DESIGN TOKENS --- */
:root {
  /* Final Brand Palette */
  --primary: #4B1835;              /* Deep wine / aubergine */
  --primary-hover: #321225;        /* Dark plum */
  --secondary: #321225;            /* Dark plum */
  --accent: #C8A46B;               /* Muted champagne */
  --accent-light: #DFC498;         /* Lighter tint for button hover on dark */
  --accent-tint: rgba(200, 164, 107, 0.16);
  --accent-glow: rgba(200, 164, 107, 0.3);

  --bg: #F7F4EF;                   /* Warm ivory */
  --dark-section: #111113;         /* Near-black charcoal */
  --dark-section-surface: #18181B; /* Elevated charcoal */
  --dark-section-border: rgba(231, 226, 221, 0.12);

  --body-text: #29282B;            /* Graphite */
  --text-muted: #5E5B63;           /* Muted graphite (7.5:1 contrast against warm ivory) */
  --soft-neutral: #E7E2DD;         /* Warm grey */
  --soft-neutral-subtle: #EFEBE5;  /* Soft neutral subtle tint */

  /* Surfaces */
  --surface-card: #FFFFFF;         /* Crisp card surface */
  --surface-alt: #EFEBE5;          /* Alternating section surface */
  --surface: #FFFFFF;              /* Backward compatibility */
  --surface-2: #EFEBE5;            /* Backward compatibility */

  /* Text on dark sections */
  --text-on-dark: #F7F4EF;         /* Warm ivory */
  --text-on-dark-muted: #E7E2DD;   /* Warm grey */

  /* Backward-compatible aliases for legacy classes & inline styles */
  --ink: #111113;
  --chalk: #F7F4EF;
  --slate: #5E5B63;
  --brass: #C8A46B;
  --brass-bright: #DFC498;
  --teal: #4B1835;
  --vellum: #F7F4EF;
  --graphite: #29282B;
  --graphite-muted: #5E5B63;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Type scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Font families */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* --- 3. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--secondary); }
ul, ol { list-style: none; }

/* --- 4. TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--secondary);
}

h1 {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  margin-bottom: var(--sp-5);
  color: var(--primary);
}
h2 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-3xl)); margin-bottom: var(--sp-4); }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl)); margin-bottom: var(--sp-3); }
h4 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

p { margin-bottom: var(--sp-4); color: var(--body-text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-md);
  color: var(--body-text);
  max-width: 640px;
}

/* Mono labels / eyebrows */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-2);
  display: block;
}

/* --- 5. LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-9) 0;
}

.section--light {
  background-color: #FFFFFF;
  color: var(--body-text);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--secondary);
}

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

.section--surface {
  background-color: var(--surface-alt);
  border-top: 1px solid rgba(41, 40, 43, 0.05);
  border-bottom: 1px solid rgba(41, 40, 43, 0.05);
}

/* Dark Sections: Near-black charcoal */
.section--dark,
.section--cta,
.cta-band {
  background: linear-gradient(135deg, var(--dark-section) 0%, #1F131C 100%);
  color: var(--text-on-dark-muted);
  text-align: center;
  padding: var(--sp-8) 0;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--cta h1,
.section--cta h2,
.section--cta h3,
.section--cta h4,
.cta-band h1,
.cta-band h2,
.cta-band h3,
.cta-band h4 {
  color: var(--text-on-dark);
}

.section--dark p,
.section--cta p,
.cta-band p {
  color: var(--text-on-dark-muted);
}

.section--dark .eyebrow,
.section--cta .eyebrow,
.cta-band .eyebrow {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* --- 6. GRAPH TEXTURE (Blueprint grid background on Warm Ivory) --- */
.bg-graph {
  background-image:
    linear-gradient(rgba(41, 40, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 40, 43, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- 7. CORNER BRACKET FRAME (Signature motif) --- */
.bracket-frame {
  position: relative;
}

.bracket-frame::before,
.bracket-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.bracket-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.bracket-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* Extra corners via inner pseudo-elements — applied on cards via class */
.bracket-frame-full::before,
.bracket-frame-full::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.bracket-frame-full::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.bracket-frame-full::after {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.bracket-frame-full > .bracket-bottom::before,
.bracket-frame-full > .bracket-bottom::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.bracket-frame-full > .bracket-bottom::before {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}

.bracket-frame-full > .bracket-bottom::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* --- 8. BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--text-on-dark);
  border-color: var(--primary);
}

.btn--primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(75, 24, 53, 0.28);
}

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

.btn--outline:hover {
  background-color: var(--primary);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--body-text);
  border-color: var(--soft-neutral);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Primary buttons inside Dark sections: use Accent Muted champagne */
.cta-band .btn--primary,
.section--dark .btn--primary,
.section--cta .btn--primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--dark-section);
}

.cta-band .btn--primary:hover,
.section--dark .btn--primary:hover,
.section--cta .btn--primary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--dark-section);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-band .btn--outline,
.section--dark .btn--outline,
.section--cta .btn--outline {
  color: var(--accent);
  border-color: var(--accent);
}

.cta-band .btn--outline:hover,
.section--dark .btn--outline:hover,
.section--cta .btn--outline:hover {
  background-color: var(--accent);
  color: var(--dark-section);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-7);
  font-size: var(--fs-md);
}

/* --- 9. NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--soft-neutral);
  transition: all var(--duration) var(--ease);
}

.nav.nav--scrolled {
  background: rgba(247, 244, 239, 0.98);
  box-shadow: 0 4px 20px rgba(41, 40, 43, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--body-text);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--body-text);
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color var(--duration) var(--ease);
}

.nav__dropdown-toggle:hover {
  color: var(--primary);
}

.nav__dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--duration) var(--ease);
}

.nav__dropdown:hover .nav__dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--surface-card);
  border: 1px solid var(--soft-neutral);
  border-radius: var(--radius-md);
  padding: var(--sp-2) 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 12px 36px rgba(41, 40, 43, 0.1);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--body-text);
  transition: all var(--duration) var(--ease);
}

.nav__dropdown-menu a:hover {
  color: var(--primary);
  background: var(--accent-tint);
}

.nav__cta {
  margin-left: var(--sp-3);
}

/* Mobile menu toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all var(--duration) var(--ease);
}

/* Mobile nav open state */
.nav__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- 10. HERO --- */
.hero {
  padding-top: calc(var(--nav-height) + var(--sp-9));
  padding-bottom: var(--sp-9);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero__content h1 {
  margin-bottom: var(--sp-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

/* --- 11. CARDS --- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--soft-neutral);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  transition: all var(--duration) var(--ease);
  position: relative;
  box-shadow: 0 2px 8px rgba(41, 40, 43, 0.03);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(75, 24, 53, 0.08);
}

.card:hover .bracket-corner-tl,
.card:hover .bracket-corner-tr,
.card:hover .bracket-corner-bl,
.card:hover .bracket-corner-br {
  opacity: 1;
}

/* Bracket corners on cards (shown on hover) */
.bracket-corner-tl,
.bracket-corner-tr,
.bracket-corner-bl,
.bracket-corner-br {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

.bracket-corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.bracket-corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.bracket-corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.bracket-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: var(--sp-2);
}

.card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.card__link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
}

.card__link::after {
  content: '\2192';
  transition: transform var(--duration) var(--ease);
}

.card__link:hover {
  color: var(--secondary);
}

.card__link:hover::after {
  transform: translateX(4px);
}

/* Light card variant */
.card--light {
  background: #FFFFFF;
  border-color: var(--soft-neutral);
}

.card--light .card__title {
  color: var(--secondary);
}

.card--light .card__desc {
  color: var(--text-muted);
}

/* --- 12. BREADCRUMBS --- */
.breadcrumb {
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--text-muted);
  margin: 0 var(--sp-1);
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--secondary);
  font-weight: 600;
}

/* --- 13. FAQ SECTION --- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--soft-neutral);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--secondary);
  transition: color var(--duration) var(--ease);
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform var(--duration) var(--ease);
  margin-left: var(--sp-4);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
  padding-bottom: var(--sp-5);
}

.faq-item__answer p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--body-text);
}

/* --- 14. PROCESS / STEPS --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: rgba(200, 164, 107, 0.35);
  margin-bottom: var(--sp-3);
}

.process-step h4 {
  font-size: var(--fs-base);
  color: var(--secondary);
  margin-bottom: var(--sp-1);
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- 15. CTA BAND --- */
.cta-band {
  background: linear-gradient(135deg, var(--dark-section) 0%, #1F131C 100%);
  padding: var(--sp-8) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--sp-3);
}

.cta-band p {
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto var(--sp-5);
}

/* --- 16. TAGS / BADGES --- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  padding: var(--sp-1) var(--sp-3);
  background: var(--accent-tint);
  color: var(--secondary);
  border: 1px solid rgba(200, 164, 107, 0.28);
  border-radius: var(--radius-sm);
  margin: var(--sp-1);
  font-weight: 500;
}

.tag--teal,
.tag--primary,
.tag--wine {
  background: rgba(75, 24, 53, 0.08);
  color: var(--primary);
  border-color: rgba(75, 24, 53, 0.2);
}

/* --- 17. FORMS --- */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--body-text);
  background: var(--surface-card);
  border: 1px solid var(--soft-neutral);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75, 24, 53, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8C888E;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2329282B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-7);
}

.form-error {
  font-size: var(--fs-xs);
  color: #C53030;
  margin-top: var(--sp-1);
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #C53030;
}

.form-group.has-error .form-error {
  display: block;
}

/* --- 18. FOOTER --- */
.footer {
  background: var(--dark-section);
  border-top: 1px solid rgba(231, 226, 221, 0.1);
  padding: var(--sp-8) 0 var(--sp-5);
  color: var(--text-on-dark-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}

.footer__brand .nav__logo {
  color: var(--text-on-dark);
}

.footer__brand .nav__logo span {
  color: var(--accent);
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  max-width: 280px;
  margin-top: var(--sp-3);
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.footer__links a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  padding: var(--sp-1) 0;
  transition: color var(--duration) var(--ease);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(231, 226, 221, 0.08);
  font-size: var(--fs-xs);
  color: rgba(231, 226, 221, 0.65);
}

.footer__bottom a {
  color: var(--text-on-dark-muted);
}

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

/* --- 19. PAGE HEADER (sub-pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + var(--sp-7));
  padding-bottom: var(--sp-7);
}

/* --- 20. COMPARISON TABLE --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-5) 0;
  font-size: var(--fs-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--soft-neutral);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--surface-2);
}

.comparison-table td {
  color: var(--body-text);
}

.comparison-table tr:hover td {
  background: var(--accent-tint);
}

/* --- 21. RESPONSIVE --- */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--soft-neutral);
    padding: var(--sp-6);
    gap: var(--sp-4);
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
    overflow-y: auto;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 1px solid var(--soft-neutral);
    background: var(--surface-card);
    border-radius: var(--radius-sm);
    margin-top: var(--sp-2);
    display: none;
  }

  .nav__dropdown.is-open .nav__dropdown-menu {
    display: block;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--sp-3);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--sp-7));
    padding-bottom: var(--sp-7);
  }

  .hero__actions {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .comparison-table {
    font-size: var(--fs-xs);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--sp-2);
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* --- 22. FOCUS STATES (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* --- 23. SKIP LINK (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--primary);
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: var(--sp-2);
}

/* --- 24. INDUSTRY CARD ICON STRIP --- */
.industry-icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

.industry-icon-strip .industry-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  width: 140px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--soft-neutral);
  transition: all var(--duration) var(--ease);
  box-shadow: 0 2px 6px rgba(41, 40, 43, 0.02);
}

.industry-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75, 24, 53, 0.08);
}

.industry-chip i {
  font-size: var(--fs-2xl);
  color: var(--primary);
  transition: color var(--duration) var(--ease);
}

.industry-chip:hover i {
  color: var(--accent);
}

.industry-chip span {
  font-size: var(--fs-xs);
  color: var(--body-text);
  font-weight: 500;
}

/* --- 25. WHY SECTION --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.why-item {
  padding: var(--sp-5);
  background: var(--surface-card);
  border: 1px solid var(--soft-neutral);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(41, 40, 43, 0.02);
}

.why-item__icon {
  font-size: var(--fs-2xl);
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.why-item h3 {
  font-size: var(--fs-lg);
  color: var(--secondary);
  margin-bottom: var(--sp-2);
}

.why-item p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- 26. UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-brass { color: var(--accent); }
.text-teal { color: var(--primary); }
.text-chalk { color: var(--text-on-dark); }
.text-graphite { color: var(--body-text); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

/* Body spacer for fixed nav */
body {
  padding-top: 0; /* Nav is fixed, hero handles its own padding */
}
