:root {
  --pancom-bg: #eef4ff;
  --pancom-ink: #132f4c;
  --pancom-muted: #4a6684;
  --pancom-accent: #2d84ff;
  --pancom-accent-2: #f45f95;
  --pancom-line: #c8d9ef;
  --pancom-header: rgba(13, 38, 64, 0.92);
  --pancom-footer: #0d2640;
}

body {
  margin: 0;
  color: var(--pancom-ink);
  background: #dce8ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pancom-header);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(160, 195, 215, 0.35);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 3px;
}

.brand-text {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.main-nav a {
  color: #d6e8f4;
  text-decoration: none;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(111, 170, 245, 0.24);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #d6e8f4;
  font-size: 0.84rem;
}

.lang-label {
  margin-right: 0.2rem;
}

.lang-flag {
  border: 1px solid rgba(148, 190, 216, 0.45);
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
  background: rgba(18, 51, 73, 0.68);
  color: #e7f4ff;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-flag img {
  width: 18px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.lang-flag:hover {
  background: rgba(50, 114, 155, 0.9);
}

.lang-flag.is-active {
  background: #ffffff;
  color: #0f3a63;
  border-color: #96b7ff;
  box-shadow: 0 0 0 2px rgba(122, 164, 255, 0.35);
}

.site-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem 2.8rem;
}

.hero-section {
  border: 1px solid var(--pancom-line);
  border-radius: 20px;
  padding: 1.6rem;
  background: linear-gradient(145deg, #ffffff 0%, #e8f0ff 100%);
  box-shadow: 0 16px 36px rgba(20, 52, 76, 0.08);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}

.home-hero {
  min-height: 440px;
  grid-template-columns: 1fr;
  background:
    linear-gradient(110deg, rgba(13, 40, 70, 0.7) 0%, rgba(26, 71, 120, 0.45) 36%, rgba(247, 250, 255, 0.35) 100%),
    url("/images/hero_background.png") center center / cover no-repeat;
}

.hero-section.compact {
  grid-template-columns: 1fr 0.8fr;
}

.eyebrow {
  margin: 0;
  color: #366fd9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0.45rem 0 0.4rem;
  color: #12344b;
  font-size: clamp(1.7rem, 3.7vw, 2.55rem);
}

.hero-subtitle {
  margin: 0 0 0.65rem;
  color: #2556b0;
  font-weight: 700;
}

.hero-copy p {
  color: var(--pancom-muted);
}

.home-hero .hero-copy h1 {
  color: #ffffff;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  margin-bottom: 0.7rem;
}

.home-hero .hero-copy p {
  color: #edf4ff;
  max-width: 900px;
}

.home-hero .hero-subtitle {
  color: #cfe2ff;
  font-size: 1.18rem;
  margin-top: 0.55rem;
}

.home-hero .eyebrow {
  color: #ffffff;
}

.hero-kicker {
  margin: 0.16rem 0;
  font-size: clamp(1.16rem, 2.7vw, 1.52rem);
  font-weight: 700;
  color: #ffffff;
}

.hero-contact {
  margin-top: 0.9rem;
  font-weight: 600;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.52rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.pill-link:hover {
  transform: translateY(-1px);
}

.hero-contact-pill {
  color: #ffffff;
  background: linear-gradient(120deg, rgba(64, 154, 255, 0.96), rgba(55, 105, 216, 0.96));
  border-color: rgba(220, 235, 255, 0.45);
  box-shadow: 0 10px 20px rgba(6, 28, 48, 0.28);
}

.hero-contact-pill:hover {
  box-shadow: 0 14px 24px rgba(6, 28, 48, 0.33);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: min(100%, 370px);
  height: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 0.8rem;
  border: 1px solid #d6e7f3;
  filter: drop-shadow(0 16px 26px rgba(13, 53, 72, 0.15));
}

.section-block {
  margin-top: 1.2rem;
  border: 1px solid var(--pancom-line);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.93);
}

.section-block h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  color: #1b4f86;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.text-link {
  color: #2a5fc0;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.service-grid,
.location-grid {
  display: grid;
  gap: 0.9rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.location-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-item,
.location-item {
  background: #ffffff;
  border: 1px solid #d6e5ef;
  border-radius: 12px;
  padding: 0.95rem;
}

.location-item {
  display: flex;
  flex-direction: column;
}

.service-item h3,
.location-item h3 {
  margin: 0 0 0.4rem;
  color: #1f56a5;
}

.service-item p,
.location-item p {
  margin: 0.2rem 0;
  color: var(--pancom-muted);
}

.capability-focus {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(224, 239, 255, 0.95) 100%);
}

.focus-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.focus-item {
  border: 1px solid #c9dff2;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.focus-item img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.focus-item div {
  padding: 0.85rem;
}

.focus-item h3 {
  margin: 0 0 0.35rem;
  color: #1f56a5;
}

.focus-item p {
  margin: 0;
  color: var(--pancom-muted);
}

.location-item .entity {
  color: #163c54;
  font-weight: 700;
}

.location-label {
  margin: 0 0 0.2rem;
  color: #2f6bb3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.appointment-note {
  margin: 0.2rem 0 0.45rem;
  color: #2c66a8;
  font-size: 0.84rem;
  font-weight: 700;
}

.section-note {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.media-band {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 233, 255, 0.92) 100%);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.media-tile {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d3e5f3;
  background: #ffffff;
}

.media-tile img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.media-tile div {
  padding: 0.9rem;
}

.media-tile h3 {
  margin: 0 0 0.35rem;
  color: #2b59a8;
}

.media-tile p {
  margin: 0;
  color: var(--pancom-muted);
}

.locations-compact {
  margin-top: 0.8rem;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
}

.compact-item {
  padding: 0.68rem 0.75rem;
}

.compact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.compact-item p {
  font-size: 0.9rem;
  line-height: 1.38;
  margin: 0.12rem 0;
}

.contact-email-row {
  margin-top: 0;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-email {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
}

.contact-email-pill {
  color: #ffffff;
  background: linear-gradient(120deg, var(--pancom-accent), #4586ff);
  border-color: rgba(45, 132, 255, 0.35);
}

.contact-email-pill:hover {
  box-shadow: 0 8px 18px rgba(45, 132, 255, 0.32);
}

.location-actions {
  margin-top: auto;
}

.phone-row {
  margin-top: 0.65rem;
}

.map-link {
  font-size: 0.86rem;
}

.map-link-row {
  margin-top: 0.5rem;
}

.site-footer {
  background: var(--pancom-footer);
  border-top: 3px solid #4a8fff;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1rem 1.8rem;
  color: #d2e3ee;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 6px;
  padding: 2px;
}

.footer-title {
  margin: 0;
  font-weight: 700;
}

.footer-copy,
.footer-legal,
.footer-cookie-line,
.footer-load {
  margin: 0.68rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-legal {
  color: #b6cad8;
}

.footer-cookie-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-cookie-line .text-link {
  color: #9fc7ff;
}

a {
  color: #2a5fc0;
}

button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.52rem 0.82rem;
  background: linear-gradient(120deg, var(--pancom-accent), #4586ff);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  border-color: #9ab9ca;
  background: #ffffff;
  color: #1a445b;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: min(100% - 2rem, 420px);
  border: 1px solid #9ab9cb;
  border-radius: 14px;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 35, 52, 0.22);
}

.cookie-banner p {
  margin: 0 0 0.8rem;
  color: #264960;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

[data-cookie-status][data-cookie-choice="accepted"] {
  color: #7de48e;
}

[data-cookie-status][data-cookie-choice="rejected"] {
  color: #ffb6b6;
}

@media (max-width: 930px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section,
  .hero-section.compact {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .site-shell {
    padding-top: 1.2rem;
  }

  .hero-section,
  .section-block {
    border-radius: 14px;
    padding: 1rem;
  }
}
