/* Redwire — Kieran Mellamphy, Electrician
   Auckland. Since 2009. */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F1EBE0;
  --ink: #14110E;
  --ink-soft: #36322C;
  --muted: #7B7468;
  --rule: #DFD7C8;
  --accent: #6B2B23;
  --accent-hover: #8A382C;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --measure: 38rem;
  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus-visible { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
  font-variation-settings: "SOFT" 20, "WONK" 0;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); letter-spacing: -0.015em; }

p { margin: 0; }
p + p { margin-top: 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  z-index: 200;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "SOFT" 30;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.9375rem;
}
.nav__links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 450;
}

.nav__call {
  font-family: var(--font-body);
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--accent);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav__call:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__call { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
  .wordmark { font-size: 1.3rem; }
}

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

.hero {
  padding-top: clamp(3.5rem, 9vw, 7.5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
  display: block;
}

.hero h1 {
  margin-bottom: 2.25rem;
  max-width: 16ch;
}

.hero__lede {
  font-size: clamp(1.125rem, 1.55vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem 2.5rem;
}

.btn-call {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.btn-call:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.btn-call .label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__hours {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2rem;
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */

section {
  padding-block: var(--section);
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 920px) {
  .two-col { grid-template-columns: 14rem 1fr; }
}

.prose {
  max-width: 40rem;
}
.prose p {
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1.4em; }
.prose h2 { margin-bottom: 1.75rem; }
.prose h2 + p { margin-top: 0; }

/* ---------- Reviews ---------- */

.reviews {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.reviews__inner { max-width: 50rem; margin: 0 auto; }
.reviews .section-label { margin-bottom: 1.25rem; text-align: center; }

.review {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.review + .review {
  border-top: 1px solid var(--rule);
}
.review blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.5rem;
  font-style: normal;
  font-variation-settings: "SOFT" 30;
}
.review blockquote::before { content: "\201C"; }
.review blockquote::after { content: "\201D"; }
.review cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.reviews__footer {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
.reviews__footer strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Reach (Phone / Hours / Where) ---------- */

.reach-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .reach-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.reach__item h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.reach__item p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.reach__item .phone {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.4vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: 0.3rem;
}
.reach__item .phone:hover { color: var(--accent); }

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 3.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .legal {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.5rem;
  width: 100%;
}

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

.mobile-call { display: none; }

@media (max-width: 760px) {
  .mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: var(--ink);
    color: var(--bg);
    padding: 1rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    z-index: 90;
    box-shadow: 0 16px 32px -12px rgba(20, 17, 14, 0.4);
  }
  .mobile-call:hover { color: var(--bg); }
  .mobile-call .label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
  }
  body { padding-bottom: 5.5rem; }
}

/* ---------- Page hero (interior) ---------- */

.page-hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  max-width: 22ch;
  margin-bottom: 1.5rem;
}
.page-hero .lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.6;
}

/* ---------- Work list ---------- */

.work-list { display: grid; gap: 0; }
.work-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 4rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.work-item:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) {
  .work-item { grid-template-columns: 14rem 1fr; }
}
.work-item__num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-item h2 {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  margin-bottom: 1.25rem;
}
.work-item__body { max-width: 40rem; }
.work-item__body p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Closing CTA ---------- */

.closing-cta {
  text-align: center;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}
.closing-cta h2 {
  margin-bottom: 1.5rem;
  max-width: 20ch;
  margin-inline: auto;
}
.closing-cta p {
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-inline: auto;
  font-size: 1.125rem;
}
.closing-cta .btn-call { margin-inline: auto; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 5rem; }
}

.big-phone {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}
.big-phone:hover { color: var(--accent); border-color: var(--accent); }

.contact-note {
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 32rem;
}

.contact-detail { margin: 0; }
.contact-detail dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.contact-detail dd {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.contact-detail dd:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 6rem;
}
.notfound h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 1rem; }
.notfound p { color: var(--ink-soft); margin-bottom: 2rem; max-width: 30rem; }

/* ---------- Privacy / legal text ---------- */

.legal-prose { max-width: 42rem; margin-top: 2rem; }
.legal-prose h2 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-prose p { color: var(--ink-soft); }

/* ---------- Focus ---------- */

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

/* ---------- Reduced motion ---------- */

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