/* ==========================================================================
   Stigwood Consulting — base stylesheet
   Deep navy, card-based, copper/green accent system with a blueprint texture.
   ========================================================================== */

:root{
  /* palette */
  --bg:         #0A0E17;
  --bg-alt:     #0B0F19;
  --surface:    #12172333;
  --surface-1:  #131826;
  --surface-2:  #171D2C;
  --border:     #232A3B;
  --border-soft:#1B2130;
  --text:       #F3F5F9;
  --text-muted: #9AA2B4;
  --text-faint: #6C7488;

  --blue:       #E08A3C;
  --blue-dim:   #A15E1F;
  --blue-hover: #A8641E;
  --blue-soft:  rgba(224, 138, 60, 0.12);
  --blue-line:  rgba(224, 138, 60, 0.25);

  --green:      #3ED18C;
  --green-soft: rgba(62, 209, 140, 0.12);
  --green-line: rgba(62, 209, 140, 0.35);

  --error:      #FF6B6B;

  /* type */
  --font-head: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 8vw, 6.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

::selection{ background: var(--blue); color: #fff; }

h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1{ font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
p{ margin: 0 0 1.2em; color: var(--text-muted); }
p:last-child{ margin-bottom: 0; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* blueprint grid + dot texture, used sparingly behind hero/cta bands */
.dot-bg{
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px),
    radial-gradient(var(--blue-line) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 26px 26px;
  background-position: -1px -1px, -1px -1px, 0 0;
}

/* -- eyebrow tags ----------------------------------------------------------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.eyebrow::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.eyebrow.is-blue{ color: var(--blue); }
.eyebrow.is-blue::before{ background: var(--blue); }

.pill{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55em 1em;
}
.pill svg{ width: 13px; height: 13px; flex: none; }

/* -- buttons ------------------------------------------------------------------ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}
.btn-solid{
  background: var(--blue-dim);
  color: #fff;
}
.btn-solid:hover{ background: var(--blue-hover); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--text-muted); }

/* -- header / nav --------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself, so it
   doesn't become a new containing block for the fixed-position mobile nav
   panel and backdrop nested inside <nav> — that broke their height to 0. */
.site-header::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark{
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark svg{ width: 26px; height: 26px; flex: none; }
.wordmark small{
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a:not(.btn){
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3em 0;
}
.nav-links a:not(.btn):hover{ color: var(--text); }
.nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  width: 22px; height: 2px; border-radius: 2px; background: var(--text); display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop{ display: none; }

body.nav-open{ overflow: hidden; }

/* -- hero ------------------------------------------------------------------------- */
.hero{
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}
.hero .container{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1{ color: var(--text); }
.hero h1 span{ color: var(--blue); }
.hero-lede{
  font-size: 1.05rem;
  max-width: 46ch;
  color: var(--text-muted);
}
.hero-ctas{
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* -- system card (hero right-hand panel) ------------------------------------------- */
.system-card{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.system-card-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}
.system-card-head h2{ margin: 0; font-size: 0.95rem; color: var(--text); }
.system-card-head .eyebrow{ margin: 0; }
.system-rows{
  display: grid;
  gap: 0.7rem;
}
.system-row{
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.icon-chip{
  flex: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.system-row.is-active .icon-chip{ background: rgba(62,209,140,0.16); color: var(--green); }
.row-tag{
  flex: none;
  margin-left: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.icon-chip svg{ width: 16px; height: 16px; }
.system-card-foot{
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* -- generic section ---------------------------------------------------------------- */
.section{
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--border-soft);
}
.section-alt{ background: var(--bg-alt); }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.section-head h2{ max-width: 44ch; margin: 0; }
.section-head .aside-note{
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 30ch;
  text-align: right;
}
.lede{
  font-size: 1.02rem;
  max-width: 68ch;
}

/* -- process cards (3-step) ----------------------------------------------------------- */
.process-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.process-card{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}
.process-card .eyebrow{ font-size: 0.7rem; }
.process-card h3{ color: var(--text); margin-bottom: 0.5em; }
.process-card p{ font-size: 0.92rem; margin: 0; }

/* -- split / feature blocks -------------------------------------------------------------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.split-block{
  padding: 2rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.split-block h3{ color: var(--text); }

/* -- checklist ------------------------------------------------------------------------------- */
.checklist{
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.checklist li{
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.checklist li svg{
  flex: none;
  width: 18px; height: 18px;
  margin-top: 0.1em;
  color: var(--green);
}
.checklist strong{ color: var(--text); font-weight: 600; }
.checklist-muted li svg{ color: var(--text-faint); }

/* -- faq accordion ---------------------------------------------------------------------------- */
.faq-list{
  border-top: 1px solid var(--border-soft);
}
.faq-item{
  border-bottom: 1px solid var(--border-soft);
  padding: 1.3rem 0;
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--blue);
}
.faq-item[open] summary::after{ content: '\2212'; }
.faq-item p{
  margin-top: 0.9rem;
  font-size: 0.92rem;
  max-width: 68ch;
}

/* -- feature-with-card section (embedded not outsourced) --------------------------------------- */
.feature-row{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.contact-card{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.contact-card h3{ color: var(--text); margin-bottom: 0.4em; }
/* stacked variant: centered intro, form card below at the same width */
.feature-row--stacked{
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 46rem;
  margin-inline: auto;
}
.feature-row--stacked > div:first-child{ text-align: center; }
.feature-row--stacked .lede{ margin-inline: auto; }
.feature-row--stacked .contact-card{ width: 100%; }
.feature-row--stacked .contact-card > h3,
.feature-row--stacked .contact-card > p:not(.availability-note){ text-align: center; }
.feature-row--stacked .contact-form .btn{ justify-self: end; }
.feature-row--stacked .availability-note{ justify-content: flex-end; }

.contact-card p{ font-size: 0.9rem; }
.contact-form{
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 1.1rem;
}
.form-field{
  display: grid;
  gap: 0.4rem;
}
.form-field label{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea{
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.16s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder{ color: var(--text-faint); }
.form-field input:focus,
.form-field textarea:focus{ border-color: var(--blue); }
.form-field input.has-error,
.form-field textarea.has-error{ border-color: var(--error); }
.form-field textarea{ resize: vertical; min-height: 92px; }
.field-error{
  min-height: 1em;
  font-size: 0.78rem;
  color: var(--error);
}

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.contact-form .btn{
  justify-self: start;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.availability-note{
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
}
.availability-note::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* -- final cta -------------------------------------------------------------------------------------- */
.final-cta .feature-row{ align-items: center; }
.stack-card{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.stack-card .icon-chip{ margin-bottom: 1rem; }
.stack-card h3{ color: var(--text); font-size: 1rem; margin-bottom: 0.4em; }
.stack-card p{ font-size: 0.85rem; margin: 0; }
.stack-tags{
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* -- about page ---------------------------------------------------------------------------------------- */
.about-hero{
  padding-top: clamp(3.5rem, 8vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.about-hero h1{ max-width: 20ch; }
.prose{ max-width: 68ch; }
.prose p{ font-size: 1.01rem; }
.prose strong{ color: var(--text); }

.pull-quote{
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 2.2rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
  max-width: 58ch;
}

.cred-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.cred-item{
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 1rem 1.2rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.cred-item svg{ width: 17px; height: 17px; color: var(--blue); flex: none; }

/* -- proof strip (homepage) ------------------------------------------------------------------------------------ */
.proof-strip{
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.proof-person{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: none;
}
.avatar-placeholder{
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--blue-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  flex: none;
}
.proof-person h3{ margin: 0 0 0.2em; color: var(--text); font-size: 1.05rem; }
.proof-person p{ margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.proof-certs{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1;
  padding-left: 2rem;
  border-left: 1px solid var(--border-soft);
}
.proof-certs .pill{ font-size: 0.7rem; }

@media (max-width: 720px){
  .proof-certs{ padding-left: 0; border-left: none; }
}

/* -- footer -------------------------------------------------------------------------------------------------- */
.site-footer{
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.5rem;
}
.footer-links{
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a{
  font-size: 0.86rem;
  color: var(--text-muted);
}
.footer-links a:hover{ color: var(--text); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* -- badge row (pricing philosophy pills) ------------------------------------------------------------------------ */
.badge-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* -- engagement steps (services page) -------------------------------------------------------------------------------- */
.steps-list{
  display: grid;
  gap: 1.1rem;
}
.step-row{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: flex-start;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}
.step-num{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-line);
  line-height: 1;
}
.step-row h3{ color: var(--text); margin-bottom: 0.5em; }
.step-row p{ font-size: 0.95rem; margin: 0; }

/* -- responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 72px; left: 0; right: 0;
    z-index: 51;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 0.4rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .nav-links.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a:not(.btn){
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
  }
  .nav-toggle{ display: flex; }

  .nav-backdrop{
    display: block;
    position: fixed;
    inset: 72px 0 0 0;
    z-index: 49;
    background: rgba(5, 7, 12, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
  }
  .nav-backdrop.open{
    opacity: 1;
    pointer-events: auto;
  }

  .footer-links a{
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .btn{ min-height: 44px; }

  .hero .container{ grid-template-columns: 1fr; }

  .split{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .feature-row{ grid-template-columns: 1fr; }
  .cred-grid{ grid-template-columns: 1fr; }
  .step-row{ grid-template-columns: 1fr; gap: 0.6rem; padding: 1.5rem; }
  .footer-top{ flex-direction: column; }
  .section-head{ align-items: flex-start; }
  .section-head .aside-note{ text-align: left; }
}
