/* ============================================================
   COMPONENTS — Andrew O'Bryan Wills & Estates
   All reusable UI components, mobile-first.
   ============================================================ */


/* ============================================================
   1. CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.container--narrow {
  max-width: 860px;
}

.container--prose {
  max-width: var(--max-width-prose);
}


/* ============================================================
   2. SITE NAV
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background-color: var(--color-white);
  border-bottom: var(--border-width) solid transparent;
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.site-nav--scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-gray-100);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}

/* Logo */
.site-nav__logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo:hover {
  text-decoration: none;
}

.site-nav__logo-text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-dark);
  line-height: var(--leading-tight);
}

.site-nav__logo-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1;
}

/* Nav menu */
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--color-navy);
  text-decoration: none;
  border-bottom-color: var(--color-gold-light);
}

.site-nav__link.is-active:not(.site-nav__link--cta),
.site-nav__link[aria-current="page"]:not(.site-nav__link--cta) {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

/* CTA link in nav */
.site-nav__link--cta {
  margin-left: var(--space-2);
  border-bottom: none !important;
}

/* Hamburger button */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy-dark);
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  transform-origin: center;
}

/* Hamburger open state */
.site-nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 900px) {
  .site-nav__hamburger {
    display: flex;
  }

  .site-nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-6) var(--container-padding-x) var(--space-10);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform var(--transition-slow),
      opacity var(--transition-base),
      visibility var(--transition-base);
    z-index: var(--z-nav);
    border-top: var(--border-width) solid var(--color-border);
  }

  .site-nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__link {
    font-size: var(--text-lg);
    padding: var(--space-4) 0;
    border-bottom: var(--border-width) solid var(--color-border-muted);
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .site-nav__link:last-child {
    border-bottom: none;
  }

  .site-nav__link--cta {
    margin-left: 0;
    margin-top: var(--space-4);
    justify-content: center;
  }
}


/* ============================================================
   3. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: var(--border-width-2) solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

/* Primary */
.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--primary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Secondary */
.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Ghost — for dark backgrounds */
.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

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

/* Gold */
.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-navy-dark);
  box-shadow: var(--shadow-md);
}

/* Size variants */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

/* Full width */
.btn--full {
  width: 100%;
}


/* ============================================================
   4. HERO
   ============================================================ */

.hero {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Home hero — Melbourne skyline photo with navy overlay */
.hero--home {
  background-color: var(--color-navy-dark);
  background-image: url('../assets/images/hero-melbourne-skyline.jpg');
  background-size: cover;
  background-position: center 60%;
  color: var(--color-white);
}

.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 26, 58, 0.62);
  pointer-events: none;
}

.hero--home .container {
  position: relative;
  z-index: 1;
}

/* Inner page hero — cream bg, navy text */
.hero--page {
  min-height: 40vh;
  background-color: var(--color-cream);
  border-bottom: var(--border-width) solid var(--color-border);
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: inherit;
  margin-bottom: var(--space-6);
}

.hero--page .hero__headline {
  color: var(--color-navy-dark);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}

.hero__subheadline {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.hero--page .hero__subheadline {
  color: var(--color-gray-600);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Optional headshot area */
.hero__image {
  flex-shrink: 0;
  width: 340px;
  max-width: 40%;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}

/* Hero inner layout — two column when image present */
.hero--with-image .container {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.hero--with-image .hero__content {
  flex: 1;
}

@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero--with-image .container {
    flex-direction: column;
  }

  .hero__image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__subheadline {
    font-size: var(--text-lg);
  }
}


/* ============================================================
   5. SECTION
   ============================================================ */

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--cream   { background-color: var(--color-cream);      }
.section--white   { background-color: var(--color-white);      }
.section--alt     { background-color: var(--color-cream-dark); }
.section--gray    { background-color: var(--color-gray-50);    }
.section--navy    {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5,
.section--navy h6 {
  color: var(--color-white);
}

.section--navy p,
.section--navy li {
  color: rgba(255, 255, 255, 0.85);
}

/* Tighter sections */
.section--sm {
  padding-top: calc(var(--section-padding-y) * 0.6);
  padding-bottom: calc(var(--section-padding-y) * 0.6);
}


/* ============================================================
   6. SECTION HEADER
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header--left {
  text-align: left;
}

.section-header__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

/* On navy backgrounds */
.section--navy .section-header__eyebrow {
  color: var(--color-gold);
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-4);
}

.section--navy .section-header__title {
  color: var(--color-white);
}

.section-header__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--left .section-header__lead {
  margin-left: 0;
}

.section--navy .section-header__lead {
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   7. SERVICE CARD & SERVICES GRID
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-gray-300);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 48px;
  color: var(--color-navy);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  color: var(--color-navy-dark);
  margin: 0;
}

.service-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  flex: 1;
  margin: 0;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card__link:hover {
  color: var(--color-navy-light);
  gap: var(--space-2);
  text-decoration: none;
}

.service-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.service-card__link:hover::after {
  transform: translateX(3px);
}


/* ============================================================
   8. ARTICLE CARD & ARTICLES GRID
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-card__image img {
  transform: scale(1.03);
}

.article-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.article-card__date {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  color: var(--color-navy-dark);
  margin: 0;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover {
  color: var(--color-navy-light);
  text-decoration: none;
}

.article-card__excerpt {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.article-card__link:hover {
  color: var(--color-navy-light);
  text-decoration: none;
  gap: var(--space-2);
}

.article-card__link::after {
  content: '→';
}

.article-card__link--external::after {
  content: '↗';
}

.external-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  padding: 0.2rem 0.55rem;
  background: rgba(196, 155, 58, 0.12);
  color: var(--color-gold-dark);
  border: 1px solid rgba(196, 155, 58, 0.3);
  white-space: nowrap;
}


/* ============================================================
   9. TRUST BAR
   ============================================================ */

.trust-bar {
  background-color: var(--color-navy);
  background-image: linear-gradient(90deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (max-width: 640px) {
  .trust-bar__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.trust-bar__value {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  line-height: var(--leading-tight);
}

.trust-bar__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-normal);
}

/* Dividers between items on desktop */
@media (min-width: 641px) {
  .trust-bar__item:not(:last-child) {
    border-right: var(--border-width) solid rgba(255, 255, 255, 0.15);
  }
}


/* ============================================================
   10. CTA BAND
   ============================================================ */

.cta-band {
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.cta-band__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}


/* ============================================================
   11. TESTIMONIAL & TESTIMONIALS GRID
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial {
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: var(--text-6xl);
  line-height: 0.8;
  color: var(--color-gold);
  opacity: 0.6;
  display: block;
  margin-bottom: var(--space-2);
}

.testimonial--centered {
  text-align: center;
  align-items: center;
}

.testimonial--centered::before {
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-navy-dark);
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial__quote {
    font-size: var(--text-lg);
  }
}

.testimonial__attribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial__name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  color: var(--color-gray-900);
}

.testimonial__context {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}


/* ============================================================
   12. FAQ ACCORDION
   The site standardises on the .faq-accordion pattern (see the
   FAQ ACCORDION block further down, alongside the other aliases)
   for all button-based FAQs, driven by nav.js.
   ============================================================ */


/* ============================================================
   13. PROCESS TIMELINE
   ============================================================ */

.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
}

@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

/* Connecting line — desktop only */
@media (min-width: 768px) {
  .process-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    z-index: 0;
  }
}

/* 3-step variant — used where a process only has 3 stages */
@media (min-width: 768px) {
  .process-timeline--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-timeline--3::before {
    left: calc(16.667% + 20px);
    right: calc(16.667% + 20px);
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  position: relative;
}

@media (min-width: 768px) {
  .step {
    align-items: center;
    text-align: center;
  }
}

/* Vertical line — mobile only */
@media (max-width: 767px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% + var(--space-8));
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  }

  .step {
    padding-left: var(--space-12);
  }
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

@media (max-width: 767px) {
  .step__number {
    position: absolute;
    left: 0;
    top: 0;
  }
}

.step:hover .step__number {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  transform: scale(1.1);
}

.step__title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semi);
  color: var(--color-navy-dark);
  line-height: var(--leading-snug);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}


/* ============================================================
   14. CONTACT FORM
   ============================================================ */

.contact-form {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-10);
}

@media (max-width: 640px) {
  .contact-form {
    padding: var(--space-6);
    border-radius: var(--border-radius-md);
  }
}

.contact-form__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-2);
}

.contact-form__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
}

.contact-form__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 520px) {
  .form-row--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.form-group label .required {
  color: #DC2626;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-gray-300);
  border-radius: var(--border-radius);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.contact-form__submit {
  margin-top: var(--space-2);
}

.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.form-status--success {
  color: var(--color-success, #176b3a);
}

.form-status--error {
  color: var(--color-error, #b42318);
}

/* Form error states */
.form-group--error input,
.form-group--error select,
.form-group--error textarea {
  border-color: #DC2626;
}

.form-group__error-msg {
  font-size: var(--text-xs);
  color: #DC2626;
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}

.form-success.is-visible {
  display: block;
}

.form-success__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.form-success__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-3);
}

.form-success__text {
  color: var(--color-gray-600);
}


/* ============================================================
   15. SITE FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-navy);
  background-image: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

@media (min-width: 640px) {
  .site-footer__main {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .site-footer__main {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-12);
  }
}

/* Footer logo + description col */
.site-footer__brand {}

.site-footer__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  margin-bottom: var(--space-5);
}

.site-footer__logo-text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--leading-tight);
}

.site-footer__logo-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.site-footer__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}

/* Footer column headings */
.site-footer__col-subheading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.site-footer__col-subheading:first-of-type {
  margin-top: var(--space-4);
}

.site-footer__col-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

/* Footer link lists */
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.site-footer__links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

/* Footer contact info */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-footer__contact-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__contact-value {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__contact-value a:hover {
  color: var(--color-white);
}

/* Footer offices */
.site-footer__offices {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.site-footer__office {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-footer__office-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__office-addr {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-relaxed);
  font-style: normal;
}

/* Footer content disclaimer */
.site-footer__disclaimer {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.45);
  max-width: 860px;
  margin-bottom: var(--space-6);
}

.site-footer__disclaimer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.site-footer__disclaimer a:hover {
  color: var(--color-gold);
}

/* Footer bottom bar */
.site-footer__bottom {
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__built-by {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__built-by a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__built-by a:hover {
  color: var(--color-gold);
}

.site-footer__legal-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__legal-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__legal-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   16. BREADCRUMB
   ============================================================ */

/* .breadcrumb wraps a <nav>; .breadcrumb__list is the actual flex row (an <ol>) */
.breadcrumb {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--color-gray-300);
  font-size: var(--text-xs);
}

.breadcrumb__link {
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

.breadcrumb__current,
.breadcrumb__item--current {
  color: var(--color-gray-900);
  font-weight: var(--font-weight-medium);
}

/* Light variant — for breadcrumbs sitting on a navy/dark hero background */
.breadcrumb--light,
.page-hero--navy .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb--light .breadcrumb__link,
.page-hero--navy .breadcrumb__link {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb--light .breadcrumb__link:hover,
.page-hero--navy .breadcrumb__link:hover {
  color: var(--color-white);
}

.breadcrumb--light .breadcrumb__item:not(:last-child)::after,
.page-hero--navy .breadcrumb__item:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb--light .breadcrumb__current,
.breadcrumb--light .breadcrumb__item--current,
.page-hero--navy .breadcrumb__current,
.page-hero--navy .breadcrumb__item--current {
  color: var(--color-white);
}


/* ============================================================
   17. PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background-color: var(--color-cream);
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  border-bottom: var(--border-width) solid var(--color-border);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-5);
}

.page-hero__lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  max-width: 640px;
}

@media (max-width: 640px) {
  .page-hero__lead {
    font-size: var(--text-lg);
  }
}


/* ============================================================
   18. RELATED SERVICES
   ============================================================ */

.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-services__item {
  flex: 0 0 auto;
}

.related-services__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.related-services__link::after {
  content: '→';
  font-size: var(--text-xs);
  transition: transform var(--transition-fast);
}

.related-services__link:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}

.related-services__link:hover::after {
  transform: translateX(3px);
}


/* ============================================================
   LINK UTILITIES
   ============================================================ */

.link-gold {
  color: var(--color-gold);
  text-decoration: none;
}
.link-gold:hover {
  color: var(--color-gold-dark);
}


/* ============================================================
   19. CALLOUT
   ============================================================ */

.callout {
  padding: var(--space-6);
  border-radius: var(--border-radius-md);
  border-left: 4px solid transparent;
  margin: var(--space-6) 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout__title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semi);
  margin-bottom: var(--space-2);
}

/* Info callout */
.callout--info {
  background-color: var(--color-cream-dark);
  border-left-color: var(--color-navy-light);
}

.callout--info .callout__title {
  color: var(--color-navy-dark);
}

.callout--info p {
  color: var(--color-gray-700);
  font-size: var(--text-sm);
}

/* Gold callout */
.callout--gold {
  background-color: var(--color-gold-light);
  border-left-color: var(--color-gold);
}

.callout--gold .callout__title {
  color: var(--color-navy-dark);
}

.callout--gold p {
  color: var(--color-gray-700);
  font-size: var(--text-sm);
}

/* Important callout */
.callout--important {
  background-color: var(--color-navy);
  border-left-color: var(--color-gold);
}

.callout--important .callout__title {
  color: var(--color-white);
}

.callout--important p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
}


/* ============================================================
   20. CATEGORY TAG
   ============================================================ */

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  background: rgba(27, 58, 107, 0.07);
  color: var(--color-navy);
  border: 1px solid rgba(27, 58, 107, 0.14);
  white-space: nowrap;
}

/* Category modifier classes (--disputes/--planning/--probate/--poa) are intentionally
   undifferentiated — the base .category-tag style above already applies to them;
   category is conveyed by the label text, not colour. */

/* ============================================================
   OFFICE CARD
   ============================================================ */

.office-card {
  padding: var(--space-8);
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-md);
}

.office-card__name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-4);
}

.office-card__detail {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.office-card__detail-icon {
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 2px;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  text-decoration: none;
  border: var(--border-width) solid var(--color-border);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.pagination__link:hover,
.pagination__link.is-active {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  text-decoration: none;
}

.pagination__ellipsis {
  color: var(--color-gray-400);
  padding: 0 var(--space-2);
}


/* ============================================================
   BUTTON HOVER IMPROVEMENTS
   ============================================================ */

/* Ghost button: make hover clearly visible on photo/dark backgrounds */
.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: var(--color-white);
  color: var(--color-white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), var(--shadow-sm);
}

/* Secondary button: on navy background the border/bg merge — add white border on hover */
.btn--secondary:hover {
  background-color: var(--color-navy);
  border-color: var(--color-white);
  color: var(--color-white);
}


/* ============================================================
   PHANTOM CLASS ALIASES
   Fixes HTML pages that use inconsistent BEM naming.
   These map non-existent class names to the correct styles.
   ============================================================ */

/* Section heading pattern — alias variants used across contact/services pages */
.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-heading,
.section-header__heading {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark section overrides */
.section--navy .section-eyebrow { color: var(--color-gold); }
.section--navy .section-heading,
.section--navy .section-header__heading { color: var(--color-white); }
.section--navy .section-lead { color: rgba(255, 255, 255, 0.75); }

/* Page hero heading — used in contact/service pages instead of __title */
.page-hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-5);
}

/* page-hero--navy variant used in contact.html hero */
.page-hero--navy {
  background-color: var(--color-navy);
  border-bottom-color: transparent;
}
.page-hero--navy .page-hero__eyebrow { color: var(--color-gold); }
.page-hero--navy .page-hero__heading,
.page-hero--navy .page-hero__title { color: var(--color-white); }
.page-hero--navy .page-hero__lead { color: rgba(255, 255, 255, 0.82); }
/* Breadcrumb light-on-navy treatment now lives in the BREADCRUMB component above */

/* Process timeline — pages use process-timeline__* instead of .step__* */
.process-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  position: relative;
}

@media (min-width: 768px) {
  .process-timeline__step {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .process-timeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% + var(--space-8));
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  }
  .process-timeline__step {
    padding-left: var(--space-12);
  }
}

.process-timeline__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

@media (max-width: 767px) {
  .process-timeline__number {
    position: absolute;
    left: 0;
    top: 0;
  }
}

.process-timeline__step:hover .process-timeline__number {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  transform: scale(1.1);
}

.process-timeline__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.process-timeline__title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semi);
  color: var(--color-navy-dark);
  line-height: var(--leading-snug);
}

.process-timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* CTA band aliases — pages use cta-band--navy and cta-band__heading */
.cta-band--navy {
  /* .cta-band is already navy — no additional styles needed */
}

.cta-band__heading {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.cta-band__inner,
.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-band__inner--split,
  .cta-band__content--split {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

.cta-band__phone {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
}

.cta-band__phone-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.cta-band__phone-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  text-decoration: none;
}

.cta-band__phone-number:hover {
  color: var(--color-white);
  text-decoration: none;
}

/* Feature list — used in service pages' "What's Involved" sections */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--color-cream);
  border-radius: var(--border-radius-md);
  border: var(--border-width) solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
}

.feature-list__item::before {
  content: '✓';
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Numbered variant of feature-list — same card layout, a sequential
   number instead of a checkmark. Use for ordered/procedural steps
   where sequence matters and a checkmark's "done/included"
   connotation doesn't fit. */
.feature-list--numbered {
  counter-reset: feature-list-counter;
}

.feature-list--numbered .feature-list__item {
  counter-increment: feature-list-counter;
}

.feature-list--numbered .feature-list__item::before {
  content: counter(feature-list-counter) '.';
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Data table — used for fee scales and similar tabular content.
   Migrated here from a page-level <style> block in
   contesting-wills-victoria.html so it's available to any page. */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: var(--text-sm);
}
.data-table thead th {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: var(--font-weight-semi);
  font-family: var(--font-sans);
}
.data-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-gray-200);
  vertical-align: top;
  line-height: 1.55;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:nth-child(even) td {
  background: var(--color-gray-50);
}

/* Related services child span classes */
.related-services__title {
  font-weight: var(--font-weight-medium);
}

.related-services__desc {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-normal);
  opacity: 0.75;
  margin-top: 2px;
}

/* Hide the CSS ::after arrow when HTML provides an explicit arrow span */
.related-services__link:has(.related-services__arrow)::after {
  display: none;
}

.related-services__arrow {
  margin-left: auto;
  flex-shrink: 0;
}

/* FAQ: details/summary-based pattern (contact.html) */
.faq-item {
  border-bottom: var(--border-width) solid var(--color-border);
}

.faq-item:first-child {
  border-top: var(--border-width) solid var(--color-border);
}

.faq-details {
  width: 100%;
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  padding: var(--space-5) 0;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy-dark);
  gap: var(--space-4);
  list-style: none;
  transition: color var(--transition-fast);
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-summary:hover { color: var(--color-navy-light); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: var(--border-width-2) solid var(--color-navy);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), background-color var(--transition-base);
  color: var(--color-navy);
  font-size: var(--text-lg);
  line-height: 1;
  font-style: normal;
}

.faq-icon::before {
  content: '+';
  display: block;
  transform-origin: center;
  transition: transform var(--transition-base);
}

details[open] .faq-icon {
  transform: rotate(45deg);
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.faq-answer {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-700);
}

.faq-answer p + p {
  margin-top: var(--space-4);
}

/* FAQ: button-based accordion pattern (service pages — .faq-accordion) */
.faq-accordion {
  max-width: 800px;
}

.faq-accordion--wide {
  max-width: 100%;
}

.faq-accordion__item {
  border-bottom: var(--border-width) solid var(--color-border);
}

.faq-accordion__item:first-child {
  border-top: var(--border-width) solid var(--color-border);
}

.faq-accordion__question,
.faq-accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy-dark);
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq-accordion__question:hover,
.faq-accordion__btn:hover {
  color: var(--color-navy-light);
}

.faq-accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: var(--border-width-2) solid var(--color-navy);
  border-radius: var(--border-radius-full);
  transition: background-color var(--transition-base), border-color var(--transition-base);
  color: var(--color-navy);
}

/* Plus/cross drawn from two centered bars rather than a text glyph, so it's
   always pixel-perfectly centred within the circle (a "+" character's own
   font metrics tend to sit slightly off-centre). */
.faq-accordion__icon::before,
.faq-accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion__item--open .faq-accordion__icon {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.faq-accordion__item--open .faq-accordion__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-accordion__item--open .faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.faq-accordion__answer {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: max-height var(--transition-slow) ease, padding-bottom var(--transition-slow) ease;
}

.faq-accordion__answer--open {
  padding-bottom: var(--space-6);
}

.faq-accordion__answer--open {
  max-height: 1200px;
}

/* Answer body content — paragraph spacing and list markers.
   The global reset zeroes all margin/padding, so without this, a
   list's "outside" marker renders in the zeroed-out indent and gets
   clipped by this element's overflow:hidden, and stacked <p> tags
   run together with no gap. */
.faq-accordion__answer p + p {
  margin-top: var(--space-4);
}

.faq-accordion__answer ul,
.faq-accordion__answer ol {
  margin: var(--space-4) 0 var(--space-4) var(--space-6);
}

.faq-accordion__answer li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

.faq-accordion__answer ul li { list-style-type: disc; }
.faq-accordion__answer ol li { list-style-type: decimal; }

/* Lettered ordered lists — opt-in via class="list-alpha" on the <ol>.
   Needs higher specificity than the "ol li { decimal }" defaults above
   and .prose ol li in typography.css, since list-style-type set on an
   li directly always wins over an inherited value from its parent. */
.prose ol.list-alpha > li,
.faq-accordion__answer ol.list-alpha > li {
  list-style-type: lower-alpha;
}

.faq-accordion__answer-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-700);
}

.faq-accordion__answer-inner p + p {
  margin-top: var(--space-4);
}

/* Responsive layout helpers — used inline in contact.html */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 900px) {
  .layout-2col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .layout-2col--wide-left {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* Content + sidebar layout — used in services page intro sections
   (main prose content + a "Book a Consultation" callout).
   The callout always sits below the main content as a centered card
   (previously a right-hand sticky sidebar on screens 900px and up). */
.content-aside-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

.content-aside-layout__main {
  min-width: 0;
}

.content-aside-layout__aside {
  min-width: 0;
}

.content-aside-layout__aside .callout {
  max-width: 480px;
}

/* Left-aligned narrow content wrapper — used inside a full-width .container
   (e.g. the "What's Involved" section) so the narrower reading column stays
   flush with the text above it, instead of being centered within the page. */
.section-content--narrow {
  max-width: 860px;
}

/* .section-header__lead centers itself by default (it's normally paired with
   a centered .section-header). Inside this left-aligned wrapper it should
   stay flush with the heading above it instead of floating inset. */
.section-content--narrow .section-header__lead {
  margin-left: 0;
  margin-right: 0;
}
