/* Cookie consent banner */
#stylaw-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  font-family: Heebo, Rubik, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

#stylaw-cookie-banner.is-visible {
  display: block;
}

#stylaw-cookie-banner .stylaw-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#stylaw-cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
}

#stylaw-cookie-banner a {
  color: #f0b429;
  text-decoration: underline;
}

#stylaw-cookie-banner .stylaw-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#stylaw-cookie-banner button {
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

#stylaw-cookie-accept {
  background: #8b1a1a;
  color: #fff;
}

#stylaw-cookie-accept:hover {
  background: #6d1414;
}

/* Homepage featured article */
.stylaw-featured-article {
  background: #f8f6f3;
  padding: 3rem 1.5rem;
  margin: 0;
}

.stylaw-featured-article .stylaw-featured-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stylaw-featured-article h2 {
  font-family: Heebo, Rubik, Arial, sans-serif;
  font-size: 1.75rem;
  color: #1a1a1a;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.stylaw-featured-article p {
  font-family: Heebo, Rubik, Arial, sans-serif;
  font-size: 1.05rem;
  color: #444;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.stylaw-featured-article .stylaw-read-more {
  display: inline-block;
  background: #8b1a1a;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: Heebo, Rubik, Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.2s;
}

.stylaw-featured-article .stylaw-read-more:hover {
  background: #6d1414;
}

/* Content pages (privacy, article) */
.stylaw-content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  font-family: Heebo, Rubik, Arial, sans-serif;
  color: #333;
  line-height: 1.8;
}

.stylaw-content-page h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin: 0 0 1.5rem;
  line-height: 1.35;
}

.stylaw-content-page h2 {
  font-size: 1.35rem;
  color: #8b1a1a;
  margin: 2rem 0 0.75rem;
}

.stylaw-content-page p,
.stylaw-content-page li {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: #333;
}

.stylaw-content-page a,
.stylaw-content-page a:link,
.stylaw-content-page a:visited {
  color: #000 !important;
  text-decoration: underline;
}

.stylaw-content-page a:hover,
.stylaw-content-page a:focus {
  color: #333 !important;
}

.stylaw-content-page ul {
  margin: 0 0 1rem;
  padding-right: 1.5rem;
}

.stylaw-content-page .stylaw-back-home {
  display: inline-block;
  margin-top: 2rem;
  color: #8b1a1a !important;
  text-decoration: none;
  font-weight: 600;
}

.stylaw-content-page .stylaw-back-home:hover {
  text-decoration: underline;
}

/* New logo sizing in header */
img.stylaw-site-logo {
  max-height: 90px;
  width: auto;
  height: auto;
}

/* Removed legacy about-page background image (2023/06/10.png) */
.elementor-element.elementor-element-221aad5,
.elementor-element.elementor-element-221aad5 > .elementor-widget-wrap,
.elementor-element.elementor-element-221aad5 > .elementor-element-populated {
  display: none !important;
  background-image: none !important;
}

.elementor-14 .elementor-element.elementor-element-8ae4790 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Homepage about-section portrait */
.elementor-element-7bf7307 img.stylaw-home-about-photo {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Directions page photo */
.elementor-element-c602img img.stylaw-directions-photo,
.elementor-4559 .elementor-element-c602adc > .elementor-widget-wrap {
  background-image: none !important;
}

.elementor-element-c602img img.stylaw-directions-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Mobile/tablet burger menu – static-site fallback for Elementor nav */
@media (max-width: 1024px) {
  .elementor-location-header .elementor-nav-menu--burger > .elementor-widget-container {
    position: relative;
    z-index: 10001;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
  }

  .elementor-location-header .elementor-nav-menu--burger.elementor-nav-menu--dropdown-tablet .elementor-nav-menu--main {
    display: none !important;
  }

  .elementor-location-header .elementor-nav-menu--burger .elementor-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 10002;
    background: #fff !important;
    border: 2px solid #081522 !important;
    border-radius: 4px;
    color: #081522 !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  /* CSS hamburger icon (works even if eicons fail to load) */
  .elementor-location-header .elementor-nav-menu--burger .elementor-menu-toggle__icon--open,
  .elementor-location-header .elementor-nav-menu--burger .elementor-menu-toggle__icon--close {
    display: none !important;
  }

  .elementor-location-header .elementor-nav-menu--burger .elementor-menu-toggle::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }

  .elementor-location-header .elementor-nav-menu--burger .elementor-menu-toggle.elementor-active::before {
    width: 20px;
    height: 2px;
    background: transparent;
    box-shadow: none;
    transform: rotate(45deg);
  }

  .elementor-location-header .elementor-nav-menu--burger .elementor-menu-toggle.elementor-active::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
  }

  .elementor-location-header .elementor-nav-menu--burger .elementor-nav-menu--dropdown {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 240px;
    max-width: min(92vw, 320px);
    background: #fff !important;
    border: 1px solid #081522 !important;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 70vh;
    overflow-y: auto;
    transform: none !important;
  }

  .elementor-location-header .elementor-nav-menu--burger.elementor-active .elementor-nav-menu--dropdown {
    display: block !important;
    max-height: 70vh !important;
    overflow: visible !important;
  }

  .elementor-location-header .elementor-nav-menu--burger .elementor-nav-menu--dropdown .elementor-item {
    display: block;
    padding: 12px 16px !important;
    color: #081522 !important;
    border-bottom: 1px solid #e8e8e8;
  }

  .elementor-location-header .elementor-nav-menu--burger .elementor-nav-menu--dropdown li:last-child .elementor-item {
    border-bottom: none;
  }

  .elementor-location-header .elementor-element-4bc84fa,
  .elementor-location-header .elementor-element-5df6c86 {
    z-index: 10001;
  }
}

@media (max-width: 767px) {
  img.stylaw-site-logo {
    max-height: 60px;
  }

  .stylaw-featured-article h2 {
    font-size: 1.35rem;
  }
}
