/* ============================================
   FLAREPATH DIGITAL — styles.css
   ============================================ */

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

:root {
  --black: #0D0D0D;
  --card: #141414;
  --card2: #1C1C1C;
  --red: #FF4500;
  --orange: #FF7A3C;
  --white: #FFFFFF;
  --muted: #999999;
  --body: #CCCCCC;
  --border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--body);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; color: var(--white); line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* ── Burn line (section divider animation) ── */
.burn-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 40%, var(--orange) 60%, transparent 100%);
  background-size: 200% 100%;
  background-position: -100% 0;
  opacity: 0;
}
.burn-line.fired { animation: burnSweep 0.9s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes burnSweep {
  0%   { opacity: 0; background-position: -100% 0; }
  20%  { opacity: 1; }
  100% { opacity: 0.4; background-position: 100% 0; }
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(13,13,13,0.97); }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); letter-spacing: -0.01em; }
.nav-logo-text span { color: var(--orange); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1rem 2rem 1.5rem;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--body);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-bottom: none;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,69,0,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,122,60,0.07) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 400px; height: 400px; background: rgba(255,69,0,0.18); top: -100px; right: -80px; }
.orb2 { width: 250px; height: 250px; background: rgba(255,122,60,0.12); bottom: 10%; left: 5%; animation-delay: -3s; }
.orb3 { width: 180px; height: 180px; background: rgba(255,69,0,0.1); top: 40%; right: 20%; animation-delay: -5s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; max-width: 820px; opacity: 0; transform: translateY(24px); }
.hero-content.loaded { transition: opacity 0.8s ease, transform 0.8s ease; opacity: 1; transform: translateY(0); }
.hero-content .eyebrow { margin-bottom: 1.5rem; }
.hero-headline { margin-bottom: 1.5rem; }
.hero-headline .line2 {
  color: transparent;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub { font-size: 1.15rem; color: var(--body); max-width: 580px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white); padding: 0.9rem 2rem;
  border-radius: 8px; text-decoration: none;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255,69,0,0.3);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,69,0,0.4); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--white); padding: 0.9rem 2rem;
  border-radius: 8px; text-decoration: none;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,122,60,0.5); background: rgba(255,69,0,0.05); }

/* ── SERVICES ── */
#services { background: var(--black); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--muted); max-width: 540px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover { background: var(--card2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(255,69,0,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.service-note { font-size: 0.78rem; color: #777; margin-top: 0.6rem; font-style: italic; }
.service-tag {
  display: inline-block; margin-top: 1.2rem;
  padding: 0.25rem 0.7rem; border-radius: 4px;
  background: rgba(255,69,0,0.1); color: var(--orange);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── PROCESS ── */
#process { background: var(--card); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.process-step { position: relative; padding-left: 1rem; }
.process-step::before {
  content: ''; position: absolute; left: 0; top: 0.5rem; bottom: -2rem;
  width: 1px; background: linear-gradient(180deg, var(--orange), transparent);
}
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(255,122,60,0.3);
  line-height: 1; margin-bottom: 1rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── PACKAGES ── */
#packages { background: var(--black); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.package-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.package-card:hover { transform: translateY(-4px); }
.package-card.featured {
  background: linear-gradient(145deg, #1e0a00, #1a0d00);
  border-color: rgba(255,69,0,0.4);
  box-shadow: 0 0 40px rgba(255,69,0,0.15);
}
.package-card.featured:hover { box-shadow: 0 8px 60px rgba(255,69,0,0.25); }
.featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 20px;
  white-space: nowrap;
}
.package-tier { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.75rem; }
.package-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; font-family: 'Space Grotesk', sans-serif; color: var(--white); }
.package-desc { font-size: 0.88rem; color: var(--muted); }
.package-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--white); margin: 1.25rem 0 0.25rem; }
.package-price.upon-request { font-size: 1.5rem; }
.package-price .from { font-size: 0.95rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.package-price-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.package-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.package-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex-grow: 1; }
.package-features li { font-size: 0.9rem; color: var(--body); display: flex; align-items: flex-start; gap: 0.6rem; }
.package-features li::before { content: '→'; color: var(--orange); flex-shrink: 0; margin-top: 0.05rem; }
.pkg-btn {
  display: block; text-align: center;
  padding: 0.85rem; border-radius: 8px;
  text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.92rem;
  transition: all 0.2s;
}
.pkg-btn-outline { border: 1px solid var(--border); color: var(--white); }
.pkg-btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.pkg-btn-fill { background: linear-gradient(135deg, var(--red), var(--orange)); color: var(--white); box-shadow: 0 4px 20px rgba(255,69,0,0.3); }
.pkg-btn-fill:hover { box-shadow: 0 6px 30px rgba(255,69,0,0.45); transform: translateY(-1px); }
.packages-footnote { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }

/* Management strip */
.management-strip {
  margin-top: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.management-strip h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.management-strip p { font-size: 0.92rem; color: var(--muted); max-width: 620px; line-height: 1.7; }

/* ── FREE AUDIT STRIP ── */
#audit {
  background: linear-gradient(135deg, #1a0800, #0f0500);
  border-top: 1px solid rgba(255,69,0,0.2);
  border-bottom: 1px solid rgba(255,69,0,0.2);
  padding: 4rem 0;
}
.audit-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.audit-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.audit-text p { color: var(--muted); max-width: 520px; line-height: 1.7; }
.audit-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.badge { padding: 0.4rem 0.9rem; border: 1px solid rgba(255,122,60,0.25); border-radius: 20px; font-size: 0.8rem; color: var(--orange); }

/* ── PORTFOLIO ── */
#portfolio { background: var(--black); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.portfolio-img {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a1520, #0d2030);
}
.portfolio-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
.portfolio-body { padding: 1.5rem; }
.portfolio-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.ptag { font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 4px; background: rgba(255,69,0,0.1); color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.portfolio-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.portfolio-body p { font-size: 0.85rem; color: var(--muted); }
.portfolio-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; color: var(--orange); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: gap 0.2s; }
.portfolio-link:hover { gap: 0.7rem; }

/* ── TEAM ── */
#team { background: var(--card); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
  transition: border-color 0.3s;
}
.team-card:hover { border-color: rgba(255,69,0,0.3); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--white);
}
.team-info h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.team-role { font-size: 0.82rem; color: var(--orange); font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.team-bio { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.team-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag { padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.72rem; color: var(--muted); }

/* ── CONTACT ── */
#contact { background: var(--black); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-left h2 { margin-bottom: 1rem; }
.contact-left p { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.9rem; color: var(--body); }
.contact-detail a { color: var(--orange); text-decoration: none; }
.contact-smallprint { margin-top: 2rem; font-size: 0.82rem; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(255,69,0,0.5);
  box-shadow: 0 0 0 3px rgba(255,69,0,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: -0.5rem; }
.submit-btn {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white); border: none;
  padding: 1rem 2rem; border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255,69,0,0.3);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,69,0,0.4); }

/* ── FOOTER ── */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-brand-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--white); font-size: 1rem; }
.footer-brand-text span { color: var(--orange); }
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay { transition-delay: 0.15s; }
.fade-up-delay2 { transition-delay: 0.3s; }

/* ── RESPONSIVE / MOBILE ── */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  nav { padding: 1rem 1.25rem; }
  .audit-inner, .management-strip { flex-direction: column; align-items: flex-start; }
  .hero-sub { font-size: 1.05rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; text-align: center; }
  .team-card { flex-direction: column; }
  .package-card { padding: 2rem 1.5rem; }
  .orb { filter: blur(60px); }
  .orb1 { width: 280px; height: 280px; }
}

@media (max-width: 400px) {
  h1 { font-size: 2.3rem; }
  .service-card { padding: 2rem 1.5rem; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .burn-line { animation: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-content { opacity: 1 !important; transform: none !important; }
}
