/*
Theme Name: Marhold Founder's Platform
Theme URI: https://www.marhold.ca/
Author: Marhold Masterbuild Ltd.
Description: A custom, responsive WordPress theme for Marhold Masterbuild Ltd. and its founder-led ventures.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: marhold
License: GNU General Public License v2 or later
*/

:root {
  --mh-black: #0b0b0c;
  --mh-charcoal: #171719;
  --mh-panel: #212124;
  --mh-cream: #f4f0e7;
  --mh-white: #ffffff;
  --mh-muted: #bdb8ae;
  --mh-gold: #e4ba38;
  --mh-red: #e12b22;
  --mh-line: rgba(255,255,255,.12);
  --mh-shadow: 0 24px 70px rgba(0,0,0,.28);
  --mh-radius: 20px;
  --mh-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mh-black);
  color: var(--mh-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto;
  display: block; left: 10px; top: 10px; z-index: 100000;
  padding: 12px 16px; background: #fff; color: #000;
}

.mh-container {
  width: min(calc(100% - 40px), var(--mh-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(11,11,12,.84);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding a { display: flex; align-items: center; text-decoration: none; }
.site-branding img { width: 210px; max-height: 58px; object-fit: contain; object-position: left center; }
.site-branding .custom-logo { width: auto; max-width: 240px; }

.primary-nav ul, .footer-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; align-items: center; gap: 28px;
}
.primary-nav a, .footer-nav a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: rgba(255,255,255,.82);
}
.primary-nav a:hover, .primary-nav a:focus, .footer-nav a:hover { color: var(--mh-gold); }
.nav-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--mh-gold); border-radius: 999px;
  color: var(--mh-white) !important;
}
.nav-cta a:hover { background: var(--mh-gold); color: #111 !important; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--mh-line); border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 20px; height: 2px;
  margin: 4px auto; background: currentColor; transition: .25s ease;
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(225,43,34,.19), transparent 34%),
    radial-gradient(circle at 18% 65%, rgba(228,186,56,.10), transparent 30%),
    linear-gradient(145deg, #09090a 0%, #141416 62%, #0b0b0c 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 86%);
}
.hero::after {
  content: "M";
  position: absolute;
  right: -1vw; top: 45%; transform: translateY(-50%);
  color: rgba(255,255,255,.026);
  font-size: clamp(360px, 48vw, 720px);
  font-weight: 900; line-height: 1;
  letter-spacing: -.12em;
}
.hero-inner { position: relative; z-index: 2; padding-block: 120px 100px; }
.hero-copy { max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  color: var(--mh-gold);
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--mh-red); }
.hero h1 {
  max-width: 940px;
  margin: 0 0 28px;
  font-size: clamp(3.5rem, 7.2vw, 6.8rem);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 850;
}
.hero h1 .accent { color: var(--mh-gold); }
.hero-lead {
  max-width: 760px;
  margin: 0 0 38px;
  color: rgba(255,255,255,.76);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.mh-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; font-weight: 800; font-size: .95rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.mh-button:hover { transform: translateY(-2px); }
.mh-button-primary { background: var(--mh-gold); color: #151515; }
.mh-button-primary:hover { background: #f0ca50; }
.mh-button-secondary { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); color: #fff; }
.mh-button-secondary:hover { border-color: #fff; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 72px; padding-top: 26px;
  border-top: 1px solid var(--mh-line);
  color: rgba(255,255,255,.63); font-size: .9rem; font-weight: 650;
}
.hero-meta span::before { content: "•"; color: var(--mh-red); margin-right: 10px; }

section { position: relative; }
.section-pad { padding-block: 110px; }
.section-light { background: var(--mh-cream); color: #151515; }
.section-dark { background: var(--mh-charcoal); }
.section-head { max-width: 790px; margin-bottom: 52px; }
.section-label {
  display: block; margin-bottom: 16px;
  color: var(--mh-red); font-weight: 850; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .17em;
}
.section-head h2, .legal-clarity h2, .founder-copy h2, .contact-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.045em;
}
.section-head p, .legal-clarity p, .founder-copy p, .contact-copy p { color: #5a564f; font-size: 1.08rem; }
.section-dark .section-head p, .section-dark .founder-copy p, .section-dark .contact-copy p { color: rgba(255,255,255,.68); }

.vision-section { padding-block: 78px; }
.vision-section .section-head { max-width: 940px; margin-bottom: 34px; }
.vision-section .section-head h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); }
.vision-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.vision-statement {
  padding: 30px;
  border-radius: var(--mh-radius);
  background: #fff;
  box-shadow: 0 18px 46px rgba(25,20,10,.08);
}
.vision-statement blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  line-height: 1.3; letter-spacing: -.022em; font-weight: 750;
}
.vision-statement blockquote strong { color: #a51913; }
.vision-summary { padding-top: 2px; }
.vision-summary h3 { margin: 0 0 14px; font-size: 1.35rem; }
.vision-roles { border-top: 1px solid rgba(0,0,0,.12); }
.vision-role {
  display: grid; grid-template-columns: 125px 1fr; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,.10);
}
.vision-role strong { color: #171719; }
.vision-role span { color: #625d55; font-size: .94rem; }
.vision-note { margin: 14px 0 0; color: #6e685f; font-size: .8rem; line-height: 1.5; }

.venture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.venture-card {
  min-height: 540px;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  background: #1b1b1e;
  box-shadow: var(--mh-shadow);
}
.venture-visual { height: 225px; position: relative; overflow: hidden; background: #0f0f10; }
.venture-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); transition: transform .5s ease; }
.venture-card:hover .venture-visual img { transform: scale(1.04); }
.venture-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #1b1b1e, transparent 58%); }
.venture-mark {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(225,43,34,.34), transparent 34%),
    linear-gradient(145deg, #101012, #242126);
  color: rgba(228,186,56,.82);
  font-size: 5rem; font-weight: 900; letter-spacing: -.08em;
}
.venture-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.venture-kicker { color: var(--mh-gold); font-size: .74rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.venture-body h3 { margin: 10px 0 14px; font-size: 1.7rem; line-height: 1.13; letter-spacing: -.025em; }
.venture-body p { margin: 0 0 22px; color: rgba(255,255,255,.66); font-size: .96rem; }
.venture-link { margin-top: auto; color: #fff; text-decoration: none; font-weight: 800; }
.venture-link span { color: var(--mh-red); margin-left: 6px; }
.venture-status { margin-top: auto; display: inline-flex; width: fit-content; padding: 7px 12px; border: 1px solid rgba(228,186,56,.35); border-radius: 99px; color: var(--mh-gold); font-size: .78rem; font-weight: 800; }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.principle { padding: 30px 0; border-top: 3px solid #151515; }
.principle-number { color: #a51913; font-weight: 900; font-size: .85rem; }
.principle h3 { margin: 20px 0 12px; font-size: 1.55rem; }
.principle p { margin: 0; color: #686158; }

.founder-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: center; }
.founder-panel {
  aspect-ratio: 4/5;
  position: relative;
  display: grid; place-items: end start;
  overflow: hidden;
  border-radius: var(--mh-radius);
  background: #202024;
  border: 1px solid var(--mh-line);
  box-shadow: var(--mh-shadow);
}
.founder-panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,8,.92) 0%, rgba(7,7,8,.30) 36%, transparent 62%);
  pointer-events: none;
}
.founder-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.founder-caption { position: relative; z-index: 2; padding: 30px; }
.founder-caption strong { display: block; font-size: 1.35rem; }
.founder-caption span { color: var(--mh-gold); font-size: .9rem; }
.founder-copy .founder-quote { margin: 34px 0; padding-left: 22px; border-left: 3px solid var(--mh-red); color: #fff; font-size: 1.28rem; font-weight: 700; }
.founder-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.founder-point { padding: 18px; border: 1px solid var(--mh-line); border-radius: 14px; color: rgba(255,255,255,.76); }

.contact-section { overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-details { margin-top: 34px; }
.contact-detail { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--mh-line); }
.contact-detail a { text-decoration: none; font-weight: 750; }
.contact-detail a:hover { color: var(--mh-gold); }
.contact-form {
  padding: 34px;
  border-radius: var(--mh-radius);
  background: #fff; color: #151515;
  box-shadow: var(--mh-shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { font-size: .82rem; font-weight: 800; color: #39352f; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #d6d0c5; border-radius: 10px;
  padding: 13px 14px; background: #fbfaf7; color: #111;
  outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #a51913; box-shadow: 0 0 0 3px rgba(165,25,19,.10); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: .78rem; color: #5f5b55; }
.form-consent input { margin-top: 4px; }
.form-note { margin-top: 14px; color: #6a645c; font-size: .78rem; }
.form-status { padding: 12px 14px; margin-bottom: 18px; border-radius: 10px; font-weight: 750; }
.form-status.success { background: #e8f5ec; color: #17632d; }
.form-status.error { background: #fff0ef; color: #8f1811; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 54px 0 30px; background: #080809; border-top: 1px solid var(--mh-line); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.footer-brand img { width: 180px; max-height: 56px; object-fit: contain; object-position: left; }
.footer-brand p { max-width: 480px; color: rgba(255,255,255,.56); font-size: .9rem; }
.footer-nav ul { flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--mh-line); color: rgba(255,255,255,.45); font-size: .74rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; color: rgba(255,255,255,.48); font-size: .78rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--mh-gold); }

.page-shell { min-height: 65vh; padding: 80px 0 110px; background: var(--mh-cream); color: #151515; }
.page-shell article { max-width: 850px; margin: auto; }
.page-shell h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.page-shell h2 { margin-top: 44px; font-size: 1.6rem; }
.page-shell a { color: #94160f; }
.post-list article { padding: 30px 0; border-bottom: 1px solid rgba(0,0,0,.12); }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute; left: 20px; right: 20px; top: calc(100% + 10px);
    padding: 18px; border: 1px solid var(--mh-line); border-radius: 16px;
    background: #111113; box-shadow: var(--mh-shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav a { display: block; padding: 11px 8px; }
  .nav-cta a { margin-top: 6px; }
  .vision-grid, .founder-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .venture-grid { grid-template-columns: 1fr 1fr; }
  .venture-card:last-child { grid-column: 1/-1; max-width: calc(50% - 11px); }
}

@media (max-width: 700px) {
  .mh-container { width: min(calc(100% - 28px), var(--mh-container)); }
  .header-inner { min-height: 74px; }
  .site-branding img { width: 165px; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 92px 70px; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 5.2rem); }
  .hero-meta { margin-top: 50px; flex-direction: column; gap: 10px; }
  .section-pad { padding-block: 78px; }
  .venture-grid, .principles-grid, .form-grid, .founder-points { grid-template-columns: 1fr; }
  .venture-card:last-child { grid-column: auto; max-width: none; }
  .venture-card { min-height: auto; }
  .vision-statement, .contact-form { padding: 24px; }
  .button-row .mh-button { width: 100%; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-nav ul { justify-content: flex-start; margin-top: 12px; }
}
