:root {
  --ink: #222;
  --charcoal: #222;
  --muted: #728086;
  --paper: #f6f1e8;
  --porcelain: #F9F9F9;
  --line: #e4dbcd;
  --bronze: #CC6785;
  --sage: #dce7df;
  --mist: #edf4f2;
  --blue-black: #98022F;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.title-bar,
.top-bar {
  background: #E8EEE9;
  color: var(--ink);
}

.title-bar {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(36, 49, 58, 0.12);
}

@media screen and (min-width: 40em) {
  .title-bar {
    display: none;
  }
}

.top-bar {
  min-height: 82px;
  padding: 0 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(36, 49, 58, 0.08);
  border-bottom: 1px solid rgba(36, 49, 58, 0.1);
}

.top-bar ul {
  background: transparent;
}

/* Submenu Containers */
.dropdown.menu .submenu,
.dropdown.menu .is-dropdown-submenu {
    min-width: 260px;
    background: #FFFDF8;
    border: 1px solid rgba(36,49,58,.12);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    border-radius: 0;
    text-align: left;
}

/* Submenu Items */
.dropdown.menu .submenu li,
.dropdown.menu .is-dropdown-submenu li {
    display: block;
    width: 100%;
}

/* Submenu Links */
.dropdown.menu .submenu a,
.dropdown.menu .is-dropdown-submenu a {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    text-align: left;
    color: #99012E;
    background: #FFFDF8;
    transition: all .25s ease;
}

/* Hover State */
.dropdown.menu .submenu a:hover,
.dropdown.menu .is-dropdown-submenu a:hover,
.dropdown.menu .submenu .is-active > a,
.dropdown.menu .is-dropdown-submenu .is-active > a {
    background: #99022F;
    color: #ffffff;
}

/* Third-Level Positioning */
.dropdown.menu .is-dropdown-submenu .is-dropdown-submenu {
    top: 0;
    left: 100%;
    margin-left: 0;
    background: #FFFDF8;
}

/* Parent Menu Arrows */
.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
    border-color: #99022F transparent transparent;
}

.dropdown.menu .is-dropdown-submenu-parent > a::after {
    border-color: transparent transparent transparent #99022F;
}

/* Arrow Color on Hover */
.dropdown.menu .is-dropdown-submenu-parent:hover > a::after {
    border-left-color: #ffffff;
}

.dropdown.menu > li.is-dropdown-submenu-parent:hover > a::after {
    border-top-color: #ffffff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(500px, 70vw);
  height: 85px;
  object-fit: contain;
    padding:5px 0px;
}

.mobile-brand-logo {
  display: block;
  width: min(230px, 68vw);
  height: 44px;
  object-fit: contain;
}

.menu-icon::after {
  background: var(--ink);
  box-shadow: 0 7px 0 var(--ink), 0 14px 0 var(--ink);
}

.menu a {
  color: #99012E;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu a:hover {
  color: var(--bronze);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-media {
  background-image: url("/images/hero-bostonskyline.webp?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(36, 49, 58, 0.88) 0%, rgba(36, 49, 58, 0.58) 45%, rgba(36, 49, 58, 0.66) 100%),
    linear-gradient(0deg, rgba(36, 49, 58, 0.3), rgba(36, 49, 58, 0.66));
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--bronze);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Interior Page Hero */
.interior-hero {
  position: relative;
  display: grid;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
}

.interior-hero .hero-media,
.interior-hero .hero-overlay,
.interior-hero .hero-content {
  grid-area: 1 / 1;
}

.interior-hero .hero-media {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.interior-hero .hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(36, 49, 58, 0.82) 0%,
      rgba(36, 49, 58, 0.55) 50%,
      rgba(36, 49, 58, 0.20) 100%
    );
}

.interior-hero .hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 10rem 0 3rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.interior-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.interior-hero .subheading {
  max-width: 50rem;
  font-size: 1.125rem;
  margin-bottom: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.25rem, 2.0601rem + 0.7595vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.86);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-top: 2.3rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-lines span {
  border-bottom: 2px solid var(--bronze);
}

.scroll-cue {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 3;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

section {
  position: relative;
}

.profile-section,
.results-section,
.practice-section,
.news-section,
.contact-section,
.interior-attorneys-content,
.interior-content-section-white{
  padding: 6rem 0;
}

.profile-section {
  background: #E8EEE9;
  border-bottom: 1px solid var(--line);
}

.interior-attorneys-content {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.interior-content-section-white {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.profile-section .lead {
  max-width: 820px;
  color: var(--charcoal);
  font-size: clamp(1.25rem, 1.1867rem + 0.2532vw, 1.5rem);
  line-height: 1.45;
}

.results-section {
  color: var(--ink);
  background: #fff;
}

.results-section h2 {
  color: var(--ink);
}

.results-list {
  margin: 0;
}

.results-list li {
  display: grid;
  grid-template-columns: minmax(92px, 140px) 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(36, 49, 58, 0.14);
}

.results-list strong {
  color: var(--bronze);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.results-list span {
  align-self: center;
  color: var(--charcoal);
  font-size: 1.08rem;
}

.practice-section {
  background: var(--porcelain);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.button {
  background: var(--bronze);
  color: #fff;
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button:hover,
.button:focus {
  background: var(--blue-black);
  color: #fff;
}

.button.hollow {
  color: var(--blue-black);
  border-color: var(--blue-black);
}

.button.hollow:hover,
.button.hollow:focus {
  color: #fff;
  border-color: var(--blue-black);
  background: var(--blue-black);
}

.practice-list {
  width: 100%;
  border-top: 1px solid var(--line);
}

.practice-topic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, 10vw) minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  min-height: 150px;
  padding: 2rem max(1rem, calc((100vw - 75rem) / 2));
  color: var(--ink);
  background: rgba(255, 253, 248, 0.48);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.practice-topic::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  content: "";
  background: var(--bronze);
  transition: width 180ms ease;
}

.practice-topic:hover,
.practice-topic:focus {
  color: #fff;
  background: var(--blue-black);
  box-shadow: 0 18px 42px rgba(36, 49, 58, 0.14);
  transform: translateY(-2px);
}

.practice-topic:hover::before,
.practice-topic:focus::before {
  width: 8px;
}

.practice-index,
.practice-arrow {
  position: relative;
  z-index: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.practice-index {
  color: var(--bronze);
}

.practice-copy {
  position: relative;
  z-index: 1;
  display: block;
}

.practice-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.75rem, 1.5918rem + 0.6329vw, 2.375rem);
  line-height: 1;
}

.practice-description {
  display: block;
  max-width: 780px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.55;
}

.practice-arrow {
  color: var(--bronze);
  transition: transform 180ms ease;
}

.practice-topic:hover .practice-description,
.practice-topic:focus .practice-description,
.practice-topic:hover .practice-index,
.practice-topic:focus .practice-index,
.practice-topic:hover .practice-arrow,
.practice-topic:focus .practice-arrow {
  color: rgba(255, 255, 255, 0.86);
}

.practice-topic:hover .practice-arrow,
.practice-topic:focus .practice-arrow {
  transform: translateX(0.4rem);
}

.team-section {
  min-height: 560px;
  padding: 7rem 0;
  color: var(--ink);
  background: #fff;
  overflow: hidden;
}

.team-image {
  position: absolute;
  inset: 0;
  width: 58%;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.04), rgba(237, 244, 242, 0.84)),
    url("/images/pam-attorneys-home2.webp?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
}

.team-copy {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.team-copy p:not(.eyebrow) {
  color: var(--charcoal);
  font-size: 1.12rem;
}

.news-section {
  background: #f9f9f9;
}



.interior-lead {
  max-width: 820px;
  color: var(--charcoal);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.all-practice-section {
  background: var(--porcelain);
}

.practice-directory {
  width: 100%;
  border-top: 1px solid var(--line);
}

.directory-item {
  display: grid;
  grid-template-columns: minmax(72px, 10vw) minmax(180px, 0.45fr) minmax(0, 0.55fr);
  gap: 1.5rem;
  align-items: start;
  min-height: 170px;
  padding: 2rem max(1rem, calc((100vw - 75rem) / 2));
  border-bottom: 1px solid var(--line);
}

.directory-item span {
  color: var(--bronze);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.directory-item h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 3.2rem);
}

.directory-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.news-item {
  min-height: 220px;
  margin-bottom: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-item time,
.news-item a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-item time {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.news-item a {
  color: var(--bronze);
}

.contact-section {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.77), rgba(246, 241, 232, 0.88)),
    url("https://www.piercemandell.com/images/interior-page-footer-banner.jpg?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
}

.contact-list {
  margin: 0 0 2rem;
  color: var(--charcoal);
  font-size: 1.1rem;
}

.contact-list a {
  color: var(--ink);
}

.site-footer {
  padding: 4rem 0 2rem;
  color: var(--charcoal);
  background: #e8eee9;
}

.footer-main {
  row-gap: 2rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 1.4rem;
}

.footer-logo {
  display: block;
  width: min(400px, 80vw);
  height: 80px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer h3 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer-links a,
.footer-menu a {
  color: var(--charcoal);
}

.footer-links a:hover,
.footer-links a:focus,
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--bronze);
}

.footer-contact {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid rgba(36, 49, 58, 0.14);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus {
  color: #fff;
  background: var(--blue-black);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(36, 49, 58, 0.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
}

.practice-areas {
  padding: 5rem 0;
  background: #f8f8f8;
}

.practice-areas .grid-x {
  align-items: stretch;
}

.practice-areas .cell {
  display: flex;
}

.service-card {
  position: relative;
  width: 100%;
  min-height: 260px; /* Reduced from 380px */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  transition: all .3s ease;
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
  color: #fff;
}

.service-content h3 {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: .5rem;
}

.service-content p {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-content .button {
  margin-bottom: 0;
  padding: .75rem 1.25rem;
  font-size: .85rem;
}

.service-content .button:hover {
  background: #ffffff;
  color: #99022F;
}

@media screen and (max-width: 1023px) {
  .service-card {
    min-height: 340px;
  }
}

@media screen and (max-width: 639px) {
  .practice-areas {
    padding: 3rem 0;
  }

  .service-card {
    min-height: 300px;
  }

  .service-content {
    padding: 1.5rem;
  }

  .service-content h3 {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 63.9375em) {
  .top-bar {
    padding: 0 1rem;
  }

  .team-image {
    width: 100%;
    opacity: 0.32;
  }

  .team-copy {
    padding: 2rem 0;
  }
}

@media screen and (max-width: 39.9375em) {
  html.js #primary-menu {
    display: none;
  }

  html.js #primary-menu.is-open {
    display: block;
  }

  .top-bar {
    display: block;
    min-height: auto;
    padding: 1rem;
  }

  .brand-mark {
    margin-bottom: 1rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 6rem;
  }

  .scroll-cue {
    display: none;
  }

  .profile-section,
  .results-section,
  .practice-section,
  .news-section,
  .contact-section,
  .team-section {
    padding: 4rem 0;
  }

  .results-list li {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .practice-topic {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    min-height: 220px;
    padding: 1.5rem;
  }

  .directory-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    min-height: auto;
    padding: 1.5rem;
  }

  .footer-menu {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 63.9375em) {
  .interior-hero {
    min-height: 320px;
  }

  .interior-hero .hero-content {
    padding: 6rem 0 2.5rem;
  }
}

@media screen and (max-width: 39.9375em) {
  .interior-hero {
    min-height: 260px;
  }

  .interior-hero .hero-content {
    padding: 8rem 0 2rem;
  }

  .interior-hero h1 {
    font-size: 2rem;
  }

  .interior-hero .subheading {
    font-size: 1rem;
  }
}

.accordion {
  margin-bottom: 2rem;
  border: 1px solid #e6e6e6;
}

/** accordion **/

.accordion-title {
  font-size: clamp(1rem, 0.9684rem + 0.1266vw, 1.125rem);
  font-weight: 600;
  color: #333;
  background: #f8f8f8;
}

.accordion-title:hover,
.accordion-title:focus {
  background: #99022F;
  color: #fff;
}

.accordion-content {
  background: #fff;
  padding: 1.25rem;
}

.accordion-content ul {
  margin: 0;
  list-style-position: inside;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}
