@charset "UTF-8";

/* ==========================================================================
   Falcon Supplies Co. — hk-hobby.com
   Single modern stylesheet for the whole site.
   Layout: centred container, fluid, mobile-first, responsive.
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  --brand:        #16352b;
  --brand-2:      #1f4d3d;
  --brand-3:      #2c6a55;
  --accent:       #c8871c;
  --accent-soft:  #f6e9cf;
  --link:         #14563f;
  --link-hover:   #0c3527;

  --bg:           #f6f5f2;
  --surface:      #ffffff;
  --surface-2:    #fbfaf7;
  --border:       #e2e0d9;
  --border-2:     #cfccc2;

  --ink:          #1c2321;
  --ink-2:        #55605c;
  --ink-3:        #7b857f;

  --danger:       #a8261d;
  --ok:           #1f6b45;

  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;

  --shadow-sm:    0 1px 2px rgba(22, 53, 43, .06), 0 1px 3px rgba(22, 53, 43, .05);
  --shadow:       0 2px 4px rgba(22, 53, 43, .05), 0 8px 20px rgba(22, 53, 43, .07);
  --shadow-lg:    0 10px 30px rgba(22, 53, 43, .12);

  --wrap:         1140px;
  --wrap-narrow:  820px;
  --gap:          clamp(1rem, 2.2vw, 1.75rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
               "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* --- 2. Reset / base ---------------------------------------------------- */
*, *::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);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.22;
  color: var(--brand);
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .3rem; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

code, pre, kbd { font-family: var(--mono); font-size: .9em; }

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

::selection { background: var(--accent-soft); color: var(--brand); }

/* --- 3. Layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.main { flex: 1 0 auto; padding-block: clamp(1.5rem, 3vw, 2.75rem) 3rem; }

.section { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section > h2 { margin-bottom: 1rem; }

.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- 4. Header / navigation -------------------------------------------- */
.topbar {
  background: var(--brand);
  color: #cfe0d9;
  font-size: .8rem;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-block: .45rem;
}
.topbar a { color: #e8f2ee; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.topbar li { margin: 0; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand__mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(200, 135, 28, .5);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand);
  letter-spacing: .01em;
}
.brand__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border-2);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .45rem .7rem;
  font: inherit;
  font-size: .85rem;
  color: var(--brand);
  cursor: pointer;
  align-items: center;
  gap: .45rem;
}
.nav-toggle__bars { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); color: var(--brand-2); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--brand); font-weight: 600; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: .5rem clamp(1rem, 3vw, 2rem) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav a { padding: .65rem .5rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-header .wrap { position: relative; }
}

/* --- 5. Breadcrumbs ----------------------------------------------------- */
.breadcrumb { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .82rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .35rem;
  list-style: none; margin: 0; padding: .6rem 0;
  color: var(--ink-2);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: "/"; color: var(--border-2); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-2); text-decoration: underline; }

/* --- 6. Hero ------------------------------------------------------------ */
.hero {
  background:
    linear-gradient(160deg, rgba(22, 53, 43, .96), rgba(31, 77, 61, .92)),
    var(--brand);
  color: #e9f1ed;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero p { color: #cfe0d9; max-width: 62ch; font-size: 1.05rem; }
.hero p:last-child { margin-bottom: 0; }
.hero__eyebrow {
  display: inline-block;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent);
  border: 1px solid rgba(200, 135, 28, .45);
  border-radius: 999px;
  padding: .2rem .75rem;
  margin-bottom: 1rem;
}
.hero .btn-row { margin-top: 1.4rem; }

/* --- 7. Buttons & badges ------------------------------------------------ */
.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit; font-size: .92rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #241703; }
.btn--primary:hover { background: #d9971f; color: #241703; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { background: var(--surface); border-color: var(--border-2); color: var(--brand); }
.btn--outline:hover { border-color: var(--brand-3); color: var(--brand-2); }

.badge {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a4d05;
  vertical-align: middle;
}
.badge--sold { background: #f0eee9; color: var(--ink-3); }
.badge--new  { background: #e2f0e8; color: var(--ok); }

/* --- 8. Cards & grids --------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--tight { gap: 1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .45rem; }
.card h3 a { color: var(--brand); text-decoration: none; }
.card h3 a:hover { color: var(--brand-3); text-decoration: underline; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-2); }
.card__meta { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.card__foot { margin-top: auto; padding-top: .85rem; font-size: .88rem; }

.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.card--media .card__body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card--media img.is-contain { object-fit: contain; padding: .5rem; }

/* Feature strip */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.feature h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-3);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.callout h2, .callout h3 { margin-top: 0; }
.callout--accent { border-left-color: var(--accent); background: #fffdf8; }
.callout--warn { border-left-color: var(--danger); background: #fdf6f5; }

/* --- 9. Link lists (category pages) ------------------------------------ */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { margin: 0; border-bottom: 1px solid var(--border); }
.linklist li:last-child { border-bottom: 0; }
.linklist a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .25rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 500;
}
.linklist a::after { content: "→"; color: var(--ink-3); font-weight: 400; transition: transform .15s ease; }
.linklist a:hover { color: var(--brand-3); }
.linklist a:hover::after { transform: translateX(3px); color: var(--accent); }
.linklist .meta { color: var(--ink-3); font-weight: 400; font-size: .85rem; margin-left: auto; }

/* --- 10. Product tables ------------------------------------------------- */
.table-tools {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-bottom: .85rem;
}
.table-tools input[type="search"] {
  flex: 1 1 220px;
  max-width: 340px;
  font: inherit; font-size: .9rem;
  padding: .5rem .7rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.table-tools .count { font-size: .82rem; color: var(--ink-3); }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 560px;
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding: .85rem 1rem .35rem;
  font-size: .82rem;
  color: var(--ink-3);
}
table.data th, table.data td {
  padding: .6rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data thead th {
  position: sticky; top: 0;
  background: var(--brand);
  color: #eaf2ee;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 0;
}
table.data tbody tr:nth-child(even) { background: var(--surface-2); }
table.data tbody tr:hover { background: var(--accent-soft); }
table.data tbody tr[hidden] { display: none; }
table.data td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .col-price { white-space: nowrap; font-weight: 600; color: var(--brand-2); font-variant-numeric: tabular-nums; }
table.data .is-sold { color: var(--ink-3); font-weight: 500; }
table.data img {
  width: 84px; height: 60px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.table-empty { padding: 1rem; color: var(--ink-3); font-size: .9rem; }

/* Key/value spec table */
table.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.spec th, table.spec td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.spec th { width: 34%; color: var(--ink-2); font-weight: 600; background: var(--surface-2); }

/* --- 11. Gallery -------------------------------------------------------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .7rem .9rem; font-size: .85rem; color: var(--ink-2); }

/* Detail / product image */
.figure { margin: 0 0 1.25rem; }
.figure img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  max-height: 420px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}
.figure figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: .5rem; }

/* --- 12. FAQ / details -------------------------------------------------- */
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: .9rem 1.15rem;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--surface-2); }
.faq .faq__body { padding: 0 1.15rem 1.1rem; color: var(--ink-2); }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* --- 13. Prose ---------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose li { margin-bottom: .4rem; }

.two-col { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

/* --- 14. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--brand);
  color: #b9cdc5;
  font-size: .9rem;
  margin-top: auto;
  padding-block: clamp(2rem, 4vw, 3rem) 1.25rem;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; font-family: var(--font); letter-spacing: .02em; }
.site-footer a { color: #d8e6e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .8rem;
  color: #93aca2;
}

/* --- 15. Utilities ------------------------------------------------------ */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }

.notice {
  font-size: .85rem;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: .7rem .95rem;
  color: var(--ink-2);
}

/* Brand / maker chips used on the "what we stock" pages */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1rem;
  padding: 0;
}
.chips li {
  margin: 0;
  padding: .3rem .7rem;
  font-size: .875rem;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Single-title pages: fewer, larger figures */
.gallery--product { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gallery--product img { aspect-ratio: auto; object-fit: contain; background: var(--surface-2); padding: .5rem; }
.gallery--product figcaption { font-weight: 500; }

/* Key/value specification table */
table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td { padding: .6rem .8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.spec th { width: 34%; font-weight: 600; color: var(--ink-2); background: var(--surface-2); }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 40;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--brand);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  place-items: center;
}
.to-top.is-visible { display: grid; }
.to-top:hover { background: var(--accent-soft); }

@media print {
  .site-header, .topbar, .site-footer, .breadcrumb, .to-top, .table-tools, .btn-row { display: none !important; }
  body { background: #fff; }
  .table-wrap { box-shadow: none; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
