/* =========================================================
   Go-DesignHub — shared stylesheet
   Design tokens: committed dark theme, matched to Go-DriverHub.
   ========================================================= */

:root {
  /* --- color tokens ---
     Matched to the Go-DriverHub / GoTaxationHub palette: a committed
     dark navy studio look, amber primary accent, blue secondary accent.
     This is a deliberate single-theme design (see artifact-design guidance
     on committing to one visual world) — colors below apply regardless
     of the viewer's light/dark OS setting. */
  --paper:            #0B0F17;   /* page ground: deep navy-black */
  --surface:          #141C27;   /* card/panel surface */
  --surface-sunk:     #101720;   /* recessed surface (tables, terminal) */
  --ink:              #F5F7FA;   /* primary text: near-white */
  --ink-soft:         #A9B4C4;   /* secondary text */
  --slate:            #7C8CA3;   /* tertiary text / meta */
  --line:             #243040;   /* hairline borders */
  --line-strong:      #34465C;

  --eucalyptus:       #F5A623;   /* primary accent — amber */
  --eucalyptus-strong:#FFC155;
  --eucalyptus-wash:  #2E2410;

  --amber:            #3B9EFF;   /* secondary accent — blue */
  --amber-strong:     #6DB8FF;
  --amber-wash:       #12232F;

  --danger:           #E17A63;

  --banner-bg:        #141C27;
  --banner-fg:        #F5F7FA;
  --banner-border:    #243040;

  --focus-ring:       #F5A623;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 28px -14px rgba(0,0,0,0.6);

  /* --- type --- */
  --font-display: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  color-scheme: dark;
}

/* --- reset --- */
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* --- type scale --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem); line-height: 1.14; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.25; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { margin: 0; max-width: 62ch; }
p.wide { max-width: 74ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--eucalyptus-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before { content: '/'; color: var(--slate); }

.lede { font-size: 1.18rem; color: var(--ink-soft); }
.meta, .mono-stat { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.small { font-size: 0.88rem; color: var(--slate); }

/* --- layout --- */
.container { max-width: 1180px; margin-inline: auto; }
.section { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { max-width: 40ch; }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 16px); }
.grid { display: grid; gap: var(--gap, 20px); }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85em 1.4em;
  border: 1px solid var(--eucalyptus);
  border-radius: 8px;
  background: var(--eucalyptus);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--eucalyptus-strong); border-color: var(--eucalyptus-strong); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-arrow::after { content: '\2192'; }

/* --- header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex; align-items: baseline;
  white-space: nowrap;
}
.brand-mark { color: var(--ink); }

.site-nav {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 32px);
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); border-bottom-color: var(--eucalyptus); }
.nav-link.nav-cta {
  color: var(--paper);
  background: var(--eucalyptus);
  padding: 0.55em 1.05em;
  border-radius: 8px;
  border-bottom: none;
  font-weight: 600;
}
.nav-link.nav-cta:hover { background: var(--eucalyptus-strong); color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 36px;
  background: none; border: 1px solid var(--line-strong); border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 18px; margin-inline: auto; background: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px max(20px, calc((100% - 1180px) / 2)) 20px;
    display: none;
    gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding-block: 10px; border-bottom: 1px solid var(--line); }
  .nav-link.is-active { border-bottom-color: var(--line); }
  .nav-link.nav-cta { text-align: center; margin-top: 8px; }
}

/* --- hero --- */
.hero {
  padding-block: clamp(44px, 7vw, 92px) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.hero h1 { margin-block: 18px 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.term {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--line);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.term-title {
  margin-left: 6px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate);
}
.term-body { padding: 16px 18px 18px; font-family: var(--font-mono); font-size: 0.86rem; }
.term-line { display: flex; justify-content: space-between; gap: 12px; padding-block: 5px; border-bottom: 1px dashed var(--line); }
.term-line:last-child { border-bottom: none; }
.term-line .k { color: var(--slate); }
.term-line .v { color: var(--ink); font-weight: 500; }
.status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--eucalyptus); margin-right: 7px;
  box-shadow: 0 0 0 3px var(--eucalyptus-wash);
}
.term-prompt { color: var(--eucalyptus-strong); }

/* --- chip / tag strip --- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
}
.chip.chip-accent { border-color: var(--eucalyptus); color: var(--eucalyptus-strong); background: var(--eucalyptus-wash); }

/* --- cards / grids --- */
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.card-link { text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: var(--eucalyptus); transform: translateY(-2px); }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card-index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--eucalyptus-strong); }

/* --- process --- */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.process-item:first-child { border-top: none; }
.process-num { font-family: var(--font-mono); font-size: 0.95rem; color: var(--slate); padding-top: 3px; }
.process-body h3 { margin-bottom: 6px; }
.process-time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--eucalyptus-strong); margin-top: 8px; display: inline-block; }

/* --- stats --- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem);
  font-weight: 700;
  color: var(--ink);
}
.stat-label { font-size: 0.9rem; color: var(--slate); }

/* --- testimonial --- */
.testimonial {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 18px;
}
.testimonial blockquote {
  margin: 0; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.5rem);
  font-style: italic; color: var(--ink); max-width: 60ch;
}
.testimonial cite { font-style: normal; font-family: var(--font-mono); font-size: 0.85rem; color: var(--slate); }

/* --- CTA banner --- */
.cta-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--banner-border);
  border-radius: 10px;
  background: var(--banner-bg);
  color: var(--banner-fg);
}
.cta-banner h2 { color: var(--banner-fg); max-width: 24ch; }
.cta-banner .btn-ghost { border-color: var(--banner-fg); color: var(--banner-fg); }
.cta-banner .btn-ghost:hover { background: var(--banner-fg); color: var(--banner-bg); }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 56px); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-tagline { margin-top: 12px; color: var(--slate); font-size: 0.95rem; max-width: 30ch; }
.footer-heading { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); margin: 0 0 12px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-col a { text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--eucalyptus-strong); }
.footer-col p { color: var(--ink-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--line);
  padding-block: 18px 28px;
  font-size: 0.8rem; color: var(--slate); font-family: var(--font-mono);
}

/* --- page hero (interior pages) --- */
.page-hero { padding-block: clamp(40px, 6vw, 68px) clamp(24px, 3vw, 40px); }
.page-hero h1 { margin-top: 16px; max-width: 22ch; }
.page-hero .lede { margin-top: 18px; }

/* --- values / list items with icon-less markers --- */
.value-item { border-top: 1px solid var(--line); padding-block: 20px; }
.value-item:first-child { border-top: none; }

/* --- team --- */
.team-card { gap: 6px; }
.team-role { font-family: var(--font-mono); font-size: 0.8rem; color: var(--eucalyptus-strong); }

/* --- service block --- */
.service-block { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px, 0.7fr); gap: clamp(24px,4vw,48px); padding-block: 40px; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: none; }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; } }
.service-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.service-list li { padding-left: 1.4em; position: relative; color: var(--ink-soft); }
.service-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--eucalyptus-strong); font-family: var(--font-mono); }
.service-facts { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 20px; align-self: start; }
.service-facts dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.service-facts .fact { display: flex; justify-content: space-between; gap: 10px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.service-facts .fact:first-child { border-top: none; padding-top: 0; }
.service-facts dt { color: var(--slate); }
.service-facts dd { margin: 0; font-family: var(--font-mono); color: var(--ink); text-align: right; }

/* --- pricing table --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.plans { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--surface); }
table.plans th, table.plans td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
table.plans thead th { border-top: none; font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); font-weight: 500; }
table.plans td.num, table.plans th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.plans tbody th { font-weight: 600; }
table.plans .plan-price { font-family: var(--font-mono); font-size: 1.1rem; color: var(--ink); }
table.plans .plan-recommended { color: var(--eucalyptus-strong); }
table.plans thead tr th.plan-col.is-reco { background: var(--eucalyptus-wash); }

/* --- FAQ / accordion --- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 18px; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink);
}
.faq-q .plus { font-family: var(--font-mono); color: var(--eucalyptus-strong); transition: transform 0.15s ease; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { max-width: 68ch; padding-bottom: 18px; color: var(--ink-soft); }

/* --- portfolio --- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.case-card { gap: 14px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-result { font-family: var(--font-mono); font-size: 0.9rem; color: var(--eucalyptus-strong); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }

/* --- contact form --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--eucalyptus); }
.form-note { font-size: 0.85rem; color: var(--slate); }
.form-success {
  border: 1px solid var(--eucalyptus); background: var(--eucalyptus-wash); color: var(--eucalyptus-strong);
  border-radius: 10px; padding: 16px 18px; font-family: var(--font-mono); font-size: 0.9rem;
}

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; flex-direction: column; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .k { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: var(--eucalyptus-strong); }
.coords { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
