/*
Theme Name: MH Pacific Group
Theme URI: https://mhpacific.com.au
Author: MH Pacific Group Pty Ltd
Description: Single-page corporate theme for MH Pacific Group Pty Ltd, trustee to the Pacific Group Trust. All copy is editable under Appearance > Customize.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
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: mhpacific
*/

:root {
  --ink: #402D59;
  --ink-deep: #2A1D3C;
  --ink-mid: #4E376B;
  --paper: #FFFBF8;
  --paper-2: #FFF3ED;
  --peach: #FFE5DE;
  --lemon: #FFFF9D;
  --flame: #FF3B19;
  --brand-gradient: linear-gradient(100deg, #FFFF00, #FF9500 55%, #FF3B19);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--flame); }
p { text-wrap: pretty; }

section[id] { scroll-margin-top: 84px; }

.mh-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 0 0 10px 0;
}
.mh-skip:focus { left: 0; color: var(--paper); }

/* ---------- Header ---------- */
.mh-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 251, 248, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(64, 45, 89, 0.09);
}
.mh-header__logo { display: flex; align-items: center; }
.mh-header__logo img { height: 48px; width: auto; object-fit: contain; display: block; }
.mh-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mh-nav a { opacity: 0.72; }
.mh-nav a:hover { opacity: 1; color: var(--flame); }
.mh-nav .mh-btn-solid { opacity: 1; }
.mh-btn-solid { padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); letter-spacing: 0.06em; }
.mh-btn-solid:hover { background: var(--flame); color: #fff; }
.mh-nav__toggle { display: none; }

/* Mobile menu (no JS — native <details>) */
.mh-menu { display: none; position: relative; }
.mh-menu > summary {
  list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 10px 8px;
}
.mh-menu > summary::-webkit-details-marker { display: none; }
.mh-menu > summary span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); }
.mh-menu[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mh-menu[open] > summary span:nth-child(2) { opacity: 0; }
.mh-menu[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mh-menu > summary span { transition: transform .2s ease, opacity .2s ease; }
.mh-menu__panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
  display: flex; flex-direction: column; gap: 4px; min-width: 210px; padding: 10px;
  background: #fff; border: 1px solid rgba(64, 45, 89, 0.1); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(64, 45, 89, 0.18);
}
.mh-menu__panel a {
  padding: 13px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.mh-menu__panel a:hover { background: var(--paper-2); color: var(--flame); }

/* ---------- Buttons ---------- */
.mh-btn-gradient {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-deep); background: var(--brand-gradient);
  box-shadow: 0 14px 34px rgba(255, 90, 0, 0.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mh-btn-gradient:hover { color: var(--ink-deep); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 90, 0, 0.38); }
.mh-btn-ghost {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 251, 248, 0.9); border: 1px solid rgba(255, 251, 248, 0.3);
}
.mh-btn-ghost:hover { color: var(--paper); border-color: rgba(255, 251, 248, 0.7); }
.mh-btn-outline {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid rgba(64, 45, 89, 0.22);
}
.mh-btn-outline:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* ---------- Shared type ---------- */
.mh-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--flame); }
.mh-eyebrow--light { color: #FFB800; }
.mh-h2 {
  margin: 0; font-family: Orbitron, sans-serif; font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -0.015em;
  color: var(--ink); text-wrap: balance;
}
.mh-rule { height: 4px; width: 86px; border-radius: 4px; background: linear-gradient(90deg, #FFFF00, #FF9500 50%, #FF0000); }

.mh-reveal { animation: mh-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
@keyframes mh-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes mh-floaty { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }
@keyframes mh-fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.mh-hero {
  position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center;
  padding: clamp(64px, 10vh, 120px) clamp(20px, 6vw, 80px);
  background: radial-gradient(120% 90% at 50% 8%, var(--ink-mid) 0%, var(--ink) 42%, var(--ink-deep) 100%);
  overflow: hidden;
}
.mh-hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(50% 60% at 50% 30%, rgba(255, 149, 0, 0.28), rgba(255, 0, 0, 0) 70%);
  filter: blur(20px); pointer-events: none;
}
.mh-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 940px; }
.mh-hero__mark { position: relative; width: clamp(150px, 22vw, 230px); aspect-ratio: 1; display: grid; place-items: center; animation: mh-floaty 9s ease-in-out infinite; }
.mh-hero__mark::before {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.42), rgba(255, 0, 0, 0) 68%); filter: blur(26px);
}
.mh-hero__mark img { position: relative; width: 100%; clip-path: inset(0 0 21% 0); display: block; }
.mh-hero h1 {
  margin: 0; font-family: Orbitron, sans-serif; font-weight: 800;
  font-size: clamp(30px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--paper); text-wrap: balance;
}
.mh-hero__tagline {
  margin: 0; font-family: Orbitron, sans-serif; font-weight: 500;
  font-size: clamp(15px, 1.9vw, 24px); letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mh-hero__intro { margin: 0; max-width: 620px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: rgba(255, 251, 248, 0.72); }
.mh-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }
.mh-hero__est {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255, 251, 248, 0.42); animation: mh-fadein 1.4s .8s both;
}

/* ---------- Story ---------- */
.mh-story { padding: clamp(80px, 12vh, 150px) clamp(20px, 6vw, 80px); background: var(--paper); }
.mh-wrap { max-width: 1120px; margin: 0 auto; }
.mh-story__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(40px, 6vw, 90px); align-items: start; }
.mh-story__aside { display: flex; flex-direction: column; gap: 26px; }
.mh-story__meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(64, 45, 89, 0.55); }
.mh-story__body { display: flex; flex-direction: column; gap: 22px; font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.8; color: rgba(64, 45, 89, 0.85); }
.mh-story__body p { margin: 0; }
.mh-quote {
  margin: 8px 0 0; padding: 24px 28px; border-radius: 18px;
  background: linear-gradient(120deg, #FFF6F1, #FFF9E0); border: 1px solid rgba(64, 45, 89, 0.08);
}
.mh-quote__lead { margin: 0; font-family: Orbitron, sans-serif; font-weight: 600; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.mh-quote p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.75; color: rgba(64, 45, 89, 0.78); }
.mh-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(64, 45, 89, 0.5); }

/* ---------- Leadership ---------- */
.mh-leadership { padding: clamp(70px, 10vh, 120px) clamp(20px, 6vw, 80px); background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.mh-leadership__inner { display: flex; flex-direction: column; gap: 34px; }
.mh-leader {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px); border-radius: 24px; background: #fff;
  border: 1px solid rgba(64, 45, 89, 0.08); box-shadow: 0 24px 60px rgba(64, 45, 89, 0.07);
}
.mh-leader__avatar {
  width: 108px; height: 108px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--lemon), var(--peach));
  font-family: Orbitron, sans-serif; font-weight: 700; font-size: 30px; color: var(--ink);
}
.mh-leader__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mh-leader__body { display: flex; flex-direction: column; gap: 10px; min-width: 240px; flex: 1; }
.mh-leader__body h3 { margin: 0; font-family: Orbitron, sans-serif; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); }
.mh-leader__role { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(64, 45, 89, 0.55); }
.mh-leader__bio { margin: 6px 0 0; font-size: 16px; line-height: 1.7; color: rgba(64, 45, 89, 0.8); max-width: 560px; }
.mh-leader__external { margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(64, 45, 89, 0.1); display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.mh-leader__external span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(64, 45, 89, 0.45); }
.mh-leader__external p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(64, 45, 89, 0.6); }
.mh-leader__external a { color: rgba(64, 45, 89, 0.75); font-weight: 600; }
.mh-leader__external a:hover { color: var(--flame); }

/* ---------- Ventures ---------- */
.mh-ventures { padding: clamp(80px, 12vh, 150px) clamp(20px, 6vw, 80px); background: var(--paper-2); }
.mh-ventures__inner { display: flex; flex-direction: column; gap: clamp(34px, 5vw, 54px); }
.mh-ventures__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mh-ventures__head > div { display: flex; flex-direction: column; gap: 18px; }
.mh-ventures__head h2 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.14; }
.mh-ventures__sub { margin: 0; max-width: 360px; font-size: 15.5px; line-height: 1.7; color: rgba(64, 45, 89, 0.7); }
.mh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.mh-card {
  display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 22px; background: #fff;
  border: 1px solid rgba(64, 45, 89, 0.08); box-shadow: 0 14px 36px rgba(64, 45, 89, 0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mh-card:hover { transform: translateY(-5px); box-shadow: 0 26px 56px rgba(64, 45, 89, 0.12); color: var(--ink); }
.mh-card__sector {
  align-self: flex-start; padding: 6px 13px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #7A2E00; background: linear-gradient(100deg, var(--lemon), var(--peach));
}
.mh-card h3 { margin: 6px 0 0; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--ink); }
.mh-card p { margin: 0; flex: 1; font-size: 15px; line-height: 1.7; color: rgba(64, 45, 89, 0.72); }
.mh-card__link { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--flame); }

/* ---------- Giving ---------- */
.mh-giving {
  position: relative; padding: clamp(80px, 12vh, 150px) clamp(20px, 6vw, 80px);
  background: radial-gradient(110% 100% at 80% 0%, var(--ink-mid), var(--ink) 45%, var(--ink-deep));
  overflow: hidden;
}
.mh-giving__glow {
  position: absolute; top: -15%; right: -10%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.24), rgba(255, 0, 0, 0) 68%);
  filter: blur(18px); pointer-events: none;
}
.mh-giving__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(36px, 6vw, 80px); align-items: center; }
.mh-giving__left { display: flex; flex-direction: column; gap: 22px; }
.mh-giving h2 { color: var(--paper); font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; }
.mh-giving__entity { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 251, 248, 0.55); }
.mh-giving__body { display: flex; flex-direction: column; gap: 20px; font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.8; color: rgba(255, 251, 248, 0.78); }
.mh-giving__body p { margin: 0; }
.mh-giving .mh-btn-gradient { align-self: flex-start; padding: 14px 28px; font-size: 12.5px; }

/* ---------- Footer ---------- */
.mh-footer { padding: clamp(56px, 8vh, 90px) clamp(20px, 6vw, 80px) 36px; background: var(--paper); border-top: 1px solid rgba(64, 45, 89, 0.09); }
.mh-footer__inner { display: flex; flex-direction: column; gap: 44px; }
.mh-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; align-items: start; }
.mh-footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mh-footer__brand img { height: 62px; width: auto; object-fit: contain; display: block; }
.mh-footer__brand p { margin: 0; font-size: 14.5px; line-height: 1.7; color: rgba(64, 45, 89, 0.65); max-width: 300px; }
.mh-footer__col { display: flex; flex-direction: column; gap: 14px; }
.mh-footer__label { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(64, 45, 89, 0.45); }
.mh-footer__email { font-size: 16px; font-weight: 600; color: var(--ink); }
.mh-footer__col a:not(.mh-footer__email) { font-size: 15px; color: rgba(64, 45, 89, 0.7); }
.mh-footer__col a:hover { color: var(--flame); }
.mh-footer__rule { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #FFFF00, #FF9500 45%, #FF0000 75%, rgba(255, 0, 0, 0)); }
.mh-footer__legal { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; color: rgba(64, 45, 89, 0.5); }

/* ---------- Interior pages ---------- */
.mh-page { padding: clamp(70px, 10vh, 120px) clamp(20px, 6vw, 80px); }
.mh-page__inner { max-width: 780px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: rgba(64, 45, 89, 0.85); }
.mh-page__inner h1 { font-family: Orbitron, sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; color: var(--ink); }
.mh-page__inner h2, .mh-page__inner h3 { font-family: Orbitron, sans-serif; color: var(--ink); }
.mh-page__inner a { color: var(--flame); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mh-header { padding: 10px 18px; gap: 12px; }
  .mh-header__logo img { height: 38px; }
  .mh-nav { gap: 10px; }
  .mh-nav > a:not(.mh-btn-solid) { display: none; }
  .mh-menu { display: block; }
  .mh-btn-solid { padding: 11px 18px; font-size: 12px; }
  section[id] { scroll-margin-top: 68px; }

  .mh-hero { min-height: 0; padding: 56px 22px 64px; }
  .mh-hero__inner { gap: 22px; }
  .mh-hero__mark { width: 140px; }
  .mh-hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .mh-hero__tagline { font-size: 14px; letter-spacing: 0.12em; }
  .mh-hero__intro { font-size: 15.5px; }
  .mh-hero__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .mh-hero__actions a { text-align: center; padding: 16px 22px; }
  .mh-hero__est { position: static; transform: none; margin-top: 26px; }

  .mh-story, .mh-ventures, .mh-giving { padding: 64px 22px; }
  .mh-leadership { padding: 56px 22px; }
  .mh-story__grid { gap: 32px; }
  .mh-h2 { font-size: clamp(25px, 7.4vw, 34px); }
  .mh-quote { padding: 22px 20px; }

  .mh-leader { padding: 26px 22px; gap: 20px; }
  .mh-leader__avatar { width: 76px; height: 76px; font-size: 22px; }
  .mh-leader__body { min-width: 0; }
  .mh-story__body, .mh-giving__body, .mh-leader__body, .mh-card { min-width: 0; }
  .mh-leader .mh-btn-outline { width: 100%; text-align: center; }

  .mh-ventures__head { gap: 14px; }
  .mh-ventures__sub { max-width: none; }
  .mh-cards { gap: 14px; }
  .mh-card { padding: 24px 22px; }

  .mh-giving__grid { gap: 30px; }
  .mh-giving .mh-btn-gradient { align-self: stretch; text-align: center; }

  .mh-footer { padding: 52px 22px 30px; }
  .mh-footer__inner { gap: 34px; }
  .mh-footer__cols { gap: 30px; }
  .mh-footer__brand img { height: 52px; }
  .mh-footer__legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 420px) {
  .mh-header__logo img { height: 32px; }
  .mh-btn-solid { padding: 10px 14px; font-size: 11px; letter-spacing: 0.04em; }
  .mh-hero__mark { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}
