/* =========================================================
   DESIGN TOKENS — Suru Web
   Palette: ink navy / paper cream / brass / pine / rust
   Type: Fraunces (display) + Inter (body) + IBM Plex Mono (data)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1B2A41;
  --ink-soft: #2C3E5C;
  --paper: #F7F3E8;
  --paper-dim: #EFE9D8;
  --brass: #C08A28;
  --brass-dark: #8C611A;
  --pine: #2F5233;
  --rust: #B5482F;
  --charcoal: #2B2B2B;
  --line: rgba(27, 42, 65, 0.14);

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--brass-dark);
  display: inline-block;
}

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

.section { padding: clamp(56px, 9vw, 108px) 0; position: relative; }

/* Ruler-tick divider: the site's structural signature.
   Ticks mark measured, built-to-spec sections — not decoration. */
.ruler {
  height: 22px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 48px
  );
  background-position: bottom;
  background-size: 100% 12px;
  background-repeat: repeat-x;
  position: relative;
  opacity: 0.8;
}
.ruler::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--brass-dark);
}
.btn-primary:hover { background: var(--brass-dark); color: var(--paper); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 90px; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 52px; height: 52px; flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links .btn-primary { display: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brass);
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

@media (max-width: 860px) {
  .nav .wrap { min-height: 70px; }
  .brand-mark { width: 42px; height: 42px; }
  .nav-links { position: fixed; top: 79px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 24px var(--pad); gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); visibility: hidden; pointer-events: none; transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
  .nav-links .btn-primary { display: inline-flex; margin-top: 4px; }
}

/* ---------- Hero: hung sign board ---------- */
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.sign {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 72px);
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(27,42,65,0.45);
}
/* hanging chains: two pseudo-elements, since box-shadow offsets can't use percentages */
.sign::before,
.sign::after {
  content: '';
  position: absolute;
  top: -34px;
  width: 1.5px; height: 34px;
  background: var(--line);
}
.sign::before { left: 12%; }
.sign::after { left: calc(76% - 3vw); }
.sign h1 { color: var(--paper); max-width: 14ch; }
.sign p { color: rgba(247,243,232,0.78); max-width: 46ch; font-size: 1.1rem; margin-top: 18px; }
.sign .btn-primary { margin-top: 32px; }
.hero-eyebrow { color: var(--brass); margin-bottom: 18px; }
.hero-eyebrow::before { background: var(--brass); }
@media (max-width: 360px) {
  .sign .btn-primary, .cta-band .btn-primary { padding: 12px 18px; font-size: 0.9rem; white-space: nowrap; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.services-grid { align-items: start; }
@media (min-width: 641px) {
  .services-grid > .card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(27,42,65,0.3); }
.card .icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--brass); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
.card ul { margin-top: 14px; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.card li { margin-bottom: 6px; }

/* ---------- Before/After slider (signature interactive) ---------- */
.compare {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(27,42,65,0.35);
  aspect-ratio: 16/10;
  cursor: ew-resize;
  user-select: none;
  container-type: inline-size;
}
.compare-layer { position: absolute; inset: 0; }
.compare-before { background: linear-gradient(180deg, #dcd6c4 0%, #cfc7ae 100%); }
.compare-after { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); overflow: hidden; }
.compare-after-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: var(--brass);
  left: 50%; transform: translateX(-50%);
}
/* draggable grip: distinct left/right chevrons signal interactivity without a text label */
.compare-handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1);
  width: 40px; height: 40px; background: var(--brass); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.compare:hover .compare-handle-grip,
.compare:focus-visible .compare-handle-grip {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--brass-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
/* one-time intro nudge, played by JS on first viewport entry; removed after it finishes so drags stay instant */
.compare.intro-anim .compare-handle { transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.compare.intro-anim .compare-after { transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.compare-label {
  position: absolute; top: 14px; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px;
  border-radius: 4px; background: rgba(27,42,65,0.85); color: var(--paper);
}
.compare-label.before-label { right: 14px; }
.compare-label.after-label { left: 14px; background: var(--pine); }

/* mock browser chrome used inside before/after */
.browser-chrome {
  height: 26px; background: #E4DEC9; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 10px; flex: 0 0 auto;
}
.browser-chrome span { width: 7px; height: 7px; border-radius: 50%; background: #BFB79E; }

/* Before: dated, cramped, low-hierarchy small-business mockup */
.mock-old { font-family: Georgia, serif; }
.mock-old-body { padding: clamp(9px, 3.6cqw, 16px); }
.mock-old-topbar {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: clamp(3px, 1.4cqw, 6px); padding-bottom: clamp(5px, 1.8cqw, 8px);
  border-bottom: 1px solid #b7ac89;
}
.mock-old-brand { font-weight: 700; color: var(--charcoal); font-size: clamp(9.5px, 3.6cqw, 15px); white-space: nowrap; }
.mock-old-nav { display: flex; flex-wrap: wrap; row-gap: 2px; font-size: clamp(6px, 1.9cqw, 8.5px); color: #2a4d8f; }
.mock-old-nav span { text-decoration: underline; white-space: nowrap; }
.mock-old-nav span:not(:last-child)::after { content: '|'; margin: 0 3px; color: #a89b6f; text-decoration: none; }
.mock-old-contact {
  display: inline-block; background: #6b2f2a; color: #f2e6d8; font-family: Arial, sans-serif;
  font-size: clamp(5.5px, 1.8cqw, 8px); letter-spacing: 0.02em;
  padding: clamp(2px, 1cqw, 4px) clamp(6px, 2.2cqw, 10px);
  margin-top: clamp(5px, 1.8cqw, 8px); white-space: nowrap;
}
.mock-old-headline {
  font-weight: 700; color: var(--brass-dark); font-size: clamp(8.5px, 3.2cqw, 12.5px);
  letter-spacing: 0.02em; margin: clamp(6px, 2.2cqw, 10px) 0 clamp(4px, 1.4cqw, 6px);
}
.mock-old-badge {
  display: inline-block; background: #c23b2c; color: #fff; font-family: Arial, sans-serif; font-weight: 700;
  font-size: clamp(5.5px, 1.8cqw, 8px); letter-spacing: 0.02em; transform: rotate(-1deg);
  padding: clamp(2px, 0.9cqw, 4px) clamp(6px, 2.2cqw, 9px); border-radius: 2px;
  margin-bottom: clamp(5px, 2cqw, 9px);
}
.mock-old .mock-line { background: #c9c0a2; height: clamp(3.5px, 1.3cqw, 6px); margin-bottom: clamp(3.5px, 1.3cqw, 6px); }
.mock-old-cta {
  display: inline-block; margin-top: clamp(4px, 1.6cqw, 8px);
  font-size: clamp(7px, 2.3cqw, 10px); color: #2a4d8f; text-decoration: underline;
}

/* After: organized, spacious, clearly-hierarchical redesign mockup of the same business */
.mock-new { padding: clamp(10px, 4cqw, 18px); display: flex; flex-direction: column; flex: 1; min-height: 0; box-sizing: border-box; gap: clamp(6px, 2.4cqw, 11px); }
.mock-new-topbar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: clamp(4px, 1.6cqw, 8px); flex: 0 0 auto; }
.mock-new-brand { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: clamp(9.5px, 3.6cqw, 15px); white-space: nowrap; }
.mock-new-nav { display: flex; gap: clamp(6px, 2.4cqw, 14px); font-family: var(--mono); font-size: clamp(6px, 1.8cqw, 8.5px); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.mock-hero {
  flex: 1; min-height: 0; background: var(--ink); border-radius: 6px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: clamp(3px, 1.3cqw, 6px); padding: clamp(10px, 4cqw, 18px);
}
.mock-hero-title { font-family: var(--display); font-weight: 600; color: var(--paper); font-size: clamp(10px, 4cqw, 16px); line-height: 1.18; }
.mock-hero-sub { color: rgba(247,243,232,0.72); font-size: clamp(7px, 2.2cqw, 9.5px); }
.mock-hero-services { display: flex; flex-wrap: wrap; gap: clamp(4px, 1.6cqw, 7px); margin-top: clamp(1px, 0.6cqw, 3px); }
.mock-service-chip {
  font-family: var(--mono); font-size: clamp(5.5px, 1.7cqw, 7.5px); letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(247,243,232,0.9); border: 1px solid rgba(247,243,232,0.35); border-radius: 20px;
  padding: clamp(2px, 1cqw, 4px) clamp(6px, 2.2cqw, 10px); white-space: nowrap;
}
.mock-new-cta {
  margin-top: clamp(1px, 0.8cqw, 4px); display: inline-block; align-self: flex-start;
  background: var(--brass); color: white; font-weight: 600;
  font-size: clamp(7px, 2.2cqw, 9.5px); padding: clamp(4px, 1.6cqw, 7px) clamp(9px, 3cqw, 14px);
  border-radius: 5px;
}
.mock-new-info {
  display: flex; flex-wrap: wrap; gap: clamp(7px, 2.6cqw, 15px); flex: 0 0 auto;
  font-family: var(--mono); font-size: clamp(6px, 1.8cqw, 8px); letter-spacing: 0.02em; color: var(--ink-soft);
}
.mock-new-rating { color: var(--brass-dark); font-weight: 600; }

/* restrained caption clarifying the mockups are illustrative, not a real client */
.compare-note {
  margin-top: 10px; font-size: 0.72rem; color: var(--ink-soft); opacity: 0.75;
  font-style: italic; text-align: center;
}
/* compact summary of the redesign's concrete improvements */
.compare-changes {
  margin: 32px auto 0; max-width: 760px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
}
.compare-changes-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.compare-changes-item svg { flex: 0 0 auto; color: var(--pine); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: clamp(40px, 6vw, 64px); text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(247,243,232,0.75); margin: 14px auto 28px; max-width: 46ch; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .foot-links { display: flex; gap: 24px; font-size: 0.88rem; color: var(--ink-soft); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-mark { width: 32px; height: 32px; flex-shrink: 0; }
.foot-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
@media (max-width: 480px) {
  footer .wrap { align-items: flex-start; }
  .foot-mark { width: 28px; height: 28px; }
  footer .foot-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 12px 24px;
  }
  footer .foot-links a { white-space: nowrap; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--body); font-size: 0.95rem; background: white; color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field textarea { resize: vertical; min-height: 120px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
.form-status { font-size: 0.9rem; margin-top: 14px; padding: 10px 14px; border-radius: 6px; display: none; }
.form-status.pending { display: block; background: rgba(27,42,65,0.08); color: var(--ink); }
.form-status.ok { display: block; background: rgba(47,82,51,0.1); color: var(--pine); }
.form-status.err { display: block; background: rgba(181,72,47,0.1); color: var(--rust); }
.contact-link { color: var(--ink); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.contact-link:hover { color: var(--brass-dark); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: clamp(24px, 4vw, 48px);
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
.contact-layout > * { min-width: 0; }
.contact-info {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 36px);
}
.contact-info h2 { margin-top: 14px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-detail { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.contact-detail-label {
  display: block;
  margin-bottom: 6px;
  color: var(--brass-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-form-card { padding: clamp(24px, 5vw, 48px); }
@media (min-width: 761px) and (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(250px, 42fr) minmax(0, 58fr); gap: 24px; }
  .contact-info { padding: 24px; }
}
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.9rem; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 520px) {
  .price-table { display: block; font-size: 0.88rem; }
  .price-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .price-table tbody, .price-table tr { display: block; }
  .price-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:first-child { border-top: 1px solid var(--line); }
  .price-table td { display: grid; grid-template-columns: minmax(104px, 0.75fr) minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
  .price-table td:first-child { display: block; padding: 0 0 8px; color: var(--ink); font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
  .price-table td:nth-child(2)::before,
  .price-table td:nth-child(3)::before { color: var(--brass-dark); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
  .price-table td:nth-child(2)::before { content: 'Smaller scope'; }
  .price-table td:nth-child(3)::before { content: 'Larger scope'; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal-meta { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.legal h2 { margin-top: 48px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 24px; font-size: 1.05rem; }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin-top: 14px; padding-left: 22px; color: var(--ink-soft); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.legal a:hover { color: var(--brass-dark); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 56px; }
.small { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
