/* ============================================================
   Traxler Graphics — traxlergraphics.com
   Ink-on-paper design system built around the TG brush mark
   ============================================================ */

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --ink: #231f20;
  --ink-soft: #3a3536;
  --muted: #6e6862;
  --line: #e3ded4;
  --red: #e33726;
  --red-dark: #c22a1b;
  --max: 1160px;
  --radius: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); }
.nav a:hover { color: var(--red); }
.nav .btn { color: #fff; }

.has-drop { position: relative; }
.has-drop > a::after { content: " ▾"; font-size: 0.7em; color: var(--muted); }
.drop {
  position: absolute; top: calc(100% + 10px); left: -16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(35, 31, 32, 0.12);
  padding: 10px; min-width: 268px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: 0.18s ease;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 0.9rem; }
.drop a:hover { background: var(--paper-2); color: var(--ink); }
.drop a strong { color: var(--red); font-family: var(--font-display); margin-right: 8px; font-size: 0.78em; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; border: 2px solid var(--ink);
  transition: 0.18s ease; cursor: pointer;
}
.btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn.btn-red { background: var(--red); border-color: var(--red); }
.btn.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.btn-ghost { background: transparent; color: var(--ink); }
.btn.btn-ghost:hover { background: var(--ink); color: #fff; transform: none; }
.btn.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.btn-light:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero .kicker { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.hero .kicker::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 700; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--red); position: relative; }
.hero .lede { margin: 26px 0 34px; font-size: 1.18rem; color: var(--ink-soft); max-width: 54ch; }
.hero .lede strong { color: var(--ink); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mark { position: absolute; right: -80px; top: 46%; transform: translateY(-50%); width: 520px; opacity: 0.055; pointer-events: none; }

/* marquee strip */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); overflow: hidden; padding: 13px 0; }
.marquee-track { display: flex; gap: 44px; white-space: nowrap; animation: scroll 36s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.marquee-track span::after { content: "✦"; color: var(--red); margin-left: 44px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head .num { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 0.9rem; letter-spacing: 0.2em; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; text-decoration: none; display: block;
  transition: 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(35,31,32,0.1); border-color: var(--ink); }
.card .glyph { font-size: 1.5rem; color: var(--red); }
.card h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.card p { font-size: 0.9rem; color: var(--muted); }
.card .more { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.card:hover .more { color: var(--red); }
/* crop-mark corners */
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; opacity: 0; transition: 0.2s;
}
.card::before { top: 8px; left: 8px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.card::after { bottom: 8px; right: 8px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------- Dark band (brands / studio) ---------- */
.dark { background: var(--ink); color: var(--paper); }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #b7b0a8; }
.dark .card { background: #2e2a2b; border-color: #423d3e; }
.dark .card h3 { color: #fff; }
.dark .card p { color: #b7b0a8; }
.dark .card .more { color: var(--paper); }
.dark .card:hover { border-color: var(--red); }

.brand-card .tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(227,55,38,0.45); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Full menu accordion ---------- */
.menu-item { border-bottom: 1px solid var(--line); }
.menu-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 18px;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.menu-item summary::-webkit-details-marker { display: none; }
.menu-item summary .idx { color: var(--red); font-size: 0.85rem; letter-spacing: 0.1em; min-width: 24px; }
.menu-item summary .plus { margin-left: auto; color: var(--muted); font-weight: 400; transition: 0.2s; }
.menu-item[open] summary .plus { transform: rotate(45deg); color: var(--red); }
.menu-item .menu-body { padding: 0 4px 24px 42px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.82rem; background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; color: var(--ink-soft); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 0.85rem; letter-spacing: 0.12em; }
.step h3 { font-size: 1.02rem; margin: 8px 0 6px; }
.step p { font-size: 0.85rem; color: var(--muted); }

/* ---------- Trusted ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; }
.logos span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; text-align: center; padding: 76px 0; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.cta-band p { opacity: 0.92; margin-bottom: 30px; font-size: 1.08rem; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; font-family: var(--font-display); letter-spacing: 0.02em; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Service page ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 20ch; }
.page-hero .lede { margin-top: 20px; font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 16px; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose ul { margin: 0 0 18px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--red); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 4px 22px; color: var(--ink-soft); max-width: 68ch; }

.sidegrid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.sidebox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.sidebox h3 { font-size: 1.1rem; margin-bottom: 8px; }
.sidebox p { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.sidebox .btn { width: 100%; text-align: center; }
.sidebox .alt { margin-top: 14px; font-size: 0.84rem; color: var(--muted); text-align: center; }
.sidebox .alt a { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b7b0a8; padding: 64px 0 32px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer img { height: 84px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b7b0a8; text-decoration: none; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #3a3536; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.footer-bottom a { display: inline; color: var(--red); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sidegrid { grid-template-columns: 1fr; }
  .sidebox { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-mark { display: none; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 20px 24px 26px; gap: 16px;
  }
  .nav.open { display: flex; }
  .has-drop .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 0 12px; min-width: 0; }
  .has-drop > a::after { content: ""; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2, .form-grid, .steps { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; }
}
