/* =========================================================
   StrategyM — Shared styles
   Editorial / consulting aesthetic: warm paper, ink, gold
   ========================================================= */

:root {
  /* Palette */
  --paper: #f4efe4;          /* warm cream page bg */
  --paper-2: #ede7d8;        /* slightly deeper */
  --ivory: #faf6ec;          /* surface */
  --ink: #15171c;            /* near-black */
  --ink-2: #2c2f38;
  --soft: #5e6270;           /* muted body */
  --soft-2: #8a8d97;
  --line: #d6cfbb;           /* warm tan border */
  --line-soft: #e5dfcd;
  --red: #d92e2e;            /* brand red (from logo) */
  --red-deep: #b91c1c;
  --red-soft: #f04545;
  --red-bg: rgba(217, 46, 46, 0.08);
  /* Gold aliased to red — single accent color across the brand */
  --gold: #d92e2e;
  --gold-soft: #e85149;
  --gold-bg: rgba(217, 46, 46, 0.08);
  --teal: #1e3d44;           /* deep forest teal */
  --teal-soft: #2c5b65;
  --burgundy: #6b2c2f;

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 820px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

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

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 450; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.2; }
h4 { font-size: 1.15rem; font-weight: 500; }

.serif { font-family: var(--serif); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
em, .italic { font-family: var(--serif); font-style: italic; }

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 500;
}

.label-gold {
  color: var(--gold);
  font-weight: 600;
}

.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 400;
}

p { margin: 0 0 1.1em; color: var(--soft); }
p.lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

section { padding: clamp(100px, 13vw, 170px) 0; position: relative; }
section + section { border-top: 1px solid var(--line-soft); }

.rule {
  width: 40px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
  margin: 0 14px;
  vertical-align: middle;
  opacity: 0.5;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244, 239, 228, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: border-color .3s, background .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 228, 0.95);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand-name em { font-style: italic; color: var(--red); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 450;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active { color: var(--ink); }
.nav-cta {
  margin-left: 12px;
  padding: 10px 22px !important;
  background: var(--red);
  color: var(--ivory) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  border-radius: 999px;
  transition: background .25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-deep) !important; color: var(--ivory) !important; }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 44px; height: 44px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: var(--ivory);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.btn-primary:hover { background: var(--red-deep); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--red); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-gold {
  background: var(--gold);
  color: var(--ivory);
}
.btn-gold:hover { background: var(--red); }
.btn-arrow svg { transition: transform .25s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 0.95rem;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link::after {
  content: "→";
  display: inline-block;
  transition: transform .25s var(--ease);
}
.text-link:hover::after { transform: translateX(4px); }

/* ============ HERO PATTERNS ============ */
.page-hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  color: var(--gold);
}
.page-hero .eyebrow .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  margin-right: 14px;
}
.page-hero .eyebrow .line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-right: 14px;
}
.page-hero .eyebrow .text {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.page-hero h1 {
  max-width: 900px;
  margin-bottom: 32px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.page-hero .sub {
  max-width: 620px;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--soft);
}

/* Background decoration — diagonal lines */
.deco-lines {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

/* ============ EDITORIAL UTILS ============ */
.editorial-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.editorial-meta .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}
.editorial-meta .label-line {
  display: flex;
  align-items: center;
  gap: 14px;
}
.editorial-meta .line {
  width: 40px;
  height: 1px;
  background: var(--ink);
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 12px 0 12px 40px;
  margin: 88px 0;
  max-width: 720px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 60px 0;
}
.divider .line { flex: 1; height: 1px; background: var(--line); }
.divider .mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ============ CARDS ============ */
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 44px 40px;
  transition: border-color .25s, transform .25s;
  position: relative;
}
.card:hover { border-color: var(--ink); }
.card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.card h3 { margin-bottom: 14px; }
.card p { font-size: 0.95rem; margin-bottom: 24px; }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.card .more svg { transition: transform .25s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0 48px;
  position: relative;
  z-index: 2;
}
footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 112px;
}
footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.5);
  margin: 0 0 24px;
  font-weight: 500;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 12px; }
footer ul a {
  color: rgba(244, 239, 228, 0.75);
  font-size: 0.92rem;
  position: relative;
  transition: color .2s;
}
footer ul a:hover { color: var(--gold-soft); }
footer .footer-brand .brand-mark {
  background: var(--paper);
  border-radius: 50%;
  padding: 6px;
}
footer .footer-brand .brand-name { color: var(--paper); }
footer .footer-brand p {
  color: rgba(244, 239, 228, 0.6);
  font-size: 0.92rem;
  margin-top: 20px;
  max-width: 320px;
}
footer .footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-soft);
  margin-top: 20px;
  display: block;
}
footer .footer-bottom {
  border-top: 1px solid rgba(244, 239, 228, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(244, 239, 228, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-line {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.reveal-line .inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.reveal-line.in .inner { transform: translateY(0); }

/* ============ EDITORIAL IMAGE TREATMENT ============ */
.editorial-img {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  width: 100%;
}
.editorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 1.4s var(--ease);
}
.editorial-img:hover img { transform: scale(1.025); }
.editorial-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(21,23,28,0.62) 0%, rgba(21,23,28,0.30) 22%, rgba(21,23,28,0) 48%),
    linear-gradient(135deg, rgba(163,122,55,0.10) 0%, transparent 40%, rgba(21,23,28,0.12) 100%);
  pointer-events: none;
  z-index: 1;
}
.editorial-img .caption {
  position: absolute;
  bottom: 32px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65), 0 2px 14px rgba(0,0,0,0.45);
}
.editorial-img .caption .cap-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-soft);
}
.editorial-img .caption .cap-line {
  width: 28px; height: 1px;
  background: rgba(244,239,228,0.9);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.editorial-img .caption .cap-text {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
}

.editorial-img.wide { aspect-ratio: 21 / 9; }
.editorial-img.banner { aspect-ratio: 16 / 7; }
.editorial-img.square { aspect-ratio: 1 / 1; }
.editorial-img.portrait { aspect-ratio: 3 / 4; }
.editorial-img.classic { aspect-ratio: 4 / 3; }
.editorial-img.photo { aspect-ratio: 3 / 2; }

/* Image + text figure */
figure.editorial-figure {
  margin: 0;
  display: grid;
  gap: 16px;
}
figure.editorial-figure figcaption {
  font-size: 0.82rem;
  color: var(--soft);
  font-family: var(--serif);
  font-style: italic;
  padding: 0 4px;
}

/* ============ FORMS ============ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: border-color .25s;
  outline: none;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--ink);
}
.form-field textarea { min-height: 120px; padding: 14px 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 12px 16px 0; text-align: center; justify-content: center; }
  .menu-btn { display: flex; }

  footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  footer .footer-top { grid-template-columns: 1fr; }
  .pullquote { padding-left: 20px; }
}
