﻿/* Shared layout for the homepage and primary service pages. */
.core-hero {
  background: radial-gradient(ellipse at top left, #d9edf4, transparent 70%), #f3f6f9;
  border-bottom: 1px solid #cbd8e1;
  padding: clamp(1.75rem, 4vw, 3.25rem) 0;
  color: #142b3b;
}
.core-intro { max-width: 54rem; margin: 0 auto 1.75rem; text-align: center; }
.core-hero h1 {
  font-size: clamp(1.95rem, 4.3vw, 3.5rem);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -.035em;
}
.core-intro > p, .core-lead { margin-top: .85rem; font-size: 1.125rem; line-height: 1.55; }
.core-intro .core-area { font-size: 1rem; }
.core-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.core-intro .core-actions { justify-content: center; }
.core-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid #16485a;
  border-radius: .5rem;
  background: #16485a;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.core-button:hover { background: #103440; }
.core-button-outline { background: #fff; color: #16485a; }
.core-button-outline:hover { background: #e5f2f5; }
.core-button:focus-visible, .core-links a:focus-visible, .core-detail a:focus-visible {
  outline: 3px solid #106a83;
  outline-offset: 3px;
}
.core-grid { display: grid; gap: 1rem; }
.core-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd8e1;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 8px 22px #142b3b0d;
}
.core-card img { width: 100%; height: auto; aspect-ratio: 2.4; object-fit: cover; }
.core-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; }
.core-label { color: #215b6e; font-size: .95rem; font-weight: 750; }
.core-card h2, .core-related h2, .core-detail h2 { font-size: clamp(1.23rem, 2vw, 1.65rem); font-weight: 750; line-height: 1.2; }
.core-card-copy > p:not(.core-label) { color: #334b5d; font-size: 1rem; line-height: 1.5; }
.core-card .core-button { margin-top: auto; }
.core-detail-hero { display: grid; align-items: center; gap: 1.25rem; }
.core-detail-image { width: 100%; height: auto; border-radius: .9rem; }
.core-detail { max-width: 55rem; color: #203a4e; font-size: 1.125rem; line-height: 1.62; }
.core-detail > section, .core-related { padding-block: 1.5rem; }
.core-detail > section + section { border-top: 1px solid #d7e1e8; }
.core-detail p, .core-detail ul:not(.core-links) { margin-top: .65rem; }
.core-detail ul:not(.core-links) { list-style: disc; padding-left: 1.4rem; }
.core-detail li + li { margin-top: .35rem; }
.core-detail a:not(.core-button), .core-links a { color: #145268; font-weight: 650; text-decoration: underline; text-underline-offset: .16em; }
.core-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: .55rem; }
.core-links a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 54rem) {
  .core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .core-detail-hero { grid-template-columns: 1.2fr 1fr; gap: 2rem; }
}
@media (max-width: 53.999rem) {
  .core-card { display: grid; grid-template-columns: minmax(0, 1fr) clamp(72px, 20vw, 145px); }
  .core-card img { grid-column: 2; grid-row: 1; height: 100%; min-height: 0; aspect-ratio: auto; }
  .core-card-copy { grid-column: 1; grid-row: 1; }
}

main .core-hero.core-home { background: radial-gradient(ellipse at top left, #d9edf4, transparent 70%), #f3f6f9; }
.core-quick { display: none; }
@media (max-width: 53.999rem) {
  .core-quick { display: grid; gap: .2rem; margin-bottom: 1rem; }
  .core-quick a { display: flex; align-items: center; min-height: 44px; padding: .35rem .65rem; color: #14485a; font-size: 1rem; font-weight: 700; text-decoration: underline; }
}
