/* Nueva Tierra Knives — shared styles for every page */
@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --paper:  #F4EDE1;
  --sand:   #E6D8C3;
  --cream:  #FBF7F0;
  --sun:    #AD4F25;
  --ember:  #93421F;
  --copper: #B26A3C;
  --ipe:    #4B3526;
  --carbon: #1F1C1A;
  --muted:  #5C5249;
  --body:   #3A342F;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 116px;
  --serif: 'Staatliches', 'Arial Narrow', Impact, sans-serif;
  --sans:  'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--ember); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 60px; height: 30px; color: var(--sun); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1; white-space: nowrap; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 5px; color: var(--ipe); padding-top: 3px; }
@media (max-width: 480px) { .site-header .brand-sub { display: none; } .brand-name { font-size: 22px; } }
.nav { display: flex; gap: 36px; font-weight: 500; font-size: 17px; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--ember); }
.nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.menu { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--carbon); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 20px; height: 20px; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: 58px; flex-direction: column; min-width: 220px; padding: 10px; background: var(--cream); border-radius: 16px; box-shadow: 0 12px 32px rgba(31,28,26,.14); }
  .menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
  .menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--sand); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border-radius: 999px; font: 500 17px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-dark { background: var(--carbon); color: var(--paper); }
.btn-dark:hover { background: var(--ember); }
.btn-line { border-color: var(--carbon); color: var(--carbon); background: transparent; }
.btn-line:hover { background: var(--carbon); color: var(--paper); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--sun); }
.btn[aria-disabled="true"] { background: var(--sand); color: var(--muted); pointer-events: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 7vh, 88px) 20px 0; }
.hero h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -0.02em; max-width: 1000px; margin-top: 20px; }
.hero .lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--body); max-width: 620px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.hero-sun { margin-top: clamp(40px, 6vh, 72px); width: min(820px, 104vw); flex-shrink: 0; color: var(--sun); animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(18%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-sun { animation: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { text-align: center; padding: clamp(48px, 8vw, 96px) 20px clamp(40px, 6vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-head svg { width: 88px; height: auto; aspect-ratio: 1276 / 770; color: var(--sun); }
.page-head h1 { font-size: clamp(44px, 6vw, 76px); }
.page-head p { font-size: clamp(17px, 1.5vw, 20px); color: var(--body); max-width: 640px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-title { font-size: clamp(40px, 5vw, 60px); text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.dark { background: var(--carbon); color: var(--paper); }
.ipe { background: var(--ipe); color: var(--sand); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.card .photo { width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px 12px 12px; background: var(--sand); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo svg { width: 38%; color: var(--copper); opacity: .55; }
.card h3 { font-size: 28px; }
.card .price { font-size: 18px; color: var(--body); }
.card .desc { font-size: 16px; color: var(--muted); max-width: 320px; }
.card .btn { margin-top: 8px; }

/* ---------- Story band ---------- */
.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.story svg.mark { width: 96px; height: auto; aspect-ratio: 1276 / 770; color: var(--sun); }
.story h2 { font-size: clamp(40px, 5vw, 60px); margin-top: 26px; }
.story p { margin-top: 24px; color: #D9CFC3; max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; }
.story .btn { margin-top: 32px; }
.story .photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--ipe); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.story .photo img { width: 100%; height: 100%; object-fit: cover; }
.story .photo svg { width: 30%; color: var(--copper); opacity: .5; }
@media (max-width: 820px) { .story { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Materials list ---------- */
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.material { background: var(--cream); border-radius: 20px; padding: 28px; }
.material h3 { font-size: 24px; margin-bottom: 10px; }
.material p { font-size: 16px; color: var(--body); }

/* ---------- Steps (commissions) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--sun); color: #fff; font: 600 18px var(--sans); margin-bottom: 16px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--body); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; max-width: 720px; margin: 0 auto; background: var(--cream); padding: clamp(24px, 4vw, 48px); border-radius: 24px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 17px var(--sans); color: var(--carbon); background: #fff; border: 1.5px solid #CDBFAE; border-radius: 12px; padding: 14px 16px; min-height: 52px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(173,79,37,.2); }
.form .btn { justify-self: start; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ipe); color: var(--sand); padding: 56px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand svg { color: var(--sun); }
.site-footer .brand-sub { color: #D9A57E; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 500; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer small { display: block; width: 100%; font-size: 14px; color: #CDBFAE; border-top: 1px solid rgba(230,216,195,.2); padding-top: 24px; }

/* ---------- Pull quote ---------- */
.quote { margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; max-width: 900px; }
.quote figcaption { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ember); }
.story p + p { margin-top: 16px; }
.ipe .story p { color: #E6D8C3; }

/* ---------- Two ways to commission ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.path { background: var(--cream); border-radius: 24px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.path .eyebrow { font-size: 14px; }
.path h3 { font-size: clamp(30px, 3.2vw, 40px); }
.path p { color: var(--body); }
.path .btn { margin-top: auto; }
.path .price-note { font-weight: 600; color: var(--carbon); }
.dark .path { background: #2B2724; }
.dark .path h3 { color: var(--paper); }
.dark .path p { color: #D9CFC3; }
.dark .path .price-note { color: var(--paper); }
.dark .path .eyebrow { color: #D9946E; }
.path-spacer { flex-grow: 1; min-height: 8px; }

/* ---------- Commission tabs ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 40px; padding: 6px; background: var(--sand); border-radius: 999px; width: fit-content; max-width: 100%; }
.tab { font: 500 17px var(--sans); color: var(--carbon); background: transparent; border: 0; border-radius: 999px; min-height: 48px; padding: 0 26px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--carbon); color: var(--paper); }
.panel[hidden] { display: none; }
.form-intro { text-align: center; max-width: 640px; margin: 0 auto 32px; color: var(--body); }
.form h3 { font-size: 26px; }
.form .divider { border: 0; border-top: 1px solid #DCCFBD; margin: 8px 0; }

/* ---------- Batch rows (one per knife) ---------- */
.knife-row { background: #fff; border: 1.5px solid #E2D5C3; border-radius: 18px; padding: 22px; display: grid; gap: 16px; }
.knife-row-head { display: flex; justify-content: space-between; align-items: center; }
.knife-row-head strong { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.knife-row .field input, .knife-row .field textarea { background: var(--cream); }
.knife-row textarea { min-height: 110px; }
.remove { font: 500 15px var(--sans); color: var(--ember); background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 6px; }
.remove:hover { text-decoration: underline; }
.add-row { justify-self: start; }
.count-note { font-size: 15px; color: var(--muted); }

/* About intro: fills the whole first screen, with a down arrow */
.page-head--tall { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); justify-content: center; box-sizing: border-box; padding-bottom: 96px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; color: var(--muted); transition: color .2s; }
.scroll-cue:hover { color: var(--ember); }
.scroll-cue svg { width: 22px; height: 30px; aspect-ratio: auto; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-cue svg { animation: none; } }

/* Commissions: intro + steps fill the first screen, form starts below */
.first-screen { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }

/* About: the shop photos */
.shop-grid { display: grid; grid-template-columns: 3fr 4fr; gap: 20px; }
.shop-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
@media (max-width: 720px) { .shop-grid { grid-template-columns: minmax(0, 1fr); } .shop-grid img { height: auto; } }

/* Form sent: thank-you panel with the call booking */
.form-thanks { text-align: center; justify-items: center; gap: 14px; }
.form-thanks:focus { outline: none; }
.form-thanks .thanks-sun { width: 88px; height: auto; aspect-ratio: 1276 / 770; color: var(--sun); }
.form-thanks h3 { font-size: 32px; }
.form-thanks p { color: var(--body); max-width: 520px; }
.form-thanks .btn { justify-self: center; margin-top: 6px; }
.hint-line { font-size: 15px; color: var(--muted) !important; }
.form-error { font-size: 15px; color: var(--ember); margin: 0; }
.form-error a { color: var(--ember); font-weight: 600; }

/* Commissions: the knife they picked on the home page */
.ref-card { display: flex; align-items: center; gap: 18px; max-width: 720px; margin: 0 auto 28px; padding: 14px 18px; background: var(--cream); border: 1.5px solid #E2D5C3; border-radius: 18px; }
.ref-card[hidden] { display: none; }
.ref-card img { width: 72px; height: 96px; object-fit: cover; border-radius: 999px 999px 8px 8px; flex-shrink: 0; }
.ref-text { flex-grow: 1; }
.ref-label { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ember); }
.ref-name { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin-top: 2px; }
.ref-note { font-size: 15px; color: var(--muted); margin-top: 4px; }
@media (max-width: 520px) { .ref-card { flex-wrap: wrap; } .ref-card .remove { margin-left: auto; } }
.panel { scroll-margin-top: 32px; }

/* About: groomsmen feature */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature .photo { aspect-ratio: 3 / 4; border-radius: 999px 999px 12px 12px; overflow: hidden; background: var(--sand); }
.feature .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { font-size: clamp(36px, 4.5vw, 54px); margin-top: 14px; }
.feature p:not(.eyebrow) { margin-top: 18px; color: var(--body); max-width: 560px; }
.feature .btn { margin-top: 28px; }
@media (max-width: 820px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .photo { max-width: 420px; } }
.materials .material { padding: 24px 22px; } .materials .material h3 { font-size: 22px; white-space: nowrap; }

/* Logo badge in header and footer */
.brand-badge { display: block; height: 92px; width: auto; }
.site-footer .brand-badge { height: 120px; }
@media (max-width: 820px) { :root { --header-h: 96px; } .brand-badge { height: 76px; } }

/* Staatliches (headlines) has one weight and is all capitals: no fake bolding, a touch of spacing */
h1, h2, h3, .ref-name, .knife-row-head strong, .form h3 { font-weight: 400 !important; letter-spacing: 0.01em; }
.hero h1 { letter-spacing: 0.005em; }
/* Small labels in Staatliches too, like the logo's lettering */
.eyebrow, .ref-label { font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: 4px; }
