:root {
  --bg: #f4f1ea;
  --panel: #fffdf8;
  --ink: #161616;
  --muted: #68645c;
  --line: #d9d2c6;
  --dark: #1d1c1a;
  --wood: #b78a58;
  --wood-light: #d7ad79;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: "Archivo", sans-serif;
  font-size: 15px;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
}

.hero {
  padding: 90px 0 86px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow.light { color: rgba(255,255,255,.72); }

h1, h2, h3 {
  font-family: "Archivo", sans-serif;
  line-height: 1.05;
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 7vw, 84px);
  letter-spacing: -.055em;
  max-width: 780px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -.045em;
  margin-bottom: 18px;
}

h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.hero-lead {
  max-width: 650px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: var(--ink);
  color: white;
}

.btn.secondary { background: transparent; }

.hero-points {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero-points span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--ink);
}

.hero-art {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.machine-card {
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  position: relative;
  background: var(--dark);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0,0,0,.18);
}

.wood-board {
  position: absolute;
  inset: 15% 10% 11%;
  background:
    repeating-linear-gradient(
      7deg,
      rgba(93,58,27,.18) 0 2px,
      transparent 2px 22px
    ),
    linear-gradient(135deg, var(--wood-light), var(--wood));
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.engraved-circle {
  position: absolute;
  inset: 14% 18%;
  border: 5px solid rgba(40,24,12,.65);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  color: rgba(40,24,12,.82);
}

.engraved-hpw {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(50px, 8vw, 78px);
  letter-spacing: -.08em;
}

.engraved-line {
  width: 45%;
  height: 3px;
  background: rgba(40,24,12,.7);
  margin: 8px auto 10px;
}

.engraved-small {
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  letter-spacing: .18em;
}

.tool-head {
  position: absolute;
  width: 50px;
  height: 120px;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  background: linear-gradient(#777, #2c2c2c);
  border-radius: 5px 5px 12px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.tool-head::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 55px;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  background: linear-gradient(#bcbcbc, #4d4d4d);
  border-radius: 0 0 3px 3px;
}

.chips {
  position: absolute;
  width: 13px;
  height: 6px;
  background: #e1bc88;
  border-radius: 50%;
  transform: rotate(20deg);
}

.chip-1 { left: 17%; bottom: 8%; }
.chip-2 { left: 24%; bottom: 12%; transform: rotate(-25deg); }
.chip-3 { right: 15%; bottom: 10%; transform: rotate(50deg); }

.section { padding: 96px 0; }

.section.alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: end;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.icon {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .08em;
  margin-bottom: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  grid-auto-rows: 230px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 230px;
}

.gallery-card.tall { grid-row: span 2; }
.gallery-card.wide { grid-column: span 2; }

.gallery-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background:
    repeating-linear-gradient(8deg, rgba(0,0,0,.08) 0 2px, transparent 2px 25px),
    linear-gradient(135deg, #d9b17d, #a87545);
  color: rgba(34,19,9,.7);
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.gallery-caption {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(20,20,20,.88);
  color: white;
  padding: 12px 14px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.gallery-caption span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
}

.about-copy {
  font-size: 19px;
  color: var(--muted);
}

.quote-section {
  background: var(--dark);
  color: white;
}

.quote-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.quote-grid > div > p:last-child {
  color: rgba(255,255,255,.7);
  font-size: 17px;
}

.quote-form {
  background: white;
  color: var(--ink);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #d5d1c8;
  border-radius: 9px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}

.quote-form textarea { resize: vertical; }

.form-btn {
  background: var(--ink);
  color: white;
  width: 100%;
}

.form-note {
  margin: 0;
  color: #777;
  font-size: 12px;
  font-weight: 500;
}

.site-footer {
  padding: 28px 0;
  background: #111;
  color: rgba(255,255,255,.74);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}

.footer-wrap > div:first-child {
  display: flex;
  flex-direction: column;
}

.footer-wrap strong { color: white; }

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-art {
    min-height: 430px;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card.tall,
  .gallery-card.wide {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 10px 8px;
  }

  .menu-toggle { display: inline-block; }

  .brand-text strong { font-size: 13px; }

  .hero-art { min-height: 350px; }

  .section { padding: 72px 0; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}


.contact-line {
  margin-top: 18px;
  font-size: 15px !important;
}

.contact-line a {
  color: #fff;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-nav a,
.btn,
.brand {
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.site-nav a:hover,
.brand:hover {
  opacity: .72;
}

.btn:hover {
  transform: translateY(-1px);
}

.gallery-card {
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}


/* Large HPW hero centerpiece */
.hero-logo-wrap {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(100%, 590px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.14);
}

@media (max-width: 900px) {
  .hero-logo-wrap {
    min-height: auto;
  }

  .hero-logo {
    width: min(100%, 620px);
  }
}

@media (max-width: 700px) {
  .hero-logo {
    border-radius: 18px;
  }
}


/* Dark HPW header with compact logo emblem */
.site-header {
  background: rgba(18, 17, 15, 0.97);
  border-bottom: 1px solid rgba(215, 173, 121, .35);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.nav-wrap {
  min-height: 88px;
}

.header-logo {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(215, 173, 121, .55);
  flex: 0 0 auto;
}

.brand-text strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: .01em;
}

.brand-text small {
  color: var(--wood-light);
}

.site-nav a {
  color: rgba(255,255,255,.88);
}

.site-nav a:hover {
  color: #fff;
  opacity: 1;
}

.site-nav .nav-cta {
  color: #171512;
  background: var(--wood-light);
  border-color: var(--wood-light);
}

.menu-toggle {
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

@media (max-width: 700px) {
  .nav-wrap {
    min-height: 78px;
  }

  .header-logo {
    width: 54px;
    height: 54px;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .site-nav {
    top: 78px;
    background: #1d1c1a;
    border-color: rgba(255,255,255,.12);
  }
}


/* Compact header logo size fix */
.header-logo {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  flex: 0 0 52px !important;
  object-fit: cover;
  border-radius: 50%;
}

.nav-wrap {
  min-height: 70px;
}

@media (max-width: 700px) {
  .header-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex-basis: 44px !important;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
  }
}


/* =========================================================
   HPW FULL DARK WOODSHOP THEME
   This block intentionally appears last so it overrides
   all earlier starter-theme styles.
   ========================================================= */

.dark-theme {
  --bg: #12110f;
  --panel: #1c1a17;
  --ink: #f7f2e9;
  --muted: #bbb2a5;
  --line: #3b342b;
  --dark: #0d0c0b;
  --wood: #b98248;
  --wood-light: #d7a35f;
  background:
    radial-gradient(circle at top right, rgba(183,130,72,.10), transparent 35%),
    #12110f;
  color: #f7f2e9;
}

/* Header */
.dark-theme .site-header {
  background: rgba(10,10,9,.98) !important;
  border-bottom: 1px solid rgba(215,163,95,.38) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.35) !important;
}

.dark-theme .brand-text strong {
  color: #fff !important;
}

.dark-theme .brand-text small {
  color: #d7a35f !important;
}

.dark-theme .site-nav a {
  color: #eee8de !important;
}

.dark-theme .site-nav a:hover {
  color: #d7a35f !important;
}

.dark-theme .site-nav .nav-cta {
  color: #15120f !important;
  background: #d7a35f !important;
  border-color: #d7a35f !important;
}

/* Main surfaces */
.dark-theme .hero,
.dark-theme .section {
  background: transparent;
}

.dark-theme .section.alt {
  background:
    linear-gradient(rgba(255,255,255,.015), rgba(255,255,255,.015)),
    #171512 !important;
  border-color: #332d26 !important;
}

.dark-theme .eyebrow {
  color: #d7a35f;
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3 {
  color: #fff;
}

.dark-theme .hero-lead,
.dark-theme .section-heading p:not(.eyebrow),
.dark-theme .card p,
.dark-theme .about-copy,
.dark-theme .hero-points {
  color: #bbb2a5 !important;
}

/* Buttons */
.dark-theme .btn.primary {
  background: #d7a35f !important;
  color: #17130f !important;
  border-color: #d7a35f !important;
}

.dark-theme .btn.secondary {
  color: #f7f2e9 !important;
  border-color: #6d6255 !important;
  background: rgba(255,255,255,.02) !important;
}

.dark-theme .btn.secondary:hover {
  border-color: #d7a35f !important;
}

/* Service cards */
.dark-theme .card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    #1b1916 !important;
  border-color: #3b342b !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.dark-theme .icon {
  background: #0d0c0b !important;
  color: #d7a35f !important;
  border: 1px solid #4d4133;
}

/* Hero CNC card */
.dark-theme .machine-card {
  background: #0c0b0a !important;
  border: 1px solid #3b3329;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

/* Gallery */
.dark-theme .gallery-card {
  border: 1px solid #3a332a;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}

.dark-theme .gallery-caption {
  background: rgba(8,8,7,.92) !important;
}

/* Quote section */
.dark-theme .quote-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(215,163,95,.12), transparent 30%),
    #0d0c0b !important;
  border-top: 1px solid #3c3329;
}

.dark-theme .quote-form {
  background: #1b1916 !important;
  color: #f7f2e9 !important;
  border: 1px solid #3b342b;
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
}

.dark-theme .quote-form input,
.dark-theme .quote-form select,
.dark-theme .quote-form textarea {
  background: #11100e !important;
  color: #f7f2e9 !important;
  border-color: #4a4035 !important;
}

.dark-theme .quote-form input::placeholder,
.dark-theme .quote-form textarea::placeholder {
  color: #857b6f;
}

.dark-theme .form-btn {
  background: #d7a35f !important;
  color: #17130f !important;
  border-color: #d7a35f !important;
}

/* Footer */
.dark-theme .site-footer {
  background: #080807 !important;
  border-top: 1px solid #332c24 !important;
}

/* Compact logo - hard limited */
.dark-theme .header-logo {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  flex: 0 0 52px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 1px solid rgba(215,163,95,.55) !important;
}

.dark-theme .nav-wrap {
  min-height: 70px !important;
}

/* Mobile */
@media (max-width: 700px) {
  .dark-theme .header-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
  }

  .dark-theme .nav-wrap {
    min-height: 64px !important;
  }

  .dark-theme .site-nav {
    top: 64px !important;
    background: #11100e !important;
    border-color: #3b342b !important;
  }

  .dark-theme .site-nav a {
    color: #f0ebe2 !important;
  }
}
