/* ---------------------------------------------------------------------------
   AVS Services
   Palette taken from the logo: black #000000 and #660017.
   That red is 1.58:1 on black, so it cannot carry text on dark. It is used for
   block fills and, where it shines, as text on the light contact panel (12:1).
   Interactive elements on dark use a brightened member of the same family.
--------------------------------------------------------------------------- */

:root {
  --black: #000000;
  --ink-900: #0b0b0c;       /* page ground */
  --ink-800: #121214;       /* lifted section */
  --ink-700: #1b1b1e;       /* cards */
  --line: rgba(255, 255, 255, 0.10);

  --paper: #f4f2f1;         /* the one light block */
  --paper-line: rgba(0, 0, 0, 0.12);

  --text: #f2f0ef;          /* 18.3:1 on --ink-900 */
  --text-soft: #b8b3b1;     /* 9.2:1  */
  --text-faint: #8b8684;    /*  5.2:1 */

  --brand: #660017;         /* the logo red, for fills and for text on paper */
  --brand-mid: #c41e3f;     /* 3.6:1 on black, large text, borders, rules */
  --brand-bright: #d93a55;  /* 4.7:1 on black, links and small text */

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 3px;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}

img, picture, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--brand-bright); text-underline-offset: .18em; }
a:hover { color: #fff; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.lede { font-size: 1.14rem; color: var(--text-soft); max-width: 62ch; }
.muted { color: var(--text-faint); }
.section-head { max-width: 62ch; margin-bottom: clamp(26px, 4vw, 46px); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--brand-mid); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

/* --------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; letter-spacing: .04em; font-size: 1.02rem; }
.brand-sub {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 720px) { .brand-sub { display: none; } }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { text-decoration: none; color: var(--text-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.site-nav a:hover { color: #fff; }
.nav-phone { color: var(--brand-bright) !important; font-variant-numeric: tabular-nums; letter-spacing: .04em !important; text-transform: none !important; font-size: .92rem !important; }
.nav-cta { border: 1px solid var(--brand-mid); color: #fff !important; padding: 8px 15px; border-radius: var(--radius); }
.nav-cta:hover { background: var(--brand-mid); }
@media (max-width: 860px) { .site-nav a:not(.nav-cta):not(.nav-phone) { display: none; } }
@media (max-width: 480px) { .nav-phone { display: none; } }

/* ----------------------------------------------------------------- hero --- */
.hero { position: relative; isolation: isolate; background: var(--black); }
.hero-media img { width: 100%; height: clamp(440px, 78vh, 780px); object-fit: cover; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.92) 100%),
    linear-gradient(90deg, rgba(102,0,23,.35) 0%, rgba(102,0,23,0) 55%);
}
.hero .hero-copy { position: absolute; inset-inline: 0; bottom: clamp(38px, 8vh, 96px); z-index: 2; }
.hero h1 { max-width: 17ch; }
.hero .lede { color: rgba(242,240,239,.88); max-width: 54ch; }

.hero-plain { padding-block: clamp(80px, 14vh, 150px); }
.hero-plain::after { background: linear-gradient(90deg, rgba(102,0,23,.5) 0%, rgba(102,0,23,0) 60%); }
.hero-plain .hero-copy { position: static; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

.page-hero { padding-block: clamp(70px, 12vh, 130px); border-bottom: 1px solid var(--line); }

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--brand-mid); color: #fff; border-color: var(--brand-mid); }
.btn-primary:hover { background: var(--brand-bright); border-color: var(--brand-bright); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ------------------------------------------------------------- services --- */
.services { padding-block: clamp(56px, 9vw, 104px); background: var(--ink-900); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: start; }

.service-card {
  background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); height: 100%;
  border-top: 2px solid var(--brand);
}
.service-card.lead { border-top-color: var(--brand-bright); background: linear-gradient(180deg, rgba(196,30,63,.10), rgba(0,0,0,0) 60%), var(--ink-700); }
.service-card .badge {
  display: inline-block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  background: var(--brand-mid); color: #fff; padding: 4px 9px; border-radius: 2px; margin: 0 0 12px;
}
.service-card .summary { color: var(--text-soft); }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { position: relative; padding: 7px 0 7px 20px; font-size: .95rem; color: var(--text-soft); border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 1px; background: var(--brand-mid); }

/* ---------------------------------------------------------------- about --- */
.about { padding-block: clamp(56px, 9vw, 104px); background: var(--ink-800); border-block: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 76px); align-items: start; }
@media (max-width: 820px) { .about-inner { grid-template-columns: 1fr; } }
.about-copy p { color: var(--text-soft); max-width: 66ch; }
.about-points { list-style: none; margin: 0; padding: 0; }
.about-points li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--text-soft); }
.about-points li:first-child { border-top: 1px solid var(--line); }
.about-points li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 2px; background: var(--brand-mid); }

/* ----------------------------------------------------------------- work --- */
.work { padding-block: clamp(56px, 9vw, 104px); background: var(--black); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.work-item { margin: 0; background: var(--ink-700); border-radius: var(--radius); overflow: hidden; }
.work-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: .92; }
.work-item:hover img { transform: scale(1.03); opacity: 1; }
.work-item figcaption { font-size: .85rem; color: var(--text-faint); padding: 10px 12px 12px; }

/* ------------------------------------------------------------- projects --- */
.projects { padding-block: clamp(56px, 9vw, 104px); background: var(--ink-800); border-block: 1px solid var(--line); }
.project-list { display: flex; flex-direction: column; gap: clamp(30px, 5vw, 64px); }
.project { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.project:nth-child(even) .project-media { order: 2; }
@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
}
.project-media { border-radius: var(--radius); overflow: hidden; background: var(--ink-700); }
.project-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project-meta { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0 0 .6em; font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--brand-bright); }
.project-meta span + span { position: relative; padding-left: 15px; color: var(--text-faint); }
.project-meta span + span::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 1px; background: var(--line); }
.project-client { font-size: .95rem; color: var(--text-faint); margin: -.3em 0 1em; }
.project-summary { color: var(--text); font-size: 1.08rem; }
.project-copy p { color: var(--text-soft); }

/* --------------------------------------------------------- testimonials --- */
.says { padding-block: clamp(56px, 9vw, 104px); background: var(--black); }
.says-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.say { margin: 0; background: var(--ink-700); border: 1px solid var(--line); border-left: 2px solid var(--brand-mid); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.say blockquote { margin: 0; }
.say blockquote p { font-size: 1.08rem; color: var(--text); margin-bottom: .9em; }
.say figcaption { font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--brand-bright); }
.say figcaption span { display: block; font-weight: 400; letter-spacing: 0; color: var(--text-faint); margin-top: 2px; }

/* -------------------------------------------------------------- contact --- */
/* The one light block on the page. Here the logo red finally gets to be text. */
.contact { padding-block: clamp(60px, 9vw, 110px); background: var(--paper); color: #17161a; }
.contact h2 { color: var(--brand); }
.contact .lede { color: #4a4744; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(34px, 6vw, 76px); align-items: start; }
@media (max-width: 880px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-direct { list-style: none; margin: 30px 0 0; padding: 0; }
.contact-direct li { display: flex; flex-direction: column; gap: 3px; padding: 15px 0; border-top: 1px solid var(--paper-line); }
.contact-direct .label { font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; color: #7d7875; }
.contact-direct a { color: var(--brand); font-weight: 600; }
.contact-direct a:hover { color: #000; }
.contact-direct .big { font-size: 1.5rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

.contact-form { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: clamp(22px, 3.2vw, 36px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #6b6663; }
.field .req { color: var(--brand); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: #17161a; background: #fff;
  border: 1px solid #d5d1cf; border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #a8a3a0; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(102,0,23,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-error { color: #9a1020; font-size: .85rem; font-weight: 600; }
.form-error { background: #fbe9ea; border-left: 3px solid var(--brand); padding: 12px 14px; font-size: .93rem; color: #6b0016; }
.form-note { font-size: .8rem; color: #7d7875; margin: 14px 0 0; }
.contact-form .btn-primary { background: var(--brand); border-color: var(--brand); }
.contact-form .btn-primary:hover { background: #8a0020; border-color: #8a0020; }
.cf-turnstile { margin-bottom: 16px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- footer --- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 72px) 22px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-name { font-weight: 700; letter-spacing: .04em; margin: 12px 0 2px; }
.footer-brand p { margin: 0; font-size: .95rem; }
.footer-col h2 { font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-faint); margin-bottom: 1em; font-weight: 600; }
.footer-col a { display: block; padding: 5px 0; font-size: .95rem; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col p { font-size: .95rem; margin: 0 0 6px; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; font-size: .82rem; }

/* Active section highlight, set by site.js */
.site-nav a[aria-current="true"] { color: #fff; box-shadow: inset 0 -2px 0 var(--brand-mid); }
