/* Ziegel Advisors — refreshed site
   Original burgundy (#521329) and Poppins headings, with Source Serif 4 for reading text.
   One type scale (1.25 ratio on a 17px base) and one 8px-based spacing scale throughout. */
:root {
  /* colour */
  --burgundy: #521329;
  --burgundy-dk: #3c0d1d;
  --text: #24201f;
  --muted: #5e5856;
  --card: #f6f4f4;
  --header: #f8f7f7;
  --line: #e4dfe0;
  --black: #1a1617;
  --white: #ffffff;

  /* type */
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --t-sm: 0.875rem;     /* 14 */
  --t-base: 1.0625rem;  /* 17 */
  --t-md: 1.25rem;      /* 20 */
  --t-lg: 1.5rem;       /* 24 */
  --t-xl: 1.875rem;     /* 30 */
  --t-2xl: clamp(2.125rem, 1.5rem + 2.4vw, 3rem); /* 34–48 */

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(var(--s8), 8vw, var(--s9));
  --gap: var(--s6);
  --measure: 64ch;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 var(--t-base)/1.7 var(--serif);
  font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--burgundy-dk); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--s4); top: var(--s3); z-index: 50; background: var(--white); padding: var(--s2) var(--s3); }

h1, h2, h3 { font-family: var(--sans); font-weight: 600; color: var(--burgundy); margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--t-2xl); line-height: 1.12; }
h2 { font-size: var(--t-xl); line-height: 1.2; margin-bottom: var(--s5); }
h3 { font-size: var(--t-lg); line-height: 1.25; margin-bottom: var(--s4); }
p { margin: 0 0 var(--s4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
/* Desktop: phone and email sit in a thin bar above the main menu, so the menu
   row carries only the logo, the page links and the E-Mail Now button. */
.topbar { display: none; background: var(--burgundy-dk); font: 400 0.8125rem/1 var(--sans); }
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: var(--s6); min-height: 36px; }
.topbar a { display: inline-flex; align-items: center; gap: var(--s2); color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar a:focus-visible { outline-color: var(--white); }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
@media (min-width: 1081px) { .topbar { display: block; } }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 88px; }
.brand img { width: 200px; }
.nav { font: 500 0.9375rem var(--sans); }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s2); }
.nav li { position: relative; }
.nav a { color: var(--black); text-decoration: none; display: block; padding: var(--s3); white-space: nowrap; }
.nav a:hover { color: var(--burgundy); }
.nav > ul > li > a[aria-current="page"] { color: var(--burgundy); box-shadow: inset 0 -2px 0 var(--burgundy); }
.nav .has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: var(--s2);
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.nav .sub {
  list-style: none; margin: 0; padding: var(--s2) 0; position: absolute; left: 0; top: 100%;
  min-width: 240px; background: var(--white); border-top: 3px solid var(--burgundy);
  box-shadow: 0 12px 32px rgba(58, 14, 30, 0.12);
  visibility: hidden; opacity: 0; transition: opacity 120ms ease;
}
.nav .sub.cols { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); min-width: 500px; left: -140px; }
.nav .sub a { padding: var(--s2) var(--s5); font: 400 var(--t-sm)/1.45 var(--sans); }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { visibility: visible; opacity: 1; }
.nav .cta a { margin-left: var(--s3); padding: var(--s3) var(--s5); background: var(--burgundy); color: var(--white); border-radius: var(--radius); }
.nav .cta a:hover { background: var(--burgundy-dk); color: var(--white); }
.menu-toggle { display: none; font: 600 0.9375rem var(--sans); color: var(--burgundy); background: none; border: 1.5px solid var(--burgundy); border-radius: var(--radius); padding: var(--s2) var(--s4); cursor: pointer; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .brand img { width: clamp(164px, 52vw, 200px); }
  .site-header .wrap { min-height: 84px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); max-height: calc(100vh - 84px); overflow-y: auto; padding: var(--s2) var(--gutter) var(--s5); }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: var(--s4) 0; }
  .nav > ul > li > a[aria-current="page"] { box-shadow: none; }
  .nav .has-sub > a::after { display: none; }
  .nav .sub, .nav .sub.cols { position: static; visibility: visible; opacity: 1; box-shadow: none; border: 0; min-width: 0; display: block; padding: 0 0 var(--s3) var(--s4); }
  .nav .sub a { padding: var(--s2) 0; color: var(--muted); }
  .nav .cta { border-bottom: 0; }
  .nav .cta a { margin: var(--s4) 0 0; text-align: center; padding: var(--s4); }
}

/* ---------- Shared ---------- */
main > section { padding-block: var(--section); }
main > section.pt-0 { padding-top: 0; }
.band-top { background: var(--card); border-top: 1px solid var(--line); }
.page-title { text-align: center; }
.page-title + * { margin-top: var(--s7); }
@media (max-width: 600px) {
  /* Phone headings: page titles align with the text below them, and section
     headings stay on one line (e.g. "About Ziegel Advisors Inc.") down to 320px. */
  h1 { font-size: 1.75rem; line-height: 1.15; }
  h2 { font-size: clamp(1.25rem, calc((100vw - 40px) / 13), 1.5rem); }
  .page-title { text-align: left; }
  .page-title + * { margin-top: var(--s6); }
  .lead { font-size: 1.125rem; }
}
.btn {
  display: inline-block; font: 500 0.9375rem/1 var(--sans); text-decoration: none;
  color: var(--white); background: var(--burgundy); padding: var(--s4) var(--s5); border-radius: var(--radius);
  transition: background-color 120ms ease;
}
.btn:hover { background: var(--burgundy-dk); color: var(--white); }
.media-btn { margin: var(--s5) 0 var(--s6); }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--card); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s4); border: 1px dashed #c9b9be; border-radius: var(--radius); background: var(--card); color: var(--muted); font: 500 var(--t-sm) var(--sans); }

/* ---------- Home ---------- */
/* Hero: a burgundy panel set against the skyline. On wide screens the panel's
   text lines up with the page's content edge; the photo runs to the window edge. */
main > section.hero { padding-block: 0; display: grid; grid-template-columns: 1fr; background: var(--burgundy); }
.hero-photo { order: -1; aspect-ratio: 4 / 3; max-height: 62svh; overflow: hidden; background: #0d1d4a; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 31% 0%; }
.hero-panel { color: var(--white); padding: var(--s7) var(--gutter) var(--s8); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-panel h1 { color: var(--white); font-size: clamp(2.125rem, 1.3rem + 2.6vw, 3.375rem); line-height: 1.06; letter-spacing: -0.022em; max-width: 14ch; }
.hero-points { list-style: none; margin: var(--s7) 0 0; padding: 0; max-width: 42ch; font: 400 1.0625rem/1.5 var(--serif); color: rgba(255, 255, 255, 0.86); }
.hero-points li { padding-block: var(--s3); border-top: 1px solid rgba(255, 255, 255, 0.24); }
.hero-points li:last-child { padding-bottom: 0; }
@media (min-width: 960px) {
  main > section.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(560px, calc(100svh - 88px), 760px); }
  .hero-photo { order: 0; aspect-ratio: auto; max-height: none; }
  .hero-panel { padding: var(--s8) var(--s7) var(--s8) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
}
@media (max-width: 600px) { .hero-panel h1 { font-size: 2.125rem; } }

/* Track record: three figures in a row, read like a line of a ledger. */
main > section.record { padding-bottom: var(--s8); }
.record-title { font-size: var(--t-xl); margin-bottom: var(--s6); }
.record-title a { color: var(--burgundy); text-decoration: none; }
.record-title a:hover { text-decoration: underline; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--burgundy); }
.stat-sep { height: 1px; background: var(--line); }
.stat-body { display: block; color: var(--text); text-decoration: none; }
.stat-num { display: block; font: 600 clamp(3rem, 2rem + 3vw, 4.5rem)/1 var(--sans); letter-spacing: -0.03em; color: var(--burgundy); font-variant-numeric: lining-nums; }
.stat-text { display: block; margin-top: var(--s4); font: 400 1rem/1.55 var(--serif); max-width: 26ch; }
.stat .note { color: var(--muted); font-family: var(--sans); font-size: var(--t-sm); white-space: nowrap; }
/* The two figures that open another page read as links: underlined caption,
   burgundy "(Click Here)", and on phones an arrow at the end of the row. */
a.stat-body .stat-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a.stat-body .note { color: var(--burgundy); font-weight: 500; }
a.stat-body:hover .stat-label { color: var(--burgundy); }
.stat-go { display: none; }

/* Wide screens: the three figures and the two dividers are spread with equal
   space between each, so the gaps read the same whatever the figure's width. */
@media (min-width: 900px) {
  .stats { display: flex; justify-content: space-between; }
  .stat { padding-top: var(--s6); }
  .stat-sep { width: 1px; height: auto; align-self: stretch; }
}
/* Phones and tablets: each figure is one compact row, figure on the left, caption on the right. */
@media (max-width: 899px) {
  .stat-body { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 20px; align-items: center; column-gap: var(--s4); padding-block: var(--s4); }
  .stat-num { font-size: 2rem; letter-spacing: -0.025em; }
  .stat-text { margin-top: 0; font-size: 0.9375rem; line-height: 1.4; max-width: none; }
  .stat .note { display: none; }
  div.stat-body .note { display: inline; }
  .stat-go { display: block; width: 20px; height: 20px; color: var(--burgundy); }
}
@media (max-width: 379px) {
  .stat-body { grid-template-columns: 5rem minmax(0, 1fr) 16px; column-gap: var(--s3); }
  .stat-num { font-size: 1.5rem; }
  .stat-text { font-size: 0.875rem; }
  .stat-go { width: 16px; height: 16px; }
}

/* Tiles: four doors into the rest of the site. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }
.tile { display: block; text-decoration: none; color: inherit; }
.tile-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media.tile-logo { display: flex; align-items: center; justify-content: center; padding: var(--s4); }
.tile-seal { display: block; height: 46%; aspect-ratio: 713 / 700; overflow: hidden; }
.tile-media.tile-logo .tile-seal img { width: auto; height: 100%; max-width: none; object-fit: fill; }
.tile h2 { font-size: var(--t-md); line-height: 1.3; margin: var(--s4) 0 0; }
.tile:hover h2 { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr; gap: var(--s7); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; } }
.lead { font: 600 var(--t-md)/1.4 var(--sans); color: var(--text); margin-bottom: var(--s5); }
.services { list-style: none; margin: var(--s5) 0 var(--s6); padding: 0; max-width: var(--measure); font: 400 1rem/1.5 var(--sans); }
.services li { position: relative; padding: var(--s3) 0 var(--s3) var(--s6); border-bottom: 1px solid var(--line); }
.services li:first-child { border-top: 1px solid var(--line); }
.services li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 4px solid var(--burgundy); background: var(--white); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.gallery .photo { aspect-ratio: 16 / 10; }
.gallery .wide, .gallery .tall { grid-column: 1 / -1; }
.gallery .tall { aspect-ratio: auto; }
.gallery .seal { background: transparent; display: flex; align-items: center; justify-content: center; }
.gallery .seal .seal-crop { display: block; height: 72%; aspect-ratio: 713 / 700; overflow: hidden; }
.gallery .seal .seal-crop img { height: 100%; width: auto; max-width: none; object-fit: fill; }
@media (min-width: 900px) { .sticky { position: sticky; top: 120px; } }
.portrait { width: min(100%, 300px); }
@media (max-width: 899px) {
  /* Phones/tablets: a smaller portrait so "About Jamie Ziegel" is on screen
     when you arrive at the section from the menu. */
  #jamiee.band-top .two-col { gap: var(--s5); }
  .portrait { width: min(45%, 180px); }
  html { scroll-padding-top: 88px; }
}
.portrait .photo { aspect-ratio: 199 / 327; }

/* ---------- Past transactions ---------- */
.deal-group + .deal-group { margin-top: var(--s8); }
.deal-group h2 { font-size: var(--t-lg); padding-bottom: var(--s4); margin-bottom: var(--s5); border-bottom: 2px solid var(--burgundy); }
.deals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s6) var(--s5); }
@media (min-width: 560px) { .deals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .deals { grid-template-columns: repeat(4, 1fr); } }
.deal .photo, .deal .ph { aspect-ratio: 15 / 8; }
.deal-name { margin: var(--s3) 0 var(--s1); font: 500 0.9375rem/1.4 var(--sans); color: var(--text); }
.deal-value { margin: 0; font: 600 1rem/1.4 var(--sans); color: var(--burgundy); font-variant-numeric: lining-nums; }
.deal-value.undisclosed { font-weight: 400; color: var(--muted); }

/* ---------- Charity ---------- */
/* One layout for every section: photo frame left, text right, same columns throughout.
   Headings and body text inherit the About page's sizes. */
.feature { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: start; }
.feature + .feature { margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .feature { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
@media (max-width: 899px) { .feature + .feature { margin-top: var(--s7); padding-top: var(--s7); } }
.feature-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.fit img { object-fit: contain; }
.feature-text .media-btn { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 3px solid var(--burgundy); font: 400 0.9375rem/1.5 var(--sans); color: var(--text); }
.site-footer a { color: var(--text); text-decoration: none; transition: color 120ms ease; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--burgundy); }
.foot-main { display: grid; grid-template-columns: 1fr; gap: var(--s6); padding-block: var(--s7) var(--s6); }
@media (min-width: 640px) { .foot-main { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s6); padding-block: var(--s8) var(--s7); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .foot-main { grid-template-columns: 1.4fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-brand img { width: 220px; }
.foot-brand p { margin-top: var(--s5); max-width: 30ch; font: 400 1rem/1.6 var(--serif); color: var(--muted); }
.site-footer .foot-label { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s5); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.foot-col nav a, .foot-col li > a { font-weight: 500; }
.foot-contact a { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 400; overflow-wrap: anywhere; }
.foot-contact svg { width: 16px; height: 16px; fill: var(--burgundy); flex: none; }
.site-footer .foot-btn { margin-top: var(--s5); color: var(--white); }
.site-footer .foot-btn:hover { color: var(--white); }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); border-top: 1px solid var(--line); padding-block: var(--s5); font-size: var(--t-sm); color: var(--muted); }
.foot-bar p { margin: 0; max-width: none; }
.site-footer .foot-bar a { color: var(--muted); }
.site-footer .foot-bar a:hover { color: var(--burgundy); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
