/* ============================================================
   Ravenrock Knives — site stylesheet
   System fonts only (no web-font downloads). Mobile-first.
   ============================================================ */

:root {
  /* Palette matched to the RRK R&D deck ("Wood Type" theme):
     white bg, cream E9E5DC, orange D34817, rust 9B2D1F,
     brown 956251, gray 696464 */
  --ink:        #161412;
  --ink-soft:   #3b332c;
  --muted:      #696464;
  --paper:      #ffffff;
  --paper-2:    #e9e5dc;
  --line:       #d9d3c6;
  --burl:       #956251;
  --oxide:      #9b2d1f;
  --flame:      #d34817;
  --sheath:     #2a1d12;

  --serif: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxide); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* -----------  HEADER  ----------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 38px; height: 38px; }
.brand .brand-name {
  font-family: var(--serif);
  font-weight: 600; font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-list {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--oxide);
}

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  border-radius: 4px; padding: 0.45rem 0.6rem; cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform 0.2s;
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { content: ""; position: absolute; top:  7px; left: 0; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    position: absolute; top: 100%; right: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    flex-direction: column;
    padding: 0.65rem 1rem;
    min-width: 180px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-list.open { display: flex; }
}

/* -----------  HERO  ----------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background: var(--sheath);
  overflow: hidden;
}
.hero picture, .hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 3rem 1.5rem;
  color: #f3ead9;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  margin: 0 0 0.4em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.hero .kicker {
  font-family: var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.8rem; color: #d6c6a4;
  margin-bottom: 1rem;
}
.hero .lede {
  max-width: 36rem; font-size: 1.13rem;
  color: #ece2cb;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero .cta-row { margin-top: 1.5rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.92rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--oxide); color: #fff; border-color: var(--oxide);
}
.btn-primary:hover { background: var(--flame); border-color: var(--flame); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-dark {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.btn-dark:hover { background: #000; color: #fff; }

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

section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }

.section-head { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head .kicker {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--burl); font-weight: 600; display: block; margin-bottom: 0.5rem;
}
.section-head p { color: var(--muted); }

/* -----------  Feature cards (landing)  ----------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.feature {
  text-align: left;
}
.feature h3 { margin-bottom: 0.25em; }
.feature p  { color: var(--muted); margin: 0; }
.feature .num {
  font-family: var(--serif); font-style: italic; color: var(--flame);
  font-size: 1.4rem; display: block; margin-bottom: 0.25rem;
}

/* -----------  Gallery grid  ----------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.knife-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.knife-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.knife-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  cursor: zoom-in;
  overflow: hidden;
}
.knife-card .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.knife-card:hover .photo img { transform: scale(1.03); }
.knife-card .body { padding: 1.1rem 1.25rem 1.4rem; }
.knife-card .id {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--burl);
  margin-bottom: 0.3rem; font-weight: 600;
}
.knife-card h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.knife-card p  { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.knife-card .specs {
  list-style: none; margin: 0; padding: 0;
  font-size: 0.84rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 0.7rem;
}
.knife-card .specs li { margin: 0.2rem 0; }
.knife-card .status {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  margin-left: 0.4rem;
}

/* -----------  Two-column block (About)  ----------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split img { border-radius: 4px; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split.reverse > :first-child { order: 0; }
}

/* -----------  Stat row  ----------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat .n {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1;
}
.stat .l {
  display: block; margin-top: 0.3rem;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

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

.contact-wrap {
  max-width: 36rem; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.2rem;
}
.contact-wrap h2 { text-align: center; margin-bottom: 0.4rem; }
.contact-wrap p.lede { text-align: center; color: var(--muted); }
.contact-wrap .channels {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 0.85rem;
}
.contact-wrap .channels li {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: 3px;
  background: #f5f3ee;
}
.contact-wrap .channels strong { color: var(--ink); }

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

.contact-form { margin-top: 0.5rem; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line); border-radius: 3px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--oxide);
  box-shadow: 0 0 0 3px rgba(155,45,31,0.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { width: 100%; border: 0; }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; text-align: center; }
.form-status.error { color: var(--oxide); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice {
  background: var(--paper-2);
  border-left: 3px solid var(--flame);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 0 3px 3px 0;
  margin: 1.5rem 0;
}

/* -----------  Lightbox  ----------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.92);
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 2rem; color: #fff;
  background: transparent; border: 0;
  cursor: pointer; line-height: 1;
}

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

.site-footer {
  background: var(--sheath);
  color: #cdbe9c;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-start;
}
.site-footer .brand-block { max-width: 22rem; }
.site-footer .brand-block .brand-name {
  color: #f3ead9; font-family: var(--serif); font-size: 1.1rem;
  letter-spacing: 0.05em; text-transform: uppercase; display: block;
  margin-bottom: 0.4rem;
}
.site-footer a { color: #ead9b3; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .col h4 {
  color: #f3ead9; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin: 0 0 0.6rem;
}
.site-footer .legal {
  width: 100%; border-top: 1px solid #4a3625;
  padding-top: 1rem; margin-top: 1.2rem;
  font-size: 0.78rem; color: #9c8c6a;
}

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

.page-hero {
  background: var(--paper-2);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 { margin: 0; }
.page-hero .kicker {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--burl); font-weight: 600; display: block; margin-bottom: 0.5rem;
}
.page-hero p {
  max-width: 38rem; margin: 0.6rem auto 0; color: var(--muted);
}

/* Utility */
.center { text-align: center; }
.muted { color: var(--muted); }
.divider {
  border: 0; border-top: 1px solid var(--line);
  width: 60px; margin: 1.4rem auto;
}
