/* Apex Solutions. Plain CSS, no build step. */
:root {
  --red: #d91f29;
  --red-dark: #b3161f;
  --ink: #111214;
  --text: #1c1e22;
  --muted: #5d6573;
  --line: #e3e5e8;
  --panel: #e6e6e6;
  --dark: #0b0b0c;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 16px; text-decoration: none;
  padding: 10px 14px; border-radius: 4px; color: var(--ink);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.2;
  padding: 15px 30px; border-radius: 4px; transition: background .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn-block { display: block; width: 100%; }
.link-line {
  display: inline-block; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 2px; font-size: 18px;
}
.link-line:hover { border-color: #fff; }

/* Hero blocks */
.hero {
  position: relative; color: #fff; background: #151515 var(--bg) center / cover no-repeat;
  padding: 88px 0;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--shade, linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.25))); }
.hero > .wrap { position: relative; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; max-width: 17em; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero h1 span { display: block; }
.hero p { color: #fff; font-size: clamp(18px, 2vw, 21px); max-width: 38em; }
.hero .hero-note { font-size: 15px; margin: 14px 0 0; opacity: .92; }
.hero-home { min-height: 560px; display: flex; align-items: center; --shade: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%); }
.hero-services { --shade: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)); background-color: #1a1a1a; padding: 96px 0; }
.hero-services h1 { max-width: 20em; }
.hero-about { min-height: 480px; display: flex; align-items: center; --shade: linear-gradient(90deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.6) 100%); }
.hero-about .about-lines { margin-left: auto; width: min(560px, 100%); }
.hero-about .about-lines p { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 3.2vw, 36px); line-height: 1.3; margin-bottom: 1em; max-width: none; }
.hero-about .about-lines b { font-weight: 700; }

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
/* Fixed layer clipped to each section: the image stays put while the page scrolls (works on iOS, unlike background-attachment: fixed) */
.band-texture { position: relative; clip-path: inset(0); }
.band-texture-bg {
  position: fixed; inset: 0; z-index: 0; opacity: .3; pointer-events: none;
  background: url('/assets/img/texture.png') center / cover no-repeat;
}
.band-texture > .wrap { position: relative; z-index: 1; }
.band-problem { padding: 80px 0; }
.band-problem h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.band-clarity { padding: 20px 0; }
.band-clarity h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.stack p:last-child { margin-bottom: 0; }
.problem-body { margin-top: 40px; }
.problem-body p { max-width: 54em; margin-left: auto; margin-right: auto; }
.divider-top { border-top: 1px solid var(--line); }

.band-dark {
  position: relative; color: #fff; text-align: center; padding: 84px 0;
  background: #07070a var(--bg) center / cover no-repeat;
}
.band-dark::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.band-dark > .wrap { position: relative; }
.band-dark h2 { color: #fff; }
.band-dark blockquote { margin: 0 auto 1.4em; max-width: 34em; font-style: italic; font-size: clamp(18px, 2.2vw, 22px); }
.band-dark blockquote cite { display: block; font-style: normal; margin-top: .3em; }
.band-dark p { max-width: 40em; margin-left: auto; margin-right: auto; }
.band-upper h2 { text-transform: uppercase; letter-spacing: .06em; font-size: clamp(22px, 3.2vw, 34px); }

/* Testimonials */
.testimonials { position: relative; color: #fff; padding: 76px 0; background: #111 var(--bg) center / cover no-repeat; text-align: center; }
.testimonials::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.testimonials > .wrap { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 14px; margin: 0 0 8px; color: #fff; }
.testimonials h2 { color: var(--red); margin-bottom: 36px; font-size: clamp(26px, 3.2vw, 36px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 40px; padding: 0; list-style: none; text-align: center; }
.card { background: #e6e6e6; color: #1b1b1b; padding: 26px 22px; border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; }
.card q { quotes: none; font-style: italic; display: block; margin-bottom: 14px; }
.card .who { font-weight: 700; margin-bottom: 10px; display: block; }
.stars { color: #f4b81f; letter-spacing: 3px; font-size: 22px; line-height: 1; }

/* Service cards */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.panel {
  position: relative; color: #fff; text-align: center; padding: 34px 28px 40px; background: #120609 var(--bg) center / cover no-repeat;
}
.panel h3 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.panel .sub { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.panel p:last-child { margin-bottom: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.about-grid h2 { text-transform: uppercase; letter-spacing: .08em; font-size: 28px; margin-bottom: 1.2em; }
.portrait img { width: 100%; max-width: 400px; margin: 0 auto; }
.cta-row { text-align: center; padding: 8px 0 72px; }

/* Contact */
.contact-wrap {
  position: relative; color: #fff; padding: 72px 0 80px;
  background: #1c1c1c var(--bg) center / cover no-repeat;
}
.contact-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info h1 { color: #fff; font-size: clamp(32px, 4vw, 44px); border-bottom: 1px solid rgba(255,255,255,.8); padding-bottom: 8px; margin-bottom: 14px; }
.contact-info .lines p { margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.contact-info .lines a { text-transform: none; }
.contact-info .intro { background: rgba(255,255,255,.12); padding: 14px 16px; margin-top: 18px; }
.form-card { background: #fff; color: var(--text); padding: 36px; border-radius: 2px; }
.form-card label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 6px; color: #22252b; }
.form-card .req { color: var(--red); }
.form-card .field { margin-bottom: 18px; }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1px solid #cdd1d7; border-radius: 4px; background: #fff; color: var(--text);
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form-card .assure { text-align: center; font-size: 15px; margin: 16px 0 6px; }
.form-card .fine { text-align: center; font-size: 15px; margin: 0; }
.form-card .fine a { color: var(--ink); }
.hp { position: absolute; left: -5000px; }
.thanks { padding: 110px 0; }

/* Blog list */
/* One fixed copy of the texture behind the whole blog area, clipped to it (same technique as .band-texture) */
.blog-page { position: relative; background: #111; clip-path: inset(0); }
.blog-page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url('/assets/img/texture-tires.webp') center / cover no-repeat; }
.blog-page > section { position: relative; z-index: 1; }
.blog-hero { padding: 56px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 4px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.chip { background: none; border: 0; color: #fff; font: 500 16px var(--font-head); padding: 8px 12px; cursor: pointer; border-radius: 4px; }
.chip:hover { background: rgba(255,255,255,.14); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.search { width: 190px; max-width: 100%; margin-left: auto; font: inherit; font-size: 16px; padding: 9px 12px; border: 0; border-radius: 6px; }
.blog-body { padding: 28px 0 72px; }
.post-list { background: var(--panel); padding: 28px var(--gutter) 40px; }
.post-item { display: grid; grid-template-columns: 1fr 200px; gap: 24px; max-width: 800px; margin: 0 auto; padding: 24px 0; align-items: start; }
.post-item + .post-item { border-top: 1px solid #cfcfcf; }
.post-item h2 { font-size: 24px; margin-bottom: 8px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { color: var(--red); }
.post-item .excerpt { font-size: 17px; margin-bottom: 8px; }
.post-item .excerpt a { color: #1a73e8; text-decoration: none; }
.meta { font-size: 15px; color: var(--muted); }
.meta .cats { display: block; margin-bottom: 2px; }
.thumb { display: block; line-height: 0; }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.more-row { text-align: center; padding-top: 16px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
[hidden] { display: none !important; }

/* Post */
.post-top { background: #111 var(--bg) center / cover; height: 120px; }
.article { max-width: 760px; margin: -56px auto 0; background: #fff; padding: 36px var(--gutter) 24px; position: relative; }
.article h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: .4em; }
.article .meta a { color: inherit; }
.article .meta { margin-bottom: 4px; }
.article .meta .sep { margin: 0 6px; }
.article-body { margin-top: 28px; font-size: 19px; }
.article-body h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.article-body h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.article-body img { margin: 1.6em auto .5em; border-radius: 2px; }
.article-body img + em { display: block; font-size: 15px; color: var(--muted); text-align: left; margin-bottom: 1.6em; }
.article-body a { color: #1a5fb4; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .55em; }
.article-body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--red); color: #333; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 20px; padding: 0; list-style: none; }
.tags li { background: #eef0f3; color: #3a4252; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.author { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); padding: 16px; margin-bottom: 22px; }
.author img.pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 auto; }
.author strong { display: block; font-family: var(--font-head); }
.author a { line-height: 0; display: inline-block; margin-top: 6px; }
.back { display: inline-block; font-size: 16px; color: var(--muted); text-decoration: none; margin-bottom: 56px; }
.back:hover { color: var(--red); }

/* Legal */
.legal { padding: 64px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 20px; margin: 1.8em 0 .5em; }
.legal ul { padding-left: 1.3em; }
.legal .eff { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 200px 1fr 1.2fr 1fr; gap: 32px; align-items: start; }
.footer-grid img.logo-stacked { width: 150px; height: auto; }
.site-footer h3 { font-size: 17px; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li, .site-footer address { font-size: 16px; color: var(--muted); line-height: 1.7; font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.social { display: inline-block; margin-top: 12px; line-height: 0; }
.social img { width: 28px; height: 28px; }
.copyright { text-align: center; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }

/* Mobile */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { order: -1; }
  .portrait img { max-width: 320px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .js .nav-toggle { display: block; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 14px; gap: 0;
  }
  .js .nav-open .nav { display: flex; }
  .js .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .nav { flex-wrap: wrap; }
  .hero { padding: 64px 0; }
  .hero-home { min-height: 0; --shade: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)); }
  .hero-about { min-height: 0; --shade: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)); }
  .hero-about .about-lines { margin-left: 0; }
  .section { padding: 52px 0; }
  .band-dark, .testimonials { padding: 56px 0; }
  .two-up { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; gap: 14px; }
  .post-item .thumb { order: -1; }
  .search { width: 100%; }
  .filters { flex-direction: column; align-items: stretch; }
  .form-card { padding: 24px 18px; }
  .btn { padding: 14px 24px; }
  .hero .btn, .band-dark .btn, .cta-row .btn { display: block; text-align: center; }
  .article { margin-top: -32px; }
  .article-body { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
