/* ============================================================
   TRIMWORKS — 304 stainless window trim landing page
   Light editorial showroom style: paper white + charcoal + cobalt
   ============================================================ */

:root {
  --paper: #f4f3ef;
  --paper-2: #ffffff;
  --ink: #101215;
  --ink-soft: #5c6167;
  --muted: #8a9098;
  --line: #e2dfd7;
  --line-soft: #e8e5dd;
  --blue: #1b4dff;
  --night: #0e1013;
  --wa: #25d366;

  --wrap: 1440px;
  --pad: 88px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }

p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22262c; }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #1fbe5a; }

.btn-sm { height: 42px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 239, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { align-self: center; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
}
.brand-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .06em;
  color: #9aa0a7;
}
.brand-invert .brand-name { color: var(--paper); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: #3c4147;
  transition: color .16s var(--ease);
}
.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}
.header-phone:hover { color: var(--blue); }

/* ---------------- Hero ---------------- */

.hero {
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 404px;
  gap: 72px;
  align-items: start;
}

.hero-copy { min-width: 0; }

.hero-copy > * + * { margin-top: 26px; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  color: var(--muted);
}

.hero-title {
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.028em;
  margin-top: 18px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  max-width: 500px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.hero-facts {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #777d84;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(27, 77, 255, .25);
  padding-bottom: 2px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.text-link svg { color: var(--blue); transition: transform .18s var(--ease); }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.text-link:hover svg { transform: translate(2px, -2px); }

.hero-note {
  font-size: 12px;
  color: #9aa0a7;
  max-width: 420px;
}

/* ---------------- Quote card ---------------- */

.quote-card {
  background: var(--paper-2);
  border: 1px solid #e3e0d8;
  border-radius: 3px;
  padding: 30px;
  box-shadow: 0 18px 44px -14px rgba(15, 18, 21, .07), 0 2px 6px rgba(15, 18, 21, .03);
}

.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  color: var(--blue);
}

.card-title {
  margin-top: 7px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
}

.card-sub {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7076;
}

.contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color .16s var(--ease);
}
.contact-list a:hover { color: var(--blue); }
.contact-list svg { flex-shrink: 0; color: var(--ink); }
.contact-list a:hover svg { color: var(--blue); }

.card-rule {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 18px 0 0;
}

.quote-form { margin-top: 16px; }

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #6b7076;
  margin-bottom: 8px;
}

.field {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e3e0d8;
  border-radius: 2px;
  background: #f7f6f3;
  font-family: var(--font-body);
  font-size: 15px;      /* 15px+ stops iOS zoom on focus */
  color: var(--ink);
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.field::placeholder { color: #a2a8ae; }
.field:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 18, 21, .06);
}
.field[aria-invalid="true"] {
  border-color: #d0342c;
  background: #fdf6f5;
}

.field + .btn { margin-top: 10px; }

.field-error {
  margin-top: 8px;
  font-size: 12px;
  color: #c0311a;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.card-micro {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #9aa0a7;
}

/* success state */
.form-success { text-align: left; padding-top: 4px; }
.form-success h3 {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.form-success p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7076;
}
.form-success strong { color: var(--ink); font-weight: 600; }
.form-success .btn { margin-top: 16px; }
.form-success:focus { outline: none; }

/* ---------------- Image band + spec strip ---------------- */

.band-wrap { margin-top: 44px; }

.band {
  margin: 0;
  background: #e7e5de;
  border-radius: 2px;
  overflow: hidden;
}
.band picture,
.install-figure picture { display: block; }
.band img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 46%;
}
.band figcaption {
  padding: 10px 0;
  font-size: 11px;
  color: #9aa0a7;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink);
  border-radius: 2px;
  padding: 0 28px;
  min-height: 68px;
  align-items: center;
}
.spec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 16px;
}
.spec-k {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .09em;
  color: #7b828b;
  white-space: nowrap;
}
.spec-v {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
}

/* ---------------- Installation ---------------- */

.install {
  background: var(--paper-2);
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  color: var(--muted);
}
.section-eyebrow .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: .04em;
}
.section-eyebrow .rule {
  width: 40px;
  height: 1px;
  background: #dddad2;
}

.section-title {
  margin-top: 18px;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.section-lead {
  margin-top: 16px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.install-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 56px;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #e6e3db;
}
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--blue);
  padding-top: 4px;
}
.steps h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.steps p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7076;
}

.install-figure { margin: 0; }
.install-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: #e7e5de;
}
.install-figure figcaption {
  margin-top: 10px;
  font-size: 11px;
  color: #9aa0a7;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--night);
  color: var(--paper);
  padding-top: 72px;
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  align-items: flex-start;
}

.footer-brand { max-width: 380px; }
.footer-brand > * + * { margin-top: 18px; }

.footer-tagline {
  font-size: 13px;
  line-height: 1.77;
  color: #9aa0a7;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 64px;
}
.footer-links > div { display: grid; gap: 12px; align-content: start; }
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #6b7076;
}
.footer-links a {
  font-size: 13px;
  color: #b9bec4;
  transition: color .16s var(--ease);
  width: fit-content;
}
.footer-links a:hover { color: #fff; }

.footer-rule {
  border: 0;
  border-top: 1px solid #23272e;
  margin: 44px 0 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0 0;
  font-size: 11px;
  color: #6b7076;
}

.footer-note {
  margin-top: 14px;
  padding-bottom: 10px;
  font-size: 10px;
  line-height: 1.7;
  color: #4d545c;
}

.wordmark {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 152px);
  line-height: .92;
  letter-spacing: -.035em;
  text-align: center;
  color: #1a1e24;
  user-select: none;
  padding: 0 var(--pad);
  margin-bottom: -.06em;
  white-space: nowrap;
}

/* ---------------- Mobile bar ---------------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 243, 239, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
}
.mb-wa { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.mb-quote { background: var(--ink); color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  :root { --pad: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 372px; gap: 48px; }
  .install-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

@media (max-width: 960px) {
  :root { --pad: 32px; }

  .nav { display: none; }
  .header-inner { height: 68px; }
  .header-phone { display: none; }

  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-sub { max-width: none; font-size: 16px; }

  .band img { aspect-ratio: 16 / 9; }

  .install { padding-top: 64px; padding-bottom: 64px; }
  .install-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .install-figure { order: -1; }
  .install-figure img { aspect-ratio: 4 / 3; }

  .footer-top { flex-direction: column; gap: 40px; }
  .footer-brand { max-width: none; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }

  body { font-size: 15px; }

  .brand-tag { display: none; }
  .header-actions .btn { height: 38px; padding: 0 14px; font-size: 12px; }

  .hero { padding-top: 28px; }
  .hero-copy > * + * { margin-top: 20px; }
  .hero-title { font-size: clamp(34px, 9.6vw, 44px); margin-top: 14px; }
  .hero-sub { font-size: 15px; line-height: 1.68; }
  .hero-facts { font-size: 11px; line-height: 1.9; }

  .quote-card { padding: 22px 20px; }

  .spec-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
    padding: 16px 18px;
    min-height: 0;
  }
  .spec { flex-direction: column; align-items: flex-start; gap: 3px; }
  .band figcaption { font-size: 10px; }

  .steps li { grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 18px 0; }

  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; font-size: 10px; }
  .wordmark { font-size: clamp(38px, 13vw, 70px); }

  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Print / no-JS niceties */
@media print {
  .site-header, .mobile-bar, .quote-form { display: none; }
}
