/* ============================================================
   JAKOB SCHMIDT & SONS — schmidt-sons.com
   Brand: Schmidt Consulting House (since 1928)
   Type:  Playfair Display (serif) · Lato (sans)
   Color: Navy #0F1E3C  ·  Gold #C4992A  ·  Ivory #FAF7F2
   ============================================================ */

:root {
  --navy:        #0F1E3C;
  --navy-2:      #1C3461;
  --navy-soft:   #254275;
  --ink:         #1A1F2E;
  --ink-mute:    #4A5568;
  --rule:        #D8DFE8;
  --paper:       #FAF7F2;
  --paper-2:     #F5F2EB;
  --ivory:       #FFFFFF;
  --gold:        #C4992A;
  --gold-soft:   #E0C070;
  --gold-pale:   #E8C96A;
  --measure:     720px;
  --wide:        1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold-soft); transition: color .2s, border-color .2s; }
a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Type scale ---------- */
.serif  { font-family: 'Playfair Display', 'Georgia', serif; }
.sans   { font-family: 'Lato', sans-serif; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
}

.lede {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.45;
  color: var(--navy-2);
  max-width: var(--measure);
}

p, ul, ol { max-width: var(--measure); }
ul, ol { padding-left: 1.1rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--measure); margin: 0 auto; padding: 0 32px; }

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--rule); }

.rule-gold {
  display: inline-block;
  width: 56px; height: 2px;
  background: var(--gold);
  margin: 0 0 28px;
}

/* ---------- Header / Navigation — Navy + Cream + Gold ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,30,60,0.97);     /* navy */
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(196,153,42,0.35); /* gold hairline */
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  max-width: var(--wide); margin: 0 auto; padding: 0 32px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  border: 0;
}
.brand-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--paper);            /* cream on navy */
  line-height: 1;
}
.brand-mark sup {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-left: 6px;
}
.brand-sub {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.55);  /* dimmed cream */
  margin-top: 4px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);            /* cream */
  border-bottom: 0;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  transition: color .18s;
}
.nav-links a.active { color: var(--gold); }

/* ---------- Practices dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop > button {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);              /* cream on navy */
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .18s;
}
.nav-drop > button:hover { color: var(--gold); }
.nav-drop > button .caret { color: var(--gold); font-size: 10px; line-height: 1; transform: translateY(1px); }
.nav-drop > button.active { color: var(--gold); }
.nav-drop > button.active::after {
  content: ""; position: absolute; left: 0; right: 18px; bottom: -8px;
  height: 2px; background: var(--gold);
}
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 64px rgba(15,30,60,0.10), 0 2px 6px rgba(15,30,60,0.06);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 60;
}
.nav-drop-menu::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.nav-drop-menu a {
  display: block;
  padding: 9px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 0;
  border-left: 2px solid transparent;
}
.nav-drop-menu a:hover { color: var(--gold); border-left-color: var(--gold); background: var(--paper-2); }
.nav-drop-menu a.active { color: var(--gold); border-left-color: var(--gold); }

@media (max-width: 1100px) { .nav-links { gap: 18px; } .nav-links a, .nav-drop > button { font-size: 11px; letter-spacing: 0.14em; } }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
}
.nav-cta {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy) !important;       /* navy text on gold */
  background: var(--gold);
  padding: 11px 20px;
  border: 1px solid var(--gold) !important;
  transition: all .2s;
}
.nav-cta:hover { background: transparent; color: var(--gold) !important; }

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
.hero h1 .amp { color: var(--gold); font-style: italic; font-weight: 400; padding: 0 4px; }
.hero-tag {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--navy-2);
  max-width: 740px;
  margin: 0 0 48px;
}
.hero-meta {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; flex-wrap: wrap; gap: 22px;
}
.hero-meta span::before { content: "·"; color: var(--gold); margin-right: 22px; }
.hero-meta span:first-child::before { content: ""; margin: 0; }

/* Ghost year mark behind hero */
.year-ghost {
  position: absolute;
  right: -40px; top: 60px;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(12rem, 28vw, 30rem);
  color: var(--paper-2);
  line-height: 0.85;
  letter-spacing: -0.04em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero > .wrap { position: relative; z-index: 1; }

/* ---------- Pillar grid ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: 56px 36px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.pillar:last-child { border-right: 0; }
.pillar-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.pillar h3 {
  font-size: 1.65rem;
  margin-bottom: 14px;
}
.pillar p {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.65;
  max-width: none;
}

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0;
}
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.stat-fig {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--paper);
  line-height: 1;
}
.stat-fig .unit { color: var(--gold); font-size: 0.55em; font-weight: 400; font-style: italic; margin-left: 4px; }
.stat-lbl {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.65);
  margin-top: 12px;
}

/* ---------- Heritage timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.timeline:first-of-type { border-top: 0; }
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--gold);
}
.timeline-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 4px 0 6px;
  color: var(--navy);
}
.timeline-body p { margin: 0; color: var(--ink-mute); font-size: 15px; }

/* ---------- Geography list ---------- */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.geo {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
}
.geo h3 {
  font-size: 1.35rem;
  margin: 0 0 6px;
}
.geo p {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0;
}

/* ---------- Quote block ---------- */
.pull {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 12px 0 12px 28px;
  max-width: 880px;
  line-height: 1.35;
}
.pull-cite {
  display: block;
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper) !important;
  transition: all .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }
.btn-ghost { background: transparent; color: var(--navy) !important; }
.btn-ghost:hover { background: var(--navy); color: var(--paper) !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(250,247,242,0.75);
  padding: 64px 0 32px;
  font-size: 13px;
  line-height: 1.7;
}
.site-footer a { color: var(--gold-soft); border-bottom: 0; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--wide); margin: 0 auto; padding: 0 32px;
}
.footer-grid h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-base {
  max-width: var(--wide);
  margin: 56px auto 0;
  padding: 22px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.45);
}

/* ---------- Compliance band ---------- */
.compliance {
  background: var(--paper-2);
  padding: 28px 0;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.compliance strong { color: var(--navy); }

/* ---------- Forms ---------- */
form label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 18px 0 6px;
}
form input, form textarea, form select {
  width: 100%;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--ivory);
  border: 1px solid var(--rule);
  color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
form button { margin-top: 24px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 64px 0; }
  .hero { padding: 100px 0 80px; }
  .nav { height: 64px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.12em; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: 0; }
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .geo-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .year-ghost { display: none; }
}
@media (max-width: 520px) {
  .nav-cta { padding: 8px 12px; font-size: 10px; }
  .nav-links a { display: none; }
  .nav-links a.nav-cta { display: inline-block; }
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Ornament & visual enrichment — classical, philosophic mood.
   Honours the brand rule: type, ornament, colour, white space.
   No stock photography. All artwork is SVG, gold on paper / navy.
   ============================================================ */

/* SVG sprite container — hidden, referenced by <use href="#..."/> */
.ornament-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Hero photographic backgrounds (optional) ----------
   Hero sections can carry a background image (commissioned plate)
   via the [data-hero-image] attribute. If the image is missing, the
   ornaments + gradient + type still hold the design intact. */
.hero-photo {
  position: relative;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--paper);
  overflow: hidden;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,60,0.45) 0%, rgba(15,30,60,0.88) 100%);
  z-index: 0;
}
.hero-photo > .wrap, .hero-photo > .wrap-narrow { position: relative; z-index: 1; }
.hero-photo h1 { color: var(--paper); }
.hero-photo .hero-tag { color: rgba(250,247,242,0.92); }
.hero-photo .hero-eyebrow { color: var(--gold); }

/* Image cards — gold-rule framed, used in House / Foundation / Vitus galleries */
.image-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.image-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.image-card:hover img { transform: scale(1.02); }
.image-card-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 24px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,30,60,0.85) 100%);
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* House seal — gold geometric mark, used on hero anchors */
.house-seal {
  display: inline-block;
  width: 88px; height: 88px;
  opacity: 0.92;
}
.house-seal-lg { width: 140px; height: 140px; }
.house-seal-sm { width: 56px; height: 56px; }

/* Section dividers — laurel, harmonic, rule */
.divider {
  display: block;
  margin: 56px auto;
  width: 200px;
  height: 24px;
  opacity: 0.85;
}
.divider-tight { margin: 32px auto; }
.divider-wide  { margin: 88px auto; width: 280px; }

/* Drop cap — for long-form doctrine prose */
.dropcap::first-letter {
  float: left;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 4.6em;
  line-height: 0.9;
  color: var(--gold);
  padding: 6px 14px 0 0;
  margin-top: 4px;
}

/* Pull quote ornament (gold open-quote in left margin) */
.pull-ornament { position: relative; padding-left: 56px; }
.pull-ornament::before {
  content: "";
  position: absolute;
  left: 0; top: -8px;
  width: 36px; height: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><text x='20' y='34' text-anchor='middle' font-family='Playfair Display,Georgia,serif' font-weight='900' font-size='56' fill='%23C4992A' opacity='0.55'>%E2%80%9C</text></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Hero hairline-grid texture — gold on paper, very subtle */
.hero, .hero-quiet {
  position: relative;
}
.hero::after, .hero-quiet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196,153,42,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,153,42,0.045) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px, -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0,0,0,0.55), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0,0,0,0.55), transparent 70%);
  z-index: 0;
}
.hero > .wrap, .hero-quiet > .wrap-narrow, .hero-quiet > .wrap { position: relative; z-index: 1; }

/* Heritage band — navy with gold seal centred */
.heritage-band {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  padding: 88px 0;
  position: relative;
}
.heritage-band .seal-row { display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 24px; }
.heritage-band .seal-row .house-seal { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }

/* Compass mark — geographies sections */
.compass-mark { display: inline-block; width: 60px; height: 60px; opacity: 0.85; vertical-align: middle; margin-right: 16px; }

/* 1928 ribbon mark */
.mark-1928 { display: inline-block; width: 120px; height: 48px; }

/* Pull-quote with framing gold ornaments */
.pull-framed {
  position: relative;
  padding: 48px 56px;
  background: var(--paper-2);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  margin: 48px 0;
}
.pull-framed::before, .pull-framed::after {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.5;
  font-size: 72px;
  line-height: 1;
}
.pull-framed::before { content: "\201C"; top: 8px; left: 18px; }
.pull-framed::after  { content: "\201D"; bottom: -22px; right: 18px; }

/* Subtle gold corner brackets — for hero / important blocks */
.gold-brackets {
  position: relative;
  padding: 36px;
}
.gold-brackets::before, .gold-brackets::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
}
.gold-brackets::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.gold-brackets::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Background "wash" for sections that need a hint of ornament */
.wash-paper {
  background:
    radial-gradient(circle at 90% 10%, rgba(196,153,42,0.06), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(15,30,60,0.04),  transparent 50%),
    var(--paper);
}
.wash-navy {
  background:
    radial-gradient(circle at 10% 0%, rgba(196,153,42,0.10), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(196,153,42,0.06), transparent 40%),
    var(--navy);
}

@media (max-width: 720px) {
  .house-seal { width: 64px; height: 64px; }
  .house-seal-lg { width: 96px; height: 96px; }
  .divider { width: 160px; }
  .pull-ornament { padding-left: 40px; }
  .pull-ornament::before { width: 28px; height: 28px; }
  .pull-framed { padding: 32px 28px; }
}
