/* ============================================================
   EXCELIA MARKETING — Design System
   Shared styles across all pages
   ============================================================ */

:root {
  --bg: #fbfaf7;
  --bg-soft: #f3f1ea;
  --surface: #ffffff;
  --surface-2: #f6f4ee;
  --line: rgba(10, 10, 10, 0.10);
  --line-strong: rgba(10, 10, 10, 0.20);
  --text: #15130f;
  --text-dim: rgba(21, 19, 15, 0.66);
  --text-faint: rgba(21, 19, 15, 0.42);
  --orange: #ff5b14;
  --orange-glow: rgba(255, 91, 20, 0.30);
  --orange-soft: rgba(255, 91, 20, 0.10);
  --cream: #15130f;
  --ink: #15130f;
  --on-accent: #fffdf8;
  --display: 'Boska', Georgia, serif;
  --sans: 'Satoshi', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(251, 250, 247, 0.8);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s ease;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex; gap: 2.25rem;
  list-style: none;
  font-size: 0.9rem; font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  background: var(--orange);
  color: var(--on-accent);
  font-weight: 700; font-size: 0.85rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}
.nav-cta:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--orange-glow);
}
.menu-btn { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  padding: 6rem 2.5rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu a {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mobile-menu a.active { color: var(--orange); }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.1rem 1.8rem;
  background: var(--orange);
  color: var(--on-accent);
  font-weight: 700; font-size: 0.95rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--orange-glow);
}
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translate(3px, -3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.1rem 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-weight: 500; font-size: 0.95rem;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--on-accent);
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: var(--orange);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: ''; width: 24px; height: 1px;
  background: var(--orange);
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; }
h1 .italic, h2 .italic, h3 .italic { font-style: italic; color: var(--orange); font-weight: 400; }
h1 .stroke { -webkit-text-stroke: 1.5px var(--text); color: transparent; }

h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  max-width: 1100px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-top: 2rem;
  line-height: 1.6;
}

/* ============ SECTIONS ============ */
section {
  padding: 8rem 2.5rem;
  position: relative;
}
.section-header {
  max-width: 1400px;
  margin: 0 auto 5rem;
}
.section-header.center { text-align: center; }
.section-header.center h2 { margin: 0 auto; }
.section-header.center .section-desc { margin: 2rem auto 0; }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 11rem 2.5rem 6rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.page-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.92;
  margin-bottom: 2rem;
}
.page-header p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.6;
}

/* ============ MARQUEE ============ */
.marquee {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}
.marquee-track {
  display: flex; gap: 4rem;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  width: fit-content;
}
.marquee-item {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.marquee-item::after {
  content: '✦';
  color: var(--orange);
  font-size: 0.7em;
}
.marquee-item.outline {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ CTA BAND ============ */
.cta-band {
  padding: 8rem 2.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px; height: 800px;
  background: radial-gradient(ellipse, var(--orange-soft) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.cta-band-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-band h2 { margin: 0 auto 2rem; }
.cta-band p {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
footer {
  padding: 6rem 2.5rem 2rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.footer-brand .italic { font-style: italic; color: var(--orange); }
.footer-tag {
  color: var(--text-dim);
  max-width: 380px;
  line-height: 1.6;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.big-mark {
  max-width: 1400px;
  margin: 4rem auto 0;
  font-family: var(--display);
  font-size: clamp(4rem, 18vw, 18rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  text-align: center;
}
.big-mark .italic { font-style: italic; color: var(--orange); -webkit-text-stroke: 0; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ── 768 px  (large phone / small tablet) ── */
@media (max-width: 768px) {
  section { padding: 6rem 1.5rem; }
  .page-header { padding: 10rem 1.5rem 4rem; }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .hero-content > div {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
  /* 4-col → 2-col */
  .hero-stats    { grid-template-columns: repeat(2, 1fr) !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .process-grid  { grid-template-columns: repeat(2, 1fr) !important; }

  /* 3-col → 2-col */
  .included-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid    { grid-template-columns: repeat(3, 1fr) !important; }

  /* 2-col → 1-col */
  .services-grid      { grid-template-columns: 1fr !important; }
  .services-detail-grid { grid-template-columns: 1fr !important; }
  .contact-layout     { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .form-row           { grid-template-columns: 1fr !important; }
  .story-grid         { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .principles-grid    { grid-template-columns: 1fr !important; }

  /* 5-col → 3-col */
  .clients-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Card padding */
  .service-card   { padding: 2.5rem !important; }
  .service-detail { padding: 3rem 2rem !important; }
}

/* ── 640 px  (phone) ── */
@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  section { padding: 5rem 1.25rem; }
  .page-header { padding: 8.5rem 1.25rem 3.5rem; }

  /* 3-col → 1-col */
  .included-grid { grid-template-columns: 1fr !important; }
  .stats-grid    { grid-template-columns: 1fr !important; }
  .stats-grid > div {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
  .stats-grid > div:last-child { border-bottom: none; }

  /* 4-col → 1-col */
  .process-grid { grid-template-columns: 1fr !important; }
  .process-grid > div { border-right: none !important; border-bottom: 1px solid var(--line); }
  .process-grid > div:last-child { border-bottom: none; }

  /* hero stats stay 2-col on phones */
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* 4-col features → 1-col */
  .features-grid { grid-template-columns: 1fr !important; }

  /* 3-col clients → 2-col */
  .clients-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .clients-grid > div { min-height: 100px; padding: 1.5rem !important; }
  .clients-grid img   { max-width: 110px !important; max-height: 55px !important; }

  /* Tighter cards */
  .service-card   { padding: 1.8rem !important; }
  .service-detail { padding: 2rem 1.5rem !important; }

  /* Mobile menu */
  .mobile-menu a    { font-size: 1.5rem; }
  .mobile-menu ul   { gap: 1.1rem; }

  /* CTA band */
  .cta-band { padding: 5rem 1.25rem !important; }

  /* Section header gap */
  .section-header { margin-bottom: 3rem !important; }

  /* Footer */
  .footer-top    { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .big-mark      { font-size: clamp(3rem, 18vw, 8rem); }
}

/* ── 400 px  (very small phones) ── */
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr !important; }
  .hero-stats > div { border-right: none !important; border-bottom: 1px solid var(--line); }
  .hero-stats > div:last-child { border-bottom: none; }
  .clients-grid { grid-template-columns: 1fr !important; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* ── Inline-style overrides (elements with class selectors) ── */
@media (max-width: 768px) {
  /* Hero section top padding */
  .hero { padding: 8rem 1.5rem 4rem !important; min-height: auto !important; }
  /* Contact form card */
  .contact-form { padding: 2rem 1.5rem !important; }
  /* Logo shrink */
  .logo img { height: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 7rem 1.25rem 3.5rem !important; }
  .logo img { height: 28px; }
}
