/* =========================================================
   Barnes Tech Help — styles
   Design tokens (palette, fonts, shape) live in tokens.css so the
   website and the A5 flyer share one source of truth.
   ========================================================= */

@import "tokens.css";

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--blue); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
  transform: translateY(-150%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--green-soft); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: color-mix(in srgb, var(--green-soft) 90%, #000); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-icon { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }

.wordmark {
  display: inline-flex; flex-flow: row wrap; align-items: baseline; gap: .05em .3em; line-height: 1;
  font-family: var(--font-head); font-weight: 800; text-decoration: none;
  color: var(--ink); letter-spacing: -0.03em; text-transform: lowercase;
}
.wordmark-line-1 { color: var(--blue); font-size: clamp(1.05rem, 3.2vw, 1.3rem); white-space: nowrap; }
.wordmark-line-2 { font-size: clamp(1.05rem, 3.2vw, 1.3rem); white-space: nowrap; }

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  text-decoration: none; font-size: .98rem; transition: color .15s ease;
}
.nav-menu a:not(.btn):hover { color: var(--blue); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink); }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: .8rem; color: var(--blue); margin: 0 0 .75rem;
}
.hero h1 { margin-bottom: .5rem; }
.hl { color: var(--blue); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.5rem 0 0; }
.hero-note {
  display: inline-flex; align-items: center; gap: .55rem; margin: 1.1rem 0 0;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--blue);
}
.hero-actions .hero-contact { margin: 0; }
.hero-note .dot {
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--peach); box-shadow: 0 0 0 4px var(--peach-wash);
}

/* Hero artwork */
.hero-art { position: relative; min-height: 320px; display: grid; place-items: center; }
.hero-blob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(380px, 100%); height: calc(100% + 40px); z-index: 0;
  background: radial-gradient(130% 130% at 25% 18%, var(--blue-soft), var(--green-wash) 62%);
  border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
  filter: blur(2px);
}
.price-hero {
  position: relative; z-index: 1; max-width: 340px; text-align: center;
  box-shadow: var(--shadow-lg); border-color: var(--blue-soft);
}
.price-hero-label {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .78rem; color: var(--blue); margin: 0 0 .5rem;
}
.price-hero-amount {
  font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--ink);
  line-height: 1; margin: 0 0 .6rem;
}
.price-hero-amount span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-hero-sub { color: var(--muted); margin: 0 0 .35rem; }
.price-hero-rate {
  margin: 0 0 1.1rem; font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
.price-hero-rate strong { color: var(--blue); }
.nowrap { white-space: nowrap; }
.price-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1.1rem;
  background: var(--green-soft); color: var(--ink); border: 1px solid var(--green);
  border-radius: 999px; padding: .45rem .9rem;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.price-hero-badge svg { width: 16px; height: 16px; fill: var(--ink); flex: none; }
.price-hero-foot {
  margin: 0; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 50rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head h2 { text-wrap: balance; }
.section-head .eyebrow { color: var(--blue); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-inline: auto; }

.grid { display: grid; gap: var(--gap); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}

/* Services */
.service-tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
}
.service-tags li {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.2rem; font-family: var(--font-head); font-weight: 600; color: var(--ink);
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.service-tags li svg { width: 18px; height: 18px; fill: var(--blue); flex: none; }
.service-tags li:nth-child(2) svg { fill: var(--green); }
.service-tags li:nth-child(3) svg { fill: var(--peach); }
.service-tags li:nth-child(6) svg { fill: var(--green); }
.service-tags li:nth-child(7) svg { fill: var(--peach); }
.service-tags li.tag-break { display: none; }
.services-cta {
  text-align: center; margin: 1.5rem 0 0;
  font-family: var(--font-head); font-weight: 600; color: var(--muted);
}
.services-cta a { color: var(--blue); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about-inner .about-copy { order: 2; }
.about-inner .about-card { order: 1; }
.about-copy p { color: var(--muted); }
.brandname { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; text-transform: lowercase; color: var(--ink); }
.brandname .b1 { color: var(--blue); }
.about-copy .cred {
  color: var(--ink); font-weight: 700;
  background: linear-gradient(transparent 58%, var(--peach-wash) 58%);
  padding: 0 .1em; border-radius: 2px;
}
.about-card { background: linear-gradient(180deg, var(--green-wash), #fff 55%); border-color: var(--green-soft); }
.about-facts { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.about-facts li { display: flex; align-items: center; gap: .65rem; }
.about-facts svg { width: 22px; height: 22px; fill: var(--green); flex: none; }
.about-facts svg.ico-tick { stroke: var(--green); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-line { font-family: var(--font-head); margin: 1.25rem 0 1rem; font-size: 1.05rem; }
.contact-line a { color: var(--blue); text-decoration: none; font-weight: 600; }
.contact-line a:hover { text-decoration: underline; }
.contact-line .contact-phone { color: var(--ink); font-weight: 800; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; text-decoration: none;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1.1rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.contact-btn:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-btn svg { width: 18px; height: 18px; fill: var(--blue); flex: none; }
.contact-btn-wa svg { fill: #25D366; }

/* Form */
.contact-form { display: grid; gap: .8rem; padding: 1.4rem; }
.field { display: grid; gap: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px var(--blue-wash);
}
.field textarea { resize: vertical; }
.form-status { margin: 0; font-weight: 600; color: var(--blue); min-height: 1.2em; }
.form-status.error { color: #c0392b; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--surface) 76%, var(--ink)); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-block: clamp(2rem, 4vw, 3rem); }
.footer-brand { max-width: 36ch; }
.footer-brand p { color: color-mix(in srgb, var(--surface) 55%, var(--ink)); margin: .75rem 0 0; }
.footer-heading { font-family: var(--font-head); font-weight: 700; color: var(--surface); margin: 0 0 .6rem; font-size: .95rem; }
.wordmark-footer { color: var(--surface); }
.wordmark-footer .wordmark-line-1 { color: var(--blue-soft); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-contact a { color: color-mix(in srgb, var(--surface) 84%, var(--ink)); text-decoration: none; }
.footer-contact a:hover { color: var(--surface); text-decoration: underline; }
.footer-contact a.footer-url {
  font-family: var(--font-head); font-weight: 800;
  letter-spacing: -0.02em; text-transform: lowercase;
  font-size: 1.1rem; color: var(--surface);
}
.footer-contact a.footer-url .u-blue { color: var(--blue-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: auto; margin-top: .5rem; }
  .price-hero { margin-inline: auto; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-inner .about-copy, .about-inner .about-card { order: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1rem, 4vw, 2rem) 1.25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { padding: .25rem 0; }
  .nav-menu a:not(.btn) { display: block; padding: .6rem 0; }
}

@media (max-width: 560px) {
  .section { padding: clamp(2.5rem, 9vw, 3.5rem) 0; }
  .hero { padding: 2rem 0 2.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .price-hero { max-width: 100%; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}
