/* Service / inner page styles — extends styles.css */

.page-hero {
  position: relative;
  padding: clamp(2.5rem, 6vh, 4rem) 0 2.5rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(0, 88, 159, 0.14), transparent 55%),
    linear-gradient(160deg, #eef4fa 0%, #f7fafc 55%, #e8f0f7 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--blue-deep);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.page-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.page-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 4 / 3;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-body {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
}

.prose h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.5rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

.feature-card {
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 88, 159, 0.28);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  transition: background 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  background: var(--blue-soft);
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 1rem;
}

.aside-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.aside-links a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--blue-deep);
  background: var(--bg);
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.aside-links a:hover,
.aside-links a.is-current {
  background: var(--blue-soft);
  border-color: rgba(0, 88, 159, 0.25);
}

.aside-cta {
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: #fff;
  border: 0;
}

.aside-cta h2,
.aside-cta p,
.aside-cta a {
  color: #fff;
}

.aside-cta p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  opacity: 0.9;
  line-height: 1.55;
}

.aside-cta .btn {
  width: 100%;
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}

.aside-cta .btn:hover {
  background: var(--blue-soft);
}

.related-strip {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.related-strip h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.related-grid a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.related-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 88, 159, 0.3);
  box-shadow: var(--shadow-sm);
  color: var(--blue-deep);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 0.2rem;
}

.nav-dropdown-menu a {
  display: block !important;
  padding: 0.6rem 0.75rem !important;
  border-radius: 6px;
  color: var(--ink) !important;
  font-size: 0.88rem !important;
  white-space: normal;
  line-height: 1.35;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  background: var(--blue-soft);
  color: var(--blue-deep) !important;
}

.service-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-hub-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-hub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 88, 159, 0.3);
  box-shadow: var(--shadow);
  background: #fff;
}

.service-hub-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.service-hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.service-hub-card span {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--blue);
}

@media (max-width: 960px) {
  .page-hero-grid,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
  }

  .feature-grid,
  .related-grid,
  .service-hub {
    grid-template-columns: 1fr;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 0.5rem;
    background: transparent;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav.is-open .nav-dropdown-menu {
    display: grid;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .service-hub,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
