/*
Theme Name: Majestic Mindsets
Theme URI: https://majesticmindsets.com
Author: Majestic Mindsets
Author URI: https://majesticmindsets.com
Description: A custom theme for Majestic Mindsets with a midnight and gold colour palette, built around the ALIGN framework and the PEMS-F lens.
Version: 1.15
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: majestic-mindsets
*/

:root {
  --midnight: #0A0C14;
  --navy: #12152A;
  --panel: #1A1D2E;
  --gold: #C9A84C;
  --gold-soft: #E8D5A3;
  --gold-dim: #8A6E30;
  --white: #FFFFFF;
  --muted: rgba(255,255,255,0.55);
  --border: rgba(201,168,76,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--midnight);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(10,12,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-brand {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px; font-weight: 300;
  letter-spacing: 0.32em; color: var(--gold-soft);
  text-transform: uppercase;
  line-height: 1.3;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,0.55);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #C9A84C; }
.nav-cta {
  border: 1px solid #C9A84C !important;
  color: #C9A84C !important;
  padding: 9px 22px !important;
  white-space: nowrap !important;
}
.nav-cta:hover {
  background: #C9A84C !important;
  color: #0A0C14 !important;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

#hero-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}

.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 28px;
  font-family: 'Josefin Sans', sans-serif; font-weight: 300;
  position: relative; z-index: 1;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 10vw, 110px);
  font-weight: 300; line-height: 1.0;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.9s 0.5s forwards;
}
.hero-title em {
  font-style: italic; color: var(--gold);
}

.hero-sub {
  margin-top: 28px;
  font-size: 16px; color: var(--muted);
  max-width: 500px; line-height: 1.8;
  position: relative; z-index: 1;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-actions {
  margin-top: 48px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 1.0s forwards;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--midnight);
  text-decoration: none;
  padding: 14px 36px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'Inter', sans-serif; font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-gold:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-soft);
  text-decoration: none;
  padding: 14px 36px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'Inter', sans-serif; font-weight: 400;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-1px);
}

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp 0.8s 1.4s forwards;
}
.hero-scroll span {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim);
}
.scroll-line {
  width: 1px; height: 48px; background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s infinite;
}

/* ── QUOTE BAND ── */
.quote-band {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 48px;
  text-align: center;
}
.quote-band blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3.5vw, 30px);
  font-style: italic; font-weight: 300;
  color: var(--gold-soft);
  max-width: 780px; margin: 0 auto; line-height: 1.6;
}
.quote-band blockquote em { color: var(--gold); font-style: normal; }
.quote-band cite {
  display: block; margin-top: 20px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dim); font-style: normal;
}

/* ── SECTION WRAPPER ── */
section { padding: 100px 48px; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  font-family: 'Josefin Sans', sans-serif; font-weight: 300;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300; line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-body {
  font-size: 15px; color: var(--muted); max-width: 560px; margin-top: 20px; line-height: 1.9;
}

.divider {
  width: 48px; height: 1px;
  background: var(--gold); margin: 32px 0;
}

/* ── ALIGN SECTION ── */
#align { background: var(--midnight); }
.align-intro { max-width: 700px; margin: 0 auto 80px; text-align: center; }
.align-intro .divider { margin: 32px auto; }

.align-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  max-width: 1100px; margin: 0 auto;
}

.align-step {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s, transform 0.3s;
}
.align-step::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.align-step:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-3px); }
.align-step:hover::before { opacity: 1; }

.align-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px; font-weight: 300; line-height: 1;
  color: rgba(201,168,76,0.15);
  position: absolute; top: 20px; right: 28px;
  transition: color 0.3s;
  user-select: none;
}
.align-step:hover .align-letter { color: rgba(201,168,76,0.3); }

.align-step-label {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.align-step-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 400; margin-bottom: 16px;
}
.align-step-desc {
  font-size: 14px; color: var(--muted); line-height: 1.8;
}
.align-step-product {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.align-step-product-label {
  display: block; color: var(--gold-dim); letter-spacing: 0.15em;
  text-transform: uppercase; font-size: 10px; margin-bottom: 4px;
}
.align-step-product a {
  color: var(--gold-soft); font-family: 'Cormorant Garamond', serif; font-size: 16px;
}
.align-step-product a:hover { color: var(--gold); }

/* ── PEMS-F ── */
#pemsf {
  background: var(--navy);
  border-top: 1px solid var(--border);
}
.pemsf-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.pemsf-tabs { margin-top: 48px; }
.pemsf-tab-list {
  display: flex; flex-direction: column; gap: 0;
}
.pemsf-tab {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.pemsf-tab:first-child { border-top: 1px solid var(--border); }
.pemsf-tab-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; color: var(--gold-dim);
  min-width: 36px; line-height: 1;
  transition: color 0.2s;
}
.pemsf-tab-content {}
.pemsf-tab-name {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; transition: color 0.2s;
}
.pemsf-tab-desc {
  font-size: 14px; color: rgba(255,255,255,0.3);
  line-height: 1.7; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, color 0.2s, opacity 0.3s;
  opacity: 0;
}
.pemsf-tab.active .pemsf-tab-letter { color: var(--gold); }
.pemsf-tab.active .pemsf-tab-name { color: var(--gold-soft); }
.pemsf-tab.active .pemsf-tab-desc { max-height: 120px; color: var(--muted); opacity: 1; }

.pemsf-visual {
  display: flex; align-items: center; justify-content: center;
}
.pemsf-wheel {
  width: 320px; height: 320px;
  position: relative;
}
.pemsf-wheel svg { width: 100%; height: 100%; }

/* ── BOOKS / PRODUCTS ── */
#products { background: var(--midnight); }
.products-intro { max-width: 600px; margin: 0 auto 64px; text-align: center; }
.products-intro .divider { margin: 24px auto; }

/* Desktop (≥769px): explicit 3-column grid, 24px gap, 1100px centered. */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

.product-card {
  background: var(--midnight);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.product-img {
  height: 280px;
  background: #151826;
  display: block;
  position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img img { transform: scale(1.03); }

.product-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: var(--midnight);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 12px; font-weight: 600;
}

.product-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 10px;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400; margin: 0 0 12px; line-height: 1.3;
}
.product-name a { color: var(--white); text-decoration: none; }
.product-name a:hover { color: var(--gold); }
.product-desc {
  font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: var(--gold);
  border-top: 1px solid var(--border); padding-top: 20px; margin-top: auto; margin-bottom: 20px;
}
.product-btn {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
  padding: 14px 0; transition: background 0.2s ease, color 0.2s ease;
  background: transparent; font-family: 'Inter', sans-serif; font-weight: 500;
  text-decoration: none;
}
.product-btn:hover { background: var(--gold); color: var(--midnight); }

.products-empty {
  grid-column: 1 / -1; text-align: center; color: var(--gold);
  font-family: 'Cormorant Garamond', serif; font-size: 24px; padding: 60px 0;
}

/* ── THE DIFFERENCE ── */
#the-difference { background: var(--panel); border-top: 1px solid var(--border); }
.difference-intro { max-width: 700px; margin: 0 auto; text-align: center; }
.difference-intro .divider { margin: 32px auto; }

/* ── WHY ALIGN ── */
#why {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-intro { max-width: 700px; margin: 0 auto 64px; text-align: center; }

.archetype-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; }
.archetype {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.archetype:first-child { border-top: 1px solid var(--border); }
.archetype-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; color: var(--gold);
  min-width: 56px; line-height: 1;
}
.archetype-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; color: var(--white);
  margin-bottom: 10px;
}
.archetype-role {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--gold-dim);
}
.archetype-desc { font-size: 14px; color: var(--muted); line-height: 1.8; }

.why-closing { max-width: 700px; margin: 64px auto 0; text-align: center; }

/* ── ABOUT MR M ── */
#about-mrm {
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner { max-width: 1100px; margin: 0 auto; }

.about-eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  font-family: 'Josefin Sans', sans-serif; font-weight: 300;
}
.about-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300; line-height: 1.1;
}
.about-headline em { font-style: italic; color: var(--gold); }
.about-divider { width: 48px; height: 1px; background: var(--gold); margin: 28px 0 48px; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}

.about-story p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-style: italic; font-weight: 300;
  color: var(--gold-soft); line-height: 1.85;
  margin-bottom: 24px;
}
.about-story p:last-of-type { margin-bottom: 0; }
.about-story p strong { font-style: normal; color: var(--white); font-weight: 400; }
.about-attribution {
  display: block; margin-top: 36px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}

.about-cards { display: flex; flex-direction: column; gap: 16px; }
.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.about-card:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-2px); }
.about-card-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 8px;
}
.about-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; margin-bottom: 10px; line-height: 1.2;
}
.about-card-desc { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.about-card-link {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.about-card-link:hover { color: var(--gold-soft); border-color: var(--gold); }

.spotify-embed-wrap {
  margin-top: 16px;
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  position: relative;
}
.spotify-embed-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  z-index: 1; pointer-events: none;
}
.spotify-embed-wrap iframe { display: block; width: 100%; height: 152px; border: none; }

.career-strip {
  margin-top: 72px; padding-top: 48px;
  border-top: 1px solid rgba(201,168,76,0.12);
}
.career-strip-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 32px; text-align: center;
}
.career-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.career-pillar {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 32px 24px;
  transition: border-color 0.3s;
}
.career-pillar:hover { border-color: rgba(201,168,76,0.5); }
.career-pillar-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; color: rgba(201,168,76,0.18);
  line-height: 1; margin-bottom: 12px; display: block;
}
.career-pillar-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; display: block;
}
.career-pillar-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ── CALL SECTION ── */
#call {
  background: var(--midnight);
  text-align: center;
  padding: 80px 48px;
}
#call .btn-gold,
#call .btn-outline {
  display: inline-block;
  padding: 14px 36px;
  min-width: 180px;
}
.call-inner { max-width: 600px; margin: 0 auto; }
.call-inner .section-title { margin-bottom: 20px; }
.call-inner .section-body { margin: 0 auto 40px; }
.call-inner .divider { margin: 28px auto; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 60px 48px 40px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  margin-bottom: 48px;
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-tagline {
  font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 280px;
}
.footer-social { display: flex; gap: 14px; margin-top: 24px; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col-title {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  font-family: 'Josefin Sans', sans-serif; font-weight: 300;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  text-decoration: none; color: var(--muted); font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 28px;
  font-size: 11px; color: var(--gold-dim);
  letter-spacing: 0.05em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── INNER PAGES (page.php / single.php / index.php) ── */
.inner-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 48px 100px;
}

/* WooCommerce single product pages: let div.product control its own width/padding */
body.single-product .inner-content {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.inner-content .page-title,
.inner-content .entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}
.inner-content .page-title em,
.inner-content .entry-title em { font-style: italic; color: var(--gold); }
.inner-content .entry-title a { color: inherit; text-decoration: none; }
.inner-content .page-content,
.inner-content .entry-content {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.inner-content .entry-content p,
.inner-content .page-content p { margin-bottom: 1.4em; }
.inner-content .entry-meta {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 28px;
  font-family: 'Josefin Sans', sans-serif;
}
.inner-content article + article {
  margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--border);
}
.post-nav {
  display: flex; justify-content: space-between; margin-top: 60px;
  padding-top: 30px; border-top: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.post-nav a { color: var(--gold-soft); }
.comments-area {
  margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--border);
}

.search-form {
  display: flex; gap: 0;
  margin: 32px auto 0;
  max-width: 420px;
}
.search-form .search-field {
  flex: 1; width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
}
.search-form .search-field:focus { outline: none; border-color: var(--gold); }
.search-form .search-submit {
  background: var(--gold);
  color: var(--midnight);
  border: none;
  padding: 0 24px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.search-form .search-submit:hover { opacity: 0.85; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-hamburger { display: flex !important; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; width: 100%; background: rgba(10,12,20,0.97); border-bottom: 1px solid rgba(201,168,76,0.2); padding: 20px 24px 28px; z-index: 99; gap: 0; }
  .nav-links.open { display: flex !important; }
  .nav-links a { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(201,168,76,0.1); font-size: 12px; letter-spacing: 0.15em; color: rgba(255,255,255,0.7); text-decoration: none; font-family: 'Josefin Sans', sans-serif; font-weight: 300; text-transform: uppercase; }
  .nav-links a:last-child { border-bottom: none; margin-top: 8px; }
  .nav-cta { display: block !important; width: 100% !important; text-align: center !important; padding: 13px 24px !important; border: 1px solid #C9A84C !important; color: #C9A84C !important; white-space: nowrap !important; box-sizing: border-box !important; }

  section { padding: 48px 20px; }
  #call { padding: 60px 20px; }
  #call .btn-gold, #call .btn-outline { display: block; width: 100%; text-align: center; margin: 8px 0; }
  .quote-band { padding: 48px 20px; }
  .pemsf-inner, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .archetype { gap: 20px; padding: 24px 0; }
  .archetype-letter { font-size: 36px; min-width: 44px; }
  .career-pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .pemsf-visual { display: none; }
  footer { padding: 48px 20px 32px; }
  .inner-content { padding: 120px 20px 60px; }
  body.single-product .inner-content { padding-left: 0 !important; padding-right: 0 !important; }

  /* All multi-column grids collapse to a single column. */
  .align-steps { grid-template-columns: 1fr; }

  /* Product cards: single column, full width within the section's own
     16px gutters, stacked with a 20px gap, no horizontal scroll. */
  #products { padding-left: 16px; padding-right: 16px; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; max-width: 100%; }
  .product-img { height: 220px; }
  .product-body { padding: 20px; }
  .product-name { font-size: 22px; }
  .product-price { font-size: 20px; }
  .product-btn {
    min-height: 48px;
    display: flex; align-items: center; justify-content: center;
  }

  .hero-title { font-size: clamp(36px, 8vw, 60px); }
  .section-title, .about-headline { font-size: clamp(28px, 6vw, 48px); }

  /* Buttons stack and go full width. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a,
  .btn-gold,
  .btn-outline { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ── SMALL MOBILE ── */
@media (max-width: 480px) {
  nav { padding: 12px 16px; }
  section { padding: 40px 16px; }
  .quote-band { padding: 32px 16px; }
  footer { padding: 40px 16px 28px; }
  .inner-content { padding: 100px 16px 48px; }
  body.single-product .inner-content { padding-left: 0 !important; padding-right: 0 !important; }
  .align-step { padding: 36px 24px; }
  .nav-links { padding: 20px 16px 28px; }
  .about-story p { font-size: 16px; }
  .about-card { padding: 20px; }
  .career-pillar { padding: 24px 16px; }
  .career-pillar-number { font-size: 36px; }
}

/* ── MOBILE NAV TOGGLE ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1px; background: #C9A84C;
  transition: transform 0.2s, opacity 0.2s;
}
