/* ===============================
   GLOBAL SETTINGS
================================ */

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

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #080808;
  --bg-panel: rgba(255, 255, 255, 0.05);
  --bg-panel-strong: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.12);
  --border-mid: rgba(255, 255, 255, 0.16);
  --text-main: #f5f1e8;
  --text-soft: #e6e1d7;
  --text-muted: rgba(245, 241, 232, 0.82);
  --accent: #c57a2c;
  --accent-soft: #e0c38c;
  --accent-dark: #7b5e3b;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-mid: 0 10px 28px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 14px 34px rgba(0, 0, 0, 0.4);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(rgba(8, 8, 8, 0.8), rgba(8, 8, 8, 0.92)),
    url("../images/topo-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  color: var(--text-soft);
}

/* ===============================
   LAYOUT
================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

main {
  display: block;
}

/* ===============================
   HEADER
================================ */

.site-header {
  text-align: center;
  padding: 32px 20px 20px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.site-logo {
  width: 300px;
  max-width: 90%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

.brand {
  margin: 10px 0 8px;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #ffffff;
}

.page-intro,
.tagline {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-soft);
  line-height: 1.65;
}

.site-tagline {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 1px;
  opacity: 0.9;
  font-weight: 600;
}

/* ===============================
   NAVIGATION
================================ */

.top-nav {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(224, 195, 140, 0.4);
  transform: translateY(-1px);
}

.top-nav a.active {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(224, 195, 140, 0.35);
}

/* ===============================
   SEARCH BAR
================================ */

.search-wrap {
  margin: 26px auto 10px;
  max-width: 550px;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(6px);
}

.search-input:focus {
  border-color: rgba(224, 195, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 195, 140, 0.12);
}

.search-input::placeholder {
  color: #d2d2d2;
}

/* ===============================
   REUSABLE SURFACES
================================ */

.panel,
.card,
.manual-card,
.lab-step,
.coming-card,
.feature-card,
.support-card,
.philosophy-card,
.about-preview,
.founder-note,
.bookmark-callout {
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-mid);
}

.feature-card,
.support-card,
.philosophy-card,
.card,
.manual-card,
.lab-step {
  padding: 24px;
}

.section-title {
  margin: 40px 0 15px;
  font-size: 1.6rem;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* ===============================
   BUTTONS
================================ */

.cta-button,
.cta-button-outline,
.section-button,
.learn-more-btn,
.manual-button,
.hero-btn,
.btn,
.etsy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* Primary buttons */

.cta-button,
.section-button,
.learn-more-btn,
.manual-button,
.hero-btn.primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

/* Outline buttons */

.cta-button-outline,
.hero-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
}

/* Etsy button */

.etsy-button {
  background: #f1641e;
  border: 1px solid #f1641e;
  color: #ffffff;
}

.etsy-button:hover {
  background: #ff7a32;
  border-color: #ff7a32;
}

/* Hover behavior */

.cta-button:hover,
.cta-button-outline:hover,
.section-button:hover,
.learn-more-btn:hover,
.manual-button:hover,
.hero-btn:hover,
.btn:hover,
.etsy-button:hover {
  transform: translateY(-2px);
  opacity: 0.96;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

/* Button groups */

.button-row,
.hero-buttons,
.hero-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ===============================
   HOME PAGE
================================ */

.home-hero {
  text-align: center;
  padding: 24px 0 18px;
  margin-bottom: 28px;
}

.home-hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.home-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 0 0 48px;
}

.feature-card h2,
.support-card h3,
.philosophy-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.feature-card p,
.support-card p,
.philosophy-card p {
  margin-bottom: 18px;
  line-height: 1.65;
}

.featured-product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
  margin: 0 0 56px;
  padding: 30px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mid);
}

.featured-product-copy h2 {
  margin: 0 0 14px;
}

.featured-product-copy p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.featured-product-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-product-image img {
  width: 100%;
  max-width: 470px;
  display: block;
}

.brand-story,
.philosophy-section,
.support-section,
.about-preview,
.founder-note,
.bookmark-callout,
.field-lab,
.coming-gear {
  margin: 0 0 56px;
}

.brand-story {
  text-align: center;
}

.brand-story h2,
.philosophy-section h2,
.support-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  text-align: center;
}

.brand-story p {
  max-width: 860px;
  margin: 0 auto 16px;
  line-height: 1.75;
}

.philosophy-intro,
.coming-intro,
.field-lab-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  line-height: 1.7;
  opacity: 0.92;
}

.philosophy-grid,
.support-grid,
.hero-grid,
.card-grid,
.field-lab-grid,
.coming-grid {
  display: grid;
  gap: 24px;
}

.philosophy-grid,
.support-grid,
.hero-grid,
.card-grid,
.field-lab-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.coming-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-closing {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-closing p {
  margin-bottom: 10px;
}

/* ===============================
   LEGACY / OPTIONAL HERO BANNER
================================ */

.hero-banner {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
    url("../images/topo-bg.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-mid);
}

.hero-overlay {
  padding: 60px 30px;
  text-align: center;
}

.hero-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.hero-banner h2 {
  margin: 0 0 15px;
  font-size: 2rem;
  line-height: 1.2;
}

.hero-banner p {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===============================
   HOMEPAGE HERO BAND
================================ */

.home-hero-band {
  margin: 30px 0 48px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)),
    url("../images/topo-bg.jpg") center/cover no-repeat;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 28px;
  text-align: center;
}

.home-hero-band .eyebrow {
  margin-bottom: 14px;
  color: #e0c38c;
}

.home-hero-band h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  color: #ffffff;
}

.home-hero-band p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #ece6da;
}

.home-hero-band .hero-button-row {
  justify-content: center;
  margin-top: 28px;
}

/* ===============================
   SPOTLIGHT / FEATURE BLOCKS
================================ */

.hero-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin: 34px 0 20px;
  padding: 26px;
  border-radius: 20px;
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-strong);
}

.hero-spotlight-text h2 {
  margin: 6px 0 10px;
  font-size: 2rem;
}

.hero-spotlight-text p {
  max-width: 650px;
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-spotlight-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-spotlight-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

/* ===============================
   GENERIC CARDS / CONTENT
================================ */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.lab-step:hover,
.coming-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.card h2,
.card h3,
.manual-card h2,
.manual-card h3,
.lab-step h3,
.about-preview h2,
.founder-note h2 {
  margin-top: 0;
  color: #ffffff;
}

.card p,
.manual-card p,
.lab-step p,
.about-preview p,
.founder-note p,
.bookmark-callout p {
  color: #dddddd;
  line-height: 1.6;
}

.founder-note p:last-child,
.about-preview p:last-child {
  margin-bottom: 0;
}

/* ===============================
   PRODUCT CARDS
================================ */

.product-card {
  align-items: stretch;
  background: linear-gradient(145deg, #1b1c1e, #0f1011);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* subtle lift on hover */

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
}

/* product image / CAD drawing */

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: #1b1b1b;
  padding: 8px;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.product-card p {
  margin: 0 0 14px;
  flex-grow: 1;
}

.coming-soon-card {
  opacity: 0.97;
}

/* ===============================
   PROTOTYPE / COMING SOON
================================ */

.prototype-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.88);
  border: 1px solid #d3a34b;
  color: #f5f1e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.coming-soon-label {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #444444;
  border: 1px solid #d3a34b;
  color: #f5f1e8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.coming-gear,
.field-lab {
  text-align: center;
}

.coming-card {
  padding: 25px;
  font-weight: 600;
  opacity: 0.9;
  border-style: dashed;
  transition: all 0.2s ease;
}

.coming-card:hover {
  border-color: #d3a34b;
  opacity: 1;
}

/* ===============================
   WORKSHOP / FIELD LAB
================================ */

.lab-step img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border-radius: 14px;
}

/* ===============================
   BUTTON VARIANTS
================================ */

.btn {
  font-size: 14px;
  line-height: 1;
}

.btn-etsy {
  background: #f1641e;
  color: #ffffff;
}

.btn-manual {
  background: #5b5b5b;
  color: #ffffff;
}

.btn-parts {
  background: #2d6a4f;
  color: #ffffff;
}

.btn-home {
  background: var(--accent-dark);
  color: #ffffff;
}

/* ===============================
   MANUAL LIST
================================ */

.manual-list {
  display: grid;
  gap: 18px;
}

.manual-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

/* ===============================
   SEARCH FILTER
================================ */

.hidden-card {
  display: none !important;
}

/* ===============================
   FOOTER
================================ */

footer {
  text-align: center;
  padding: 40px 20px;
  color: #d6d6d6;
  font-size: 14px;
}

/* ===============================
   TABLET / SMALL DESKTOP
================================ */

@media (max-width: 900px) {
  .hero-spotlight,
  .featured-product {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-spotlight-text p,
  .featured-product-copy p {
    max-width: none;
  }

  .hero-spotlight .button-row,
  .featured-product .button-row {
    justify-content: center;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 700px) {
  .container {
    padding: 18px;
  }

  .site-header {
    padding: 24px 10px 16px;
  }

  .brand {
    font-size: 2rem;
  }

  .top-nav a {
    min-width: 0;
    width: auto;
    padding: 10px 14px;
  }

  .search-wrap {
    margin-top: 22px;
  }

  .hero-overlay {
    padding: 42px 20px;
  }

  .hero-banner h2,
  .hero-spotlight-text h2,
  .home-hero h2,
  .featured-product-copy h2 {
    font-size: 1.6rem;
  }

  .product-image-wrap {
    height: 160px;
  }

  .button-row,
  .hero-buttons,
  .hero-button-row {
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .button-row a,
  .hero-buttons a,
  .hero-button-row a {
    text-align: center;
  }

  .btn,
  .coming-soon-label,
  .cta-button,
  .cta-button-outline,
  .section-button,
  .learn-more-btn,
  .manual-button {
    font-size: 13px;
    padding: 10px 14px;
  }

  .featured-product,
  .feature-card,
  .support-card,
  .philosophy-card,
  .card,
  .manual-card,
  .lab-step,
  .about-preview,
  .founder-note,
  .bookmark-callout {
    padding: 20px;
  }

/* ===============================
   FOOTER
================================ */

.site-footer {
  margin-top: 60px;
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

.footer-nav {
  margin-top: 10px;
  display: inline-block;
}

.footer-nav a {
  color: #f5f1e8;
  text-decoration: none;
  margin: 0 10px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin-bottom: 8px;
}