/*
Theme Name: Powell's Metal Fusion
Theme URI: https://pmfusion.co
Author: Powell's Metal Fusion Studio
Author URI: https://pmfusion.co
Description: Dark industrial WordPress theme for custom metal furniture and welded art. Gold accent, portfolio, studio pieces, quote flow.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pmfusion
Tags: dark, industrial, portfolio, custom-menu, featured-images, full-width-template, one-column
*/

:root {
  --bg: #080809;
  --bg-elevated: #0f0f11;
  --bg-card: #141416;
  --border: #27272a;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #E8A317;
  --accent-hover: #F5B041;
  --accent-soft: rgba(232, 163, 23, 0.15);
  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 6px;
  --max: 1200px;
  --header-h: 140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(8, 8, 9, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.85);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;       /* vertical center: logo, nav, button */
  justify-content: space-between;
  gap: 24px;
}

.header-inner > * {
  display: flex;
  align-items: center;
}

.site-logo img,
.site-logo .custom-logo {
  height: 100px;
  width: auto;
}

.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--text);
}

.primary-nav { display: contents; }
.primary-menu {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.primary-menu li {
  display: flex;
  align-items: center;
  margin: 0;
  height: 100%;
}

.primary-menu a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #080809;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(232, 163, 23, 0.35);
  color: #080809;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 28px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 75% 15%, rgba(232, 163, 23, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(232, 163, 23, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-elevated { background: var(--bg-elevated); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ========== WORK GRID ========== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
}

.work-card:hover {
  border-color: rgba(232, 163, 23, 0.35);
  transform: translateY(-3px);
}

.work-card-img {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-body { padding: 20px 22px 24px; }

.work-card-id {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 6px;
}

.work-card-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== STUDIO PIECES ========== */
.pieces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.piece-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.piece-card:hover {
  border-color: rgba(232, 163, 23, 0.35);
  transform: translateY(-3px);
}

.piece-img {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.piece-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.piece-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.piece-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}

.piece-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.piece-meta {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.piece-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.piece-link:hover { text-decoration: underline; }

/* ========== VIDEO ========== */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0a0a0b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, #111113, #0a0a0b);
  color: var(--text-muted);
  font-size: 15px;
}

.video-placeholder .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}

.video-cta {
  text-align: center;
  margin-top: 24px;
}

.video-cta a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.video-cta a:hover { text-decoration: underline; }

/* ========== PROCESS ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color 0.2s;
}

.process-step:hover { border-color: rgba(232, 163, 23, 0.3); }

.process-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: rgba(232, 163, 23, 0.35);
  margin-bottom: 12px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== CTA BAND ========== */
.cta-band {
  text-align: center;
  padding: 80px 28px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: calc(var(--header-h) + 50px) 28px 50px;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero.wide { max-width: 1200px; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero .lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ========== PROJECT SINGLE ========== */
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.project-meta-row strong {
  color: var(--text);
  font-weight: 500;
}

.project-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.project-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-bottom: 64px;
}

.project-story p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.project-specs {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.project-specs h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 18px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-row:last-of-type { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-value { font-weight: 500; text-align: right; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.gallery-item.wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== FAQ ========== */
.faq-list { max-width: 760px; margin: 0 auto; padding: 0 28px 80px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item p + p { margin-top: 12px; }

/* ========== QUOTE FORM ========== */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 40px 0 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.quote-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.quote-form textarea { min-height: 120px; resize: vertical; }

.quote-sidebar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: fit-content;
}

.quote-sidebar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
}

.quote-sidebar li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 0;
}

.quote-sidebar li:last-child { border-bottom: none; }

/* ========== ABOUT ========== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 40px 0 56px;
  max-width: 900px;
}

.about-split p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
  max-width: 900px;
}

.value-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-maker-photo {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.about-maker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--accent);
  color: #080809;
  font-weight: 600;
  font-size: 13px;
  border-radius: 3px;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 28px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  text-align: left;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-tagline {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-social a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a.social-icon:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(232, 163, 23, 0.08);
}

.footer-social a.social-icon svg {
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-loc {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-icon {
  font-size: 12px;
  opacity: 0.85;
  width: 1.1em;
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
  margin: 0;
}

.site-footer a:hover { color: var(--gold); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.footer-links a {
  margin: 0;
}

.footer-copy {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim, #71717a);
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact {
    align-items: center;
  }
  .footer-loc {
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .pieces-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .project-layout { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 96px; }

  .primary-nav { display: contents; }
.primary-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .primary-menu.is-open { display: flex; }

  .menu-toggle { display: block; }

  .site-logo img,
  .site-logo .custom-logo { height: 68px; }

  .header-inner .btn { display: none; }

  .pieces-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
