: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;
  }
}


/* Real HPW project gallery */
.dark-theme .real-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 22px;
}
.dark-theme .real-gallery .project-card {
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #0d0c0b;
}
.dark-theme .project-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}
.dark-theme .project-card:hover .project-image { transform: scale(1.025); }
.dark-theme .project-card .gallery-caption {
  inset: auto 14px 14px 14px;
  background: rgba(8,8,7,.9) !important;
  border: 1px solid rgba(215,163,95,.2);
}
.dark-theme .project-card .gallery-caption strong { color: #fff; }
.dark-theme .project-card .gallery-caption span { color: #d7a35f; }

@media (max-width: 700px) {
  .dark-theme .real-gallery { grid-template-columns: 1fr; gap: 18px; }
  .dark-theme .real-gallery .project-card { aspect-ratio: 4 / 3; }
  .dark-theme .project-card .gallery-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}


/* =========================================================
   CENTERED HPW HERO — approved Option 2
   ========================================================= */
.dark-theme .hero.hero-centered {
  position: relative;
  min-height: 660px;
  padding: 72px 0 76px;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    linear-gradient(rgba(8,8,7,.22), rgba(8,8,7,.42)),
    url("../images/cnc-hero-bg.webp") center center / cover no-repeat;
  border-bottom: 1px solid rgba(215,163,95,.22);
}

.dark-theme .hero.hero-centered .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 26%, rgba(0,0,0,.08), rgba(0,0,0,.34) 72%),
    linear-gradient(to bottom, rgba(8,8,7,.08), rgba(8,8,7,.34));
}

.dark-theme .hero-center-content {
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dark-theme .hero-main-logo {
  width: clamp(210px, 25vw, 340px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 24px;
  border: 2px solid rgba(215,163,95,.72);
  box-shadow: 0 20px 55px rgba(0,0,0,.52);
}

.dark-theme .hero-centered .hero-eyebrow {
  color: #f7f2e9;
  margin-bottom: 10px;
  font-size: clamp(13px, 1.4vw, 18px);
}

.dark-theme .hero-centered h1 {
  max-width: 900px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(44px, 6.2vw, 78px);
  letter-spacing: -.045em;
  text-shadow: 0 4px 18px rgba(0,0,0,.55);
}

.dark-theme .hero-value-line {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
}

.dark-theme .hero-tagline {
  margin: 0 0 12px;
  font-family: "Archivo", sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .24em;
  color: #d7a35f;
  font-size: clamp(14px, 1.8vw, 20px);
}

.dark-theme .hero-centered .hero-lead {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.9);
  font-size: clamp(16px, 2vw, 20px);
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.dark-theme .centered-actions {
  justify-content: center;
  margin: 28px 0 0;
}

.dark-theme .hero-centered .btn.primary {
  background: #d7a35f;
  border-color: #d7a35f;
  color: #15120e;
}

.dark-theme .hero-centered .btn.secondary {
  background: rgba(15,14,12,.72);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.dark-theme .hero-centered .btn.secondary:hover {
  background: rgba(15,14,12,.9);
}

/* Keep header clean now that the large logo is the hero centerpiece */
.dark-theme .brand {
  gap: 0;
}

.dark-theme .brand-text strong {
  font-size: 16px;
}

@media (max-width: 700px) {
  .dark-theme .hero.hero-centered {
    min-height: 590px;
    padding: 50px 0 58px;
    background-position: 64% center;
  }

  .dark-theme .hero-main-logo {
    width: 210px;
    margin-bottom: 20px;
  }

  .dark-theme .hero-centered h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .dark-theme .hero-tagline {
    letter-spacing: .14em;
  }

  .dark-theme .centered-actions {
    width: 100%;
    flex-direction: column;
  }

  .dark-theme .centered-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   FINAL APPROVED HERO LOGO SIZE + POSITION
   ========================================================= */
.dark-theme .hero.hero-centered {
  padding-top: 34px;
}

.dark-theme .hero-center-content {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.dark-theme .hero-main-logo {
  width: clamp(245px, 22vw, 305px) !important;
  max-width: 305px !important;
  margin: -2px auto 14px !important;
  display: block !important;
  position: relative;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

@media (max-width: 700px) {
  .dark-theme .hero.hero-centered {
    padding-top: 28px;
  }

  .dark-theme .hero-main-logo {
    width: 205px !important;
    max-width: 205px !important;
    margin: 0 auto 16px !important;
  }
}


/* =========================================================
   HOW IT WORKS — HPW custom project process
   ========================================================= */
.dark-theme .how-it-works {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(215,163,95,.10), transparent 42%),
    #11100e;
  border-top: 1px solid #332c24;
  border-bottom: 1px solid #332c24;
}

.dark-theme .how-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.dark-theme .process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Fine connector running through the four numbered steps */
.dark-theme .process-grid::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 11%;
  right: 11%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(215,163,95,.38) 8%,
    rgba(215,163,95,.38) 92%,
    transparent
  );
  z-index: 0;
}

.dark-theme .process-step {
  position: relative;
  z-index: 1;
  min-height: 310px;
  padding: 28px 24px 26px;
  border: 1px solid #3b342b;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(31,28,24,.96), rgba(20,18,16,.98));
  box-shadow: 0 20px 44px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dark-theme .process-step:hover {
  transform: translateY(-3px);
  border-color: rgba(215,163,95,.58);
  box-shadow: 0 24px 52px rgba(0,0,0,.28);
}

.dark-theme .step-number {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid rgba(215,163,95,.72);
  border-radius: 50%;
  background: #11100e;
  color: #d7a35f;
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 0 0 7px #11100e;
}


.dark-theme .process-step h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
}

.dark-theme .process-step p {
  margin: 0;
  color: #bdb5aa;
  line-height: 1.65;
}

.dark-theme .process-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.dark-theme .process-cta .btn {
  min-width: 210px;
}

@media (max-width: 980px) {
  .dark-theme .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dark-theme .process-grid::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .dark-theme .how-heading {
    margin-bottom: 28px;
  }

  .dark-theme .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dark-theme .process-step {
    min-height: 0;
    padding: 24px 22px;
  }

  .dark-theme .step-number {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .dark-theme .process-cta {
    margin-top: 26px;
  }

  .dark-theme .process-cta .btn {
    width: 100%;
  }
}


/* HPW Facebook call-to-action */
.footer-social {
  display: flex;
  justify-content: center;
  margin: 26px auto 4px;
  padding: 0 18px;
}

.facebook-cta {
  width: min(100%, 570px);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 17px;
  border: 1px solid rgba(215,163,95,.48);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(215,163,95,.13), rgba(255,255,255,.025));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.facebook-cta:hover,
.facebook-cta:focus-visible {
  transform: translateY(-2px);
  border-color: #d7a35f;
  background: linear-gradient(135deg, rgba(215,163,95,.20), rgba(255,255,255,.04));
}

.facebook-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.facebook-cta-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.facebook-cta-copy strong {
  color: #f3eadc;
  font-size: 15px;
  letter-spacing: .02em;
}

.facebook-cta-copy small {
  color: #aaa197;
  font-size: 12px;
  line-height: 1.35;
}

.facebook-arrow {
  color: #d7a35f;
  font-size: 24px;
  transition: transform .2s ease;
}

.facebook-cta:hover .facebook-arrow {
  transform: translateX(3px);
}

@media (max-width: 520px) {
  .footer-social { padding: 0 10px; }
  .facebook-cta {
    grid-template-columns: 42px 1fr auto;
    gap: 11px;
    padding: 13px;
  }
  .facebook-mark {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  .facebook-cta-copy small {
    font-size: 11px;
  }
}


/* Facebook feature section below gallery */
.facebook-section {
  padding: 34px 0;
  background: #0e0d0c;
  border-top: 1px solid rgba(215,163,95,.16);
  border-bottom: 1px solid rgba(215,163,95,.16);
}

.facebook-section .facebook-cta {
  margin: 0 auto;
}

/* Small social link retained in footer */
.footer-social-small {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.footer-social-small a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bdb5aa;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-social-small a:hover,
.footer-social-small a:focus-visible {
  color: #d7a35f;
}

.footer-facebook-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
