/* =============================================================================
   EvergreenCore Web Theme
   evergreencore-theme.css — single self-contained file
   "Forge · Build · Endure"
   ============================================================================= */

/* =============================================================================
   1. CSS RESET / NORMALIZATION
   ============================================================================= */

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

button { cursor: pointer; border: none; background: none; font: inherit; }

a { text-decoration: none; }

/* =============================================================================
   2. DESIGN TOKENS (:root)
   ============================================================================= */

:root {
  /* --- Color Palette (extracted from logo) --- */
  --ec-color-stone-900: #221c16;
  --ec-color-stone-800: #2e261e;
  --ec-color-stone-700: #3a3028;
  --ec-color-stone-600: #4a3f35;
  --ec-color-stone-500: #5c4f43;
  --ec-color-bronze:    #b87333;
  --ec-color-copper:    #c8813a;
  --ec-color-gold:      #d4a843;
  --ec-color-amber:     #c49a3c;
  --ec-color-warm-white: #f0e6d0;
  --ec-color-warm-gray:  #a89880;

  /* --- Semantic Colors --- */
  --ec-bg-primary:    var(--ec-color-stone-900);
  --ec-bg-secondary:  var(--ec-color-stone-800);
  --ec-bg-surface:    var(--ec-color-stone-700);
  --ec-bg-surface-2:  var(--ec-color-stone-600);
  --ec-accent-primary:   var(--ec-color-bronze);
  --ec-accent-secondary: var(--ec-color-gold);
  --ec-border-color:  var(--ec-color-bronze);

  /* --- Text Colors --- */
  --ec-color-text-primary:   var(--ec-color-warm-white);
  --ec-color-text-secondary: var(--ec-color-warm-gray);
  --ec-color-text-heading:   var(--ec-color-gold);

  /* --- Interactive States --- */
  --ec-hover-color:      var(--ec-color-gold);
  --ec-active-color:     var(--ec-color-copper);
  --ec-focus-ring:       #4a9eff;
  --ec-disabled-opacity: 0.45;

  /* --- Typography --- */
  --ec-font-heading: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --ec-font-body:    'Crimson Text', 'Georgia', 'Times New Roman', serif;
  --ec-font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --ec-heading-letter-spacing: 0.15em;
  --ec-heading-transform: uppercase;
  --ec-weight-normal: 400;
  --ec-weight-bold:   700;

  /* Type scale — mobile-first */
  --ec-text-h1:   2rem;
  --ec-text-h2:   1.625rem;
  --ec-text-h3:   1.375rem;
  --ec-text-h4:   1.125rem;
  --ec-text-h5:   1rem;
  --ec-text-h6:   0.875rem;
  --ec-text-body: 1rem;
  --ec-text-small: 0.875rem;

  /* --- Spacing Scale (4px base) --- */
  --ec-space-1:  0.25rem;
  --ec-space-2:  0.5rem;
  --ec-space-3:  0.75rem;
  --ec-space-4:  1rem;
  --ec-space-5:  1.5rem;
  --ec-space-6:  2rem;
  --ec-space-7:  3rem;
  --ec-space-8:  4rem;
  --ec-space-9:  6rem;
  --ec-space-10: 8rem;

  /* --- Layout --- */
  --ec-max-width:         1200px;
  --ec-container-padding: var(--ec-space-4);
  --ec-section-padding-y: var(--ec-space-7);
  --ec-border-radius:     0.375rem;

  /* --- Breakpoints (reference only) --- */
  --ec-bp-mobile: 640px;
  --ec-bp-tablet: 1024px;
}

/* =============================================================================
   3. BASE ELEMENT STYLES
   ============================================================================= */

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--ec-font-body);
  background-color: var(--ec-bg-primary);
  color: var(--ec-color-text-primary);
  line-height: 1.6;
  font-size: var(--ec-text-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ec-font-heading);
  color: var(--ec-color-text-heading);
  text-transform: var(--ec-heading-transform);
  letter-spacing: var(--ec-heading-letter-spacing);
  line-height: 1.2;
  font-weight: var(--ec-weight-bold);
}

h1 { font-size: var(--ec-text-h1); }
h2 { font-size: var(--ec-text-h2); }
h3 { font-size: var(--ec-text-h3); }
h4 { font-size: var(--ec-text-h4); }
h5 { font-size: var(--ec-text-h5); }
h6 { font-size: var(--ec-text-h6); }

p { margin-bottom: var(--ec-space-4); color: var(--ec-color-text-primary); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ec-accent-secondary);
  transition: color 0.2s ease;
}
a:hover { color: var(--ec-hover-color); }
a:focus-visible {
  outline: 2px solid var(--ec-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

code, kbd {
  font-family: var(--ec-font-mono);
  font-size: 0.9em;
  background: var(--ec-bg-surface);
  color: var(--ec-color-copper);
  padding: 0.1em 0.35em;
  border-radius: var(--ec-border-radius);
  border: 1px solid var(--ec-color-stone-600);
}

pre {
  font-family: var(--ec-font-mono);
  background: var(--ec-bg-surface);
  color: var(--ec-color-text-primary);
  padding: var(--ec-space-5);
  border-radius: var(--ec-border-radius);
  border: 1px solid var(--ec-border-color);
  overflow-x: auto;
  font-size: var(--ec-text-small);
}

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

/* =============================================================================
   4. TEXTURE & DECORATIVE CLASSES
   ============================================================================= */

/* Stone texture — layered gradients simulating rough-hewn stone */
.ec-texture-stone {
  background-color: var(--ec-bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(184, 115, 51, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(100, 80, 60, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 20, 10, 0.15) 0%, transparent 70%),
    repeating-linear-gradient(
      17deg,
      transparent 0px,
      transparent 3px,
      rgba(0,0,0,0.03) 3px,
      rgba(0,0,0,0.03) 4px
    ),
    repeating-linear-gradient(
      107deg,
      transparent 0px,
      transparent 5px,
      rgba(0,0,0,0.02) 5px,
      rgba(0,0,0,0.02) 6px
    );
}

/* Metallic gradient — bronze/copper/gold sheen */
.ec-texture-metallic {
  background-image: linear-gradient(
    135deg,
    var(--ec-color-stone-600) 0%,
    var(--ec-color-bronze)    25%,
    var(--ec-color-gold)      45%,
    var(--ec-color-amber)     55%,
    var(--ec-color-copper)    75%,
    var(--ec-color-stone-600) 100%
  );
}

/* Circuit trace motif — repeating grid lines evoking PCB traces */
.ec-motif-circuit {
  position: relative;
}
.ec-motif-circuit::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 18px,
      rgba(184, 115, 51, 0.12) 18px,
      rgba(184, 115, 51, 0.12) 19px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 18px,
      rgba(184, 115, 51, 0.08) 18px,
      rgba(184, 115, 51, 0.08) 19px
    );
  border-radius: inherit;
}

/* Root-circuit pattern — decorative element for footer/section accents */
.ec-motif-root-circuit {
  position: relative;
  overflow: hidden;
}
.ec-motif-root-circuit::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ec-color-stone-600) 5%,
    var(--ec-color-bronze) 20%,
    var(--ec-color-gold) 40%,
    var(--ec-color-copper) 60%,
    var(--ec-color-bronze) 80%,
    var(--ec-color-stone-600) 95%,
    transparent 100%
  );
}

/* Mountain silhouette — CSS clip-path mountain shape */
.ec-motif-mountain {
  position: relative;
}
.ec-motif-mountain::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: var(--ec-bg-primary);
  clip-path: polygon(
    0% 100%,
    0% 60%,
    8% 40%,
    18% 55%,
    28% 20%,
    38% 45%,
    48% 10%,
    58% 38%,
    68% 22%,
    78% 48%,
    88% 30%,
    95% 50%,
    100% 35%,
    100% 100%
  );
  pointer-events: none;
}

/* Forged border treatment */
.ec-border-forged {
  border-radius: var(--ec-border-radius);
  border: 1px solid var(--ec-border-color);
  box-shadow:
    0 0 0 1px rgba(184, 115, 51, 0.15),
    inset 0 1px 0 rgba(212, 168, 67, 0.1);
}

/* =============================================================================
   5. BUTTON COMPONENTS
   ============================================================================= */

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ec-space-2);
  padding: var(--ec-space-3) var(--ec-space-5);
  min-height: 2.75rem;
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-small);
  font-weight: var(--ec-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--ec-border-radius);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Primary — forged metallic */
.ec-btn--primary {
  background-image: linear-gradient(
    135deg,
    var(--ec-color-stone-600) 0%,
    var(--ec-color-bronze) 30%,
    var(--ec-color-amber) 50%,
    var(--ec-color-copper) 70%,
    var(--ec-color-stone-600) 100%
  );
  color: var(--ec-color-stone-900);
  border: 1px solid var(--ec-color-gold);
  box-shadow:
    0 2px 8px rgba(184, 115, 51, 0.4),
    inset 0 1px 0 rgba(212, 168, 67, 0.3);
}
.ec-btn--primary:hover {
  background-image: linear-gradient(
    135deg,
    var(--ec-color-stone-500) 0%,
    var(--ec-color-copper) 30%,
    var(--ec-color-gold) 50%,
    var(--ec-color-amber) 70%,
    var(--ec-color-stone-500) 100%
  );
  box-shadow:
    0 4px 16px rgba(212, 168, 67, 0.5),
    inset 0 1px 0 rgba(240, 200, 100, 0.4);
  transform: translateY(-1px);
}
.ec-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(184, 115, 51, 0.3);
}
.ec-btn--primary:focus-visible {
  outline: 2px solid var(--ec-focus-ring);
  outline-offset: 3px;
}
.ec-btn--primary:disabled {
  opacity: var(--ec-disabled-opacity);
  cursor: not-allowed;
  transform: none;
}

/* Secondary — outlined metallic */
.ec-btn--secondary {
  background: transparent;
  color: var(--ec-color-gold);
  border: 1px solid var(--ec-color-bronze);
  box-shadow: inset 0 0 0 0 rgba(184, 115, 51, 0);
}
.ec-btn--secondary:hover {
  background: rgba(184, 115, 51, 0.12);
  border-color: var(--ec-color-gold);
  color: var(--ec-color-warm-white);
  box-shadow: 0 0 12px rgba(184, 115, 51, 0.25);
}
.ec-btn--secondary:active { background: rgba(184, 115, 51, 0.2); }
.ec-btn--secondary:focus-visible {
  outline: 2px solid var(--ec-focus-ring);
  outline-offset: 3px;
}
.ec-btn--secondary:disabled { opacity: var(--ec-disabled-opacity); cursor: not-allowed; }

/* Ghost — text only */
.ec-btn--ghost {
  background: transparent;
  color: var(--ec-accent-secondary);
  border: 1px solid transparent;
  padding-left: var(--ec-space-3);
  padding-right: var(--ec-space-3);
}
.ec-btn--ghost:hover {
  color: var(--ec-hover-color);
  border-color: rgba(184, 115, 51, 0.3);
}
.ec-btn--ghost:focus-visible {
  outline: 2px solid var(--ec-focus-ring);
  outline-offset: 3px;
}
.ec-btn--ghost:disabled { opacity: var(--ec-disabled-opacity); cursor: not-allowed; }

/* Size variants */
.ec-btn--sm {
  padding: var(--ec-space-2) var(--ec-space-4);
  font-size: 0.75rem;
  min-height: 2rem;
}
.ec-btn--lg {
  padding: var(--ec-space-4) var(--ec-space-7);
  font-size: 1rem;
  min-height: 3.25rem;
}

/* =============================================================================
   6. CARD COMPONENTS
   ============================================================================= */

.ec-card {
  background: var(--ec-bg-surface);
  border: 1px solid var(--ec-border-color);
  border-radius: var(--ec-border-radius);
  padding: var(--ec-space-6);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 168, 67, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--ec-space-4);
}

.ec-card:hover {
  border-color: var(--ec-color-gold);
  box-shadow:
    0 4px 20px rgba(184, 115, 51, 0.3),
    0 0 0 1px rgba(212, 168, 67, 0.2),
    inset 0 1px 0 rgba(212, 168, 67, 0.1);
}

/* Circuit-trace variant */
.ec-card--circuit {
  position: relative;
  overflow: hidden;
}
.ec-card--circuit::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 22px,
      rgba(184, 115, 51, 0.08) 22px,
      rgba(184, 115, 51, 0.08) 23px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 22px,
      rgba(184, 115, 51, 0.05) 22px,
      rgba(184, 115, 51, 0.05) 23px
    );
  border-radius: inherit;
}

.ec-card__icon {
  font-size: 2rem;
  color: var(--ec-accent-primary);
  line-height: 1;
}

.ec-card__title {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-h4);
  color: var(--ec-color-text-heading);
  text-transform: uppercase;
  letter-spacing: var(--ec-heading-letter-spacing);
  font-weight: var(--ec-weight-bold);
}

.ec-card__desc {
  color: var(--ec-color-text-secondary);
  font-size: var(--ec-text-body);
  line-height: 1.65;
  flex: 1;
}

.ec-card__actions {
  margin-top: auto;
  display: flex;
  gap: var(--ec-space-3);
  flex-wrap: wrap;
}

/* =============================================================================
   7. NAVIGATION COMPONENT
   ============================================================================= */

.ec-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ec-bg-secondary);
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.ec-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--ec-max-width);
  margin: 0 auto;
  padding: var(--ec-space-3) var(--ec-container-padding);
  gap: var(--ec-space-4);
}

.ec-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--ec-space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.ec-nav__logo-img {
  height: 2.5rem;
  width: auto;
}

.ec-nav__logo-text {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-h5);
  color: var(--ec-color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--ec-weight-bold);
}

.ec-nav__links {
  display: none;
  align-items: center;
  gap: var(--ec-space-5);
}

.ec-nav__link {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--ec-weight-bold);
  transition: color 0.2s ease;
  padding: var(--ec-space-2) 0;
  border-bottom: 2px solid transparent;
}
.ec-nav__link:hover {
  color: var(--ec-hover-color);
  border-bottom-color: var(--ec-color-bronze);
}
.ec-nav__link--active {
  color: var(--ec-color-gold);
  border-bottom-color: var(--ec-color-gold);
}
.ec-nav__link:focus-visible {
  outline: 2px solid var(--ec-focus-ring);
  outline-offset: 2px;
}

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

/* Mobile toggle */
.ec-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: var(--ec-space-2);
  background: transparent;
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: var(--ec-border-radius);
  cursor: pointer;
  flex-shrink: 0;
}
.ec-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ec-color-bronze);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ec-nav__toggle:focus-visible {
  outline: 2px solid var(--ec-focus-ring);
  outline-offset: 2px;
}

/* Mobile menu open state — toggled via JS adding .ec-nav--open */
.ec-nav--open .ec-nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ec-bg-secondary);
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
  padding: var(--ec-space-4) var(--ec-container-padding);
  gap: var(--ec-space-3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* =============================================================================
   8. HERO SECTION COMPONENT
   ============================================================================= */

.ec-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--ec-bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(184, 115, 51, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(100, 80, 60, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 20, 10, 0.2) 0%, transparent 70%),
    repeating-linear-gradient(
      17deg,
      transparent 0px, transparent 3px,
      rgba(0,0,0,0.025) 3px, rgba(0,0,0,0.025) 4px
    );
}

/* Mountain silhouette pseudo-element */
.ec-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--ec-bg-primary) 0%, transparent 100%);
  clip-path: polygon(
    0% 100%, 0% 55%, 6% 35%, 15% 50%, 25% 15%,
    35% 42%, 45% 5%, 55% 35%, 65% 18%, 75% 44%,
    85% 28%, 93% 48%, 100% 30%, 100% 100%
  );
  pointer-events: none;
  opacity: 0.6;
}

/* Circuit trace accent */
.ec-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 40px,
      rgba(184, 115, 51, 0.04) 40px, rgba(184, 115, 51, 0.04) 41px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 40px,
      rgba(184, 115, 51, 0.03) 40px, rgba(184, 115, 51, 0.03) 41px
    );
}

.ec-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--ec-space-7) var(--ec-container-padding);
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ec-space-5);
}

.ec-hero__logo {
  width: min(12rem, 60vw);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(184, 115, 51, 0.4));
}

.ec-hero__headline {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-h1);
  color: var(--ec-color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.ec-hero__tagline {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-h5);
  color: var(--ec-color-bronze);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.ec-hero__sub {
  color: var(--ec-color-text-secondary);
  font-size: var(--ec-text-body);
  max-width: 36rem;
  line-height: 1.7;
}

.ec-hero__actions {
  display: flex;
  gap: var(--ec-space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* =============================================================================
   9. SECTION & LAYOUT UTILITIES
   ============================================================================= */

.ec-section {
  padding: var(--ec-section-padding-y) 0;
  background: var(--ec-bg-primary);
}

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

.ec-section--stone {
  background-color: var(--ec-bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(184, 115, 51, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(100, 80, 60, 0.08) 0%, transparent 45%),
    repeating-linear-gradient(
      17deg,
      transparent 0px, transparent 3px,
      rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px
    ),
    repeating-linear-gradient(
      107deg,
      transparent 0px, transparent 5px,
      rgba(0,0,0,0.02) 5px, rgba(0,0,0,0.02) 6px
    );
}

.ec-container {
  max-width: var(--ec-max-width);
  margin: 0 auto;
  padding-left: var(--ec-container-padding);
  padding-right: var(--ec-container-padding);
}

.ec-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-5);
}

.ec-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-5);
}

/* Section divider */
.ec-divider {
  height: 3px;
  border: none;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ec-color-stone-600) 5%,
    var(--ec-color-bronze) 20%,
    var(--ec-color-gold) 40%,
    var(--ec-color-copper) 60%,
    var(--ec-color-bronze) 80%,
    var(--ec-color-stone-600) 95%,
    transparent 100%
  );
}

.ec-divider--mountain {
  height: 4rem;
  border: none;
  margin: 0;
  background: var(--ec-bg-primary);
  clip-path: polygon(
    0% 100%, 0% 60%, 8% 40%, 18% 55%, 28% 20%,
    38% 45%, 48% 10%, 58% 38%, 68% 22%, 78% 48%,
    88% 30%, 95% 50%, 100% 35%, 100% 100%
  );
}

/* =============================================================================
   10. SERVICES SECTION
   ============================================================================= */

.ec-services { }

.ec-services__capabilities {
  display: flex;
  flex-direction: column;
  gap: var(--ec-space-2);
  margin-top: var(--ec-space-3);
}

.ec-services__capability {
  display: flex;
  align-items: center;
  gap: var(--ec-space-2);
  color: var(--ec-color-text-secondary);
  font-size: var(--ec-text-small);
}

.ec-services__capability::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 2px;
  background: var(--ec-color-bronze);
  flex-shrink: 0;
}

/* =============================================================================
   11. CREDENTIALS SECTION
   ============================================================================= */

.ec-credentials { }

.ec-credentials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-4);
}

.ec-credentials__category {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-small);
  color: var(--ec-color-bronze);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: var(--ec-weight-bold);
  margin-bottom: var(--ec-space-3);
  padding-bottom: var(--ec-space-2);
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
}

.ec-credentials__item {
  display: flex;
  align-items: flex-start;
  gap: var(--ec-space-4);
  padding: var(--ec-space-4);
  background: var(--ec-bg-surface);
  border: 1px solid rgba(184, 115, 51, 0.25);
  border-radius: var(--ec-border-radius);
  transition: border-color 0.2s ease;
}
.ec-credentials__item:hover { border-color: var(--ec-color-bronze); }

/* Featured/elite credential */
.ec-credentials__item--featured {
  border-color: var(--ec-color-gold);
  background: linear-gradient(
    135deg,
    var(--ec-bg-surface) 0%,
    rgba(184, 115, 51, 0.08) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.2),
    0 4px 16px rgba(184, 115, 51, 0.15);
}
.ec-credentials__item--featured:hover {
  border-color: var(--ec-color-gold);
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.35),
    0 6px 24px rgba(184, 115, 51, 0.25);
}

.ec-credentials__badge {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border: 2px solid var(--ec-color-bronze);
  border-radius: var(--ec-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ec-bg-secondary);
  color: var(--ec-color-gold);
  font-size: 1.25rem;
}
.ec-credentials__item--featured .ec-credentials__badge {
  border-color: var(--ec-color-gold);
  box-shadow: 0 0 8px rgba(212, 168, 67, 0.3);
}

.ec-credentials__info { flex: 1; }

.ec-credentials__name {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--ec-weight-bold);
  margin-bottom: var(--ec-space-1);
}
.ec-credentials__item--featured .ec-credentials__name {
  color: var(--ec-color-gold);
}

.ec-credentials__desc {
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-secondary);
  line-height: 1.5;
}

/* =============================================================================
   12. FOOTER COMPONENT
   ============================================================================= */

.ec-footer {
  background: var(--ec-bg-secondary);
  position: relative;
}

.ec-footer__circuit-border {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ec-color-stone-600) 5%,
    var(--ec-color-bronze) 20%,
    var(--ec-color-gold) 40%,
    var(--ec-color-copper) 60%,
    var(--ec-color-bronze) 80%,
    var(--ec-color-stone-600) 95%,
    transparent 100%
  );
}

.ec-footer__inner {
  max-width: var(--ec-max-width);
  margin: 0 auto;
  padding: var(--ec-space-7) var(--ec-container-padding) var(--ec-space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-6);
}

.ec-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--ec-space-3);
}

.ec-footer__logo {
  height: auto;
  width: 100%;
  max-width: 12rem;
  object-fit: contain;
}

.ec-footer__tagline {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-small);
  color: var(--ec-color-bronze);
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.ec-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--ec-space-2);
}

.ec-footer__nav-heading {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: var(--ec-weight-bold);
  margin-bottom: var(--ec-space-2);
}

.ec-footer__nav-link {
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-secondary);
  transition: color 0.2s ease;
}
.ec-footer__nav-link:hover { color: var(--ec-color-gold); }

.ec-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--ec-space-2);
}

.ec-footer__contact-heading {
  font-family: var(--ec-font-heading);
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: var(--ec-weight-bold);
  margin-bottom: var(--ec-space-2);
}

.ec-footer__contact-item {
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-secondary);
}

.ec-footer__bottom {
  max-width: var(--ec-max-width);
  margin: 0 auto;
  padding: var(--ec-space-4) var(--ec-container-padding);
  border-top: 1px solid rgba(184, 115, 51, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ec-space-3);
}

.ec-footer__copy {
  font-size: var(--ec-text-small);
  color: var(--ec-color-text-secondary);
  opacity: 0.7;
}

/* =============================================================================
   13. RESPONSIVE OVERRIDES
   ============================================================================= */

/* Tablet: 641px+ */
@media (min-width: 641px) {
  :root {
    --ec-text-h1: 2.75rem;
    --ec-text-h2: 2.125rem;
    --ec-text-h3: 1.625rem;
    --ec-text-h4: 1.25rem;
    --ec-text-h5: 1.0625rem;
    --ec-text-h6: 0.9375rem;
    --ec-container-padding: var(--ec-space-6);
    --ec-section-padding-y: var(--ec-space-8);
  }

  .ec-hero {
    min-height: 80vh;
  }

  .ec-nav__links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .ec-nav__toggle { display: none; }

  .ec-grid-2 { grid-template-columns: repeat(2, 1fr); }

  .ec-credentials__grid { grid-template-columns: repeat(2, 1fr); }

  .ec-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop: 1025px+ */
@media (min-width: 1025px) {
  :root {
    --ec-text-h1: 3.5rem;
    --ec-text-h2: 2.5rem;
    --ec-text-h3: 1.875rem;
    --ec-text-h4: 1.375rem;
    --ec-text-h5: 1.125rem;
    --ec-text-h6: 1rem;
    --ec-container-padding: var(--ec-space-7);
    --ec-section-padding-y: var(--ec-space-9);
  }

  .ec-grid-3 { grid-template-columns: repeat(3, 1fr); }

  .ec-credentials__grid { grid-template-columns: repeat(3, 1fr); }

  .ec-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* Touch target minimum on mobile */
@media (max-width: 640px) {
  .ec-btn { min-height: 2.75rem; }
  .ec-nav__link { min-height: 2.75rem; display: flex; align-items: center; }
}
