/* ============================================================
   MQ Global Group — site styles
   Dark editorial theme: charcoal + cream + warm tan accent
   ============================================================ */

:root {
  --bg:        #101214;
  --bg-2:      #16191b;
  --bg-3:      #1c2023;
  --line:      #2a2f33;
  --line-soft: #23282b;
  --cream:     #f8f4eb;
  --text:      #c8cfd3;
  --muted:     #828c92;
  --accent:    #c2a878;   /* warm tan */
  --accent-2:  #d8c49a;
  --maxw: 1160px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cream); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
  font-weight: 600;
}

.lede { font-size: 1.18rem; color: #d7dde0; max-width: 60ch; }

.muted { color: var(--muted); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,18,20,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .22em;
  font-size: .92rem;
  color: var(--cream);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { color: var(--cream); }
.brand span { color: var(--accent); }
.brand img { height: 42px; width: auto; display: block; }
.footer-top .brand img { height: 52px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans);
  color: var(--text);
  font-size: .9rem;
  letter-spacing: .02em;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cream); }
.nav-cta {
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 9px 18px !important;
  color: var(--cream) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--cream); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 92px 0 100px;
}
.hero-figure {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-figure.wide img { aspect-ratio: 5/4; }
.hero-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,11,12,.92), rgba(10,11,12,0));
  color: var(--cream); font-size: .8rem; letter-spacing: .03em;
  padding: 34px 18px 14px; font-family: var(--sans);
}
.hero h1 { margin-bottom: .35em; }

/* ---------- Full-width hero banner (home) ---------- */
.hero-banner { border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.banner-figure { position: relative; margin: 0; }
.banner-figure img { width: 100%; height: auto; display: block; }
.banner-overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(12,13,14,.88) 0%, rgba(12,13,14,.6) 38%, rgba(12,13,14,.2) 66%, rgba(12,13,14,0) 100%);
}
.banner-overlay .eyebrow { margin-bottom: 1rem; }
.banner-title { margin: 0 0 .25em; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; }
.banner-tag { font-family: var(--serif); color: var(--cream); font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-style: italic; line-height: 1.3; margin: 0; opacity: .92; }
.hero-intro { max-width: 760px; }
@media (max-width: 700px) {
  .banner-overlay { position: static; background: var(--bg-2); padding: 28px 0 32px; }
  .banner-title { font-size: 2.4rem; }
  .banner-tag { font-size: 1.2rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .92rem; letter-spacing: .04em; font-weight: 500;
  padding: 14px 30px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #14110b;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #14110b; }
.btn-ghost { background: transparent; color: var(--cream); }
.btn-ghost:hover { background: var(--accent); color: #14110b; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Sections ---------- */
section { padding: 86px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 64ch; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service / numbered cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 34px 30px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .num {
  font-family: var(--serif); font-size: 2.1rem; color: var(--accent);
  display: block; margin-bottom: .35em; line-height: 1;
}
.card h3 { color: var(--cream); margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Depth / tag groups ---------- */
.depth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.depth-grid h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li {
  border: 1px solid var(--line); border-radius: 2px;
  padding: 8px 15px; font-size: .9rem; color: var(--text); background: var(--bg);
}

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border: 1px solid var(--line); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split figcaption { font-size: .82rem; color: var(--muted); padding: 12px 2px 0; font-family: var(--sans); }
.media-stack { display: grid; gap: 24px; }
.media-stack .split-media img { height: auto; }

/* ---------- Video embed + gallery ---------- */
.video-embed {
  position: relative; padding-top: 56.25%;
  border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-size: .82rem; color: var(--muted); padding: 12px 2px 0; font-family: var(--sans); margin: 0; }

/* Click-to-play YouTube facade */
.yt-facade { display: block; padding: 56.25% 0 0; width: 100%; cursor: pointer; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-facade .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 54px; border-radius: 12px; background: rgba(20,17,11,.78);
  transition: background .2s, transform .2s;
}
.yt-facade .yt-play::before {
  content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--cream);
}
.yt-facade:hover .yt-play { background: var(--accent); transform: translate(-50%,-50%) scale(1.06); }
.yt-facade:hover .yt-play::before { border-left-color: #14110b; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; align-items: start; }
.gallery .split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cards .split-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* ---------- Credential band ---------- */
.cred {
  border-left: 2px solid var(--accent);
  padding-left: 26px; max-width: 70ch;
}
.cred .pill {
  display: inline-block; margin-top: 18px; font-family: var(--sans);
  font-size: .82rem; letter-spacing: .04em; color: var(--cream);
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 2px; background: var(--bg-3);
}

/* ---------- Formats list ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.formats > div { padding: 34px 30px; border-right: 1px solid var(--line); }
.formats > div:last-child { border-right: 0; }
.formats h3 { font-size: 1.2rem; }
.formats p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Press quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
blockquote {
  margin: 0; background: var(--bg-3); border: 1px solid var(--line); padding: 32px 28px;
}
blockquote p { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); line-height: 1.4; margin-bottom: 1em; }
blockquote cite { font-style: normal; font-family: var(--sans); font-size: .82rem; color: var(--accent); letter-spacing: .03em; }

/* ---------- Logo / work-with row ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .92rem; color: var(--text); }
.chips li::after { content: "·"; color: var(--accent); margin-left: 12px; }
.chips li:last-child::after { content: ""; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .6em; }
.cta-band p { max-width: 52ch; margin: 0 auto 1.8em; color: var(--text); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); color: var(--cream);
  font-family: var(--sans); font-size: 1rem; padding: 13px 15px; border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-detail { margin-bottom: 26px; }
.contact-detail .k { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-detail .v { font-size: 1.1rem; color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.footer-top .brand { display: inline-block; margin-bottom: 14px; }
.footer-top p { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text); font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; color: var(--muted); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .hero-figure img { aspect-ratio: 16/11; }
  .cards, .cards.two, .quotes, .formats { grid-template-columns: 1fr; }
  .formats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .formats > div:last-child { border-bottom: 0; }
  .depth-grid, .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 0; transform: translateY(-130%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: 0 28px; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .nav-cta { text-align: center; margin: 12px 0; }
  .nav-toggle { display: block; }
}
