/* The Makeover Group — HoldCo site. Shared stylesheet.
   Implements design-system.md v1.0.0 (--holdco- tokens, Inter + IBM Plex Sans,
   sharp corners, generous padding, 8 section patterns). */

:root {
  --holdco-ink: #0B0F14;
  --holdco-ink-hover: #1A1F27;
  --holdco-ivory: #F7F6F1;
  --holdco-burnished: #C4A35A;
  --holdco-burnished-hover: #A8893F;
  --holdco-slate: #2A2F38;
  --holdco-stone: #8E9196;
  --holdco-chalk: #E8E6DF;
  --holdco-white: #FFFFFF;
  --maxw: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px; line-height: 1.7; letter-spacing: 0.005em;
  color: var(--holdco-ink); background: var(--holdco-ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Typography */
.display, .h1, .h2, .h3, .h4 { font-family: "Inter", system-ui, sans-serif; }
.display { font-size: 72px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.h1 { font-size: 48px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.h3 { font-size: 28px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.h4 { font-size: 22px; font-weight: 500; line-height: 1.4; }
.body-lg { font-size: 20px; line-height: 1.6; }
.body { font-size: 17px; line-height: 1.7; }
.body-sm { font-size: 14px; line-height: 1.5; letter-spacing: 0.01em; }
.label {
  font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label--gold { color: var(--holdco-burnished); }
.label--stone { color: var(--holdco-stone); }
.measure { max-width: 62ch; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section--ink { background: var(--holdco-ink); color: var(--holdco-white); }
.section--ivory { background: var(--holdco-ivory); color: var(--holdco-ink); }
.section--ink .body, .section--ink .body-lg, .section--ink p { color: var(--holdco-stone); }
.section--ink .display, .section--ink .h1, .section--ink .h2, .section--ink .h3 { color: var(--holdco-white); }
.stack > * + * { margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-block; font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  padding: 16px 32px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--holdco-burnished); color: var(--holdco-ink); }
.btn-primary:hover { background: var(--holdco-burnished-hover); }
.btn-secondary { background: transparent; color: var(--holdco-white); border-color: var(--holdco-white); }
.btn-secondary:hover { background: var(--holdco-slate); }
.btn-ghost { background: transparent; color: var(--holdco-ink); border-color: var(--holdco-ink); }
.btn-ghost:hover { background: var(--holdco-ink); color: var(--holdco-white); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--holdco-ink); border-bottom: 1px solid var(--holdco-slate);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: "Inter", sans-serif; font-weight: 700; font-size: 18px; color: var(--holdco-white); letter-spacing: -0.01em; }
.brand span { color: var(--holdco-burnished); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a.label { color: var(--holdco-white); transition: color 0.3s var(--ease); }
.nav a.label:hover { color: var(--holdco-burnished); }
.nav-toggle { display: none; background: none; border: 0; color: var(--holdco-white); font-size: 24px; cursor: pointer; }

/* Pattern 1: Numbered opener */
.opener .label { display: block; margin-bottom: 24px; }
.opener .num { color: var(--holdco-burnished); margin-right: 12px; }

/* Pattern 3: Portfolio / vertical grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  background: var(--holdco-slate); border: 1px solid var(--holdco-slate);
  padding: 32px; transition: border-color 0.3s var(--ease);
}
.card:hover { border-color: var(--holdco-burnished); }
.card--light { background: var(--holdco-ivory); border-color: var(--holdco-chalk); }
.card .h3 { margin-bottom: 12px; }
.card .cat { display: block; margin-bottom: 16px; }

/* Pattern 2: Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--57 { grid-template-columns: 5fr 7fr; }
.visual-ph {
  background: var(--holdco-slate); min-height: 380px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--holdco-stone); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.visual-img {
  width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block;
  filter: grayscale(0.18) contrast(1.04);
}

/* Left-aligned editorial hero (PE differentiator vs centered marketing hero) */
.hero-left { text-align: left; padding-top: 148px; padding-bottom: 120px; }
.hero-left .label { display: block; margin-bottom: 28px; }
.hero-left .display { max-width: 20ch; }
.hero-left .body-lg { max-width: 60ch; margin-top: 28px; color: var(--holdco-stone); }
.hero-left .btn { margin-top: 40px; }
.hero-left .rule { width: 88px; height: 3px; background: var(--holdco-burnished); margin-top: 36px; border: 0; }

/* Pattern 4/6: Full-width statement & CTA banner */
.statement { text-align: center; }
.statement .display, .statement .h1, .statement .h2 { max-width: 16ch; margin: 0 auto; }
.statement .body-lg { max-width: 60ch; margin: 24px auto 0; }
.statement .btn { margin-top: 40px; }

/* Pattern 5: Metric row */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.metric .num { font-family: "Inter", sans-serif; font-size: 48px; font-weight: 700; color: var(--holdco-ink); }

/* Pattern 7: Accordion */
.acc-item { border-bottom: 1px solid var(--holdco-chalk); }
.acc-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-family: "Inter", sans-serif; font-size: 22px; font-weight: 500; color: var(--holdco-ink); }
.acc-q .sign { color: var(--holdco-stone); font-size: 24px; }
.acc-a { padding: 0 0 24px; color: var(--holdco-stone); display: none; }
.acc-item.open .acc-a { display: block; }

/* Pattern 8: Form */
.form-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font-size: 17px; font-family: inherit;
  border: 1px solid var(--holdco-chalk); border-radius: 4px; background: var(--holdco-white); color: var(--holdco-ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--holdco-stone); }
.field :focus { outline: 2px solid var(--holdco-burnished); outline-offset: 2px; }

/* Footer */
.site-footer { background: var(--holdco-ink); color: var(--holdco-stone); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-grid a { color: var(--holdco-stone); display: block; padding: 4px 0; transition: color 0.3s var(--ease); }
.footer-grid a:hover { color: var(--holdco-burnished); }
.footer-grid .brand { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--holdco-slate); margin-top: 48px; padding-top: 24px; }

/* Motion */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }

/* Divider */
.divider { border: 0; border-top: 1px solid var(--holdco-chalk); }
.section--ink .divider { border-top-color: var(--holdco-slate); }

/* Responsive */
@media (max-width: 1023px) {
  .display { font-size: 52px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .section { padding: 80px 0; }
  .display { font-size: 40px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 22px; }
  .body-lg { font-size: 18px; }
  .nav { display: none; }
  .nav.open { display: flex; position: fixed; inset: 72px 0 0; background: var(--holdco-ink);
    flex-direction: column; gap: 28px; padding: 48px 24px; }
  .nav.open a.label { font-size: 22px; }
  .nav-toggle { display: block; }
  .grid-3, .split, .split--57, .metrics, .form-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
