/* =========================
   NORTHFORGE – FINAL THEME (Option A typography)
========================= */

*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --bg: #0b0d12;
  --bg-alt: #11141a;
  --card-bg: #15181f;
  --border: #1f242d;

  --accent: #f4b75e;
  --accent-soft: rgba(244, 183, 94, 0.12);
  --accent-ink: #171718;

  --accent-2: #9ad7c7;

  --text: #f5f6f8;
  --muted: #8b92a4;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-soft: 0 6px 18px rgba(0,0,0,0.45);

  --max-width: 1180px;
}

html, body {
  margin:0; padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'>\
<filter id='n'>\
  <feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/>\
</filter>\
<rect width='160' height='160' filter='url(%23n)' opacity='0.55'/>\
</svg>");
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, .logo{
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}
h1{
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h2{ font-weight: 650; }
h3{ font-weight: 600; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.section { padding: 4rem 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* GLOBAL SPACING RULES */
.page-hero{ padding: 3rem 0 1.5rem; }
.page-hero h1{ margin-bottom: .35rem; }
.page-hero p{ color: var(--muted); font-size: 1.05rem; }

/* tighten first section after a hero on ALL pages */
.page-hero + .section{
  padding-top: 1.5rem;
}

/* CTA spacing everywhere so buttons don't touch cards */
.section-cta{ margin-top: 1.6rem; }
.grid-3 + .section-cta,
.grid-2 + .section-cta{ margin-top: 1.6rem; }

/* Section header spacing */
.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}
.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.section-header + .grid-3,
.section-header + .grid-2{
  margin-top: 1rem;
}

/* Header/Nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11,13,18,0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top:0; z-index: 50;
}
.header-inner {
  padding: 1.15rem 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration:none;
  color: var(--text);
  font-weight: 800;
}
.logo span { color: var(--accent); }

.main-nav {
  display:flex;
  gap: 1.05rem;
  align-items:center;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.94rem;
  text-decoration:none;
  color: var(--muted);
  padding: 0.3rem 0;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.lang-toggle{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor:pointer;
  font-size:0.85rem;
  transition: .15s ease;
}
.lang-toggle:hover{
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Language show/hide */
[data-lang]{ display:none; }
body.lang-en [data-lang="en"]{ display:block; }
body.lang-fr [data-lang="fr"]{ display:block; }

/* Buttons */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(244,183,94,0.15);
}
.btn.primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.secondary{
  background: transparent;
  border: 1px solid rgba(154,215,199,0.35);
  color: #cdeee6;
}
.btn.secondary:hover{
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero-inner {
  display:grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  align-items:center;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
}
.hero p {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.07rem;
}
.hero-actions {
  display:flex;
  gap: 0.9rem;
  margin-top: 1.4rem;
  flex-wrap:wrap;
}
.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size:0.95rem;
}

.hero-panel{
  background: var(--bg-alt);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:0.9rem;
}
.stat-card{
  background: var(--card-bg);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
}
.stat-label{
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color: var(--muted);
  margin:0 0 .35rem;
}
.stat-value{ margin:0; font-size:1rem; font-weight:600; }

/* Creator profile */
.creator-profile {
  display:grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 3rem;
  align-items:center;
}
.creator-photo-wrap{
  max-width: 360px;
  padding: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.creator-photo{
  width:100%;
  border-radius: var(--radius-lg);
  display:block;
  object-fit: cover;
}
.creator-role{
  margin: 0 0 0.4rem;
  font-size:0.9rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color: var(--muted);
}
.creator-tagline{
  margin:0 0 1.1rem;
  color: #f6d49d;
  font-weight:600;
}

/* Cards & grids */
.grid-3 {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.grid-2 {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.6rem;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* smaller service cards */
.card.mini{
  padding: 1.35rem;
}

/* Lists */
.list{
  padding-left: 1.1rem;
  margin: .8rem 0 1rem;
}
.list li{ margin-bottom: .35rem; }

/* Steps */
.steps{
  list-style:none;
  padding:0;
  margin:0;
}
.steps li{
  border-left:2px solid var(--accent);
  padding-left:1rem;
  margin-bottom:1.2rem;
}
.steps p{ color: var(--muted); }

/* Workflow cards grid (services page) */
.workflow-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}
.workflow-card{
  padding: 1.5rem;
}

/* Brands marquee */
.brand-marquee{
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0.7rem 0;
  background: var(--bg);
  margin-top: 1.4rem;
}
.brand-track{
  display:flex;
  gap: 0.9rem;
  animation: scroll 26s linear infinite;
  white-space: nowrap;
  width: max-content;
  padding-left: 1rem;
}
.brand-pill img {
    max-height: 34px;
    height: 34px;
    width: auto;
  }
  
  .brand-pill img:hover{
    filter: brightness(1.15);
  }
.brand-marquee:hover .brand-track{ animation-play-state: paused; }
@keyframes scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}.contact-form{
    display:flex;
    flex-direction:column;
    gap:1rem;
    margin-top:0.6rem;
  }
  
  .field-row label{
    display:block;
    font-size:0.9rem;
    color: var(--muted);
    margin-bottom:0.25rem;
  }
  
  .contact-form input,
  .contact-form textarea,
  .contact-form select{
    width:100%;
    border-radius: var(--radius-md);
    border:1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    padding:0.6rem 0.75rem;
    font: inherit;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus{
    outline:none;
    border-color: var(--accent);
    box-shadow:0 0 0 1px rgba(244,183,94,0.3);
  }
  
  .contact-form textarea{
    min-height:140px;
    resize:vertical;
  }
  
  .contact-thanks{
    margin-top:1.4rem;
    font-size:0.9rem;
    color: var(--muted);
    text-align:center;
  }
  
@media (prefers-reduced-motion: reduce){
  .brand-track{ animation: none; }
}

/* Contact grid */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.4rem;
}
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* Contact CTA */
.contact-cta{
  text-align:center;
  max-width: 44rem;
  margin: 0 auto;
}
.contact-cta p{ color: var(--muted); }

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Links */
a{ color: var(--accent); }
a:hover{ color: #ffd58f; text-decoration: underline; }

/* Reveal */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Lucide icons */
.icon{
  width:20px;
  height:20px;
  stroke-width:1.8;
  color: var(--accent);
  margin-bottom: .2rem;
  flex-shrink: 0;
}
.icon.muted{ color: var(--muted); }
.card .icon{ margin-bottom: .8rem; }

/* Fix vertical alignment of icons in buttons/inline text WITHOUT affecting color */
.btn .icon,
a .icon,
button .icon {
  vertical-align: middle;
  transform: translateY(1px);
}

/* About spacing helpers */
.section.about-tight { padding-bottom: 2.5rem; }
.section.about-how { padding-top: 2.5rem; }

/* Responsive */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns:1fr; }
  .creator-profile{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .header-inner{ flex-direction:column; align-items:flex-start; gap:.6rem; }
  .section{ padding: 3.2rem 0; }
  /* Make icons inside buttons align nicely with text */
.btn .icon {
  margin-bottom: 0;        /* remove the card-style offset */
  margin-right: 0.4rem;    /* small space between icon and text */
  transform: translateY(1px);
}.contact-form{
    display:flex;
    flex-direction:column;
    gap:1rem;
    margin-top:0.6rem;
  }
  
  .field-row label{
    display:block;
    font-size:0.9rem;
    color: var(--muted);
    margin-bottom:0.25rem;
  }
  
  .contact-form input,
  .contact-form textarea,
  .contact-form select{
    width:100%;
    border-radius: var(--radius-md);
    border:1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    padding:0.6rem 0.75rem;
    font: inherit;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus{
    outline:none;
    border-color: var(--accent);
    box-shadow:0 0 0 1px rgba(244,183,94,0.3);
  }
  
  .contact-form textarea{
    min-height:140px;
    resize:vertical;
  }
  
  /* Icon inside button: align properly */
  .btn .icon {
    margin-bottom: 0;
    margin-right: 0.4rem;
    transform: translateY(1px);
  }
  

}
