/* ===== law-firm tokens (your variable names, re-valued) ===== */
:root {
  --green: #23242a;
  /* primary dark  (was deep blue)   */
  --yellow: #c2a05f;
  /* gold accent   (was orange)      */
  --gold-grad: linear-gradient(135deg, #e8c97a 0%, #c2a05f 40%, #a8893f 75%, #c2a05f 100%);
  --white: #ffffff;
  --light-bg: #f1efe7;
  --text: #6b6760;
  --dark: #23242a;
  /* text ink      (was #fff)         */
  --black2: #222222;
  --black3: #3a3833;
  --black4: #23242a;
  --border: #e7e3da;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.main-menu__list>li:hover>a .caret {
  transform: rotate(180deg);
}

.hamburger span {
  background: var(--dark);
}

.hamburger:hover span {
  background: #fff;
}

.samio-btn__text,
body {
  font-family: var(--sans);
}

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

body {
  background-color: #f8f7f3;
  background-image:
    linear-gradient(rgba(120, 120, 110, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 120, 110, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--dark);
}

/* ===== content grid (yours) ===== */
.content-grid {
  --padding-inline: 1rem;
  width: 100%;
  --content-max-width: 1500px;
  --breakout-max-width: 85ch;
  --breakout-size: calc((var(--breakout-max-width) - var(--content-max-width)) / 2);
  display: grid;
  grid-template-columns: [full-width-start] minmax(var(--padding-inline), 1fr) [breakout-start] minmax(0, var(--breakout-size)) [content-start] min(100% - (var(--padding-inline) * 2), var(--content-max-width)) [content-end] minmax(0, var(--breakout-size)) [breakout-end] minmax(var(--padding-inline), 1fr) [full-width-end];
}

.content-grid>:not(.breakout, .full-width) {
  grid-column: content;
  width: 100%;
  padding-inline: 0;
}

.content-grid>.breakout {
  grid-column: breakout;
}

.content-grid>.full-width {
  grid-column: full-width;
}

/* ===== topbar ===== */
.topbar {
  background: var(--light-bg);
  overflow: hidden;
}

.topbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}

.topbar__info,
.topbar__note,
.topbar__right {
  align-items: center;
  display: flex;
}

.topbar__right {
  align-items: stretch;
}

.topbar__note {
  gap: 18px;
}

.topbar__note__title {
  flex-shrink: 0;
  padding: 8px 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  text-transform: uppercase;
  background: var(--yellow);
  writing-mode: vertical-lr;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(180deg);
}

.topbar__note__title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -9px;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 9px 9px 9px 0;
  border-color: transparent var(--yellow) transparent transparent;
}

.topbar__note__text {
  font-size: 13.5px;
  color: var(--black3);
  padding-left: 8px;
}

.topbar__info {
  gap: 30px;
  list-style: none;
  padding: 10px 0;
}

.topbar__info li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #4d4b47; /* darkened from --text (#6b6760) for WCAG AA contrast on --light-bg */
}

.topbar__info li svg {
  color: var(--yellow);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sidebar-contact-list li a,
.topbar__info li a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
  word-break: break-all;
}
  text-decoration: none;
  transition: color .3s;
}

.topbar__info li a:hover {
  color: var(--yellow);
}

.topbar__social-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 3px 0 28px;
  margin-left: 20px;
  position: relative;
  z-index: 1;
}

.topbar__social-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--green);
  z-index: -1;
  clip-path: polygon(14px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.topbar__social-wrap p {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
}

.menu-social-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-social-links a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: .3s;
}

.menu-social-links a svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.menu-social-links a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ===== header ===== */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo,
.main-nav {
  align-items: center;
  display: flex;
}

.logo {
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  padding:  0;
}

.logo__img-wrap {
  height: 70px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__img-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo__mark {
  width: auto;
  height: 60px;
  flex: none;
  display: block;
}

.logo__text {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .3px;
}

.logo__text span {
  color: var(--yellow);
}

.main-menu__list {
  display: flex;
  align-items: center;
  list-style: none;
}

.main-menu__list>li {
  position: relative;
}

.main-menu__list>li>a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 32px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  /* gradient text — passes contrast audit & adds visual depth */
  background: linear-gradient(135deg, #1a1a1f 0%, #3a3833 55%, #c2a05f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #1a1a1f; /* fallback for browsers without gradient-text support */
  text-decoration: none;
  transition: opacity .3s;
  white-space: nowrap;
}

.main-menu__list>li>a .caret {
  width: 10px;
  height: 10px;
  transition: transform .3s;
  /* caret is an SVG stroke; force a visible color since parent uses gradient text */
  color: #3a3833;
  -webkit-text-fill-color: initial;
}

.main-menu__list>li.active>a,
.main-menu__list>li:hover>a {
  background: linear-gradient(135deg, #c2a05f 0%, #e8c97a 60%, #a8893f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
}

.mnav-row>a:hover,
.mobile-contact-info a:hover,
.search-btn:hover {
  color: var(--yellow);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s;
  z-index: 100;
  border-top: 2px solid var(--yellow);
}

.samio-btn,
.samio-btn__icon {
  position: relative;
  overflow: hidden;
}

.main-menu__list>li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black3);
  text-decoration: none;
  transition: .25s;
}

.dropdown-menu li:hover>a {
  background: var(--yellow);
  color: #fff;
  padding-left: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.search-btn {
  background: 0 0;
  padding: 8px 14px;
  color: var(--dark);
  transition: color .3s;
  border: none;
  cursor: pointer;
}

.search-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.samio-btn {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  vertical-align: middle;
  -webkit-appearance: none;
  outline: 0 !important;
  padding: 7px 8px 7px 32px;
  background: var(--gold-grad);
  z-index: 1;
  border-radius: 0 100px 100px 0;
  transition: .5s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.samio-btn::after,
.samio-btn::before,
.samio-btn__icon-box {
  background-color: var(--green);
  transition: .5s;
}

.samio-btn::before {
  content: "";
  width: 2px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.samio-btn::after {
  content: "";
  width: 0%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
}

.samio-btn:hover::after {
  width: 100%;
  left: 0;
}

.samio-btn__text {
  display: inline-block;
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: .5s;
}

.samio-btn:hover .samio-btn__text,
.samio-btn__icon {
  color: var(--white);
}

.samio-btn__icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.samio-btn__icon {
  width: 14px;
  height: 14px;
  transition: .5s;
}

.samio-btn__icon svg {
  width: 14px;
  height: 14px;
  position: absolute;
  bottom: 0;
  left: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: .5s;
}

.samio-btn__icon svg.arrow2 {
  left: -15px;
  bottom: -15px;
}

.samio-btn:hover .samio-btn__icon-box {
  background-color: var(--yellow);
}

.samio-btn:hover .samio-btn__icon,
.sidebar-contact-list li a:hover {
  color: var(--green);
}

.samio-btn:hover .samio-btn__icon svg {
  transform: translate(15px, -15px) rotate(-10deg);
}

.hamburger {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: 12px;
  transition: background .3s;
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--green);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  transition: background .3s, width .3s;
}

.hamburger span:nth-child(2) {
  width: 14px;
  margin-left: 6px;
}

.hamburger:hover span:nth-child(2) {
  width: 20px;
  margin-left: 0;
}

/* ===== Tablet landscape: shrink nav padding ===== */
@media (max-width:1200px) {
  .main-menu__list>li>a {
    padding: 28px 10px;
    font-size: 0.9rem;
  }

  .samio-btn {
    padding: 6px 6px 6px 20px;
    gap: 12px;
  }

  .samio-btn__text {
    font-size: 12px;
  }
}

/* ===== Below 1100px: hide desktop nav, rely on hamburger + sidebar ===== */
@media (max-width:1100px) {
  .main-menu__list,
  .search-btn,
  .topbar__info {
    display: none;
  }
}

/* ===== sidebar ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  z-index: 1999;
  padding: 40px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.sidebar-panel.active {
  transform: translateX(0);
}

.sidebar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 0 0;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform .3s, color .3s;
  color: var(--black4);
}

.sidebar-close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.sidebar-close:hover {
  color: var(--yellow);
  transform: rotate(90deg);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-top: 10px;
}

.sidebar-logo .logo__img-wrap {
  width: auto;
  height: auto;
}

.sidebar-section__title::after,
.sidebar-section__title::before {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
}

.sidebar-logo .logo__text {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
}

.sidebar-desc {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.75;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.sidebar-section__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--black3);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 6px;
}

.sidebar-section__title::after {
  left: 0;
  width: 36px;
  background: var(--green);
}

.sidebar-section__title::before {
  left: 44px;
  width: 10px;
  background: var(--yellow);
}

.sidebar-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.sidebar-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--black3);
  line-height: 1.6;
}

.menu-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-contact-icon svg {
  width: 15px;
  height: 15px;
  stroke: white;
  fill: none;
}

.sidebar-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.mobile-sidebar-social a,
.sidebar-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: background .3s, color .3s;
}

.mobile-sidebar-social a svg,
.sidebar-social a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.mobile-sidebar-social a:hover,
.sidebar-social a:hover {
  background: var(--yellow);
  color: #fff;
}

.mnav-row>a,
.mobile-contact-info a {
  font-size: 16px;
  color: var(--black4);
  text-decoration: none;
  transition: color .3s;
}

.mobile-nav-list {
  display: none;
  flex-direction: column;
  list-style: none;
  width: 100%;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

.mnav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.mnav-row>a {
  font-weight: 600;
  display: block;
  width: 100%;
  padding: 14px 0;
}

.mobile-contact-info {
  display: none;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding-top: 20px;
}

.mobile-contact-info a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-contact-info .menu-contact-icon {
  width: 34px;
  height: 34px;
}

.mobile-sidebar-social {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Below 1100px: show mobile nav items inside sidebar ===== */
@media (max-width:1100px) {
  .mobile-contact-info,
  .mobile-nav-list,
  .mobile-sidebar-social {
    display: flex;
  }
}

/* ===== Tablet portrait: adjust header & sidebar ===== */
@media (max-width:900px) {
  .topbar {
    display: none !important;
  }

  .sidebar-desc {
    display: none;
  }

  .sidebar-panel {
    width: 340px;
    max-width: 85vw;
  }
}

/* ===== Mobile: compact header, hide CTA, mobile sidebar ===== */
@media (max-width:767px) {
  .contact-btn,
  .sidebar-contact {
    display: none;
  }

  .main-header__inner {
    padding-block: 14px;
  }

  .sidebar-panel {
    background: #fff;
    padding: 30px 24px 40px;
    width: 300px;
    max-width: 90vw;
    gap: 20px;
  }

  .sidebar-logo .logo__text {
    color: var(--dark);
  }

  .logo__mark {
    height: 48px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
    margin-left: 8px;
  }
}

/* ===== Small mobile ===== */
@media (max-width:480px) {
  .main-header__inner {
    padding-block: 10px;
  }

  .logo__mark {
    height: 42px;
  }

  .sidebar-panel {
    width: 100vw;
    max-width: 100vw;
    padding: 24px 20px 36px;
  }

  .hamburger {
    width: 38px;
    height: 38px;
    gap: 4px;
  }

  .hamburger span {
    width: 18px;
  }

  .hamburger span:nth-child(2) {
    width: 12px;
    margin-left: 6px;
  }

  .hamburger:hover span:nth-child(2) {
    width: 18px;
    margin-left: 0;
  }

  .mnav-row>a {
    font-size: 15px;
  }

  .mobile-contact-info a {
    font-size: 14px;
  }
}

/* demo only */
.demo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 120px;
}

.demo h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
}

.demo p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  margin-top: 18px;
  max-width: 620px;
}

.spacer {
  height: 900px;
}