/* ==========================================================
   MM Energy & Commodities Consulting — shared styles
   ========================================================== */

:root {
  --black: #050505;
  --panel: #0c0b09;
  --panel-2: #12100c;
  --gold: #d4a84b;
  --gold-light: #f3d488;
  --gold-dark: #9c7426;
  --gold-grad: linear-gradient(180deg, #f6dc94 0%, #d9ae55 45%, #b8862f 100%);
  --text: #f4f1ea;
  --muted: #c9c3b6;
  --line: rgba(212, 168, 75, 0.35);
  --max: 1200px;
  --head-font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.gold-text { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-solid {
  background: var(--gold-grad);
  color: #1a1206;
  border: 1px solid var(--gold-light);
}
.btn-solid:hover { box-shadow: 0 0 22px rgba(243, 212, 136, .45); transform: translateY(-1px); }
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold-light);
  background: rgba(0, 0, 0, .35);
}
.btn-outline:hover { background: var(--gold); color: #1a1206; }
.btn svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, .96);
  border-bottom: 1px solid rgba(212, 168, 75, .18);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; mix-blend-mode: lighten; }
.brand-text {
  border-left: 1px solid var(--gold);
  padding-left: 12px;
  line-height: 1.05;
  text-align: center;
}
.brand-text .name {
  display: block;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff;
}
.brand-text .name span { color: var(--gold); }
.brand-text .sub {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-top: 3px;
}
.brand-text .sub2 {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.36em;
  color: #ddd;
  margin-top: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eee;
  padding: 8px 0;
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold-light); }

.header-cta { padding: 11px 24px; font-size: 0.78rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  position: relative;
  transition: transform .25s, background .25s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
  text-align: center;
  padding: 26px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  top: 0; bottom: 0;
  width: 46%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-bg.oil {
  left: 0;
  background-image: url("../images/hero-oil.jpg");
  background-position: 22% center;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
}
.hero-bg.gold {
  right: 0;
  background-image: url("../images/hero-gold.jpg");
  background-position: 72% center;
  -webkit-mask-image: linear-gradient(270deg, #000 45%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 45%, transparent 100%);
}
.hero { isolation: isolate; }
.hero-shade {
  /* dark centre behind the logo and copy, as in the mockup */
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 60% at 50% 42%, rgba(0,0,0,.92) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
/* no z-index here, so the logo can blend with the photos behind it */
.hero-inner { position: relative; }

.hero .hero-quote {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 3;
  margin: 0;
  max-width: 190px;
  text-align: left;
  border-left: 1px solid var(--gold);
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.45));
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-logo {
  width: min(420px, 78vw);
  margin: 0 auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 70%, transparent 100%);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.hero p {
  max-width: 780px;
  margin: 0 auto 22px;
  font-size: 1rem;
  color: #f1ede4;
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}

/* ---------- Services ---------- */
.services {
  background: radial-gradient(ellipse at 50% 0%, #17130c 0%, var(--black) 70%);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service {
  text-align: center;
  padding: 14px 26px;
}
.service + .service { border-left: 1px solid var(--line); }
.icon-ring {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #1c160b 0%, #070604 100%);
  box-shadow: 0 0 18px rgba(212,168,75,.18);
}
.icon-ring svg { width: 36px; height: 36px; }
.service h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.service p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Why MM ---------- */
.why {
  background:
    radial-gradient(ellipse at 85% 50%, rgba(80, 70, 50, .25), transparent 60%),
    linear-gradient(180deg, #0b0a08, #070707);
  padding: 64px 0 68px;
}
.why-inner { max-width: 1060px; margin: 0 auto; }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px) 300px;
  justify-content: space-between;
  gap: 64px;
  align-items: start;
  margin-top: 36px;
}
.why h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.why .rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0;
}
.why .why-sub {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--gold-light);
}

.why-body p {
  margin: 0 0 1.25em;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e6e1d6;
}
.why-body p:last-child { margin-bottom: 0; }
.why-body .why-pull {
  margin: 1.4em 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--gold-light);
}
.why-body .why-final { color: #fff; font-weight: 500; }

/* values sit beside the text and stay in view while it scrolls */
.why-aside {
  position: sticky;
  top: 110px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 22, 12, .7), rgba(10, 9, 7, .7));
}
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-closing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
}
.why-closing li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 20px 18px;
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 168, 75, .1), rgba(212, 168, 75, 0));
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-wrap: balance;
}
.values li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #eee;
}
.values svg { width: 46px; height: 46px; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  text-align: center;
  padding: 40px 0 26px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.75) 100%),
    url("../images/contact-refinery.jpg") center 40% / cover no-repeat;
  border-top: 1px solid var(--line);
}
.contact h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.contact .lead {
  margin: 2px 0 22px;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
  padding: 12px 26px 10px 20px;
  background: var(--gold-grad);
  color: #15100a;
  border-radius: 6px;
  border: 1px solid var(--gold-light);
  box-shadow: 0 8px 26px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,168,75,.35); }
.contact-card svg { width: 38px; height: 38px; flex-shrink: 0; }
.contact-card .info { display: flex; flex-direction: column; align-items: center; flex: 1; line-height: 1.15; }
.contact-card .who { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-card .email { margin: 3px 0 2px; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.01em; text-transform: lowercase; }
.contact-card .tap { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.tagline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #eee;
}
.tagline-row::before,
.tagline-row::after {
  content: "";
  width: 44px;
  height: 1px;
  background: #ddd;
}
.tagline-row .dot { color: var(--gold); letter-spacing: 0; }

/* ---------- Values banner ---------- */
.values-banner {
  background: #000;
  border-top: 1px solid var(--gold);
  padding: 34px 0 32px;
  text-align: center;
}
.vb-values {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.vb-values .dot { margin: 0 0.5em; letter-spacing: 0; }
.vb-rule {
  width: min(560px, 80%);
  height: 1px;
  margin: 16px auto;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
}
.vb-statement {
  margin: 0;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(212,168,75,.15);
  padding: 22px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.footer-logo img { width: 130px; mix-blend-mode: lighten; }
.footer-quote {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ddd;
}
.footer-links .sep { color: #888; }
.copyright {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #777;
}

/* ---------- About page ---------- */
.page-hero {
  position: relative;
  text-align: center;
  padding: 64px 0 52px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.85)),
    url("../images/hero-gold.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-hero .rule {
  width: 70px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 18px;
}
.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #eee;
}

.team {
  padding: 56px 0 64px;
  background: radial-gradient(ellipse at 50% 0%, #15110a 0%, var(--black) 65%);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 1040px;
  margin: 0 auto;
}
.profile {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #14110b, #0a0907);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.profile-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.profile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 30px;
}
.profile h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.profile .role {
  margin: 4px 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.profile p { margin: 0 0 24px; color: var(--muted); flex: 1; }
.profile .btn { align-self: flex-start; font-size: 0.95rem; padding: 14px 24px; text-transform: none; letter-spacing: 0.03em; }
.profile .btn svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav ul { gap: 22px; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5,5,5,.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-open .main-nav { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .main-nav li + li { border-top: 1px solid rgba(212,168,75,.12); }
  .main-nav a { display: block; padding: 14px 0; font-size: 0.9rem; }
  .main-nav a::after { display: none; }
  .main-nav .mobile-cta { display: block; margin-top: 12px; border: 0; }
  .main-nav .mobile-cta a { display: flex; padding: 14px; }

  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 100%); }
  .hero .hero-quote { position: relative; top: auto; right: auto; margin: 0 auto 6px; max-width: none; border: 0; padding: 0; background: none; text-align: center; font-size: 0.8rem; }
  .hero-bg { width: 60%; opacity: .7; }

  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 22px 10px; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }

  .why { padding: 48px 0 52px; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 28px; }
  .why-aside { position: static; }
  .values { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .why-closing { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .why-closing li { min-height: 0; padding: 18px 16px; }

  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }

  .team-grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (min-width: 861px) {
  .main-nav .mobile-cta { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .header-inner { height: 68px; }
  .brand img { height: 36px; }
  .brand-text .name { font-size: 1rem; }
  .values { grid-template-columns: 1fr; gap: 20px; }
  .why h2 { font-size: 1.22rem; letter-spacing: 0.04em; }
  .why-aside { padding: 22px 20px; }
  .why-body p { font-size: 1rem; line-height: 1.75; }
  .why-body .why-pull { padding-left: 16px; }
  .why-closing li { font-size: 0.88rem; letter-spacing: 0.07em; }
  .contact-card { width: 100%; min-width: 0; }
  .contact-card { gap: 12px; padding: 12px 16px 10px 14px; }
  .contact-card svg { width: 30px; height: 30px; }
  .contact-card .email { font-size: 1rem; }
  .tagline-row { letter-spacing: 0.25em; font-size: 0.7rem; gap: 10px; }
  .tagline-row::before, .tagline-row::after { width: 24px; }
  /* stack the three values so no word gets split across lines */
  .values-banner { padding: 28px 0 26px; }
  .vb-values { font-size: 1.05rem; letter-spacing: 0.18em; line-height: 1.9; }
  .vb-values .dot { display: none; }
  .vb-values .word { display: block; }
  .vb-statement { font-size: 0.8rem; letter-spacing: 0.12em; line-height: 1.7; }
  .profile-body { padding: 22px 20px 26px; }
  .profile .btn { align-self: stretch; font-size: 0.86rem; letter-spacing: 0.01em; padding: 14px 12px; }
}

@media (max-width: 359px) {
  .contact-card .email { font-size: 0.88rem; }
  .profile .btn { font-size: 0.8rem; }
}
