/* Martin Kribs Advisory, site styles */
:root {
  --ink: #101314;
  --paper: #F4F2ED;
  --stone: #6E6A63;
  --line: #D7D5D0;
  --accent: #7A2E2E;
  --accent-dark: #101314;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}
.logo span { color: var(--accent); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { height: 32px; width: auto; display: block; }
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a {
  text-decoration: none; color: var(--ink);
  font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase;
}
nav.links a:hover { color: var(--accent); }
nav.links a.cta {
  border: 1px solid var(--ink); padding: 9px 20px;
}
nav.links a.cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  nav.links { gap: 16px; }
  nav.links a.hide-m { display: none; }
}

/* Hero */
.hero { padding: 110px 0 90px; border-bottom: 1px solid var(--line); }
.hero .kicker {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 500; line-height: 1.12; max-width: 820px;
  margin-bottom: 26px;
}
.hero p.lead {
  font-size: 1.15rem; color: var(--stone); max-width: 640px; margin-bottom: 38px;
}
.btn {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: 15px 34px; font-size: 0.86rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); margin-left: 14px;
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* Sections */
section { padding: 84px 0; }
section.alt { background: #E9E7E1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 500; line-height: 1.2; margin-bottom: 22px; max-width: 720px;
}
.prose p { max-width: 700px; margin-bottom: 18px; color: #101314; }
.prose p strong { color: var(--ink); }

/* Stats band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 52px 0; border-top: 1px solid var(--line);
  margin-top: 56px;
}
.stat .num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1;
  margin-bottom: 8px;
}
.stat .label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); background: var(--paper);
  padding: 38px 32px; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card .who {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
  margin-bottom: 14px; line-height: 1.25;
}
.card p { color: var(--stone); font-size: 0.97rem; flex: 1; }
.card .more {
  margin-top: 24px; font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
}
.card:hover .more { color: var(--accent); }

/* Pull quote */
.quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500; line-height: 1.4; max-width: 860px;
  padding-left: 28px; border-left: 3px solid var(--accent);
}
.quote-attr { margin-top: 22px; padding-left: 31px; color: var(--stone); font-size: 0.92rem; }

/* Detail lists (service pages) */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid h4 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 12px;
}
ul.tick { list-style: none; }
ul.tick li {
  padding: 10px 0 10px 26px; position: relative;
  border-bottom: 1px solid var(--line); color: #101314; font-size: 0.97rem;
}
ul.tick li::before {
  content: "·"; font-weight: 700; position: absolute; left: 4px; color: var(--accent);
}

/* Audience strip */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
@media (max-width: 860px) { .audience { grid-template-columns: repeat(2, 1fr); } }
.audience div { border-top: 2px solid var(--ink); padding-top: 16px; }
.audience h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.audience p { font-size: 0.9rem; color: var(--stone); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; padding: 96px 24px; }
.cta-band h2 { color: var(--paper); margin: 0 auto 18px; }
.cta-band p { color: #D7D5D0; max-width: 560px; margin: 0 auto 36px; }
.cta-band .btn { background: var(--paper); color: var(--ink); }
.cta-band .btn:hover { background: var(--accent); color: var(--paper); }

/* Footer */
footer { padding: 64px 0 44px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.foot p, .foot a { font-size: 0.9rem; color: var(--stone); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .col p { margin-bottom: 6px; }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--stone); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.legal .disclosure { flex-basis: 100%; max-width: 72ch; color: var(--stone); }

/* Image heroes (full-bleed photo with scrim, folder-style) */
.hero-img {
  position: relative; background-size: cover; background-position: center;
  border-bottom: none;
}
.hero-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,19,20,0.66) 0%, rgba(16,19,20,0.42) 48%, rgba(16,19,20,0.10) 100%);
}
.hero-img .wrap { position: relative; z-index: 1; }
.hero-img h1, .hero.hero-img h1, .page-hero.hero-img h1 {
  color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 1px 24px rgba(0,0,0,0.45);
}
.hero-img p.lead, .hero.hero-img p.lead, .page-hero.hero-img p.lead {
  color: #F4F2ED; text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 1px 18px rgba(0,0,0,0.45);
}
.hero-img .kicker, .hero-img .section-label, .page-hero.hero-img .section-label { color: #F4F2ED; }
.hero-img .btn { background: var(--paper); color: var(--ink); }
.hero-img .btn:hover { background: var(--accent); color: #fff; }
.hero-img .btn.ghost { background: transparent; color: #F4F2ED; border-color: #F4F2ED; }
.hero-img .btn.ghost:hover { background: #F4F2ED; color: var(--ink); }
.hero.hero-img { padding: 150px 0 120px; }
.page-hero.hero-img { padding: 130px 0 100px; border-bottom: none; }

/* Stats band on paper */
.stats-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.stats-section .stats { border-top: none; margin-top: 0; padding: 0; }

/* Split section: text one side, full-bleed image the other */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.split .split-text { padding: 90px 64px; background: #E9E7E1; display: flex; flex-direction: column; justify-content: center; }
.split .split-text .prose p { max-width: 560px; }
.split .split-img { position: relative; min-height: 460px; }
.split .split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* About page: modest portrait instead of the full-bleed half */
.split.about-portrait { grid-template-columns: 1fr 344px; background: #E9E7E1; }
.split.about-portrait .split-text { background: transparent; padding: 72px 40px 72px 64px; justify-content: flex-start; }
.split.about-portrait .split-img { min-height: 0; display: block; padding: 82px 64px 72px 0; }
.split.about-portrait .split-img img { position: static; width: 280px; max-width: 100%; height: auto; object-fit: contain; display: block; }
@media (max-width: 860px) {
  .split.about-portrait { grid-template-columns: 1fr; }
  .split.about-portrait .split-img { padding: 0 24px 56px; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .split-text { padding: 64px 24px; }
  .split .split-img { min-height: 320px; }
}

/* Quote band over photo */
.quote-band { position: relative; background-size: cover; background-position: center; padding: 120px 0; }
.quote-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,19,20,0.72) 0%, rgba(16,19,20,0.48) 55%, rgba(16,19,20,0.28) 100%); }
.quote-band .wrap { position: relative; z-index: 1; }
.quote-band .quote { color: #F4F2ED; border-left-color: #F4F2ED; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.quote-band .quote-attr { color: #D7D5D0; }

/* Cards with photo headers */
.card { padding: 0; overflow: hidden; }
.card .card-photo { width: 100%; height: 210px; object-fit: cover; display: block; }
.card .card-body { padding: 30px 28px 34px; display: flex; flex-direction: column; flex: 1; }

/* Photo bands */
.photo-band img {
  width: 100%; height: min(64vh, 580px); object-fit: cover; display: block;
}
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; }
.photo-duo img { width: 100%; height: 440px; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .photo-duo { grid-template-columns: 1fr; }
  .photo-duo img { height: 300px; }
}
.photo-caption {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone); text-align: center; padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

/* Page hero (interior pages) */
.page-hero { padding: 84px 0 60px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 500; line-height: 1.15; max-width: 780px; margin-bottom: 20px;
}
.page-hero p.lead { font-size: 1.1rem; color: var(--stone); max-width: 640px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { margin-bottom: 28px; }
.contact-item .label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-item a { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--accent); }
.contact-item p { font-family: var(--serif); font-size: 1.5rem; }
