/* ==========================================================================
   Greg's Blackline — design system
   Editorial, hard-edged, confident. Red/black/cream. No gradients, no
   drop shadows on cards, no rounded corners — the "expensive" comes from
   restraint, whitespace, and type, not decoration.
   ========================================================================== */

/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/archivo-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:        #201e1d;
  --paper:      #f3f2f2;
  --paper-alt:  #eae9e9;
  --red:        #ec3013;
  --red-deep:   #ae1800;
  --red-bright: #ff563c;
  --cream:      #f3f2f2;
  --line:       rgba(32, 30, 29, 0.4);
  --line-strong: rgba(32, 30, 29, 0.9);
  --muted:      rgba(32, 30, 29, 0.6);
  --muted-2:    rgba(32, 30, 29, 0.78);
  --on-ink:     rgba(243, 242, 242, 0.85);
  --on-ink-2:   rgba(243, 242, 242, 0.65);
  --on-red:     #f3f2f2;

  --font: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 5vw, 72px);
}

/* ---- reset ---- */
*, *::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);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 12px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: rgba(138, 20, 20, 0.22); }

/* ---- layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(40px, 5vw, 84px) 0; }
.section-tight { padding: clamp(28px, 3.5vw, 48px) 0; }
.hr { height: 2px; border: 0; margin: 0; background: var(--line); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 72px); align-items: center; }
.bordered-grid { display: grid; border: 2px solid var(--ink); }
.bordered-grid > * + * { border-top: 2px solid var(--ink); }
@media (min-width: 700px) {
  .bordered-grid { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .bordered-grid > * + * { border-top: 0; border-left: 2px solid var(--ink); }
}

/* ---- type helpers ---- */
.eyebrow {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-deep); margin: 0 0 14px; font-weight: 800;
}
.h-display { font-size: clamp(40px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.h-1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; margin: 0; }
.h-2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; margin: 0; }
.h-3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; margin: 0; }
.lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; max-width: 56ch; }
.body-lg { font-size: 15.5px; line-height: 1.65; color: var(--muted-2); max-width: 52ch; }
.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.tabular { font-variant-numeric: tabular-nums; }
.max-w-prose { max-width: 62ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; font-family: var(--font); font-weight: 800; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-on-red { background: var(--paper); color: var(--red-deep); }
.btn-on-red:hover { background: var(--ink); color: var(--paper); }
.btn-outline-on-red { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-outline-on-red:hover { background: var(--paper); color: var(--red-deep); }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px clamp(12px, 2vw, 28px);
  padding: 14px var(--pad); background: var(--paper); border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: inherit; }
.brand img, .brand svg { height: 42px; width: auto; display: block; flex: none; }
.brand-name { font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.brand-sub { font-weight: 800; font-size: 9px; line-height: 1; letter-spacing: 0.18em; color: var(--red); white-space: nowrap; }
.nav-link {
  font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; padding: 4px 0;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--red); }
.nav-cta {
  display: inline-flex; align-items: center; padding: 10px 16px; background: var(--red);
  color: var(--on-red); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; white-space: nowrap;
}
.nav-cta:hover { background: var(--red-deep); }
.nav-toggle { display: none; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(16px, 2.5vw, 32px); }
@media (max-width: 760px) {
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 14px; padding-top: 6px; }
  .nav-links.is-open { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 2px solid var(--ink); background: transparent;
    cursor: pointer; flex: none;
  }
  .nav-cta { order: 1; }
}

/* ---- stat row ---- */
.stat { }
.stat-num { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; color: var(--red); font-weight: 800; margin: 0 0 0 -0.045em; }
.stat-label { font-size: 13px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin: 12px 0 0; }

/* ---- cards / panels ---- */
.panel { padding: clamp(20px, 3vw, 32px); }
.panel-ink { background: var(--ink); color: var(--paper); }
.panel-red { background: var(--red); color: var(--on-red); }
.dot-li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; margin: 0; }
.dot-li + .dot-li { margin-top: 10px; }
.dot-li::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; margin-top: 6px; }

/* ---- rate table ---- */
.rate-table-wrap { overflow-x: auto; margin-top: 32px; }
.rate-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
.rate-table th {
  text-align: left; font-family: var(--font); font-weight: 800; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink);
}
.rate-table th.num, .rate-table td.num { text-align: right; padding-right: 0; padding-left: 12px; }
.rate-table td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); }

/* ---- placeholder image block (until real photography exists) ---- */
.ph-block {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; background: var(--paper-alt); border: 1px solid var(--line);
  color: var(--muted); text-align: center; padding: 24px;
}
.ph-block .ph-icon { width: 40px; height: 40px; opacity: .55; }
.ph-block .ph-label { font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.ph-block .ph-note { font-size: 11px; letter-spacing: 0.02em; color: var(--muted); }
.ph-4-3 { aspect-ratio: 4/3; }
.ph-3-2 { aspect-ratio: 3/2; }
.ph-4-5 { aspect-ratio: 4/5; }
.ph-1-1 { aspect-ratio: 1/1; }

.photo { width: 100%; object-fit: cover; display: block; }
.photo-mood { filter: grayscale(1) contrast(1.08); }

/* ---- quote calculator ---- */
.quote-box { display: grid; margin-top: 40px; border: 2px solid var(--ink); }
@media (min-width: 760px) { .quote-box { grid-template-columns: 1fr 1fr; } }
.quote-form { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; border-bottom: 2px solid var(--ink); }
@media (min-width: 760px) { .quote-form { border-bottom: 0; border-right: 2px solid var(--ink); } }
.field-label { display: block; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 800; margin-bottom: 8px; }
.select {
  width: 100%; padding: 13px 12px; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%2317130f' d='M5 7l5 6 5-6z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--ink); width: fit-content; max-width: 100%; }
.seg label {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; cursor: pointer;
  font-weight: 800; font-size: 13px; background: transparent; color: var(--ink);
}
.seg label + label { border-left: 2px solid var(--ink); }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label.is-active { background: var(--red); color: var(--on-red); }
.quote-result { padding: clamp(20px, 3vw, 32px); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 18px; }
.quote-price { font-size: clamp(52px, 8.4vw, 96px); line-height: 0.94; letter-spacing: -0.03em; color: var(--red); margin: 0 0 0 -0.045em; font-weight: 800; }
.quote-price-label { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 800; color: rgba(247,244,238,.65); }
.quote-note { font-size: 14px; line-height: 1.5; margin: 0; color: rgba(247,244,238,.8); }
.quote-fine { font-size: 12px; line-height: 1.5; margin: 0; color: rgba(247,244,238,.55); }

/* ---- lead form ---- */
.lead-form { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 640px) { .lead-form { grid-template-columns: 1fr 1fr; } }
.lead-form .field-full { grid-column: 1 / -1; }
.input, textarea.input, select.select {
  width: 100%; padding: 12px; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
}
textarea.input { min-height: 100px; resize: vertical; }
.lead-form label { display: block; }

/* ---- testimonial ---- */
.testimonial { border-top: 2px solid var(--ink); padding-top: 20px; }
.testimonial p:first-child { font-size: 16px; line-height: 1.65; margin: 0; }
.testimonial cite { display: block; font-style: normal; font-size: 13px; line-height: 1.5; margin: 18px 0 0; color: var(--muted); }

/* ---- final CTA band ---- */
.cta-band { background: var(--red); color: var(--on-red); }

/* ---- footer ---- */
.site-footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: clamp(36px, 4vw, 64px) 0 24px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding: 18px 0 28px; border-top: 2px solid var(--line); font-size: 12px; color: var(--muted);
}
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--red); }
.footer-title { font-weight: 800; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 12px; }

/* ---- sticky mobile call bar ---- */
.call-bar { position: sticky; bottom: 0; z-index: 50; display: none; border-top: 2px solid var(--ink); }
.call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 12px; font-weight: 800; font-size: 15px; }
.call-bar a.text { background: var(--red); color: var(--on-red); }
.call-bar a.call { background: var(--ink); color: var(--paper); }
@media (max-width: 700px) { .call-bar { display: flex; } body { padding-bottom: 54px; } }

/* ---- page hero (interior pages) ---- */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }

/* ---- faq ---- */
.faq-item { border-top: 2px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 2px solid var(--line); }
.faq-q { font-weight: 800; font-size: 17px; margin: 0 0 10px; }
.faq-a { font-size: 15px; line-height: 1.65; color: var(--muted-2); margin: 0; max-width: 62ch; }

.is-hidden { display: none !important; }

/* ---- skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 12px 16px; z-index: 100; font-weight: 800;
}
.skip-link:focus { left: 12px; top: 12px; }
