/* HCANN Law — shared static + WP theme styles */
:root {
  --ink: #0b1c2c;
  --ink-soft: #1a3248;
  --stone: #eef3f6;
  --stone-deep: #d5dee6;
  --paper: #f7fafb;
  --color-primary: #0b1c2c;
  --color-secondary: #1a3248;
  --color-tertiary: #3d5a73;
  --body-link: #0b1c2c;
  --nav-link: #1a3248;
  --caption-color: #ffffff;
  --on-primary: #ffffff;
  --on-secondary: #ffffff;
  --on-tertiary: #ffffff;
  --on-ink: var(--on-primary);
  --white: #ffffff;
  --text: #111111;
  --muted: #333333;
  --line: rgba(11, 28, 44, 0.12);
  --shadow: 0 24px 60px rgba(11, 28, 44, 0.12);
  --font-display: "Open Sans", system-ui, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Overridden by Site Settings → Style & loading (default: squared) */
  --radius-pill: 0;
  --radius-control: 0;
  --radius-box: 0;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Body / content links (not nav, buttons, or footer chrome) */
.rich-text a,
.post-detail__content a,
.offer-text a,
.profile-bio a,
.contact-list a,
.news-card__body a,
main .section a:not(.btn):not(.menu-link):not(.news-card__link):not(.footer-socials__link) {
  color: var(--body-link);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.rich-text a:hover,
.post-detail__content a:hover,
.offer-text a:hover,
.profile-bio a:hover,
.contact-list a:hover,
main .section a:not(.btn):not(.menu-link):not(.news-card__link):hover {
  color: var(--body-link);
  opacity: 0.85;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p,
.rich-text {
  margin: 0 0 1em;
  color: var(--text);
}

.rich-text p {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 250, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 251, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink);
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.brand-logo {
  display: block;
  max-height: 2.5rem;
  width: auto;
}

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

.nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem 1.2rem;
}

.nav .menu-item {
  position: relative;
}

.nav .menu-item-inner {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav .menu-link {
  font-size: 0.92rem;
  color: var(--nav-link);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
}

.nav .menu-link:link,
.nav .menu-link:visited {
  color: var(--nav-link);
}

.nav .menu-link:hover,
.nav .menu-link:focus,
.nav .menu-link[aria-current="page"] {
  color: var(--nav-link);
}

.nav .menu-item-depth-0 > .menu-item-inner > .menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-tertiary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav .menu-item-depth-0 > .menu-item-inner > .menu-link:hover::after,
.nav .menu-item-depth-0 > .menu-item-inner > .menu-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0,
.nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0:link,
.nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0:visited,
.nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0:hover,
.nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0:active,
.nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0:focus {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0::after {
  display: none;
}

.nav .submenu-toggle {
  border: 0;
  background: transparent;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav .submenu-toggle .fa-solid {
  font-size: 0.7rem;
  color: var(--color-primary);
  transition: transform 0.2s var(--ease);
}

.nav .menu-item.is-open > .menu-item-inner > .submenu-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.nav .menu-item.is-open > .menu-item-inner > .submenu-toggle .fa-chevron-right {
  transform: rotate(90deg);
}

/* Level 1 dropdown
   Important: no gap between parent and submenu, or the hover breaks
   before you can reach child links. */
.nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  min-width: 14rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-box);
}

.nav .sub-menu--level-1 {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
}

/* Invisible hover bridge above the dropdown (covers any tiny header gap). */
.nav .sub-menu--level-1::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.nav .menu-item-depth-0:hover > .sub-menu--level-1,
.nav .menu-item-depth-0:focus-within > .sub-menu--level-1,
.nav .menu-item-depth-0.is-open > .sub-menu--level-1 {
  display: block;
}

/* Level 2 flyout — sit flush so mouse can move sideways onto it */
.nav .sub-menu--level-2 {
  position: absolute;
  top: 0;
  left: 100%;
  right: auto;
  z-index: 31;
  display: none;
}

.nav .sub-menu--level-2::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.75rem;
  width: 0.75rem;
}

/* Flip flyouts left when JS detects viewport overflow */
.nav .menu-item.opens-left > .sub-menu--level-1 {
  left: auto;
  right: 0;
}

.nav .menu-item.opens-left > .sub-menu--level-2 {
  left: auto;
  right: 100%;
}

.nav .menu-item.opens-left > .sub-menu--level-2::before {
  left: auto;
  right: -0.75rem;
}

.nav .menu-item.opens-left > .menu-item-inner > .submenu-toggle .fa-chevron-right {
  transform: rotate(180deg);
}

.nav .menu-item-depth-1:hover > .sub-menu--level-2,
.nav .menu-item-depth-1:focus-within > .sub-menu--level-2,
.nav .menu-item-depth-1.is-open > .sub-menu--level-2 {
  display: block;
}

.nav .sub-menu .menu-link {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  color: var(--ink-soft);
}

.nav .sub-menu .menu-link:hover,
.nav .sub-menu .menu-link[aria-current="page"] {
  background: var(--white);
  color: var(--ink);
}

.nav .sub-menu .menu-item-inner {
  width: 100%;
  justify-content: space-between;
  padding-right: 0.35rem;
}

.footer-socials {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--on-ink);
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-socials__link:hover,
.footer-socials__link:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-tertiary);
  color: var(--on-ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.35rem;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: inline-block;
}

.hero,
.hero-slider {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(11, 28, 44, 0.92) 18%, rgba(11, 28, 44, 0.55) 58%, rgba(184, 149, 108, 0.28)),
    radial-gradient(circle at 80% 20%, rgba(184, 149, 108, 0.35), transparent 40%),
    linear-gradient(160deg, #16324a, #0b1c2c 55%, #1d2a24);
}

/* Image slider with captions (homepage alternative to single hero) */
.hero-slider {
  position: relative;
  display: block;
  padding: 0;
}

.hero-slider__track {
  position: relative;
  height: min(92vh, 820px);
  min-height: 28rem;
  overflow: hidden;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slider__slide--center {
  align-items: center;
  justify-items: center;
}

.hero-slider__slide--top-left {
  align-items: start;
  justify-items: start;
}

.hero-slider__slide--top-right {
  align-items: start;
  justify-items: end;
}

.hero-slider__slide--bottom-left {
  align-items: end;
  justify-items: start;
}

.hero-slider__slide--bottom-right {
  align-items: end;
  justify-items: end;
}

.hero-slider__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slider__caption {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  max-width: 40rem;
  margin-inline: 0;
  padding: 5rem 0;
  box-sizing: border-box;
}

.hero-slider__slide--center .hero-slider__caption {
  text-align: center;
  margin-inline: auto;
}

.hero-slider__slide--center .btn-row {
  justify-content: center;
}

.hero-slider__slide--top-left .hero-slider__caption,
.hero-slider__slide--bottom-left .hero-slider__caption {
  margin-inline: min(1.25rem, 4vw) auto;
  text-align: left;
}

.hero-slider__slide--top-right .hero-slider__caption,
.hero-slider__slide--bottom-right .hero-slider__caption {
  margin-inline: auto min(1.25rem, 4vw);
  text-align: right;
}

.hero-slider__slide--top-right .btn-row,
.hero-slider__slide--bottom-right .btn-row {
  justify-content: flex-end;
}

.hero-slider__slide--top-left .hero-slider__caption,
.hero-slider__slide--top-right .hero-slider__caption {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.hero-slider__slide--bottom-left .hero-slider__caption,
.hero-slider__slide--bottom-right .hero-slider__caption {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.hero-slider__caption,
.hero-slider__caption .eyebrow,
.hero-slider__caption .eyebrow .fa-solid,
.hero-slider__caption .eyebrow .fa-brands,
.hero-slider__caption .eyebrow .fa-regular,
.hero-slider__caption h1,
.hero-slider__caption p,
.hero-slider__caption .rich-text,
.hero-slider__caption .rich-text a {
  color: var(--caption-color);
}

.hero-slider__caption h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.hero-slider__caption p,
.hero-slider__caption .rich-text {
  font-size: 1.12rem;
}

.hero-slider__controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-slider__prev,
.hero-slider__next,
.hero-slider__dot {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 28, 44, 0.45);
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
}

.hero-slider__prev,
.hero-slider__next {
  position: absolute;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), background 0.2s var(--ease);
}

.hero-slider__prev {
  left: 1.25rem;
}

.hero-slider__next {
  right: 1.25rem;
}

.hero-slider:hover .hero-slider__prev,
.hero-slider:hover .hero-slider__next,
.hero-slider:focus-within .hero-slider__prev,
.hero-slider:focus-within .hero-slider__next {
  opacity: 1;
  visibility: visible;
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
  background: rgba(11, 28, 44, 0.7);
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.hero-slider:hover .hero-slider__dots,
.hero-slider:focus-within .hero-slider__dots {
  opacity: 1;
  visibility: visible;
}

.hero-slider__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: var(--radius-pill);
  padding: 0;
}

.hero-slider__dot.is-active {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
}

/* Touch / coarse pointer: keep nav visible (no hover) */
@media (hover: none), (pointer: coarse) {
  .hero-slider__prev,
  .hero-slider__next,
  .hero-slider__dots {
    opacity: 1;
    visibility: visible;
  }
}

/* Team profiles: card + list */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.profile-card,
.profile-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
}

.profile-list {
  display: grid;
  gap: 1rem;
}

.profile-list-item {
  grid-template-columns: 96px 1fr;
  box-shadow: none;
}

.profile-photo {
  width: 120px;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(160deg, var(--ink-soft), var(--color-tertiary));
}

.profile-list-item .profile-photo {
  width: 96px;
  height: 112px;
}

.profile-photo--placeholder {
  display: block;
}

.profile-name {
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
}

.profile-name a {
  color: inherit;
  text-decoration: none;
}

.profile-name a:hover {
  text-decoration: underline;
}

.profile-photo-link {
  display: block;
  line-height: 0;
}

.profile-role {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.profile-bio {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.profile-more {
  margin: 0 0 0.75rem;
}

.profile-more a {
  font-weight: 600;
  text-decoration: none;
}

.profile-more a:hover {
  text-decoration: underline;
}

.team-detail__grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 2rem;
  align-items: start;
}

.team-detail__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-box);
  background: var(--stone-deep);
}

.team-detail__name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.35rem;
}

.team-detail__role {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.team-detail__bio {
  margin-bottom: 1.25rem;
}

.team-detail__back {
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  .team-detail__grid {
    grid-template-columns: 1fr;
  }
}

.profile-meta {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
}

.profile-meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-meta .fa-solid {
  color: var(--color-primary);
  width: 1rem;
  text-align: center;
}

/* Products / services: card + list */
.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-card {
  padding: 0;
  background: var(--white);
  border-top: 2px solid var(--color-tertiary);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: var(--radius-box);
}

.offer-card .offer-body {
  padding: 1.4rem;
}

.offer-list {
  display: grid;
  gap: 1rem;
}

.offer-list-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
}

.offer-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--stone);
}

.offer-list-item .offer-image {
  height: 120px;
}

.offer-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--color-secondary);
}

.offer-icon .fa-solid,
.offer-icon .fa-brands,
.offer-icon .fa-regular {
  color: inherit;
}

.offer-title.has-heading-icon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.offer-title {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.offer-action {
  margin: 1rem 0 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 28, 44, 0.88) 0%, rgba(11, 28, 44, 0.35) 55%, rgba(11, 28, 44, 0.2)),
    url("../img/hero.svg") center/cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 5rem;
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-tertiary);
}

.eyebrow .fa-solid,
.eyebrow .fa-brands,
.eyebrow .fa-regular {
  color: var(--color-secondary);
}

.has-heading-icon {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.heading-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  font-size: 0.72em; /* match heading scale without dwarfing the text */
  line-height: 1;
  color: var(--color-secondary);
}

.heading-icon .fa-solid,
.heading-icon .fa-brands,
.heading-icon .fa-regular {
  color: inherit;
  font-size: inherit;
}

.hero .heading-icon,
.hero-slider__caption .heading-icon {
  color: var(--caption-color);
}

.hero .eyebrow,
.hero .eyebrow .fa-solid,
.hero .eyebrow .fa-brands,
.hero .eyebrow .fa-regular,
.hero h1,
.hero p,
.hero .rich-text,
.hero .rich-text a {
  color: var(--caption-color);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 0.7rem;
}

.hero p,
.hero .rich-text {
  font-size: 1.12rem;
  max-width: 34rem;
}

.rich-text > *:first-child {
  margin-top: 0;
}

.rich-text > *:last-child {
  margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
  margin: 0.65rem 0 0.85rem;
  padding-left: 1.25rem;
}

.rich-text a {
  color: var(--body-link);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hero .rich-text a,
.hero-slider__caption .rich-text a,
.cta-band .rich-text a {
  color: inherit;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn .fa-solid,
.btn .fa-brands,
.btn .fa-regular {
  font-size: 0.85em;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background: var(--color-primary);
  color: var(--on-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: color-mix(in srgb, var(--color-primary) 88%, white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-dark,
.btn-dark:link,
.btn-dark:visited,
.btn-dark:hover,
.btn-dark:active,
.btn-dark:focus {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-muted {
  background: var(--stone);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

/* Allow Owl (and other shrinkable children) to fit the column */
.split > * {
  min-width: 0;
}

.panel {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-box);
}

.practice-grid,
.points-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.practice-item,
.point-item,
.card {
  padding: 1.5rem 1.4rem;
  background: var(--white);
  border-top: 2px solid var(--color-tertiary);
  box-shadow: var(--shadow);
}

.practice-item {
  overflow: hidden;
}

.practice-item__media {
  position: relative;
  margin: -1.5rem -1.4rem 1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface, #f3f4f6);
}

/* Portrait → landscape: blurred sides (Drupal2Go-style fill). */
.media-blur {
  position: relative;
  overflow: hidden;
}

.media-blur__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.12);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.media-blur__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.practice-item__media-blur {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.12);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.practice-item__media-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.practice-item__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.72em;
  line-height: 1;
  color: var(--color-secondary);
}

.practice-item__icon .fa-solid,
.practice-item__icon .fa-brands,
.practice-item__icon .fa-regular {
  color: inherit;
  font-size: inherit;
}

.point-item__icon {
  color: var(--color-secondary);
  margin-right: 0.35rem;
}

.practice-item h3,
.point-item h3,
.card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.practice-item h3.has-heading-icon,
.point-item h3 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}

/* Why section — Owl Carousel (Porto-inspired: one card + dots) */
.why-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.why-carousel .point-item {
  margin: 0;
  min-height: 11rem;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.why-carousel .point-item--has-image {
  border-top: 0;
}

.point-item__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-deep);
  flex-shrink: 0;
}

.point-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-carousel.owl-carousel .owl-height {
  transition: height 0.35s var(--ease);
}

.point-item__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.why-carousel .point-item:not(.point-item--has-image) .point-item__body {
  padding: 1.5rem 1.4rem;
}

.why-carousel.owl-carousel .owl-stage-outer {
  overflow: hidden;
}

.why-carousel.owl-carousel .owl-item {
  min-height: 1px;
}

.why-carousel.owl-theme .owl-nav {
  display: none;
}

.why-carousel.owl-theme .owl-dots {
  margin-top: 1.15rem;
  text-align: center;
  line-height: 0;
}

.why-carousel.owl-theme .owl-dots .owl-dot {
  display: inline-block;
  zoom: 1;
  margin: 0 0.28rem;
}

.why-carousel.owl-theme .owl-dots .owl-dot span {
  width: 0.65rem;
  height: 0.65rem;
  margin: 0;
  display: block;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.why-carousel.owl-theme .owl-dots .owl-dot.active span,
.why-carousel.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
  transform: scale(1.08);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-tertiary);
}

.stat span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.cta-band {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: var(--white);
  padding: 4.5rem 0;
}

.cta-band.has-custom-bg {
  background: var(--cta-bg);
  color: var(--cta-on);
}

.cta-band p,
.cta-band .rich-text {
  color: rgba(255, 255, 255, 0.8);
}

.cta-band.has-custom-bg h2,
.cta-band.has-custom-bg .eyebrow,
.cta-band.has-custom-bg p,
.cta-band.has-custom-bg .rich-text,
.cta-band.has-custom-bg .rich-text a,
.cta-band.has-custom-bg .stat strong,
.cta-band.has-custom-bg .stat span {
  color: var(--cta-on);
}

.cta-band.has-custom-bg .stat span {
  opacity: 0.8;
}

.page-hero {
  padding: 5rem 0 3rem;
  background:
    linear-gradient(180deg, var(--stone), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.avatar {
  width: 120px;
  height: 140px;
  background: linear-gradient(160deg, var(--ink-soft), var(--color-tertiary));
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-grid--with-map {
  grid-template-columns: 1.05fr 0.95fr;
}

.contact-map__head {
  margin-bottom: 1rem;
}

.contact-map__head p {
  margin: 0.5rem 0 0;
  color: var(--muted, #5a6a7a);
}

.contact-map .map-embed {
  min-height: 100%;
}

.contact-map .map-embed iframe {
  height: min(560px, 70vh);
}

.contact-form-col .contact-list {
  margin-bottom: 1.25rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list strong {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.contact-list strong .fa-solid {
  width: 1rem;
  text-align: center;
  color: var(--color-primary);
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius-control);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Home news carousel — 3 cards visible on desktop */
.news-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.news-carousel .news-card {
  height: 100%;
  min-height: 26rem;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 26rem;
  background: var(--white);
  border-top: 2px solid var(--color-tertiary);
  box-shadow: var(--shadow);
  color: inherit;
  overflow: hidden;
}

.news-card__link:hover .news-card__more {
  text-decoration: underline;
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-deep);
}

.news-card__media:not(.media-blur) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__media.media-blur .media-blur__photo,
.news-card__media.media-blur .media-blur__bg {
  width: 100%;
  height: 100%;
}

.news-card__media--placeholder,
.news-card__media--fallback {
  background: linear-gradient(145deg, var(--stone), var(--stone-deep));
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.news-card__fallback-logo {
  max-width: min(70%, 11rem);
  max-height: 3.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.news-card__fallback-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.news-filters__search,
.news-filters__category {
  position: relative;
}

.news-filters__search {
  flex: 1 1 14rem;
  min-width: 12rem;
}

.news-filters__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  pointer-events: none;
  font-size: 0.9rem;
  z-index: 1;
}

.news-filters__search input,
.news-filters__category select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem 0.55rem 2.35rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font: inherit;
}

.news-filters__category {
  flex: 0 1 12rem;
  min-width: 10rem;
}

.news-filters .btn {
  flex: 0 0 auto;
}

.news-filters__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
}

.news-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  background: var(--color-tertiary);
  color: var(--on-tertiary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card__more .fa-solid {
  color: var(--color-primary);
  font-size: 0.8em;
  transition: transform 0.2s var(--ease);
}

.news-card__link:hover .news-card__more .fa-solid {
  transform: translateX(3px);
}

.news-card--featured .news-card__link {
  border-top-color: var(--color-secondary);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.post-meta__featured {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: var(--color-tertiary);
  color: var(--on-tertiary);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.post-detail {
  max-width: 46rem;
}

.post-detail__media {
  margin: 0 0 1.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--stone-deep);
}

.post-detail__media:not(.media-blur) img {
  width: 100%;
  height: auto;
  display: block;
}

.post-detail__media.media-blur .media-blur__photo,
.post-detail__media.media-blur .media-blur__bg {
  width: 100%;
  height: 100%;
}

.post-taxonomies {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-taxonomies__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.post-taxonomies__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-width: 6.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.post-taxonomies__label .fa-solid {
  color: var(--color-primary);
}

.post-taxonomies__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-taxonomies__list a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
}

.post-taxonomies__list a:hover {
  border-color: var(--color-tertiary);
  color: var(--color-secondary);
}

.post-detail__content {
  margin-bottom: 2rem;
}

.post-detail__back {
  margin: 0;
}

.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1000px) and (min-width: 701px) {
  .news-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-archive-grid .news-card {
  min-height: 26rem;
}

.news-pagination {
  margin-top: 2.5rem;
}

.news-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.news-pagination .page-numbers li {
  margin: 0;
}

.news-pagination a.page-numbers,
.news-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.news-pagination span.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.3rem 1.4rem;
  flex: 1;
  min-height: 11.5rem;
}

.news-card__body time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  text-transform: uppercase;
}

.news-card__body time .fa-solid {
  color: var(--color-secondary);
}

.stat__icon {
  color: var(--on-ink);
  margin-right: 0.25rem;
}

/* Dark surfaces: CTA icons white; hero/slider captions use --caption-color */
.cta-band .eyebrow .fa-solid,
.cta-band .stat__icon {
  color: var(--on-ink);
}

.hero .btn .fa-solid,
.hero-slider .btn .fa-solid,
.cta-band .btn .fa-solid {
  color: inherit;
}

/* Light surfaces: leading icons use secondary; headings keep primary text */
.page-hero .eyebrow .fa-solid,
.section .eyebrow .fa-solid,
.section .heading-icon,
.section .heading-icon .fa-solid,
.section .heading-icon .fa-brands,
.section .heading-icon .fa-regular,
.page-hero .heading-icon,
.page-hero .heading-icon .fa-solid,
.page-hero .heading-icon .fa-brands,
.page-hero .heading-icon .fa-regular {
  color: var(--color-secondary);
}

.post-meta .fa-solid,
.post-meta__featured .fa-solid {
  color: inherit;
}

.news-card__body h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--ink);
}

.news-card__body p {
  margin: 0;
  color: var(--text);
  flex: 1;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.news-carousel.owl-theme .owl-nav {
  display: none;
}

.news-carousel.owl-theme .owl-dots {
  margin-top: 1.25rem;
  text-align: center;
  line-height: 0;
}

.news-carousel.owl-theme .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 0.28rem;
}

.news-carousel.owl-theme .owl-dots .owl-dot span {
  width: 0.65rem;
  height: 0.65rem;
  margin: 0;
  display: block;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.news-carousel.owl-theme .owl-dots .owl-dot.active span,
.news-carousel.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
}

.insights-list {
  display: grid;
  gap: 1rem;
}

.insight {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.insight time {
  font-size: 0.85rem;
  color: var(--color-secondary);
  letter-spacing: 0.04em;
}

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand-name,
.site-footer h3,
.site-footer p,
.site-footer .footer-bottom {
  color: var(--on-ink);
}

.site-footer .brand-tag {
  color: var(--color-secondary);
}

.site-footer h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer h3 .fa-solid,
.site-footer a .fa-solid {
  color: var(--on-ink);
  width: 1rem;
  text-align: center;
}

.site-footer .footer-socials__link .fa-brands,
.site-footer .footer-socials__link .fa-solid {
  color: var(--on-ink);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Beat browser :link/:visited blue on any primary (black, navy, red, …) */
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus,
.site-footer .footer-socials a,
.site-footer .footer-socials a:link,
.site-footer .footer-socials a:visited,
.site-footer .footer-socials a:hover,
.site-footer .footer-socials a:active,
.site-footer .footer-socials a:focus {
  color: var(--on-ink);
}

.site-footer a:hover,
.site-footer a:focus,
.site-footer .footer-socials a:hover,
.site-footer .footer-socials a:focus {
  text-decoration: underline;
  opacity: 0.85;
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0.88;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  opacity: 0.95;
}

.footer-legal a:hover,
.footer-legal a:focus {
  opacity: 1;
  color: var(--color-tertiary);
}

.footer-legal__sep {
  opacity: 0.55;
}

.map-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 360px;
  box-shadow: var(--shadow);
  border-radius: var(--radius-box);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Site Settings → Lazy load components = Off */
body.lazy-components-off .reveal {
  opacity: 1;
  transform: none;
}

/* Tablet and down */
@media (max-width: 900px) {
  .news-carousel .news-card,
  .news-card__link,
  .news-archive-grid .news-card {
    min-height: 24rem;
  }

  .news-archive-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 2rem, var(--max));
  }

  .header-inner {
    min-height: 4rem;
    gap: 1rem;
  }

  .brand-name {
    font-size: 1.4rem;
    letter-spacing: 0.06em;
  }

  .brand-logo {
    max-height: 2.15rem;
  }

  .split,
  .practice-grid,
  .points-grid,
  .card-grid,
  .stat-row,
  .team-grid,
  .contact-grid,
  .footer-grid,
  .profile-cards,
  .offer-cards,
  .offer-list-item,
  .profile-card,
  .profile-list-item {
    grid-template-columns: 1fr;
  }

  .insight {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: min(75vh, 32rem);
    overflow-y: auto;
    padding: 0.85rem 1.15rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav .menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.15rem;
  }

  .nav .menu-link {
    padding: 0.7rem 0.15rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  .nav .menu-item:last-child > .menu-item-inner > .menu-link--depth-0 {
    justify-content: center;
    margin-top: 0.65rem;
    min-height: 2.85rem;
  }

  .nav .submenu-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .nav .sub-menu,
  .nav .sub-menu--level-1,
  .nav .sub-menu--level-2 {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--stone-deep);
    margin: 0.15rem 0 0.45rem 0.35rem;
    padding: 0.15rem 0 0.15rem 0.65rem;
    background: transparent;
  }

  .nav .menu-item.is-open > .sub-menu {
    display: block;
  }

  .nav .sub-menu .menu-link {
    padding: 0.55rem 0.25rem;
  }

  .nav .sub-menu .submenu-toggle .fa-chevron-right {
    transform: rotate(90deg);
  }

  .nav .sub-menu .menu-item.is-open > .menu-item-inner > .submenu-toggle .fa-chevron-right {
    transform: rotate(-90deg);
  }

  /* Hero + page headers: room to breathe on phones */
  .hero {
    min-height: auto;
  }

  .hero-slider__track {
    height: min(78vh, 640px);
    min-height: 24rem;
  }

  .hero-content,
  .hero-slider__caption {
    padding: 4.5rem 0 3.25rem;
    max-width: none;
  }

  .hero h1,
  .hero-slider__caption h1,
  .page-hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.75rem);
    line-height: 1.18;
    margin-bottom: 0.85rem;
  }

  .hero p,
  .hero-slider__caption p,
  .page-hero p {
    font-size: 1rem;
    line-height: 1.55;
    max-width: none;
  }

  .page-hero {
    padding: 2.75rem 0 2rem;
  }

  .page-hero .container > * + * {
    margin-top: 0.65rem;
  }

  .eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .btn-row {
    gap: 0.75rem;
    margin-top: 1.35rem;
  }

  .btn {
    min-height: 2.85rem;
    padding: 0.7rem 1.15rem;
  }

  .hero-slider__prev {
    left: 0.75rem;
  }

  .hero-slider__next {
    right: 0.75rem;
  }

  .hero-slider__dots {
    bottom: 0.85rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 6.5vw, 2.35rem);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .header-inner {
    min-height: 3.65rem;
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-name {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
  }

  .brand-tag {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .brand-logo {
    max-height: 1.9rem;
    max-width: min(100%, 10.5rem);
  }

  .nav {
    padding: 0.75rem 0.9rem 1.1rem;
    max-height: min(70vh, 28rem);
  }

  .nav .menu-link {
    padding: 0.8rem 0.1rem;
  }

  .hero-content,
  .hero-slider__caption {
    padding: 3.5rem 0 2.75rem;
  }

  .hero h1,
  .hero-slider__caption h1,
  .page-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .page-hero {
    padding: 2.25rem 0 1.65rem;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-slider__prev,
  .hero-slider__next {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.35rem;
  }
}

/* WordPress admin bar on mobile — keep sticky header usable */
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
}
