:root {
  color-scheme: light;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #212529;
  --text-soft: rgba(33, 37, 41, 0.72);
  --accent: #1c7ed6;
  --accent-strong: #33539c;
  --accent-strong-hover: #2a447e;
  --accent-soft: #e7f1fc;
  --accent-gold: #f8b400;
  --border: #e1e5ea;
  --shadow: 0 20px 50px rgba(33, 37, 41, 0.08);
  --font-heading: "Inter", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

img { max-width: 100%; display: block; }
/* Links use the primary blue, not the clear-blue accent: #1c7ed6 on the page
   background is 3.9:1 — below the WCAG AA 4.5:1 minimum. #33539c passes everywhere. */
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .news-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin: 0 -20px 24px;
  border-bottom: 1px solid rgba(51, 83, 156, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(33, 37, 41, 0.05);
}

.brand {
  text-decoration: none;
  color: var(--accent-strong);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--accent-strong);
  color: #fff;
}

.site-nav a[aria-current="page"]:hover {
  background: var(--accent-strong-hover);
  color: #fff;
}

.site-nav a.external {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-nav a.external svg { flex: 0 0 auto; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-left: 4px;
}

.lang-toggle a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.lang-toggle a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
  text-decoration: none;
}

.lang-toggle a[aria-current="true"] {
  background: var(--accent-strong);
  color: #fff;
}

.content { padding: 28px 0 0; }
.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 42px 48px;
  box-shadow: var(--shadow);
}

.page-title {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-body h2,
.page-body h3 {
  color: var(--accent-strong);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.page-body p,
.page-body li {
  color: var(--text-soft);
  font-size: 1rem;
}

.page-body img {
  border-radius: 16px;
  margin: 18px auto;
  max-width: 50%;
  height: auto;
  /* All article images are 3:2 (1536x1024 / 1200x800) — reserving the ratio
     prevents layout shift while they load. Grid-card images override this below. */
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 720px) {
  .page-body img {
    max-width: 100%;
  }
}

/* ---------- Home hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin: 4px 0 44px;
}

.hero--logo {
  grid-template-columns: 0.9fr 1.1fr;
}

.hero__body { min-width: 0; }

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
}

.hero__lead {
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 46ch;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 10px 16px;
  border-radius: 6px 999px 999px 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero__proof svg { flex: 0 0 auto; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__media {
  position: relative;
  border-radius: 28px 6px 28px 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(51, 83, 156, 0.32) 0%, rgba(51, 83, 156, 0) 55%);
}

.hero__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  padding: 3%;
}

.hero__media--logo::after { content: none; }

.hero__media--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 860px) {
  .hero,
  .hero--logo {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__media--logo {
    aspect-ratio: 1 / 1;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ---------- Buttons / CTA ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px 6px 999px 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 24px rgba(51, 83, 156, 0.28);
}

.btn-primary:hover {
  background: var(--accent-strong-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(51, 83, 156, 0.34);
  text-decoration: none;
  color: #fff;
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  text-decoration: none;
  color: var(--accent-strong);
}

/* ---------- Capability strip (home services teaser) ---------- */

.capability-strip {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.capability-strip__item {
  flex: 1 1 220px;
  padding: 22px 26px;
  border-left: 1px solid var(--border);
}

.capability-strip__item:first-child { border-left: none; }

.capability-strip__item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--accent-strong);
}

.capability-strip__item p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .capability-strip__item {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 18px 4px;
  }
  .capability-strip__item:first-child { border-top: none; }
}

/* ---------- Services detail (asymmetric rows, not a card grid) ---------- */

.service-row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.service-row:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.service-row:nth-of-type(even) {
  flex-direction: row-reverse;
}

.service-row__media {
  flex: 0 0 38%;
  min-width: 0;
}

.service-row__media img {
  border-radius: 20px 4px 20px 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
  margin: 0;
}

.service-row__body {
  flex: 1 1 auto;
  min-width: 0;
}

.service-row__body h2 {
  margin-top: 0 !important;
}

@media (max-width: 780px) {
  .service-row,
  .service-row:nth-of-type(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .service-row__media { flex: 1 1 auto; }
}

/* ---------- CTA panel (contact prompt, reused on home + services) ---------- */

.cta-panel {
  margin: 40px 0 4px;
  padding: 36px 40px;
  border-radius: 6px 28px 6px 28px;
  background: var(--accent-strong);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-panel__text h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.4rem;
}

.cta-panel__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}

.cta-panel__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-panel .btn-primary {
  background: var(--accent-gold);
  color: #21150a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cta-panel .btn-primary:hover {
  background: #e0a500;
  color: #21150a;
}

.cta-panel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cta-panel .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 640px) {
  .cta-panel { padding: 28px 26px; }
}

/* ---------- Contact: address + map ---------- */

.contact-map {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
  margin: 8px 0 12px;
}

.contact-map__info h2 { margin-top: 0 !important; }

.contact-map__note {
  font-size: 0.92rem;
}

.contact-map__directions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--accent-strong);
  font-weight: 700;
}

.contact-map__directions svg { transition: transform 0.15s ease; }
.contact-map__directions:hover svg { transform: translateX(3px); }

.contact-map__frame {
  position: relative;
  display: block;
  border-radius: 6px 24px 6px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  transition: box-shadow 0.2s ease;
}

.contact-map__frame:hover {
  box-shadow: 0 24px 56px rgba(33, 37, 41, 0.14);
}

.contact-map__frame img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.contact-map__frame:hover img {
  transform: scale(1.03);
}

@media (max-width: 780px) {
  .contact-map {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.contact-map__socials {
  margin-top: 20px !important;
}

/* ---------- News index ---------- */

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.news-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(33, 37, 41, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.news-item img {
  border-radius: 12px;
  margin: 0 0 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
}

.news-item h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
}

.news-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.news-item--featured {
  position: relative;
  margin: 24px 0 8px;
  padding: 26px 30px;
  border-radius: 6px 24px 6px 24px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item--featured:has(.news-item--featured__link:hover) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(51, 83, 156, 0.12);
}

.news-item--featured__kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.news-item--featured h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--accent-strong);
}

.news-item--featured p {
  margin: 0;
  color: var(--text-soft);
}

.news-item--featured__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-weight: 700;
}

.news-item--featured__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (max-width: 980px) {
  .news-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .news-list { grid-template-columns: 1fr; }
}

/* ---------- Guider (tips) index ---------- */

.tip-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.tip-filter__btn {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tip-filter__btn:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.tip-filter__btn.is-active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tip-card {
  display: block;
  flex: 1 1 280px;
  max-width: calc(33.333% - 14px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(33, 37, 41, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.15s ease;
}

.tip-card:hover {
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.tip-card.is-hidden {
  display: none;
}

.tip-card__category {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tip-card h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 1.08rem;
}

.tip-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .tip-card { max-width: calc(50% - 10px); }
}

@media (max-width: 640px) {
  .tip-card { max-width: 100%; }
}

.statement {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 900;
  color: var(--accent-strong);
  letter-spacing: -0.01em;
  border-bottom: 5px solid var(--accent-gold);
  padding-bottom: 6px;
}

.statement-wrap {
  text-align: center;
  margin: 2.5rem 0 0.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-footer p { margin: 0 0 8px; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.site-footer__copyright { margin: 0; }

.site-footer__socials {
  display: flex;
  gap: 6px;
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 10px;
}

.site-footer__socials a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

@media (max-width: 720px) {
  .page-shell { padding: 16px 16px 32px; }
  .site-header {
    margin: 0 -16px 18px;
    padding: 14px 16px;
  }
  .page-card { padding: 24px; }
  .page-title { font-size: 1.8rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer__bottom { align-items: flex-start; }
}
