/* Marcus & Boxerman — site styles. Replaces Bootstrap 2. */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Avenir-Book';
  src: url('fonts/avenir.woff') format('woff'),
       url('fonts/avenir.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Avenir-Black';
  src: url('fonts/avenirblack.woff') format('woff'),
       url('fonts/avenirblack.ttf') format('truetype');
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --orange: #DE5029;
  --orange-light: #e86d59;
  --ink: #363636;
  --body: #545454;
  --container: 1060px;
  --gutter: 20px;
  --nav-h: 65px;
  --sans: 'Avenir-Book', "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans-bold: 'Avenir-Black', Helvetica, Arial, sans-serif;
}
@media (min-width: 1200px) { :root { --container: 1170px; } }
@media (min-width: 768px) and (max-width: 979px) { :root { --container: 860px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding-top: var(--nav-h);
  font: 16px/1.5 var(--sans);
  color: var(--body);
  background: #fdfcfb;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > .container { flex: 1; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--orange); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
p { margin: 0 0 10px; }
ul, ol { padding: 0; margin: 0 0 10px 25px; }
address { font-style: normal; text-align: center; }
address p { text-align: center !important; }

h1, h2, h3, h4, h5, h6 {
  margin: 10px 0;
  font-weight: normal;
  line-height: 1.2;
  color: inherit;
}
h1 { font-size: 38.5px; }
h2 { font-size: 31.5px; }
h3 { font-size: 24.5px; }
h4 { font-size: 17.5px; }
h5 { font-size: 14px; }
h6 { font-size: 11.9px; }

.thick { font-family: var(--sans-bold); }
.orange { color: var(--orange); }
.black { color: var(--ink); }
.text-center { text-align: center; }
.img-center { display: block; margin: 0 auto; }
.lead { margin-bottom: 20px; font-size: 21px; line-height: 1.4; font-weight: 200; }

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px var(--gutter) 8px;
}
.navbar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.brand {
  font-size: 30px;
  line-height: 1.1;
  color: var(--orange);
  text-shadow: 0 1px 0 #fff;
}
.brand .black { color: var(--ink); }
.brand:hover, .brand:focus { color: var(--orange); text-decoration: none; }
.sublogo { font-size: 15px; color: var(--body); text-align: center; margin-top: 2px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 10px 0;
  color: #555;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.nav > li > a::after {
  display: block;
  content: attr(data-text);
  font-family: var(--sans-bold);
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.nav > li > a:hover, .nav > li > a:focus { color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--orange); font-family: var(--sans-bold); }
.nav a.is-active:hover, .nav a.is-active:focus { color: var(--orange); }

.caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid #555;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.has-dropdown:hover > a + .caret,
.nav a.is-active + .caret { border-top-color: var(--orange); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 4px;
  box-shadow: 0 5px 10px rgba(0,0,0,.15);
  display: none;
  z-index: 1001;
}
.has-dropdown.is-open > .dropdown-menu,
.has-dropdown:hover > .dropdown-menu { display: block; }
.dropdown-menu > li > a {
  display: block;
  padding: 6px 16px;
  color: #333;
  white-space: nowrap;
  font-size: 14px;
}
.dropdown-menu > li > a:hover { background: #f5f5f5; color: var(--orange); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 36px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: #888; border-radius: 1px; }

/* ---------- panel ---------- */
.panel {
  margin: 40px 0 20px;
  background: #fdfcfb;
}

/* ---------- page sections ---------- */
.jumbotron { padding: 20px 20px 16px; text-align: center; }
.jumbotron h1 { font-size: 38.5px; margin: 0 0 24px; }
.title-break { display: none; }
.jumbotron h2 { font-size: 25.5px; line-height: 1.3; margin: 6px 0; }
.jumbotron-sub { font-size: 20px; color: var(--body); margin: 8px 0 0; }

.contentbody { padding: 60px 20px 50px; }
.contentbody h4 { font-size: 20px; }
.contentbody img { margin-bottom: 19px; width: 335px; height: 271px; object-fit: contain; }
.card-cta { margin-top: 10px; }
.card-cta a { font-size: 16px; }
.cta-large { margin-top: 30px; }
.cta-large a { font-size: 20px; }
.contentattorneybody { padding: 20px 20px 60px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}
.grid-3 > * { min-width: 0; }
.contentbody .grid-3 p { text-align: justify; hyphens: auto; }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.practice-group-heading {
  font-family: var(--sans-bold);
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  margin: 10px 0 40px;
}
.practice-grid {
  display: grid;
  row-gap: 59px;
  column-gap: 30px;
  margin-bottom: 60px;
}
.practice-grid-2 { grid-template-columns: repeat(2, 200px); justify-content: center; }
.practice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.practice-grid-4 { grid-template-columns: repeat(4, 1fr); }
.practice-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #666;
  font-family: var(--sans);
  font-size: 17.5px;
  text-transform: uppercase;
}
.practice-tile svg { width: 68px; height: 68px; margin-bottom: 14px; }
.practice-tile span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ccc; font-family: var(--sans-bold); }
.practice-tile:hover { color: var(--orange); text-decoration: none; }
.practice-tile:hover span { text-decoration-color: var(--orange); }
.practice-tile:hover svg { color: var(--orange); }

.attorney-tile { display: block; color: var(--body); }
.attorney-tile img { width: 336px; height: 336px; object-fit: cover; object-position: center top; }
.attorney-tile h4 { margin-top: 20px; color: var(--orange); font-family: var(--sans-bold); }
.attorney-tile h4 u { text-underline-offset: 3px; text-decoration-color: var(--orange-light); }
.attorney-tile:hover { color: var(--orange); text-decoration: none; }
.attorney-tile:hover h4 u { text-decoration-color: var(--orange); }

.pull-quote {
  text-align: center;
  padding: 40px 180px 60px;
}.pull-quote blockquote {
  font-family: var(--sans-bold);
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.pull-quote cite {
  font-style: italic;
  font-size: 14px;
  color: var(--body);
}
.pull-quote cite a { color: var(--body); }
.pull-quote cite a:hover { color: var(--orange); }
.pull-quote-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); margin: 0 0 12px; }

.contact-intro { max-width: 640px; margin: 0 auto 40px; }

.bio-dl { margin: 0; }
.bio-dl dt { font-family: var(--sans-bold); color: var(--ink); margin-top: 18px; margin-bottom: 4px; }
.bio-dl dd { margin: 0 0 6px; }
.bio-dl dd ul { margin-left: 20px; }
.bio-contact { color: var(--body); font-size: 15px; }
.bio-single { max-width: 640px; margin: 0 auto; }

/* practice area page layout */
.practice-intro { max-width: 640px; margin: 0 auto; }
.practice-section-heading {
  text-align: center;
  margin: 60px 0 30px;
}
.practice-section-heading svg {
  width: 80px;
  height: 80px;
  color: #666;
  display: block;
  margin: 0 auto 18px;
}
.practice-section-heading .lead {
  margin: 0;
  font-family: var(--sans-bold);
}
.practice-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.practice-lists ul { margin-left: 18px; }
@media (max-width: 767px) {
  .practice-lists { grid-template-columns: 1fr; gap: 20px; }
}

/* testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.testimonial {
  margin: 0;
  padding: 0;
  border: 0;
}
.testimonial-quote {
  font-family: var(--sans-bold);
  color: var(--orange);
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.testimonial-attribution { font-style: italic; }
@media (max-width: 979px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .testimonial-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
.btn-large { padding: 11px 19px; font-size: 17.5px; border-radius: 6px; }
.btn-warning {
  color: #fff;
  background: linear-gradient(to bottom, var(--orange-light), var(--orange));
  border-color: var(--orange);
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}
.btn-warning:hover, .btn-warning:focus { color: #fff; background: var(--orange); text-decoration: none; }

/* ---------- footer ---------- */
.footer { color: var(--ink); padding: 34px 0 26px; border-top: 1px solid #e0e0e0; margin-top: auto; background: #fff; }
.footer p { margin: 0; }
.footer .brand { font-size: 22px; }

.footer-row,
.footer-row-bottom {
  display: grid;
  align-items: center;
  gap: 20px;
}
.footer-row { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 5px; }
.footer-row > :nth-child(2) { text-align: center; }
.footer-row > :nth-child(3) { text-align: right; }

.footer-row-bottom { grid-template-columns: 1fr auto 1fr; margin-top: 8px; }
.footer-row-bottom > :first-child { grid-column: 2; text-align: center; }
.footer-row-bottom > :last-child  { grid-column: 3; justify-self: end; }

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
}
.footer-social a { display: inline-flex; color: var(--orange); }
.footer-social a:hover { opacity: 0.75; }
.footer-social svg { display: block; width: 18px; height: 18px; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  body { padding-top: 60px; }

  .navbar .container { padding: 8px var(--gutter); flex-wrap: wrap; column-gap: 12px; align-items: center; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    order: 3;
  }
  .nav.is-open { display: flex; }
  .nav > li > a { padding: 10px 4px; border-top: 1px solid #f0f0f0; font-size: 14px; }
  .dropdown-menu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding-left: 14px;
  }
  .has-dropdown.is-open > .dropdown-menu { display: block; }
  .has-dropdown:hover > .dropdown-menu { display: none; }
  .has-dropdown.is-open:hover > .dropdown-menu { display: block; }

  .brand { font-size: 24px; }
  .footer .brand { font-size: 20px; }
  .sublogo { display: none; }

  .jumbotron { padding: 12px 14px; }
  .jumbotron h1 { font-size: 30px; }
  .jumbotron h2 { font-size: 17px; }

  .contentbody { padding: 36px 20px 60px; }
  .contentattorneybody { padding: 16px 20px 40px; }
  .contentbody img { width: 260px; height: 208px; }

  .grid-3 { grid-template-columns: 1fr; gap: 48px; }
  .panel { margin-top: 20px; }
  .pull-quote { padding: 30px 20px 50px; }
  .bio-grid { grid-template-columns: 1fr; gap: 24px; }
  .practice-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-row,
  .footer-row-bottom {
    grid-template-columns: 1fr;
    gap: 0;
    line-height: 1.3;
    margin-bottom: 24px;
    text-align: left;
  }
  .footer-row > :nth-child(2),
  .footer-row > :nth-child(3),
  .footer-row-bottom > :first-child,
  .footer-row-bottom > :last-child {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
  .footer-social { justify-content: flex-start; }
}

/* tablet */
@media (max-width: 979px) and (min-width: 768px) {
  .contentbody img { width: 240px; height: 192px; }
  .grid-3 { gap: 44px; }
  .jumbotron h1 { font-size: 36px; }
  .jumbotron h2 { font-size: 23px; }
}

@media (max-width: 979px) {
  .title-break { display: block; }
  .jumbotron h2 { font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    order: 3;
  }
  .nav.is-open { display: flex; }
  .nav > li > a { padding: 10px 4px; border-top: 1px solid #f0f0f0; font-size: 14px; }
  .dropdown-menu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding-left: 14px;
  }
  .has-dropdown.is-open > .dropdown-menu { display: block; }
  .has-dropdown:hover > .dropdown-menu { display: none; }
  .has-dropdown.is-open:hover > .dropdown-menu { display: block; }
  .navbar .container { padding: 8px var(--gutter); flex-wrap: wrap; gap: 0 12px; }
  .navbar-row { flex: 0 0 auto; }
  .nav { flex-basis: 100%; }
}
