/* ==================================
   Footer nav (static)
   ================================== */
.footer .footer-nav-grid {
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;

  max-width: 1180px;
  display: grid;
  grid-template-columns: 180px minmax(520px, 1fr) 240px;
  gap: clamp(22px, 4vw, 70px);
  text-align: left;
}

.menu div > ul > li > ul > li {
  padding: 0;
  list-style: none;
  font-size: 18px;
  text-align: left;
  text-transform: capitalize;
  margin: 0;
}

.footer .footer-col {
  margin: 0;
  padding: 0;
}

.footer .footer-col-title {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 38px;
  text-transform: capitalize;
}

.footer .footer-col-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .footer-col-list li {
  margin: 0 0 12px;
  padding: 0;
  break-inside: avoid;
  /* text-align: left; */
}

.footer .footer-col-list a {
  color: #fff;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-transform: capitalize;
}

.footer .footer-col-list a:hover {
  color: #e07370;
}

/* Practice Areas column layout */
.footer .footer-col-list--cols {
  columns: 3;
  column-gap: clamp(26px, 3vw, 58px);
}

@media (max-width: 1100px) {
  .footer .footer-nav-grid {
    grid-template-columns: 1fr;
  }
  .footer .footer-col-list--cols {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .footer .footer-nav-grid {
    gap: 26px;
    text-align: center;
  }
  .footer .footer-col-title {
    margin-bottom: 12px;
  }
  .footer .footer-col-list li {
    margin-bottom: 10px;
  }
}

/* ==================================
   Mega menu (Practice Areas) - desktop
   ================================== */
.menu .container {
  position: relative;
}
.menu ul.main-menu > li.has-mega {
  position: static;
}

.menu .has-mega .mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #1e120d;
  border-bottom: 2px solid #b1322c;
  z-index: 6;

  padding: 26px 22px;
}

.menu .has-mega.is-open .mega-panel {
  display: block;
}

.menu .mega-inner {
  margin: 0 auto;
  padding: 18px 18px 22px;

  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 66px;
  align-items: start;
}

/* Left tabs */
.menu .mega-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu .mega-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px;
  text-decoration: none;

  border-bottom: 1px solid rgba(177, 50, 44, 0.55);
  color: #fff;

  font-size: 20px;
  font-weight: 700;
  text-transform: capitalize;
}

.menu .mega-tab.is-active {
  background: #b1322c;
  border-color: #b1322c;
}

.menu .mega-tab:hover {
  color: #efa5a1;
}
.menu .mega-tab.is-active:hover {
  color: #fff;
}

.menu .mega-tab-link {
  justify-content: flex-start;
}

/* Right content */
.menu .mega-title {
  margin: 0 0 50px;
  color: #b0b0b0;
  font-family: Cinzel, serif;
  font-size: 47px;
  font-weight: 400;
  line-height: 63.45px;
  text-transform: capitalize;
  text-align: left;
}

.menu .mega-pane {
  display: none;
}
.menu .mega-pane.is-active {
  display: block;
}

.menu .mega-links {
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  column-gap: 50px;
  row-gap: 10px;
}

@media (max-width: 1200px) {
  .menu .mega-links {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

.menu .mega-links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;

  color: #fff;
  text-decoration: none;

  font-size: 18px;
  font-weight: 400;
  text-transform: capitalize;
}

.menu .mega-links a::before {
  content: "\f054"; /* fa-chevron-right */
  position: absolute;
  left: 0;
  font-family: "Font Awesome 5 Pro";
  font-size: 14px;
}

.menu .mega-links a:hover {
  color: #efa5a1;
}

/* Simple dropdown (non-mega) on hover */
@media (min-width: 992px) {
  .menu div > ul > li.dad:not(.has-mega):hover > ul {
    display: block;
  }
}

/* Limit mega height on smaller desktop */
@media (min-width: 992px) and (max-width: 1200px) {
  .menu .has-mega .mega-panel {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .menu .mega-tabs {
    position: sticky;
    top: 0;
    align-self: start;
  }
}

/* Do not show mega in mobile overlay break */
@media (max-width: 991px) {
  .menu .has-mega .mega-panel {
    display: none !important;
  }
}

/* ==================================
   Mobile overlay menu (styles)
   ================================== */
.navigation-overlay {
  display: none;
  position: fixed;
  z-index: 4;
  inset: 0;

  background: #1e120d;
  padding-top: 104px;
  padding-bottom: 70px;

  overflow-x: hidden;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.navigation-overlay .mobile-menu-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.navigation-overlay .mobile-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation-overlay .mm-item {
  margin-bottom: 10px;
}

.navigation-overlay .mm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu div > ul > li {
  text-align: left;
  padding: 0 5px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1em;
  text-transform: capitalize;
}

.navigation-overlay .mm-link {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.15;
  text-transform: capitalize;
}

.navigation-overlay .mm-link--phone {
  color: #b1322c;
  font-weight: 700;
}

.navigation-overlay .mm-expander {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 8px;
  color: #fff;
  cursor: pointer;
}

.navigation-overlay .mm-sub {
  padding: 0;
}

.navigation-overlay .mm-items,
.navigation-overlay .mm-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation-overlay .mm-items a {
  display: block;
  position: relative;
  padding: 10px 0 10px 16px;

  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.navigation-overlay .mm-items a::before {
  content: "\f054"; /* fa-chevron-right */
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 12px;
}

.navigation-overlay .mm-items a:hover {
  color: #efa5a1;
}

/* Category rows */
.navigation-overlay .mm-row--cat {
  padding: 10px 0;
}

.navigation-overlay .mm-link--cat {
  font-size: 18px;
  font-weight: 700;
}

.navigation-overlay .mm-cat {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.navigation-overlay .mm-cat:first-child {
  border-top: 0;
}

.navigation-overlay .mm-cat.is-active .mm-row--cat {
  background: #b1322c;
  padding-left: 12px;
  padding-right: 12px;
}

.navigation-overlay .fa-chevron-down,
.navigation-overlay .fa-chevron-right {
  transition: transform 0.2s ease;
}

.navigation-overlay .mm-item.is-open > .mm-row .fa-chevron-down {
  transform: rotate(180deg);
}
.navigation-overlay .mm-cat.is-open > .mm-row .fa-chevron-right {
  transform: rotate(90deg);
}

/* ==================================
   Personal Injury page sections
   ================================== */
.pi-areas-section {
  background: #e9e9e9;
  padding: 50px 150px;
}

.pi-areas-title {
  margin: 0 0 50px;
  letter-spacing: 2px;
  color: #666;
  font-family: Cinzel, serif;
  font-size: 47px;
  font-weight: 400;
  line-height: 63.45px;
  text-transform: capitalize;
}

.pi-areas-lead {
  margin: 0 0 50px;
  color: #666;
  font-size: 18px;
  line-height: 22px;
}

.pi-areas-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.pi-area {
  display: flex;
  gap: 34px;
  align-items: flex-start;
}

.pi-area-media {
  flex: 0 0 47%;
  margin: 0;
  background: #ddd;
}

.pi-area-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pi-area-content {
  flex: 1 1 auto;
  padding-top: 6px;
  align-self: center;
}

.pi-area-content h3 {
  margin: 0 0 14px;
  letter-spacing: 1px;
  color: #666;
  font-family: Cinzel, serif;
  font-size: 30px;
  font-weight: 400;
  text-transform: capitalize;
}

.pi-q {
  margin: 0 0 4px;
  color: #666;
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
}

.pi-a {
  margin: 0 0 44px;
  color: #666;
  font-size: 18px;
  line-height: 30px;
}

.pi-cta-btn {
  display: inline-block;
  background: #b1322c;
  color: #fff !important;
  font-size: 11px;
  padding: 10px 16px;
  text-decoration: none;
}

.pi-cta-btn:hover,
.pi-cta-btn:focus {
  background: #8f2924;
  color: #fff !important;
}

@media (max-width: 1091px) {
  .pi-areas-section {
    padding: 30px 0;
  }
  .pi-area {
    flex-direction: column;
    gap: 16px;
  }
  .pi-area-media {
    flex-basis: auto;
    align-self: center;
  }
  .pi-area-content {
    padding-top: 0;
  }
  .pi-areas-title {
    font-size: 38px;
    line-height: normal;
  }
}

@media (max-width: 600px) {
  .pi-areas-section .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  .pi-areas-list {
    gap: 24px;
  }
}

/* ==================================
   Additional services (home)
   ================================== */
.addl-services-section {
  background: #fff;
  padding: 50px 150px;
}

.addl-services-title {
  margin: 0 0 18px;
  letter-spacing: 1px;
  color: #666;
  font-family: Cinzel, serif;
  font-size: 47px;
  font-weight: 400;
  line-height: 63.45px;
  text-transform: capitalize;
}

.addl-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 50px;
}

.addl-card-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.addl-card-body {
  padding-top: 10px;
}

.addl-card-heading {
  margin: 50px 0 10px;
  letter-spacing: 0.6px;
  color: #666;
  font-family: Cinzel, serif;
  font-size: 30px;
  font-weight: 400;
  text-transform: capitalize;
}

.addl-card-text {
  margin: 20px 0;
  color: #666;
  font-size: 18px;
  line-height: 30px;
}

@media (max-width: 991px) {
  .addl-services-section {
    padding: 50px 0;
  }
  .addl-services-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .addl-services-title {
    font-size: 38px;
    line-height: normal;
  }
}

@media (max-width: 600px) {
  .addl-services-section .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.addl-card-wide.no-image {
  align-content: center;
}

/* ==================================
   CTA + Gravity Forms (not homepage)
   ================================== */
.home-cta-form {
  background: #fff;
  padding: 270px 0;
}

.home-cta-form .container-fluid {
  padding: 0 150px;
}

.home-cta-form-wrap {
  position: relative;
  background: #3f3f3f;
  padding: 50px 200px;
  min-height: 360px;

  display: flex;
  align-items: stretch;
  justify-content: space-around;
}

.home-cta-copy {
  color: #fff;
  max-width: 570px;
  padding-right: 40px;
}

.home-cta-copy h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 34px;
  line-height: 1.15em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.home-cta-copy h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 30px;
  font-weight: 400;
  text-transform: capitalize;
}

.home-cta-copy p {
  margin: 0 0 20px;
  color: #fff;
  font-size: 18px;
  line-height: 30px;
}

.home-cta-phone a {
  color: #fff;
  text-decoration: underline;
}

.home-cta-panel {
  width: 100%;
  position: relative;
}

.home-cta-panel-inner {
  background: #b1322c;
  padding: 30px;
  position: absolute;
  right: 2px;
  top: -299px;
  width: 100%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.home-cta-kicker {
  margin: 0 0 2px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
}

.home-cta-panel-title {
  margin: 0 0 20px;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 47px;
  font-weight: 400;
  line-height: 63.45px;
  text-transform: capitalize;
}

/* Scoped GF */
.home-cta-panel .gform_wrapper {
  margin: 0;
}
.home-cta-panel .gform_wrapper form {
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .home-cta-panel .gform_wrapper .gform_fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 12px !important;
  }
  .home-cta-panel
    .gform_wrapper
    .gform_fields
    .gfield:not(.gfield--type-email):not(.gfield--type-phone) {
    grid-column: 1 / -1;
  }
}

.home-cta-panel .gform_wrapper input[type="text"],
.home-cta-panel .gform_wrapper input[type="email"],
.home-cta-panel .gform_wrapper input[type="tel"],
.home-cta-panel .gform_wrapper select,
.home-cta-panel .gform_wrapper textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 12px;
  padding: 10px;
  border-radius: 2px;
}

.home-cta-panel .gform_wrapper textarea {
  min-height: 120px;
  resize: vertical;
}

.home-cta-panel .gform_wrapper .gform_footer {
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

.home-cta-panel .gform_wrapper .gform_footer input[type="submit"] {
  background: #fff;
  color: #b1322c;
  border: 0;
  line-height: 1;
  cursor: pointer;
}

.home-cta-panel .gform_wrapper .gform_footer input[type="submit"]:hover {
  background: #f3f3f3;
}

@media (max-width: 1550px) {
  .home-cta-form-wrap {
    padding: 50px !important;
  }
}

@media (max-width: 1201px) {
  .home-cta-form {
    padding: 60px 0;
  }
  .home-cta-form .container-fluid {
    padding: 0;
  }

  .home-cta-form-wrap {
    flex-direction: column;
    padding: 34px 18px 18px;
  }

  .home-cta-copy {
    max-width: 100%;
    padding-right: 0;
    padding-bottom: 18px;
  }

  .home-cta-panel-inner {
    position: static;
    box-shadow: none;
    margin-top: 10px;
  }
}

/* ==================================
   FAQ
   ================================== */
.pi-faq-section {
  background: #fff;
  padding: 50px 150px;
}

.pi-faq-title {
  margin: 0 0 18px;
  color: #666;
  font-family: Cinzel, serif;
  font-size: 47px;
  font-weight: 400;
  line-height: 63.45px;
  text-transform: capitalize;
}

.pi-faq {
  border-top: 1px solid #bdbdbd;
}
.pi-faq-item {
  border-bottom: 1px solid #bdbdbd;
  padding-bottom: 5px;
}

.pi-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 20px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;

  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.pi-faq-qtext {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.pi-faq-icon {
  flex: 0 0 auto;
  color: #b1322c;
  font-family: "Font Awesome 5 Pro";
  font-size: 18px;
  line-height: 24px;
}

.pi-faq-icon::before {
  content: "\f078";
} /* chevron-down */
.pi-faq-q[aria-expanded="true"] .pi-faq-icon::before {
  content: "\f077";
} /* chevron-up */

/* Smooth open/close */
.pi-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.48s ease,
    opacity 0.48s ease;
}

.pi-faq-a .pi-faq-inner {
  overflow: hidden;
}

.pi-faq-a.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.pi-faq-inner {
  color: #333;
  font-size: 18px;
  line-height: 24px;
}

.pi-faq-footer {
  margin: 22px 0 0;
  color: #666;
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
}

.pi-faq-footer a {
  color: #b1322c;
  font-weight: 700;
}

@media (max-width: 1298px) {
  .pi-faq-section {
    padding: 50px 0;
  }
  .pi-faq-title {
    font-size: 30px;
    line-height: 1.25em;
  }
  .pi-faq-qtext,
  .pi-faq-inner {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pi-faq-a,
  .pi-faq-icon {
    transition: none !important;
  }
}

/* ==================================
   Text + CTA bar
   ================================== */
.pi-text-section {
  background: #fff;
  padding: 10px 150px;
}
.pi-text-wrap {
  margin: 0 auto;
}
.pi-text-wrap p {
  margin: 0 0 22px;
  color: #666;
  font-size: 18px;
  line-height: 30px;
}

.pi-cta-bar {
  background: #fff;
  padding: 18px 150px 50px;
}

.pi-cta-bar__inner {
  margin: 0 auto;
  background: #2f2f2f;
  border-radius: 6px;
  padding: 18px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pi-cta-bar__title {
  margin: 0 0 6px;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 26.9px;
  font-weight: 900;
  letter-spacing: 7.68px;
  text-transform: uppercase;
  line-height: 26.88px;
}

.pi-cta-bar__text {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 30px;
}

.pi-cta-bar__action .btn-layout {
  white-space: nowrap;
}

@media (max-width: 1090px) {
  .pi-text-section {
    padding: 10px 0;
  }
  .pi-cta-bar {
    padding: 20px 0;
  }

  .pi-cta-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pi-cta-bar__action {
    width: 100%;
  }
  .pi-cta-bar__action .btn-layout {
    width: 100%;
    text-align: center;
  }
  .pi-cta-bar__title {
    letter-spacing: 0.22em;
  }
}

/* Make sure the panel is positioned relative to the fixed header */
.menu {
  position: fixed;
  overflow: visible;
}

/* IMPORTANT: do NOT use the container as the positioning reference */
.menu > .container {
  position: static !important;
}

/* (recommended) fix float-collapse inside the container */
.menu > .container::after {
  content: "";
  display: block;
  clear: both;
}

/* Full-width mega panel always glued under the menu */
.menu .has-mega .mega-panel {
  display: none;
  position: absolute;
  top: 100%; /* glued to the bottom of .menu */
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  background: #1e120d;
  border-bottom: 2px solid #b1322c;
  z-index: 6;
  padding: 26px 22px;
  margin-top: 3px; /* optional: removes tiny gap under the border */
}

.menu .has-mega.is-open .mega-panel {
  display: block;
}
/* Mega panel: enable internal scroll on short viewports (height-based) */
@media (max-height: 820px) and (min-width: 992px) {
  .menu .has-mega .mega-panel {
    max-height: calc(100vh - var(--menu-offset, 120px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; /* prevent page scroll â€œbleedâ€ */
  }

  /* Optional: keep the left tabs visible while scrolling */
  .menu .mega-tabs {
    position: sticky;
    top: 0;
    align-self: start;
  }
}

.gform_legacy_markup_wrapper .top_label .gfield_label,
.gform_legacy_markup_wrapper legend.gfield_label {
  color: #fff;
}

.gform_legacy_markup_wrapper
  .field_sublabel_below
  .ginput_complex.ginput_container
  label,
.gform_legacy_markup_wrapper
  .field_sublabel_below
  div[class*="gfield_time_"].ginput_container
  label {
  color: #fff;
}

body .gform_legacy_markup_wrapper .top_label div.ginput_container {
  color: #fff;
}
