/* Jurutera Solutions — home page
   Implemented from the Claude Design file "Jurutera Solutions Home.dc.html". */

:root {
  --bg: #f4f2ee;
  --bg-alt: #ece9e2;
  --bg-raised: #fbfaf7;
  --ink: #1a1a19;
  --ink-2: #3d3a34;
  --muted: #6b675f;
  --line: #d9d5cc;
  --accent: #c2611c;
  --accent-dark: #a9500f;
  --accent-soft: #e8935a;
  --on-dark: #f4f2ee;
  --on-dark-2: #c9c4b8;
  --on-dark-muted: #a39e93;
  --on-dark-line: #4a4843;
  --on-dark-fill: #2b2a27;
  --font-sans: 'Archivo', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 6px;
  --header-h: 56px;
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
input, textarea, button { font-family: inherit; }
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
a:hover { color: var(--accent); }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lede {
  color: var(--ink-2);
  line-height: 1.55;
  font-size: 17px;
  text-wrap: pretty;
}
.stack { display: flex; flex-direction: column; }
.stack-16 { gap: 16px; }
.stack-20 { gap: 20px; }

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

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 242, 238, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.site-nav .is-muted { color: var(--muted); }
.site-nav .is-muted:hover { color: var(--accent); }

@media (max-width: 639px) {
  .site-nav { gap: 8px 20px; }
  .nav-cta { display: none; }
}

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

.hero {
  padding-block: 72px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--line);
}
.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}
.hero-badge span { display: block; }
.hero-badge .sub { color: var(--on-dark-2); }

/* ---------- Credentials strip ---------- */

.creds {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.creds-grid {
  padding-block: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
}
.cred { display: flex; flex-direction: column; gap: 4px; }
.cred-title { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.cred-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- Verification strip ---------- */

.verify { border-bottom: 1px solid var(--line); background: var(--bg); }
.verify-grid {
  margin: 0;
  padding-block: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px 24px;
}
.verify-item { display: flex; flex-direction: column; gap: 3px; }
.verify-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.verify-item dd { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }

/* ---------- Services ---------- */

.services { padding-block: 88px; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: 1fr 2fr; }
}
.services-intro { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.services-intro p:not(.eyebrow) {
  color: var(--ink-2);
  line-height: 1.55;
  font-size: 16px;
  text-wrap: pretty;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color .15s ease;
}
.service:hover { background: var(--bg-raised); }
.service-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.service-title { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.service-desc { color: var(--ink-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.service-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
.service-items li { display: flex; gap: 10px; }
.service-items li::before { content: "—"; color: var(--accent); flex: none; }

/* ---------- Projects (dark band) ---------- */

.projects { background: var(--ink); color: var(--on-dark); }
.projects-inner {
  padding-block: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.projects .eyebrow { color: var(--accent-soft); }
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.projects-head .stack { max-width: 560px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--on-dark-line);
  background: transparent;
  color: var(--on-dark-2);
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--on-dark-2); color: var(--on-dark); }
.filter[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--ink);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.project { display: flex; flex-direction: column; gap: 12px; }
.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--on-dark-fill);
}
.project figcaption { display: flex; flex-direction: column; gap: 4px; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.project-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.project-desc { font-size: 14px; color: var(--on-dark-2); line-height: 1.45; text-wrap: pretty; }
.projects-empty { color: var(--on-dark-2); font-size: 15px; }

/* ---------- As-builts ---------- */

.asbuilts {
  padding-block: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}
.asbuilts-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asbuilts-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- About ---------- */

.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  padding-block: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}
.link-underline {
  align-self: flex-start;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.about-photo {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--line);
}

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

.contact {
  padding-block: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}
.contact-links { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.contact-links a { font-weight: 600; }
.contact-links .contact-phone { font-size: 20px; letter-spacing: -.01em; }
.contact-links .contact-whatsapp { align-self: flex-start; margin-block: 4px; }
.contact-links span { color: var(--muted); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-note {
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-weight: 600;
}
.form-note.is-error { background: #fbe9e1; color: #7a2e00; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
}
.field textarea { resize: vertical; }
.field input[type="file"] {
  padding: 10px;
  border-style: dashed;
  font-size: 14px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  margin-right: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.field .optional { font-weight: 400; color: var(--muted); }
.field-hint { font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.4; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.contact-form .btn { border: 0; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }

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

.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
  padding-block: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .mono { font-family: var(--font-mono); letter-spacing: .06em; }

/* ---------- Sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(26, 26, 25, .25);
}
.sticky-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Form honeypot (never shown to people) ---------- */

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

/* ---------- Secondary pages (blog, 404) ---------- */

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.page {
  padding-block: 64px 88px;
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-bottom: 48px;
}

.post-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .post-card { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.post-card h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.post-card h2 a:hover { color: var(--accent); }
.post-card p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.post-card .more { font-weight: 600; font-size: 14px; color: var(--accent); }

.post {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 64px 88px;
}
.post-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.post-title {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.post-standfirst {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.post-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}
.post-body > * + * { margin-top: 18px; }
.post-body h2 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 44px;
  text-wrap: balance;
}
.post-body h3 {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  margin-top: 32px;
}
.post-body ul, .post-body ol {
  padding-left: 24px;
  list-style: disc;
}
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; padding-left: 4px; }
.post-body li::marker { color: var(--accent); }
.post-body a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body strong { color: var(--ink); }
.post-body .note {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
}
.post-body .note p + p { margin-top: 10px; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.post-body th, .post-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.post-body th { color: var(--ink); font-weight: 600; background: var(--bg-alt); }

.post-cta {
  margin-top: 56px;
  padding: 28px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-cta p { font-size: 16px; line-height: 1.5; max-width: 480px; }
.post-cta strong { display: block; font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.post-cta .btn { flex: none; }

.post-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.post-footer a { font-weight: 600; color: var(--ink); }
.post-footer a:hover { color: var(--accent); }

.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding-block: 88px;
}
.notfound .lede { max-width: 480px; }
