/* ============================================
   TRINITY FORGE — Shared Styles
   AI-Powered. Human-Built.
   ============================================ */

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

:root {
  --forge-amber: #D97706;
  --forge-amber-light: #F59E0B;
  --forge-amber-glow: #FCD34D;
  --forge-dark: #1C1410;
  --forge-dark-warm: #2A1F17;
  --forge-charcoal: #3D2E23;
  --forge-text: #F5EDE6;
  --forge-text-muted: #C4B5A6;
  --forge-cream: #FAF5EF;
  --forge-accent: #E8A849;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--forge-dark);
  color: var(--forge-text);
  overflow-x: hidden;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.loaded { opacity: 1; }

h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; }

/* ===== ANIMATED BACKGROUND ===== */
.forge-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(217,119,6,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(232,168,73,0.05) 0%, transparent 60%),
    var(--forge-dark);
  animation: bgShift 20s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== UTILITY ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: clamp(60px, 10vw, 100px) 0; position: relative; z-index: 1; }
.text-center { text-align: center; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-up.visible { opacity: 1; transform: translateY(0); }

.slide-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* Hero children always animate in on load, staggered */
.hero .slide-up,
.hero .fade-in,
.hero .slide-left,
.hero .slide-right {
  animation: heroReveal 0.8s ease forwards;
  animation-delay: 0.3s;
}
.hero h1.slide-up { animation-delay: 0.1s; }
.hero p.slide-up { animation-delay: 0.4s; }
.hero .hero-buttons.slide-up { animation-delay: 0.6s; }

@keyframes heroReveal {
  to { opacity: 1; transform: none; }
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ===== HEADER / NAV ===== */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(28, 20, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(217,119,6,0.15);
  padding: 16px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
header.scrolled {
  padding: 10px 0;
  background: rgba(28, 20, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

nav { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand svg { width: 40px; height: 40px; }
.nav-brand span { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--forge-amber); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--forge-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--forge-amber);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--forge-amber); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--forge-amber); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--forge-amber) !important;
  color: var(--forge-dark) !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  transition: all 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--forge-amber-light) !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px;
  z-index: 201;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--forge-text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 149;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.visible { opacity: 1; visibility: visible; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--forge-amber);
  color: var(--forge-dark);
  padding: 16px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover {
  background: var(--forge-amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217,119,6,0.3);
}

/* Pulsing CTA */
.btn-pulse {
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(217,119,6,0); }
}

.btn-secondary {
  background: transparent;
  color: var(--forge-text);
  padding: 16px 36px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1.5px solid rgba(217,119,6,0.4);
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--forge-amber);
  background: rgba(217,119,6,0.08);
  transform: translateY(-1px);
}

.btn-calibrate {
  background: #2563EB; color: white;
  padding: 14px 30px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
  display: inline-block; transition: all 0.3s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-calibrate:hover { background: #3B82F6; transform: translateY(-2px); }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-top: 100px;
  position: relative;
}
.hero-content { max-width: 780px; }

.hero-anvil {
  width: 140px; height: 140px;
  margin: 0 auto 40px;
  animation: anvil-glow 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(217,119,6,0.3));
}
@keyframes anvil-glow {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(217,119,6,0.2)); }
  50% { filter: drop-shadow(0 0 60px rgba(217,119,6,0.4)); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--forge-cream);
}
.hero h1 .amber { color: var(--forge-amber); }

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--forge-amber-light);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  min-height: 1.5em;
}
.hero-tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--forge-amber-light);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--forge-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Page hero (non-home pages) */
.page-hero {
  padding: clamp(120px, 20vw, 180px) 0 clamp(60px, 10vw, 80px);
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--forge-cream);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--forge-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.page-hero .amber { color: var(--forge-amber); }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  background: rgba(42,31,23,0.6);
  border: 1px solid rgba(217,119,6,0.12);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--forge-amber), var(--forge-amber-glow));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(217,119,6,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(217,119,6,0.08), 0 0 30px rgba(217,119,6,0.05);
}
.service-card .icon {
  width: 52px; height: 52px;
  background: rgba(217,119,6,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--forge-cream); }
.service-card .price { color: var(--forge-amber); font-weight: 700; margin-bottom: 12px; font-size: 0.95rem; }
.service-card p { color: var(--forge-text-muted); font-size: 0.95rem; line-height: 1.7; }
.service-card .learn-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--forge-amber);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.service-card .learn-more:hover { color: var(--forge-amber-light); }

/* ===== STATS / SOCIAL PROOF ===== */
.stats-section {
  background: var(--forge-dark-warm);
  border-top: 1px solid rgba(217,119,6,0.1);
  border-bottom: 1px solid rgba(217,119,6,0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--forge-amber);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--forge-text-muted);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 500;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(217,119,6,0.12) 0%, rgba(42,31,23,0.8) 100%);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 20px;
  padding: clamp(36px, 6vw, 60px);
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--forge-cream);
  margin-bottom: 12px;
}
.cta-banner p {
  color: var(--forge-text-muted);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

/* ===== CROSS-PROMO ===== */
.cross-promo {
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(42,31,23,0.5) 100%);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}
.cross-promo h3 { color: var(--forge-cream); font-size: 1.5rem; margin-bottom: 10px; }
.cross-promo p { color: var(--forge-text-muted); margin-bottom: 20px; }

/* ===== LOGO STORY ===== */
.logo-story { background: var(--forge-dark-warm); border-top: 1px solid rgba(217,119,6,0.1); border-bottom: 1px solid rgba(217,119,6,0.1); }
.logo-story-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
}
.logo-story-visual {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.logo-story-visual svg {
  width: 180px; height: 180px;
  filter: drop-shadow(0 0 50px rgba(217,119,6,0.25));
}
.logo-story-visual .label {
  font-family: 'DM Serif Display', serif;
  color: var(--forge-amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.logo-story-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--forge-cream);
  margin-bottom: 20px;
}
.logo-story-content p {
  color: var(--forge-text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.logo-story-content .highlight {
  color: var(--forge-amber-light);
  font-weight: 600;
}
.logo-values {
  display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap;
}
.logo-value {
  display: flex; align-items: center; gap: 10px;
  color: var(--forge-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.logo-value .dot {
  width: 10px; height: 10px;
  background: var(--forge-amber);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 40px;
}
.about-photo {
  width: 280px; height: 340px;
  border-radius: 16px;
  background: var(--forge-charcoal);
  border: 2px solid rgba(217,119,6,0.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-photo .placeholder {
  color: var(--forge-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}
.about-text h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--forge-cream); margin-bottom: 16px; }
.about-text p { color: var(--forge-text-muted); font-size: 1.02rem; margin-bottom: 14px; line-height: 1.7; }
.about-creds {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}
.cred-tag {
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--forge-amber-light);
  font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: rgba(42,31,23,0.5);
  border: 1px solid rgba(217,119,6,0.1);
  border-radius: 16px;
  padding: 36px;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card .stars { color: var(--forge-amber); font-size: 1.2rem; margin-bottom: 14px; }
.testimonial-card blockquote {
  color: var(--forge-text);
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial-card .author { color: var(--forge-text-muted); font-weight: 600; font-size: 0.9rem; }

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 740px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid rgba(217,119,6,0.12);
}
.faq-question {
  width: 100%;
  background: none; border: none;
  color: var(--forge-text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
  min-height: 44px;
  gap: 16px;
}
.faq-question:hover { color: var(--forge-amber); }
.faq-question .arrow {
  transition: transform 0.3s;
  font-size: 1.2rem;
  color: var(--forge-amber);
  flex-shrink: 0;
}
.faq-question.open .arrow { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { color: var(--forge-text-muted); line-height: 1.7; font-size: 0.95rem; }
.faq-answer a { color: var(--forge-amber); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ===== AI AUDIT ===== */
.audit-section { background: var(--forge-dark-warm); border-top: 1px solid rgba(217,119,6,0.1); }
.audit-box {
  background: rgba(28,20,16,0.8);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 20px;
  padding: 48px;
  max-width: 800px;
  margin: 40px auto 0;
}
.audit-box h3 { font-size: 1.6rem; margin-bottom: 12px; color: var(--forge-cream); }
.audit-box > p { color: var(--forge-text-muted); margin-bottom: 24px; }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.industry-btn {
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.2);
  color: var(--forge-text);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  min-height: 44px;
}
.industry-btn:hover, .industry-btn.active {
  background: var(--forge-amber);
  color: var(--forge-dark);
  border-color: var(--forge-amber);
}
.audit-result {
  background: rgba(217,119,6,0.06);
  border: 1px solid rgba(217,119,6,0.15);
  border-radius: 12px;
  padding: 28px;
  margin-top: 20px;
  display: none;
}
.audit-result.visible { display: block; animation: fadeIn 0.4s ease; }
.audit-result h4 { color: var(--forge-amber); margin-bottom: 12px; font-size: 1.1rem; }
.audit-result ul { list-style: none; }
.audit-result li { color: var(--forge-text-muted); padding: 6px 0; padding-left: 20px; position: relative; }
.audit-result li::before { content: '\2192'; position: absolute; left: 0; color: var(--forge-amber); }
.audit-result .audit-cta { margin-top: 16px; }
.audit-result .audit-cta a { color: var(--forge-amber); font-weight: 600; text-decoration: none; }
.audit-result .audit-cta a:hover { text-decoration: underline; }

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

/* ===== SERVICES PAGE — DETAILED TIERS ===== */
.tier-card {
  background: rgba(42,31,23,0.6);
  border: 1px solid rgba(217,119,6,0.12);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.tier-card:hover {
  border-color: rgba(217,119,6,0.3);
  box-shadow: 0 20px 60px rgba(217,119,6,0.06);
}
.tier-card.featured {
  border-color: rgba(217,119,6,0.3);
  background: rgba(42,31,23,0.8);
}
.tier-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 20px; right: -30px;
  background: var(--forge-amber);
  color: var(--forge-dark);
  padding: 6px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg);
}
.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.tier-header h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--forge-cream);
}
.tier-price {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--forge-amber);
  font-weight: 700;
  font-family: 'DM Serif Display', serif;
}
.tier-desc {
  color: var(--forge-text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 1.02rem;
}
.tier-includes h4 {
  color: var(--forge-cream);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.tier-includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.tier-includes li {
  color: var(--forge-text-muted);
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
}
.tier-includes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--forge-amber);
  font-weight: 700;
}

/* ===== PROCESS TIMELINE ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--forge-amber), var(--forge-amber-glow), var(--forge-amber));
  opacity: 0.3;
}
.timeline-step {
  text-align: center;
  position: relative;
}
.timeline-step .step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(217,119,6,0.12);
  border: 2px solid var(--forge-amber);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--forge-amber);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.timeline-step:hover .step-num {
  background: var(--forge-amber);
  color: var(--forge-dark);
}
.timeline-step h4 {
  color: var(--forge-cream);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.timeline-step p {
  color: var(--forge-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.contact-card {
  background: rgba(42,31,23,0.6);
  border: 1px solid rgba(217,119,6,0.12);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
}
.contact-card h3 {
  font-size: 1.3rem;
  color: var(--forge-cream);
  margin-bottom: 12px;
}
.contact-card p {
  color: var(--forge-text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.contact-card a.email-link {
  color: var(--forge-amber);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-card a.email-link:hover { text-decoration: underline; }

.calendly-card {
  background: rgba(42,31,23,0.6);
  border: 1px solid rgba(217,119,6,0.12);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
}
.calendly-card h3 { font-size: 1.3rem; color: var(--forge-cream); margin-bottom: 12px; }
.calendly-card p { color: var(--forge-text-muted); margin-bottom: 20px; }

/* ===== CHECKLIST MODAL ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.visible { display: flex; }
.modal-box {
  background: var(--forge-dark-warm);
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: 20px;
  padding: 48px;
  max-width: 480px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--forge-text-muted);
  font-size: 1.4rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s;
}
.modal-close:hover { color: var(--forge-text); }
.modal-box h3 { font-size: 1.5rem; color: var(--forge-cream); margin-bottom: 8px; }
.modal-box p { color: var(--forge-text-muted); margin-bottom: 24px; }
.modal-input {
  width: 100%;
  background: rgba(28,20,16,0.6);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--forge-text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 12px;
  outline: none;
  transition: border 0.3s;
  min-height: 44px;
}
.modal-input:focus { border-color: var(--forge-amber); }
.modal-input::placeholder { color: var(--forge-text-muted); }
.modal-submit {
  width: 100%;
  background: var(--forge-amber);
  color: var(--forge-dark);
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  min-height: 44px;
}
.modal-submit:hover { background: var(--forge-amber-light); }

/* ===== SECTION HEADINGS ===== */
.section-heading {
  font-size: clamp(2rem, 4vw, 2.4rem);
  color: var(--forge-cream);
  margin-bottom: 12px;
}
.section-subtext {
  color: var(--forge-text-muted);
  max-width: 600px;
  margin: 0 auto 12px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(20,14,10,0.8);
  border-top: 1px solid rgba(217,119,6,0.1);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
  z-index: 1;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 32px; height: 32px; }
.footer-brand span { font-family: 'DM Serif Display', serif; color: var(--forge-amber); font-size: 1.1rem; }
.footer-links a {
  color: var(--forge-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--forge-amber); }
.footer-copy {
  text-align: center;
  color: var(--forge-text-muted);
  font-size: 0.8rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(217,119,6,0.08);
}
.footer-parent { color: var(--forge-text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer-parent a { color: var(--forge-amber); text-decoration: none; }
.footer-parent a:hover { text-decoration: underline; }

/* ===== RESPONSIVE — 768px ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: var(--forge-dark-warm);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 150;
    border-left: 1px solid rgba(217,119,6,0.15);
    overflow-y: auto;
  }
  .nav-links.show { transform: translateX(0); }
  .nav-links a {
    font-size: 1.1rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(217,119,6,0.08);
    width: 100%;
  }
  .nav-links a::after { display: none; }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    display: block !important;
    padding: 14px 22px !important;
  }
  .mobile-toggle { display: flex; }

  .hero-anvil { width: 100px; height: 100px; }

  .logo-story-grid { grid-template-columns: 1fr; text-align: center; }
  .logo-story-visual { order: -1; }
  .logo-values { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .about-creds { justify-content: center; }

  .stats-grid { grid-template-columns: 1fr; gap: 24px; }

  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .timeline::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; }

  .audit-box { padding: 28px; }
  .industry-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

  .modal-box { padding: 32px 24px; }

  .footer-grid { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { text-align: center; }

  .tier-card.featured::before { display: none; }
  .tier-header { flex-direction: column; }
  .tier-includes ul { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE — 480px ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: clamp(40px, 8vw, 60px) 0; }

  .hero { padding-top: 80px; min-height: auto; padding-bottom: 60px; }
  .hero-anvil { width: 80px; height: 80px; margin-bottom: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons a { width: 100%; text-align: center; justify-content: center; }

  .page-hero { padding: 100px 0 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px; }

  .stats-grid { gap: 16px; }
  .stat-item { padding: 12px; }

  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-box { padding: 20px; }

  .cross-promo { padding: 28px; }
  .cta-banner { padding: 28px; }

  .nav-links { width: 100%; }
}
