/* ==========================================================================
   Practice-area pages.
   Markup comes from lib/practice-page.js, which writes /practice/ and
   /practice/<slug>/ both on the dev server and in the static build.
   ========================================================================== */

/* Site-wide backdrop, painted on a fixed layer below the navy header at 70%
   opacity so the logo reads behind practice and team pages too. Mirrors the
   rule in styles.css; kept here so these pages are self-sufficient. */
html {
  background-color: #f6f8fc;
}
html::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height, 100px);
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/new-logo.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  opacity: 0.7;
}
/* Keep the page content above the backdrop layer. */
body { position: relative; z-index: 1; }

/* Page surface is 80% transparent so the site-wide backdrop shows through;
   the cards below (.pa-card, .pa-faq, .pa-others) stay opaque. */
.pa-page { background: rgba(247, 248, 251, 0.20); color: #2a3441; }
.pa-skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #fff; color: #001a5e; padding: 0.75rem 1rem;
}
.pa-skip:focus { left: 0; }

/* header */
.pa-header {
  position: sticky; top: 0; z-index: 40;
  background: #04173f;
  border-bottom: 1px solid rgba(138, 196, 255, 0.18);
}
.pa-header-inner {
  max-width: 88rem; margin: 0 auto; padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.pa-brand { display: inline-flex; align-items: center; }
.pa-brand img {
  display: block; height: 2.6rem; width: auto;
  padding: 0.25rem 0.4rem; background: #fff; border-radius: 2px;
  border: 1px solid rgba(138, 196, 255, 0.35);
}
.pa-nav { display: none; align-items: center; gap: 1.6rem; }
.pa-nav a {
  color: rgba(219, 236, 255, 0.82); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; transition: color 0.15s;
}
.pa-nav a:hover { color: #fff; }
.pa-nav a[aria-current="page"] { color: #fff; }
.pa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem; border-radius: 2px; text-decoration: none;
  background: #0090ee; color: #fff; font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.pa-btn:hover { background: #0072c6; }
.pa-btn--block { width: 100%; margin-top: 1.1rem; }

/* hero */
.pa-hero {
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(0, 144, 238, 0.28), transparent 60%),
    linear-gradient(160deg, #04173f 0%, #001a5e 55%, #052a72 100%);
  color: #eaf3ff; padding: 3.6rem 0 3.2rem;
}
.pa-wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.pa-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(219, 236, 255, 0.55); margin: 0 0 1.4rem;
}
.pa-crumbs a { color: rgba(219, 236, 255, 0.75); text-decoration: none; }
.pa-crumbs a:hover { color: #fff; }
.pa-crumbs span { color: rgba(138, 196, 255, 0.45); }
.pa-ico { color: #8ac4ff; display: inline-block; }
.pa-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.04;
  margin: 0.7rem 0 0; font-weight: 600; letter-spacing: -0.01em;
}
.pa-lead {
  max-width: 46rem; margin: 1.1rem 0 0; font-size: 1rem; line-height: 1.8;
  color: rgba(234, 243, 255, 0.76);
}

/* body */
.pa-main {
  display: grid; gap: 2.5rem; padding-top: 3.2rem; padding-bottom: 4rem;
  align-items: start;
}
.pa-body { min-width: 0; }
.pa-block { margin-bottom: 2.4rem; }
.pa-block h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem; color: #0b1220; margin: 0 0 0.8rem; font-weight: 600;
}
.pa-block p { margin: 0 0 0.85rem; font-size: 0.95rem; line-height: 1.85; color: #3d4753; }
.pa-list { list-style: none; margin: 0; padding: 0; }
.pa-list li {
  position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem;
  font-size: 0.93rem; color: #3d4753;
}
.pa-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; background: #0090ee; border-radius: 1px;
  transform: rotate(45deg);
}
.pa-faq {
  border: 1px solid rgba(0, 80, 175, 0.14); background: #fff;
  border-radius: 2px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}
.pa-faq summary {
  cursor: pointer; font-size: 0.92rem; font-weight: 500; color: #0b1220;
  list-style: none;
}
.pa-faq summary::-webkit-details-marker { display: none; }
.pa-faq summary::after { content: "+"; float: right; color: #0090ee; }
.pa-faq[open] summary::after { content: "\2013"; }
.pa-faq p { margin: 0.7rem 0 0; font-size: 0.9rem; line-height: 1.75; color: #4c5665; }
.pa-back { margin-top: 1rem; }
.pa-back a { color: #0050af; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.06em; }

/* aside */
.pa-aside { display: grid; gap: 1.4rem; }
.pa-cta {
  background: #04173f; color: #eaf3ff; border-radius: 2px;
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-soft);
}
.pa-kicker {
  margin: 0 0 0.5rem; font-size: 0.6rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(138, 196, 255, 0.85);
}
.pa-cta h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.45rem; margin: 0 0 0.6rem; line-height: 1.2;
}
.pa-cta p { font-size: 0.86rem; line-height: 1.7; color: rgba(234, 243, 255, 0.72); margin: 0; }
.pa-contact { display: grid; gap: 0.35rem; margin-top: 1rem !important; }
.pa-contact a { color: #dbecff; text-decoration: none; font-size: 0.88rem; }
.pa-contact a:hover { text-decoration: underline; }
.pa-others { border: 1px solid rgba(0, 80, 175, 0.14); background: #fff; padding: 1.4rem 1.5rem; border-radius: 2px; }
.pa-others .pa-kicker { color: #0072c6; }
.pa-others ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.pa-others li { border-top: 1px solid rgba(0, 80, 175, 0.1); }
.pa-others li:first-child { border-top: 0; }
.pa-others a { display: block; padding: 0.55rem 0; font-size: 0.88rem; color: #2a3441; text-decoration: none; }
.pa-others a:hover { color: #0050af; }

/* index */
.pa-index { padding-top: 3rem; padding-bottom: 4rem; }
.pa-grid { display: grid; gap: 1.1rem; }
.pa-card {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid rgba(0, 80, 175, 0.14);
  border-radius: 2px; padding: 1.7rem 1.6rem 1.5rem;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.pa-card:hover {
  border-color: rgba(0, 144, 238, 0.5); transform: translateY(-2px);
  box-shadow: 0 22px 48px -34px rgba(11, 18, 32, 0.55);
}
.pa-card-ico { color: #0072c6; display: inline-block; }
.pa-card-num {
  position: absolute; top: 1.4rem; right: 1.5rem; font-size: 0.6rem;
  letter-spacing: 0.2em; color: rgba(0, 80, 175, 0.45);
}
.pa-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.4rem; margin: 0.9rem 0 0.5rem; color: #0b1220;
}
.pa-card p { margin: 0 0 1rem; font-size: 0.88rem; line-height: 1.7; color: #4c5665; }
.pa-card-link {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #0050af;
}
.pa-endnote { margin-top: 2rem; font-size: 0.9rem; color: #4c5665; }
.pa-endnote a { color: #0050af; }

/* Copy that sits straight on the translucent page surface (not inside a card)
   is prepped for the backdrop: deep ink plus a soft light halo so it stays
   legible over the site mark. Cards (.pa-card, .pa-faq, .pa-others) and the
   dark hero/CTA/footer keep their own colours. */
.pa-body .pa-block h2,
.pa-body .pa-block p,
.pa-body .pa-list li,
.pa-body .pa-back a,
.pa-index .pa-endnote,
.pa-index .pa-endnote a {
  color: #1e2a38;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
.pa-body .pa-block h2 { color: #0b1220; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 18px rgba(246, 248, 252, 0.9); }
.pa-body .pa-back a,
.pa-index .pa-endnote a { color: #004a9e; }
/* Cards restore their intended colours and drop the halo. */
.pa-card, .pa-card *,
.pa-faq, .pa-faq *,
.pa-others, .pa-others * {
  text-shadow: none;
}

/* footer */
.pa-footer { background: #04173f; color: rgba(219, 236, 255, 0.62); padding: 3rem 0 2rem; margin-top: 2rem; }
.pa-footer-inner {
  max-width: 76rem; margin: 0 auto; padding: 0 1.25rem;
  display: grid; gap: 2rem;
}
.pa-footer-brand p { margin: 1rem 0 0; font-size: 0.85rem; line-height: 1.7; max-width: 22rem; }
.pa-footer-head {
  margin: 0 0 0.7rem; font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(138, 196, 255, 0.7);
}
.pa-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.pa-footer a { color: rgba(219, 236, 255, 0.8); text-decoration: none; font-size: 0.85rem; }
.pa-footer a:hover { color: #fff; }
.pa-colophon {
  max-width: 76rem; margin: 2.4rem auto 0; padding: 1.4rem 1.25rem 0;
  border-top: 1px solid rgba(138, 196, 255, 0.14); font-size: 0.72rem;
  color: rgba(219, 236, 255, 0.45); line-height: 1.6;
}

@media (min-width: 720px) {
  .pa-grid { grid-template-columns: repeat(2, 1fr); }
  .pa-footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pa-nav { display: flex; }
  .pa-main { grid-template-columns: minmax(0, 1fr) 20rem; padding-top: 3.8rem; }
  .pa-aside { position: sticky; top: 6.5rem; }
  .pa-wrap { padding: 0 2rem; }
  .pa-header-inner { padding: 0.9rem 2rem; }
  .pa-grid { grid-template-columns: repeat(3, 1fr); }
  .pa-card h2 { font-size: 1.5rem; }
}
