/* ============================================================
   R&K CONSTRUCTION SOLUTIONS — Shared Stylesheet
   Aesthetic: blueprint / spec-sheet — navy ink + construction amber
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink:        #0E1A2B;   /* deep navy */
  --ink-soft:   #1B2C42;
  --amber:      #E8913A;   /* construction amber accent */
  --amber-dark: #C9742A;
  --paper:      #F6F4EF;   /* warm off-white */
  --paper-pure: #FFFFFF;
  --line:       rgba(14, 26, 43, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --muted:      #56657A;
  --muted-light:#A9B6C8;
  --radius:     4px;
  --maxw:       1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blueprint grid background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: 'Archivo', sans-serif; line-height: 1.08; letter-spacing: -0.02em; }

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

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--amber); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 26, 43, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 21px;
  color: var(--paper);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark-img { height: 42px; width: auto; display: block; }
.logo .mark {
  color: var(--amber);
  border: 2px solid var(--amber);
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 18px;
}
.logo small { display: block; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color: var(--muted-light); font-weight: 400; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--muted-light);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--paper); }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--paper); display: block; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(232,145,58,0.22), transparent 65%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 900; }
.hero h1 .amber { color: var(--amber); }
.hero p.lead { font-size: 19px; color: var(--muted-light); margin: 26px 0 36px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* animated spec card in hero */
.spec-card {
  background: var(--ink-soft);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 28px;
  font-family: 'Space Mono', monospace;
}
.spec-card .spec-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.16em; color: var(--muted-light); border-bottom: 1px dashed var(--line-light); padding-bottom: 14px; margin-bottom: 16px; }
.spec-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.05); }
.spec-row span:first-child { color: var(--muted-light); }
.spec-row .ok { color: var(--amber); }
.spec-total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--amber); font-weight: 700; font-size: 15px; color: var(--paper); }

/* fade-up animation */
.fade-up { opacity: 0; transform: translateY(22px); animation: fadeUp 0.7s ease forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.18s; } .d3 { animation-delay: 0.31s; } .d4 { animation-delay: 0.44s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; position: relative; }
.block.alt { background: var(--paper-pure); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* value strip */
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.value-strip .item { background: var(--paper-pure); padding: 30px 26px; }
.value-strip .item .tag { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--amber-dark); letter-spacing: 0.12em; }
.value-strip .item h4 { font-size: 19px; margin-top: 8px; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 30px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,26,43,0.10); border-color: var(--amber); }
.card .num { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--amber-dark); font-weight: 700; letter-spacing: 0.1em; }
.card h3 { font-size: 22px; margin: 10px 0 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* why list */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.why-grid li { list-style: none; padding-left: 34px; position: relative; font-size: 17px; padding-bottom: 6px; }
.why-grid li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ink); background: var(--amber); width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 18px; border-top: 3px solid var(--amber); }
.step .n { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 44px; color: var(--line); line-height: 1; }
.step h4 { font-size: 20px; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; padding: 78px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); background-size: 44px 44px; opacity: 0.5; }
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.cta-band p { color: var(--muted-light); font-size: 18px; margin: 16px 0 32px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- About specifics ---------- */
.page-head { background: var(--ink); color: var(--paper); padding: 78px 0; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -100px; bottom: -160px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(232,145,58,0.18), transparent 65%); }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; }
.page-head p { color: var(--muted-light); font-size: 19px; margin-top: 18px; max-width: 620px; }

.story { font-size: 19px; color: var(--ink-soft); max-width: 760px; line-height: 1.7; }
.story strong { color: var(--ink); }

.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.founder { background: var(--paper-pure); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.founder .photo-slot { width: 84px; height: 84px; border-radius: 6px; background: var(--ink); color: var(--amber); display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 30px; margin-bottom: 18px; border: 1px solid var(--line-light); }
.founder h3 { font-size: 23px; }
.founder .role { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.14em; color: var(--amber-dark); text-transform: uppercase; margin: 4px 0 14px; }
.founder p { color: var(--muted); font-size: 16px; }

.values-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-box h4 { font-size: 19px; padding-bottom: 8px; border-bottom: 2px solid var(--amber); display: inline-block; }
.value-box p { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.form-card { background: var(--paper-pure); border: 1px solid var(--line); border-radius: 10px; padding: 38px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-weight: 700; }
.field label .req { color: var(--amber-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,145,58,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-msg { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: rgba(232,145,58,0.14); border: 1px solid var(--amber); font-size: 15px; }

.contact-side .info-block { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 32px; }
.contact-side .info-block .eyebrow { color: var(--amber); }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.info-item:last-child { border-bottom: none; }
.info-item .ic { font-size: 18px; }
.info-item .lbl { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--muted-light); text-transform: uppercase; }
.info-item a, .info-item span.val { display: block; font-size: 16px; color: var(--paper); font-weight: 600; }
.info-item a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: #0A1320; color: var(--muted-light); padding: 54px 0 30px; position: relative; z-index: 1; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line-light); }
.footer-top .logo { color: var(--paper); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-contact a:hover { color: var(--amber); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-weight: 600; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { padding-top: 22px; font-size: 13px; font-family: 'Space Mono', monospace; letter-spacing: 0.04em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .cards, .why-grid, .founders, .contact-grid { grid-template-columns: 1fr; }
  .value-strip, .steps, .values-row { grid-template-columns: 1fr; }
  .values-row { gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line-light); transform: translateY(-130%); transition: transform 0.3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 28px; }
  .nav .btn { margin: 10px 28px; justify-content: center; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  section.block { padding: 60px 0; }
  .hero { padding: 64px 0 72px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta, .cta-band .hero-cta { flex-direction: column; }
  .footer-top { flex-direction: column; }
}
