/* Base typography and colors borrowed from efrro.com homepage */
:root {
  --color-ink: #1a1a1a;
  --color-ink-soft: #4a4a4a;
  --color-brand: #082C99;
  --color-brand-deep: #051A61;
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-footer: #000022;
  --shadow-soft: 0 0.75rem 2rem rgba(8, 44, 153, 0.08);
  --shadow-hover: 0 1.25rem 3rem rgba(8, 44, 153, 0.16);
  --border-soft: 0.0625rem solid rgba(0, 0, 0, 0.08);
  --radius-lg: 0.75rem;
  --radius-md: 0.5rem;
  --page-max: 87.5rem;
  --content-max: 56rem;
  --surface-wash: rgba(8, 44, 153, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  background-image: none;
  color: var(--color-ink);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-brand);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 10;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 0.0625rem dotted #999;
  outline-offset: 0.2rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(1rem) saturate(160%);
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.06);
}

.header__container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 2vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  min-height: 5rem;
}

.header__contact {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-left: auto;
}

.contact__link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.1rem 0;
  font-size: 0.95rem;
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact__link::before {
  content: attr(data-label);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--color-brand);
}

.contact__link + .contact__link {
  border-left: 0.0625rem solid rgba(8, 44, 153, 0.18);
  padding-left: 0.75rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.logo__name {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--color-brand-deep);
  line-height: 1.2;
}

.logo__title {
  font-size: 0.8rem;
  color: #2c2c2c;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.15em;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0.375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  border: 0.125rem solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.header__cta {
  margin-left: 0.5rem;
}

.btn--white {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
  box-shadow: none;
}

.btn--white:hover,
.btn--white:focus-visible {
  background: var(--color-brand-deep);
  color: #ffffff;
  border-color: var(--color-brand-deep);
  box-shadow: none;
}

.btn--white:active {
  box-shadow: none;
}

main {
  padding: 4rem 0;
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 4vw;
}

.posts-index.container {
  padding-left: 2vw;
  padding-right: 2vw;
}

.posts-index {
  padding: 2.5rem 0 2rem;
}

.posts-index__banner {
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
}

.posts-index__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("articles-bkg.jpg");
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
}

.posts-index__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 44, 153, 0.75), rgba(5, 26, 97, 0.9));
}

.posts-index__header {
  margin: 0 auto;
  text-align: center;
  max-width: 54rem;
  padding: 0 2vw;
  position: relative;
  z-index: 1;
}

.posts-index__title {
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

@media (max-width: 40rem) {
  .posts-index__banner {
    padding: 3rem 1.8rem;
    margin-bottom: 2.5rem;
  }
  .posts-index__header {
    text-align: left;
  }
}

.posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.post-card {
  position: relative;
  background: var(--color-bg);
  border: 0.125rem solid rgba(8, 44, 153, 0.18);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.post-card:focus-within {
  border-color: rgba(8, 44, 153, 0.5);
  box-shadow: var(--shadow-hover);
}

.post-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-card__title {
  font-size: 1.4rem;
}

.post-card__link {
  color: var(--color-brand-deep);
}

.post-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card__link:hover,
.post-card__link:focus-visible {
  color: var(--color-brand);
}

.post-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-card__excerpt {
  font-size: 1rem;
  color: var(--color-ink-soft);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.footer {
  background: var(--color-footer);
  color: #ffffff;
  text-align: center;
  padding: 2rem 4vw;
  font-size: 0.85rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, rgba(8, 44, 153, 0.4), transparent);
}

.footer__text {
  margin-bottom: 1.4rem;
  color: #ffffff;
  font-size: 0.95em;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}

.footer__links {
  font-size: 0.95em;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline dotted;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.25rem;
  transform: none;
}

#consult-gate {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consult-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 26, 97, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.consult-gate__modal {
  position: relative;
  background: #ffffff;
  max-width: 560px;
  width: 90%;
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  color: #1a1a1a;
  z-index: 1;
  text-align: left;
}

.consult-gate__modal h2 {
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #051A61;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.consult-gate__modal p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2a2a2a;
  margin-bottom: 1.2em;
}

.consult-gate__modal p:last-of-type {
  margin-bottom: 0;
}

.consult-gate__actions {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 2rem;
}

.gate-cancel {
  background: transparent;
  border: 1px solid #ccc;
  padding: 0.8em 1.4em;
  border-radius: 6px;
  color: #2a2a2a;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.gate-cancel:hover,
.gate-cancel:focus-visible {
  border-color: #082C99;
  color: #082C99;
}

.gate-continue {
  background: #082C99;
  color: #fff;
  border: none;
  padding: 0.9em 1.8em;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.gate-continue:hover,
.gate-continue:focus-visible {
  background: #051A61;
}

@media (max-width: 40rem) {
  .consult-gate__modal {
    padding: 2rem 1.5rem;
  }

  .consult-gate__modal h2 {
    font-size: 1.5rem;
  }

  .consult-gate__actions {
    flex-direction: column;
  }
}

@media (max-width: 62rem) {
  .header__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .logo {
    align-items: center;
  }

  .header__contact {
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 0;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0;
  }

  .contact__link + .contact__link {
    border-left: none;
    padding-left: 0;
  }

  .header__cta {
    margin-left: 0;
  }

  .btn {
    width: 100%;
    max-width: 20rem;
  }

  .posts-list {
    grid-template-columns: 1fr;
  }

  .post-card--featured {
    padding: 2.2rem;
  }
}

@media (min-width: 64rem) {
  .posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: var(--page-max);
  }
}

@media (min-width: 80rem) {
  .posts-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .header__container {
    gap: 0.4rem;
    padding: 0.6rem 6vw;
    min-height: auto;
  }

  .logo__name {
    font-size: 1.2rem;
  }

  .logo__title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-top: 0.1em;
  }

  .header__contact {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
  }

  .contact__link {
    padding: 0.1rem 0;
    font-size: 0.85rem;
    line-height: 1.2;
    align-items: center;
  }

  .contact__link::before {
    display: none;
  }

  .contact__link + .contact__link {
    padding-left: 0;
  }

  .container {
    padding: 0 6vw;
  }

  .post-card {
    padding: 1.6rem 1.8rem;
  }

  .post-card__title {
    font-size: 1.2rem;
  }

  .post-card__excerpt {
    line-clamp: 4;
    -webkit-line-clamp: 4;
  }

  .post-card {
    padding: 1.4rem 1.5rem;
  }

  .post-card__title {
    font-size: 1.1rem;
  }
}

@media (max-width: 30rem) {
  .btn {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 0.65rem 1.4rem;
  }

  .footer__text,
  .footer__links {
    font-size: 0.85em;
  }
}





