/* Mack Browder & Associates — site.css
   Mobile-first. No framework. Single header (style A, letterhead wordmark). */

:root {
  --color-navy: #0f2a44;
  --color-navy-deep: #0a1c2e;
  --color-ink: #1a2330;
  --color-muted: #5a6675;
  --color-line: #d5dde6;
  --color-paper: #f7f5f1;
  --color-white: #ffffff;
  --color-accent: #9a7b2f;       /* understated gold */
  --color-accent-soft: #e8dfc8;
  --color-brand-blue: #3464a4;   /* sampled from letterhead "mack" */
  --color-brand-blue-light: #9db8e0; /* same hue, for navy footer */
  --color-brand-ink: #444444;    /* letterhead "browder" charcoal */
  --font-wordmark: "EB Garamond", Garamond, "Times New Roman", serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 68rem;
  --gutter: 1.25rem;
  --radius: 0.35rem;
  --shadow: 0 1px 2px rgba(15, 42, 68, 0.06), 0 8px 24px rgba(15, 42, 68, 0.06);
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--color-accent); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Wordmark (letterhead lockup) ---------- */
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.wordmark:hover { color: inherit; }
.wordmark-lockup {
  display: inline-grid;
  font-family: var(--font-wordmark);
  font-weight: 400;
  line-height: 0.82;
  text-transform: lowercase;
  letter-spacing: 0;
}
.wordmark-mack {
  position: relative;
  color: var(--color-brand-blue);
  font-size: 2.05rem;
  padding-left: 0.7em;
}
/* short rule before "mack", as on the letterhead */
.wordmark-mack::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12em;
  width: 0.5em;
  border-bottom: 1px solid var(--color-brand-ink);
}
.wordmark-browder {
  color: var(--color-brand-ink);
  font-size: 1.6rem;
  padding-left: 1.65em;
}
.wordmark-and {
  position: relative;
  font-family: var(--font-wordmark);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-brand-ink);
  padding-bottom: 0.05rem;
  white-space: nowrap;
}
/* thin blue rule after "browder", as on the letterhead */
.wordmark-and::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  margin-right: 0.45rem;
  vertical-align: 0.3em;
  border-bottom: 1px solid var(--color-brand-blue);
}
@media (max-width: 380px) {
  .wordmark-mack { font-size: 1.8rem; }
  .wordmark-browder { font-size: 1.4rem; }
  .wordmark-and::before { width: 0.9rem; }
}

/* ---------- Header shell ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: var(--header-h);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-navy);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  width: 100%;
  flex-basis: 100%;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  padding: 0.65rem 0.25rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}
.site-nav a[aria-current="page"] {
  color: var(--color-navy);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--color-accent);
  padding-left: 0.65rem;
}
.site-nav a:hover { color: var(--color-accent); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    width: auto;
    flex-basis: auto;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.35rem;
    padding: 0;
  }
  .site-nav a {
    border: 0;
    padding: 0.35rem 0;
    font-size: 0.98rem;
  }
  .site-nav a[aria-current="page"] {
    box-shadow: none;
    padding-left: 0;
    border-bottom: 2px solid var(--color-accent);
  }
}

/* ---------- Main / layout ---------- */
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3.5rem;
}

.page-intro {
  margin: 0 0 1.75rem;
  max-width: 40rem;
}
.page-intro h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}
.page-intro p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 38rem;
}

/* ---------- Home ---------- */
.hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
}
.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--color-navy);
  line-height: 1.2;
}
.hero-copy .hero-sub {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-navy-deep); color: var(--color-white); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-navy);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-paper);
}
.hero-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

/* FAQ videos */
.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-navy);
}
.video-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
.video-card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-card h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-navy);
  order: 2;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  order: 1;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(145deg, #1a334d, #0f2a44);
}
.video-placeholder strong {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  font-weight: 600;
}
.video-placeholder span {
  font-size: 0.95rem;
  max-width: 14rem;
  line-height: 1.35;
}

/* ---------- Team ---------- */
.team-list {
  display: grid;
  gap: 2rem;
}
.team-member {
  padding: 1.5rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius) + 2px);
}
.team-member::after {
  content: "";
  display: table;
  clear: both;
}
.team-member-photo {
  float: right;
  width: 6.5rem;
  margin: 0 0 0.65rem 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8eef4;
  border: 1px solid var(--color-line);
  shape-outside: margin-box;
}
.team-member-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-member h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-navy);
}
.team-role {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.98rem;
}
.team-contact {
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.98rem;
}
.team-contact a { font-weight: 600; text-decoration: none; }
.team-contact a:hover { text-decoration: underline; }
.team-intro {
  margin: 0 0 0.65rem;
  color: var(--color-ink);
}
.team-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-ink);
}
.team-bullets li { margin: 0.3rem 0; }
.team-video {
  clear: both;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}
.team-video h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-navy);
}
.team-video .video-frame {
  border-radius: var(--radius);
  overflow: hidden;
}
.team-video-caption {
  margin: 0.6rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

@media (max-width: 419px) {
  /* Very narrow: photo on its own row above text */
  .team-member-photo {
    float: none;
    width: 7.5rem;
    margin: 0 0 0.85rem;
  }
}

@media (min-width: 640px) {
  .team-member-photo {
    width: 9.5rem;
    margin: 0 0 0.85rem 1.5rem;
  }
}

/* ---------- Services ---------- */
.service-columns {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .service-columns { grid-template-columns: 1fr 1fr; }
}
.service-card {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.service-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-navy);
}
.service-card ul {
  margin: 0;
  padding-left: 1.15rem;
}
.service-card li { margin: 0.4rem 0; }

/* ---------- Transactions ---------- */
.tx-list {
  columns: 1;
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .tx-list { columns: 2; } }
@media (min-width: 960px) { .tx-list { columns: 3; } }
.tx-list li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
}
.note {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ---------- Testimonials ---------- */
.testimonial-list {
  display: grid;
  gap: 1.25rem;
}
blockquote.testimonial {
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--color-paper);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote.testimonial p {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
}
blockquote.testimonial footer {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  font-style: normal;
}
blockquote.testimonial cite {
  font-style: normal;
  font-weight: 400;
  color: var(--color-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
}
.contact-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-navy);
}
.contact-card dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.contact-card dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
}
.contact-card dd { margin: 0.15rem 0 0; }
.contact-card a {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card address { font-style: normal; font-size: 1.05rem; line-height: 1.5; }
.contact-card .contact-map { margin: 0.6rem 0 0; }
.contact-card .contact-map a { font-size: 0.95rem; }
@media (min-width: 640px) and (max-width: 959px) {
  .contact-card-office { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-address { line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem var(--gutter) 1.5rem;
  margin-top: 1rem;
}
.site-footer a { color: var(--color-accent-soft); text-decoration: none; }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.footer-wordmark { margin: 0 0 0.75rem; }
.site-footer .wordmark-mack { color: var(--color-brand-blue-light); font-size: 1.8rem; }
.site-footer .wordmark-mack::before { border-bottom-color: rgba(255,255,255,0.6); }
.site-footer .wordmark-browder { color: #f7f5f1; font-size: 1.4rem; }
.site-footer .wordmark-and { color: rgba(255,255,255,0.75); }
.site-footer .wordmark-and::before { border-bottom-color: var(--color-brand-blue-light); }
.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  max-width: 22rem;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-contact p { margin: 0 0 0.4rem; font-size: 0.95rem; }
.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom p { margin: 0 0 0.35rem; }
.footer-note { font-size: 0.8rem; }

/* ---------- Contact form ---------- */
.contact-form-section {
  margin-top: 2.5rem;
  max-width: 36rem;
}
.contact-form {
  display: grid;
  gap: 1.1rem;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}
.form-field .req,
.form-field .opt {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-ink);
  background: var(--color-white);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-navy);
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 0;
}
.form-actions { margin-top: 0.25rem; }
.form-actions button {
  cursor: pointer;
  border: 0;
  font: inherit;
}

/* Honeypot off-screen */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.form-alert p { margin: 0 0 0.5rem; }
.form-alert p:last-child { margin-bottom: 0; }
.form-alert ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.form-alert-success {
  background: #e8f5ec;
  border-color: #b7dcc2;
  color: #1e4d2b;
}
.form-alert-error {
  background: #fceeee;
  border-color: #e5b4b4;
  color: #6b1d1d;
}

