/* ============================================
   Munro Law PLLC — light, minimal, editorial
   ============================================ */

:root {
  --bg: #f5f5f5;          /* grayish-white page background */
  --surface: #ffffff;
  --ink: #1b1b1b;
  --ink-soft: #555555;
  --ink-faint: #8a8a8a;
  --line: #e3e3e3;
  --accent: #767676;
  --accent-ink: #3d3d3d;
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Roboto", -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border-radius: 8px; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

h1, h2, h3, .serif {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--ink); }

.nav a.active { color: var(--ink); }

.nav a.btn { padding: 10px 20px; color: #ffffff; }
.nav a.btn:hover { color: #ffffff; }

/* transparent header floating over the hero (home) */
.site-header.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
}

.site-header.overlay .wordmark { color: #ffffff; }

.site-header.overlay .nav a { color: rgba(255, 255, 255, 0.85); }
.site-header.overlay .nav a:hover,
.site-header.overlay .nav a.active { color: #ffffff; }

.site-header.overlay .nav a.btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}
.site-header.overlay .nav a.btn:hover { background: #e2e2e2; border-color: #e2e2e2; }

.site-header.overlay .nav-toggle { color: #ffffff; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; width: 100%; text-align: center; }

  /* opened mobile menu is a solid panel — restore dark link color under overlay header */
  .site-header.overlay .nav.open { background: var(--bg); }
  .site-header.overlay .nav.open a { color: var(--ink-soft); }
  .site-header.overlay .nav.open a:hover,
  .site-header.overlay .nav.open a.active { color: var(--ink); }
  .site-header.overlay .nav.open a.btn { background: #1f1f1f; border-color: #1f1f1f; color: #ffffff; }
}

/* ---------- buttons ---------- */

/* Flowbite-style buttons: 14px medium, 10x20 padding, 8px radius */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #d1d1d1;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover { background: #efefef; }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.btn.solid {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #ffffff;
}
.btn.solid:hover { background: #3d3d3d; border-color: #3d3d3d; }

/* on photo backgrounds */
.btn.light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}
.btn.light:hover { background: #e2e2e2; border-color: #e2e2e2; }

.btn.outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.14); }

.text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.15s;
}

.text-link:hover { border-bottom-color: var(--accent); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  background: #22201c url("https://images.unsplash.com/photo-1502175353174-a7a70e73b362?w=2000&q=80") center 35% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 15, 0.5);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 172px;
  padding-bottom: 96px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
}

.hero h1 em {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 300;
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section.tight { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 26px; margin-bottom: 12px; }

/* practice area cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 { font-size: 18px; }

.card p { color: var(--ink-soft); font-size: 15px; flex: 1; }

.card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 6px;
}

.card li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 6px 0 6px 18px;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.card .text-link { align-self: flex-start; }

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
}

.aside-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 720px;
}

/* team strip (home) */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.split h2 { font-size: 26px; margin-bottom: 14px; }
.split p { color: var(--ink-soft); margin-bottom: 28px; }

/* page banner (interior pages) */

.page-banner {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 800px) {
  .page-banner { height: 200px; margin-top: 32px; }
}

/* CTA band */

.cta-band {
  position: relative;
  background: #232622 url("https://images.unsplash.com/photo-1586652495990-ba28dee51af0?w=2000&q=80") center 60% / cover no-repeat;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 80px 24px;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 20, 0.58);
}

.cta-band > * { position: relative; }

.cta-band h2 { font-size: 24px; margin-bottom: 12px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0 auto 32px; }

.cta-band .btn.solid {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.cta-band .btn.solid:hover {
  background: transparent;
  color: #fff;
}

/* ---------- page headers (interior) ---------- */

.page-head {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 { font-size: 30px; margin-bottom: 12px; }

/* ---------- services page ---------- */

.service-block {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  padding: 52px 0;
}

.service-block + .service-block { border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .service-block { grid-template-columns: 1fr; gap: 28px; }
}

.service-block h2 { font-size: 21px; margin-bottom: 10px; }
.service-block .service-sub { color: var(--ink-soft); font-size: 15.5px; }

.service-block ul {
  list-style: none;
  margin: 4px 0 28px;
  columns: 2;
  column-gap: 40px;
}

@media (max-width: 560px) {
  .service-block ul { columns: 1; }
}

.service-block li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  position: relative;
  break-inside: avoid;
}

.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ---------- team page ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 72px 0 96px;
}

@media (max-width: 800px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
}

.person { background: transparent; }

.person .photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #e9e9e9, #d7d7d7);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.person .photo .initials {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 44px;
  color: #ababab;
}

.person h3 { font-size: 18px; }

.person .role {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent-ink);
  margin: 4px 0 12px;
}

.person p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }

.person .links { display: flex; gap: 20px; }

/* ---------- profile pages ---------- */

.profile {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
  padding: 72px 0 96px;
}

@media (max-width: 800px) {
  .profile { grid-template-columns: 1fr; }
  .profile .photo { max-width: 320px; }
}

.profile .photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #e9e9e9, #d7d7d7);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile .photo .initials {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 64px;
  color: #ababab;
}

.profile h2 { font-size: 17px; margin: 32px 0 10px; }
.profile h2:first-of-type { margin-top: 0; }
.profile p { color: var(--ink-soft); margin-bottom: 14px; }

.profile ul { list-style: none; }
.profile li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.placeholder {
  background: #fafafa;
  border: 1px dashed #cfcfcf;
  color: #8a8a8a;
  font-size: 13.5px;
  padding: 10px 14px;
  margin: 4px 0 10px;
  border-radius: 6px;
}

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 72px;
  padding: 72px 0 96px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

form .field { margin-bottom: 22px; }

form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

form input,
form select,
form textarea {
  width: 100%;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fafafa;
  border: 1px solid #d1d1d1;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
}

form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23555555' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

form textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

.contact-info h2 { font-size: 17px; margin-bottom: 8px; }

.info-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:first-child { padding-top: 0; }

.info-item .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.info-item a { color: var(--accent-ink); }
.info-item a:hover { text-decoration: underline; }

.confidential {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer .wordmark { font-size: 16px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  font-size: 14px;
}

.footer-contact a { color: var(--ink-soft); }
.footer-contact a:hover { text-decoration: underline; }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }

.footer-nav a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-nav a:hover { color: var(--ink); }

.footer-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-meta a { color: var(--ink-soft); }
.footer-meta a:hover { text-decoration: underline; }
