/* Extra layout helpers used by public page templates */
.display-heading {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  color: var(--navy, #071A33);
  font-weight: 700;
  line-height: 1.2;
}
.section-kicker {
  color: var(--gold, #C9A45C);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.title-rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold, #C9A45C), transparent);
  margin: 0.75rem 0 1.25rem;
  border: 0;
}
.title-rule.center { margin-left: auto; margin-right: auto; }

.section { padding: 4.25rem 0; }
.section-alt {
  background: #fff;
  border-block: 1px solid var(--border, rgba(7,26,51,.1));
}
.section-navy {
  background: linear-gradient(145deg, #071526, #123B66);
  color: #fff;
}
.section-navy .display-heading { color: #fff; }
.section-navy .title-rule { background: linear-gradient(90deg, var(--gold, #C9A45C), transparent); }

.content-wrap { padding: 3rem 0 4rem; }

.btn-gold,
.btn-primary-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold, #C9A45C);
  color: #071526;
  border: none;
  font-weight: 700;
  padding: 0.8rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
}
.btn-gold:hover { background: #e0c78a; color: #071526; }
.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,.65);
  color: #fff;
  padding: 0.8rem 1.35rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.btn-outline-brand:hover { color: var(--gold, #C9A45C); border-color: var(--gold, #C9A45C); }
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--navy, #071A33);
  color: #fff !important;
  border: none;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
}
.btn-navy:hover { background: #123B66; color: #fff !important; }

.hero {
  position: relative;
  min-height: clamp(520px, calc(100svh - 180px), 680px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(7,21,38,.94), rgba(18,59,102,.75)),
    var(--navy, #071A33);
  overflow: visible;
  padding: 3.5rem 0 4.5rem;
  box-sizing: border-box;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0;
  max-width: 720px;
  width: 100%;
}
.hero-brand {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--gold-soft, #e0c78a);
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.15;
}
.hero h1 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff !important;
  line-height: 1.3;
}
.hero p { color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 1.75rem; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-bottom: 0.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature-grid--approach {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, rgba(7,26,51,.1));
}
@media (max-width: 1199px) {
  .feature-grid--approach { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .feature-grid--approach { grid-template-columns: 1fr; }
}
.feature-item {
  padding: 1.25rem 0;
  border-top: 2px solid var(--gold, #C9A45C);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature-item h3 { font-size: 1.05rem; color: var(--navy, #071A33); font-weight: 700; }
.feature-item p { color: var(--muted, #64748B); margin: 0; font-size: 0.95rem; flex: 1; }
.feature-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy, #071A33);
  text-decoration: none;
}
.feature-more i { color: var(--gold, #C9A45C); font-size: 0.9rem; transition: transform .2s ease; }
.feature-more:hover { color: var(--gold, #C9A45C); }
.feature-more:hover i { transform: translateX(3px); }

.section-lead {
  color: var(--muted, #64748B);
  margin-bottom: 1.5rem;
  max-width: 36rem;
}
.section-copy .btn-navy,
.section-approach .btn-navy {
  margin-top: 0.25rem;
}
.section-approach .media-frame {
  margin: 0;
}

.service-tile {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border-left: 3px solid var(--gold, #C9A45C);
  box-shadow: var(--shadow, 0 12px 40px rgba(7,26,51,.08));
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease;
}
.service-tile:hover { transform: translateY(-4px); color: inherit; }
.service-tile i { color: var(--gold, #C9A45C); font-size: 1.4rem; margin-bottom: .75rem; display: inline-block; }
.service-tile h3 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 1.3rem;
  color: var(--navy, #071A33);
}
.service-tile p { color: var(--muted, #64748B); margin: 0; font-size: .95rem; flex: 1; }
.service-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  color: var(--navy, #071A33);
  font-weight: 700;
  font-size: 0.9rem;
}
.service-tile__more i {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gold, #C9A45C);
  transition: transform .2s ease;
}
.service-tile:hover .service-tile__more { color: var(--gold, #C9A45C); }
.service-tile:hover .service-tile__more i { transform: translateX(3px); }

.vmp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991px) { .vmp-grid { grid-template-columns: 1fr; } }
.vmp-item {
  padding: 1.75rem 1.25rem;
  background: rgba(255,255,255,.05);
  border-top: 3px solid var(--gold, #C9A45C);
}
.vmp-item h3 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  color: var(--gold-soft, #e0c78a);
  font-size: 1.45rem;
}
.vmp-item p { margin: 0; color: rgba(255,255,255,.86); }

.team-tile { text-align: center; padding: 1rem .5rem; text-decoration: none; color: inherit; }
.team-avatar {
  width: 112px; height: 112px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #071A33, #123B66);
  color: var(--gold-soft, #e0c78a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 2rem; font-weight: 700;
  border: 2px solid var(--gold, #C9A45C);
}
.team-tile h3 { font-size: 1rem; color: var(--navy, #071A33); margin-bottom: .2rem; }
.team-tile .cred { color: var(--gold, #C9A45C); font-size: .85rem; font-weight: 600; }

.blog-tile {
  display: block; padding: 1.5rem; background: #fff;
  border-bottom: 3px solid var(--gold, #C9A45C);
  box-shadow: var(--shadow, 0 12px 40px rgba(7,26,51,.08));
  height: 100%; color: inherit; text-decoration: none;
}
.blog-tile:hover { color: inherit; transform: translateY(-3px); }
.blog-tile .date { color: var(--gold, #C9A45C); font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.blog-tile h3 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 1.35rem; color: var(--navy, #071A33); margin: .4rem 0 .6rem;
}

.form-panel {
  background: #fff; padding: 2rem;
  box-shadow: var(--shadow, 0 12px 40px rgba(7,26,51,.08));
  border-top: 3px solid var(--gold, #C9A45C);
}
.service-short {
  background: rgba(201,164,92,.12);
  border-left: 4px solid var(--gold, #C9A45C);
  padding: 1rem 1.15rem; margin-bottom: 1.5rem; font-weight: 500;
}
.service-sections h3 { color: var(--navy, #071A33); font-size: 1.15rem; margin-top: 1.4rem; }
.service-sections li { color: var(--muted, #64748B); margin-bottom: .35rem; }
.sidebar-actions .btn { width: 100%; margin-bottom: .65rem; }

.kb-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.75rem; }
@media (max-width: 991px) { .kb-layout { grid-template-columns: 1fr; } }
.kb-sidebar {
  background: #fff; border-top: 3px solid var(--navy, #071A33);
  box-shadow: var(--shadow, 0 12px 40px rgba(7,26,51,.08));
  padding: 1rem; height: fit-content; position: sticky; top: 90px;
}
.kb-card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.15rem; background: #fff; border-left: 3px solid var(--gold, #C9A45C);
  box-shadow: var(--shadow, 0 12px 40px rgba(7,26,51,.08));
  margin-bottom: .75rem; text-decoration: none; color: inherit;
}
.kb-card__main { flex: 1; min-width: 0; }
.kb-card__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.kb-card__links li { margin-bottom: .25rem; }
.kb-card__links a { font-size: .9rem; color: var(--royal, #123B66); }
.kb-card .ext { color: var(--gold, #C9A45C); font-size: .85rem; white-space: nowrap; }
.kb-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.kb-filters button {
  border: 1px solid var(--border, rgba(7,26,51,.1)); background: #fff;
  color: var(--navy, #071A33); padding: .4rem .85rem; font-weight: 600; font-size: .85rem; border-radius: 4px;
}
.kb-filters button.active, .kb-filters button:hover {
  background: var(--navy, #071A33); color: #fff; border-color: var(--navy, #071A33);
}
.kb-disclaimer {
  background: rgba(7,26,51,.04); border: 1px dashed rgba(7,26,51,.2);
  padding: 1rem 1.15rem; font-size: .9rem; color: var(--muted, #64748B); margin-top: 2rem;
}

.prose h2 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  color: var(--navy, #071A33); font-size: 1.55rem; margin-top: 1.75rem;
}
.prose p, .prose li { color: var(--muted, #64748B); }

.reviews-cta { text-align: center; padding: 2.5rem 1rem; }
.reviews-cta p { max-width: 520px; margin: .75rem auto 1.25rem; color: var(--muted, #64748B); }

.page-banner {
  background: linear-gradient(120deg, #071526, #123B66);
  color: #fff; padding: 3.25rem 0 2.5rem; position: relative;
}
.page-banner h1 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0;
}
.breadcrumb-nav { margin-top: .75rem; font-size: .9rem; opacity: .85; }
.breadcrumb-nav a { color: var(--gold-soft, #e0c78a); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible,
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Brand logos ---------- */
.navbar-brand__logos {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.navbar-brand__logo--firm {
  width: 48px;
  height: 48px;
}

/* ---------- Hero with photo ---------- */
.hero.hero--photo {
  overflow: visible;
  background:
    linear-gradient(115deg, rgba(7, 21, 38, 0.92) 0%, rgba(7, 21, 38, 0.72) 48%, rgba(18, 59, 102, 0.55) 100%),
    var(--hero-image) center / cover no-repeat;
}
.hero.hero--photo::before,
.hero.hero--photo::after {
  display: none;
}

@media (max-width: 991px) {
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: 3rem 0 3.5rem;
  }
}

@media (max-width: 767px) {
  .hero.hero--photo {
    min-height: 0;
    padding: 2.75rem 0 3.25rem;
    background-size: cover;
  }
  .team-photo--lg { width: 120px; height: 120px; }
  .navbar-brand__text { display: none; }
}

.page-banner--photo {
  background:
    linear-gradient(120deg, rgba(7, 21, 38, 0.88), rgba(18, 59, 102, 0.72)),
    var(--banner-image) center / cover no-repeat;
}

.section-split {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(7, 21, 38, 0.94) 0%, rgba(7, 21, 38, 0.78) 55%, rgba(7, 21, 38, 0.45) 100%),
    var(--split-image) right center / cover no-repeat;
}
.section-split .display-heading { color: #fff; }
.section-split p { color: rgba(255, 255, 255, 0.88); max-width: 36rem; }

/* ---------- Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(7, 26, 51, 0.14);
  background: #0b1f3a;
  width: 100%;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold, #C9A45C), transparent);
}
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.media-frame:hover img { transform: scale(1.03); }
.media-frame--wide img { aspect-ratio: 16 / 10; }
.media-frame--article img { aspect-ratio: 16 / 9; }

/* ---------- Service icons ---------- */
.service-tile__icon-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.85rem;
  background: rgba(201, 164, 92, 0.12);
  border-radius: 8px;
}
.service-tile__icon-img img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.service-hero-icon {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 164, 92, 0.12);
  border-radius: 10px;
}
.service-hero-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* ---------- Team photos ---------- */
.team-photo {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold, #C9A45C);
  box-shadow: 0 10px 28px rgba(7, 26, 51, 0.16);
  background: #0b1f3a;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}
.team-tile:hover .team-photo img { transform: scale(1.06); }
.team-photo--lg {
  width: 160px;
  height: 160px;
}
.team-photo--profile {
  width: 220px;
  height: 220px;
  border-width: 3px;
}
.team-tile--card {
  padding: 1.35rem 1rem 1.5rem;
  background: #fff;
  box-shadow: var(--shadow, 0 12px 40px rgba(7, 26, 51, 0.08));
  border-top: 3px solid var(--gold, #C9A45C);
  height: 100%;
  transition: transform 0.2s ease;
}
.team-tile--card:hover {
  transform: translateY(-4px);
  color: inherit;
}

/* ---------- Blog media tiles ---------- */
.blog-tile--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-tile__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #071A33, #123B66);
  overflow: hidden;
}
.blog-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-tile--media:hover .blog-tile__media img { transform: scale(1.05); }
.blog-tile__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft, #e0c78a);
  font-size: 2rem;
}
.blog-tile__body { padding: 1.25rem 1.35rem 1.5rem; }

/* ---------- Contact page ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(201, 164, 92, 0.14);
  color: var(--navy, #071A33);
  font-size: 1.15rem;
}
.contact-info-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: var(--navy, #071A33);
  font-weight: 700;
}
.contact-info-item p {
  margin: 0;
  color: var(--muted, #64748B);
  font-size: 0.95rem;
}
.contact-form .req { color: #b45309; }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.qa-empty {
  background: rgba(7, 26, 51, 0.04);
  border: 1px dashed rgba(7, 26, 51, 0.18);
  padding: 1.25rem 1.35rem;
  color: var(--muted, #64748B);
}
.faq-accordion .accordion-item {
  border: 1px solid rgba(7, 26, 51, 0.1);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-weight: 600;
  color: var(--navy, #071A33);
  background: #fff;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(201, 164, 92, 0.12);
  color: var(--navy, #071A33);
}
.faq-accordion .accordion-body {
  color: var(--muted, #64748B);
  background: #fff;
}
