/* ========== RESET & VARIABLES ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --maroon: #3C0102;
  --maroon-mid: #5E1415;
  --maroon-light: #7A2B2C;
  --dark: #1A0001;
  --white: #FFFFFF;
  --off-white: #F7F5F3;
  --warm-gray: #EDEBE8;
  --light-gray: #F0EEEC;
  --text: #1E1E1E;
  --text-muted: #555;
  --text-light: #888;
  --copper: #C47A2E;
  --copper-light: #D4943F;
  --heading: 'Outfit', 'Segoe UI', sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem,4vw,3rem); }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.2; color: var(--maroon); }
h1 { font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem,3.5vw,2.6rem); }
h3 { font-size: clamp(1.3rem,2.5vw,1.7rem); }

.label {
  font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 12px;
}
.label-light { color: var(--copper-light); }

/* ========== DOT GRID PATTERN ========== */
.dot-grid {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ========== ANGLE DIVIDER ========== */
.angle-divider { position: relative; height: 56px; margin-top: -1px; overflow: hidden; }
.angle-divider svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,252,250,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: all 0.35s ease;
}
.nav.scrolled { border-bottom-color: rgba(0,0,0,0.06); }
.nav.transparent { background: transparent; backdrop-filter: none; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem,4vw,3rem);
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.nav-logo {
  width: 36px; height: 36px; background: var(--maroon); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
}
.nav-brand-text {
  font-family: var(--heading); font-size: 16px; font-weight: 700;
  color: var(--maroon); letter-spacing: 0.02em; transition: color 0.35s;
}
.nav.transparent .nav-brand-text { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {

  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; color: var(--text); transition: color 0.2s;
  border-bottom: 2px solid transparent; padding-bottom: 3px; background: none; border-top: none; border-left: none; border-right: none;
}
.nav-link:hover, .nav-link.active { color: var(--copper); }
.nav-link.active { border-bottom-color: var(--copper); }
.nav.transparent .nav-link {
 color: #fff; }
.nav.transparent .nav-link.active { color: var(--copper); }
.nav-phone {
  font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 4px; transition: color 0.2s;
}
.nav.transparent .nav-phone { color: #fff; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; font-family: var(--body); font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 32px;
  border-radius: 3px; cursor: pointer; transition: all 0.25s; border: none; text-decoration: none;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,122,46,0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--maroon); }
.btn-outline-dark { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); }
.btn-outline-dark:hover { background: var(--maroon); color: #fff; }
.btn-sm { padding: 9px 22px; font-size: 11px; }

/* ========== HERO ========== */
.hero {
  min-height: 80vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--maroon) 50%, var(--maroon-mid) 100%);
  position: relative; overflow: hidden; padding-top: 68px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-orb {
  position: absolute; top: 10%; right: 5%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,122,46,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero h1 { color: #fff; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero img { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }

/* ========== STATS BAR ========== */
.stats-bar { background: var(--maroon); padding: 48px 0; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number { font-family: var(--heading); font-size: 40px; font-weight: 800; color: var(--copper); margin-bottom: 4px; }
.stat-label { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.stat-sub { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ========== SECTIONS ========== */
.section { padding: clamp(4rem,8vw,6rem) 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--maroon); color: #fff; position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }

/* ========== PAGE HEADERS ========== */
.page-header {
  padding-top: calc(68px + clamp(3rem,6vw,4.5rem)); padding-bottom: clamp(3rem,5vw,4rem);
  background: linear-gradient(135deg, var(--dark) 0%, var(--maroon) 100%);
  position: relative; overflow: hidden;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { font-size: 17px; color: rgba(255,255,255,0.6); max-width: 560px; line-height: 1.7; }

/* ========== SERVICE CARDS (homepage) ========== */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card {
  background: var(--off-white); border-radius: 6px; padding: 28px 24px;
  transition: all 0.25s; border: 1px solid transparent; display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--copper); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(60,1,2,0.06); }
.service-card-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; flex: 1; }

/* ========== SERVICE ROWS (services page) ========== */
.srv-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; padding: 56px 0; }
.srv-row.flip { grid-template-columns: 0.8fr 1.2fr; }
.srv-row.alt { background: var(--off-white); margin: 0 calc(-1 * clamp(1.5rem,4vw,3rem)); padding-left: clamp(1.5rem,4vw,3rem); padding-right: clamp(1.5rem,4vw,3rem); }
.srv-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.srv-icon {
  width: 44px; height: 44px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.srv-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.srv-point { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--text); }
.srv-point-dot { font-size: 10px; flex-shrink: 0; }

/* ========== IMAGE PLACEHOLDERS ========== */
.img-placeholder {
  background: linear-gradient(135deg, var(--warm-gray), var(--light-gray));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px; font-weight: 600;
  border: 1px solid rgba(0,0,0,0.06); text-align: center; padding: 20px; text-transform: uppercase;
}
.img-placeholder.dark {
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.08);
}
.img-real { width: 100%; border-radius: 8px; }

/* ========== PROCESS TIMELINE ========== */
.timeline-wrap { position: relative; }
.timeline-line {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 200px); height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--maroon));
  border-radius: 2px; z-index: 0;
}
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.timeline-dot {
  width: 48px; height: 48px; border-radius: 50%; background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--heading); font-size: 18px; font-weight: 800;
  margin: 0 auto 20px; border: 4px solid var(--off-white); box-shadow: 0 2px 8px rgba(60,1,2,0.15);
}
.timeline-card { background: var(--white); border-radius: 8px; padding: 24px 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); text-align: center; }
.timeline-card h4 { font-size: 16px; margin-bottom: 8px; }
.timeline-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ========== INDUSTRY TABS ========== */
.ind-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--warm-gray); margin-bottom: 48px; flex-wrap: wrap; }
.ind-tab {
  flex: 1 1 auto; min-width: 140px; padding: 16px 12px; cursor: pointer;
  background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.25s; font-family: var(--heading); font-size: 15px; font-weight: 500;
  color: var(--text-light); display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ind-tab.active { border-bottom-color: var(--copper); font-weight: 700; color: var(--maroon); }
.ind-tab-icon { font-size: 24px; }
.ind-content { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: start; }
.ind-points { background: var(--off-white); border-radius: 8px; padding: 24px 28px; border-left: 3px solid var(--copper); }
.ind-why { margin-top: 20px; background: var(--maroon); border-radius: 8px; padding: 24px; color: #fff; }
.ind-why p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.65; }

/* ========== NOT EVERYTHING IS AI ========== */
.ai-callout { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.ai-callout-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--off-white);
  display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; margin-top: 4px;
}

/* ========== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.about-sidebar { margin-top: 20px; background: var(--off-white); border-radius: 8px; padding: 20px; border-left: 3px solid var(--copper); }
.about-fact { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.about-fact-dot { color: var(--copper); font-size: 8px; flex-shrink: 0; }
.about-linkedin { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--warm-gray); }
.about-linkedin a { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--copper); font-weight: 600; text-decoration: none; }
.bio-paragraph { color: var(--text-muted); line-height: 1.85; margin-bottom: 18px; font-size: 16px; }

/* ========== CASE STUDIES ========== */
.cs-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.cs-row.flip { grid-template-columns: 0.85fr 1.15fr; }
.cs-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-stat {
  background: var(--maroon); border-radius: 6px; padding: 14px 18px;
  text-align: center; flex: 1 1 100px; min-width: 100px;
}
.cs-stat-val { font-family: var(--heading); font-size: 24px; font-weight: 800; color: var(--copper); margin-bottom: 2px; }
.cs-stat-label { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.cs-divider { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.5rem,4vw,3rem); }
.cs-divider-line { height: 1px; background: var(--warm-gray); }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--warm-gray); }
.contact-method:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; background: var(--off-white); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0; color: var(--maroon); font-weight: 700;
}
.contact-expect {
  background: var(--off-white); border-radius: 8px; padding: 36px 32px;
  border-left: 3px solid var(--copper);
}
.contact-expect-item { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.contact-expect-arrow { color: var(--copper); font-weight: 800; font-size: 15px; flex-shrink: 0; }

/* ========== DOWNLOAD BANNER ========== */
.dl-banner {
  background: linear-gradient(135deg, var(--dark), var(--maroon));
  border-radius: 12px; padding: 40px 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px;
  align-items: center; position: relative; overflow: hidden;
}

/* ========== CTA BAND ========== */
.cta-band { padding: clamp(4rem,8vw,6rem) 0; background: var(--maroon); position: relative; overflow: hidden; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.6); font-size: 16px; max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }

/* ========== FOOTER ========== */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 56px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand { font-family: var(--heading); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.04em; margin-bottom: 8px; }
.footer-cols { display: flex; gap: 40px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 12px; }
.footer-link { font-size: 14px; cursor: pointer; margin-bottom: 8px; transition: color 0.2s; display: block; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-link:hover { color: #fff; }
.footer-linkedin {
  width: 32px; height: 32px; border-radius: 4px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-weight: 700; font-size: 15px; text-decoration: none;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 13px; }

/* ========== SCROLL REVEAL ========== */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.06s; }
.fade-up-d2 { transition-delay: 0.12s; }
.fade-up-d3 { transition-delay: 0.18s; }
.fade-up-d4 { transition-delay: 0.24s; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-up { animation: fadeUp 0.4s ease; }

/* ========== INDUSTRY TAG ========== */
.ind-tag {
  background: var(--white); color: var(--maroon); border: 1px solid rgba(60,1,2,0.15);
  border-radius: 3px; padding: 10px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em; display: inline-block; text-decoration: none;
}
.ind-tag:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid, .srv-row, .srv-row.flip, .about-grid, .cs-row, .cs-row.flip,
  .contact-grid, .ind-content, .dl-banner { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-grid > div:last-child { order: -1; }
  .srv-row.flip > img { order: 2; }
  .srv-row.flip > div { order: 1; }
  .cs-row.flip > img { order: 2; }
  .cs-row.flip > div { order: 1; }
  .ind-tabs { flex-wrap: wrap; }
  .ind-tab { min-width: 100px; padding: 12px 8px; }
  .ind-tab-icon { font-size: 20px; }
  .ind-tab span:last-child { font-size: 12px; }
  .about-grid { grid-template-columns: 1fr !important; }
  .about-grid > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .about-grid > div:first-child > img { max-width: 250px; }
  .dl-banner { padding: 28px 24px !important; }
  .dl-banner > div:last-child { text-align: center; }
  .contact-expect { margin-top: 20px; }
}
@media (max-width: 768px) {
  .timeline-line { display: none; }
  .timeline-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex !important; }
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-desc { font-size: 16px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
  .service-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 24px; }
  .ind-tabs { gap: 0; }
  .ind-tab { min-width: 0; flex: 1 1 50%; }
  .cs-stats { flex-direction: row; }
  .cs-stat { flex: 1 1 80px; min-width: 80px; padding: 12px 10px; }
  .cs-stat-val { font-size: 20px; }
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.5rem !important; }
  .section { padding: 3rem 0; }
  .page-header { padding-bottom: 2rem; }
}
}
@media (max-width: 480px) {
  .timeline-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .srv-points { grid-template-columns: 1fr; }
}

/* ========== MOBILE NAV ========== */
.nav-toggle {
  display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; z-index: 101;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: all 0.3s; }
.nav.transparent .nav-toggle span { background: #fff; }
.mobile-menu {
  display: none; background: var(--off-white); padding: 20px 28px;
  flex-direction: column; gap: 18px; border-top: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
}
.mobile-menu a.active { color: var(--maroon); }

/* Lead magnet modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 12px; padding: 40px 36px;
  max-width: 440px; width: 90%; position: relative;
}
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.modal input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--warm-gray);
  border-radius: 4px; font-family: var(--body); font-size: 15px; margin-bottom: 12px;
}
.modal input:focus { outline: none; border-color: var(--copper); }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  font-size: 20px; cursor: pointer; color: var(--text-light);
}
