/* ============================================================
   First National Brokers - Global Styles
   Matching legacy application design - EXACT PARITY
   ============================================================ */

/* Use system fonts with excellent French character support */
/* -apple-system, BlinkMacSystemFont = best rendering on all platforms */

/* montserrat-latin-wght-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/montserrat:vf@latest/latin-wght-normal.woff2)
    format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-green: #056937;
  --dark-blue: #003366;
  --dark-text: #1a1a1a;
  --gray-text: #4E4D4F;
  --light-gray: #f5f5f5;
  --border-gray: #e0e0e0;
  --white: #ffffff;
  --link-blue: #0066cc;
  /* Use system fonts first - they have perfect French character support */
  font-size: 12px;
  line-height: 1.75;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 12px;
  scroll-behavior: smooth;
}

body {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--dark-text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY - LEGACY EXACT
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-text);
  margin-top: 0;
  font-feature-settings: 'kern' 1, 'liga' 1;
  font-kerning: auto;
  text-rendering: optimizeLegibility;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.421;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.421;
}

h4 {
  font-size: 18px;
  line-height: normal;
  font-weight: 600;
  margin: 0 0 10px;
}

h5,
.h5 {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

p {
  margin-bottom: 1rem;
  font-feature-settings: 'kern' 1, 'liga' 1;
  font-kerning: auto;
}

.lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* ============================================================
   LAYOUT & CONTAINER
   ============================================================ */

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
}

/* ============================================================
   HEADER - LEGACY EXACT
   ============================================================ */

.registration-card-header {
  display: grid;
  grid-template-columns: 216px 1fr;
  grid-gap: 15px;
  align-items: center;
  max-width: 1170px;
  padding: 60px 15px 30px;
  margin: 0 auto;
  background-color: var(--white);
  border-bottom: none;
}

@media (max-width: 480px) {
  .registration-card-header {
    grid-template-columns: 40vw 1fr;
    padding: 15px;
  }
}

.registration-card-header .logo-container {
  flex-shrink: 0;
}

.registration-card-header .logo-container .logo {
  max-width: 100%;
  width: 216px;
  height: auto;
  display: block;
}

.registration-card-header h1 {
  margin: 0;
  text-align: right;
  font-size: 22px;
  font-weight: 500;
  line-height: normal;
  color: var(--dark-text);
}

@media (max-width: 480px) {
  .registration-card-header h1 {
    font-size: 16px;
  }
}

/* ============================================================
   OLD SITE HEADER - HIDDEN (Keep for other pages)
   ============================================================ */

.site-header {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-gray);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  height: 35px;
  width: auto;
  display: block;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

main {
  min-height: calc(100vh - 400px);
}

/* ============================================================
   WELCOME PAGE - LEGACY EXACT
   ============================================================ */

.welcome-page {
  background-color: var(--white);
}

/* Hero Banner - LEGACY MASTHEAD EXACT */
.hero-banner {
  padding: 60px;
  background-color: #f2f2f2;
  display: block;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-banner .container {
  padding: 0;
  max-width: 100%;
}

.hero-banner-content {
  display: grid;
  grid-template-columns: 1fr 388px;
  align-items: center;
  grid-gap: 30px;
}

@media (max-width: 991px) {
  .hero-banner-content {
    display: block;
  }

  .hero-banner-content > :first-child,
  .hero-banner-content > :last-child {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    padding: 30px;
    text-align: center;
  }
}

/* Typography inside hero - LEGACY EXACT */
.hero-text h2 {
  margin-top: 0;
  font-weight: 600;
  line-height: normal;
  color: #036936;
  font-size: 24px;
  margin-bottom: 15px;
  -webkit-font-smoothing: antialiased;
}

@media screen and (min-width: 767px) {
  .hero-text h2 {
    font-size: calc(24px + 16 * (100vw - 767px) / 433);
  }
}

@media screen and (min-width: 1200px) {
  .hero-text h2 {
    font-size: 40px;
    margin-bottom: 15px;
  }
}

.hero-text .lead {
  font-size: 18px;
  font-weight: 500;
  color: #707c7c;
  line-height: 1.5em;
  margin-bottom: 15px;
  -webkit-font-smoothing: antialiased;
}

@media screen and (min-width: 767px) {
  .hero-text .lead {
    font-size: calc(18px + 7 * (100vw - 767px) / 433);
  }
}

@media screen and (min-width: 1200px) {
  .hero-text .lead {
    font-size: 25px;
  }
}

.hero-text p {
  font-size: 17px;
  color: #5d5d5d;
  line-height: 1.75;
  margin-bottom: 0;
}

@media screen and (min-width: 767px) {
  .hero-text p {
    font-size: calc(17px + 2 * (100vw - 767px) / 433);
  }
}

@media screen and (min-width: 1200px) {
  .hero-text p {
    font-size: 19px;
  }
}

.hero-text :last-child {
  margin-bottom: 0;
}

.hero-image {
  text-align: right;
  flex-shrink: 0;
}

.hero-image img {
  box-shadow: 3px 3px 36px rgba(0, 0, 0, 0.16);
  border-radius: 50%;
  overflow: hidden;
  width: 100%;
  max-width: 388px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) and (min-width: 540px) {
  .hero-image img {
    width: 280px;
    margin: auto;
  }
}

@media (max-width: 480px) {
  .hero-image {
    text-align: center;
    margin-top: 30px;
  }
}

/* OLD HERO SECTION - REMOVED */
.hero-section {
  display: none;
}

.main-content {
  background-color: #fff;
  padding: 60px;
  margin-inline: auto;
  max-width: 1170px;
}

@media (max-width: 480px) {
  .main-content {
    padding: 30px;
    text-align: center;
  }
}

.intro-section {
  text-align: center;
  margin-bottom: 50px;
  display: none; /* Content moved to hero banner */
}

/* INFO SECTION - LEGACY EXACT */
.info-section {
  margin-bottom: 30px;
}

.info-section h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.421;
  margin-top: 0;
  margin-bottom: 30px;
  color: var(--dark-text);
  margin-inline: auto;
  max-width: 640px;
}

/* CARD CONTAINER - LEGACY EXACT */
.info-cards {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  .info-cards {
    grid-template-columns: repeat(auto-fit, 250px);
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
}

/* CARD - LEGACY EXACT */
.info-card {
  background-color: var(--white);
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  transition: none;
}

.info-card:hover {
  box-shadow: none;
  transform: none;
}

.card-icon {
  margin-bottom: 15px;
}

.card-icon img {
  width: auto;
  height: auto;
  max-width: 80px;
  display: block;
  margin: 0 auto;
  border: none;
}

.info-card h4 {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 15px;
  color: var(--dark-text);
}

.info-card p {
  font-size: 14px;
  color: #5d5d5d;
  line-height: 1.75;
  margin: 0;
}

/* CTA SECTION - LEGACY EXACT */
.cta-section {
  text-align: center;
  padding: 0;
  margin-top: 30px;
}

.cta-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--dark-text);
  line-height: normal;
}

/* ============================================================
   BUTTONS - LEGACY EXACT
   ============================================================ */

.btn-primary {
  display: inline-block;
  background-color: #056937;
  color: #fff;
  border: 0;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 20px;
  min-width: 335px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: none;
}

.btn-primary:hover {
  background-color: rgb(17, 162, 101);
  text-decoration: none;
  color: var(--white);
}

.btn-primary:focus {
  outline: 0;
}

.btn-large {
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .btn-primary {
    min-width: 0;
    padding: 9px 5px;
    width: 100%;
    max-width: 248px;
  }
}

/* ============================================================
   FOOTER - LEGACY EXACT (2x2 Grid)
   ============================================================ */

.registration-footer {
  background-color: #eff1f1;
  color: #454545;
  font-size: 15px;
  line-height: 22px;
  margin-top: 60px;
  padding: 30px 0 60px;
}

/* 2x2 Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
  align-items: start;
}

@media (max-width: 767px) {
  .registration-footer {
    font-size: 13px;
    line-height: 1.35;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* TOP LEFT: Email Subscription */
.footer-col--email {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

@media (max-width: 767px) {
  .footer-col--email {
    justify-self: center;
    text-align: center;
  }
}

.footer-col--email h4.color-primary {
  font-size: 18px;
  line-height: normal;
  font-weight: 600;
  color: #056937;
  margin: 0 0 10px 0;
}

.footer-col--email .form-group {
  display: flex;
  margin-bottom: 0;
}

.footer-col--email input.form-control {
  border: solid 1px #e3e3e3;
  border-radius: 4px 0 0 4px;
  height: 36px;
  padding: 4px 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #000;
  background-color: #fff;
  flex: 1;
}

.footer-col--email input.form-control::placeholder {
  color: #999;
}

.footer-col--email input.form-control:focus {
  outline: 0;
  border-color: #056937;
}

.footer-col--email button {
  background-color: #056937;
  color: #fff;
  box-shadow: none;
  border: 0;
  border-radius: 0 4px 4px 0;
  font-family: 'Montserrat', sans-serif;
  padding: 4px 15px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.footer-col--email button:hover,
.footer-col--email button:focus {
  background-color: rgb(17, 162, 101);
  outline: 0;
}

@media (max-width: 767px) {
  .footer-col--email .form-group {
    flex-direction: row;
  }

  .footer-col--email input.form-control {
    flex-grow: 1;
  }
}

.footer-col--email p {
  margin: 15px 0 0 0;
}

.footer-col--email small {
  font-size: 12px;
  color: #454545;
  line-height: 1.2;
}

.footer-col--email .visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* TOP RIGHT: Social Media - LEGACY EXACT */
.footer-col--social {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  justify-self: end;
  width: 100%;
}

@media (max-width: 767px) {
  .footer-col--social {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
  }
}

.footer-col--social .nav-social {
  display: block;
  text-align: right;
}

@supports (display: grid) {
  .footer-col--social .nav-social {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 15px;
    align-items: center;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .footer-col--social .nav-social {
    justify-content: center;
  }
}

.footer-col--social .nav-social > * {
  display: inline-block;
  vertical-align: middle;
}

.footer-col--social .nav-social h4.color-primary {
  font-size: 18px;
  line-height: normal;
  font-weight: 600;
  color: #056937;
  margin: 0;
  padding: 0;
}

.footer-col--social .nav-social a {
  display: inline-block;
  width: 30px;
  height: 30px;
  transition: none;
}

.footer-col--social .nav-social a:hover {
  opacity: 0.7;
}

.footer-col--social .nav-social a img {
  display: block;
  height: 30px;
  width: 30px;
}

.footer-col--social .nav-social svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: #056937;
  color: #056937;
}

/* BOTTOM LEFT: License */
.footer-col--license {
  grid-column: 1;
  grid-row: 2;
  text-align: left;
  font-size: 15px;
  color: #454545;
  line-height: 22px;
  margin-top: 15px;
}

@media (max-width: 767px) {
  .footer-col--license {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
  }
}

/* BOTTOM RIGHT: Utility Links - LEGACY EXACT border-left separators */
.footer-col--links {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
  justify-self: end;
  margin-top: 15px;
  width: 100%;
}

@media (max-width: 767px) {
  .footer-col--links {
    grid-column: 1;
    grid-row: 4;
    justify-self: center;
    text-align: center;
  }
}

.footer-col--links .nav-utility {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 767px) {
  .footer-col--links .nav-utility {
    justify-content: center;
  }
}

/* Links with border-left separators - LEGACY EXACT */
.footer-col--links .nav-utility > a.font-500 {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #056937;
  transition: none;
  margin-left: 15px;
  padding-left: 15px;
  border-left: solid 1px #056937;
}

/* First link has no border */
.footer-col--links .nav-utility > a.font-500:first-child {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.footer-col--links .nav-utility a.font-500:hover {
  color: #056937;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-col--links .nav-utility a.font-500 {
    font-size: 13px;
  }

  /* Stack vertically on mobile - no borders */
  .footer-col--links .nav-utility > a.font-500 {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    display: block;
    margin-bottom: 5px;
  }
}

/* ============================================================
   OLD SITE FOOTER - HIDDEN (Keep for other pages that may use it)
   ============================================================ */

.site-footer {
  display: none;
}

/* ============================================================
   UTILITIES - LEGACY EXACT
   ============================================================ */

.text-center {
  text-align: center;
}

.color-primary {
  color: #056937;
}

.color-dark {
  color: #333;
}

.color-gray {
  color: #5d5d5d;
}

.font-500 {
  font-weight: 500;
}

.font-700 {
  font-weight: 700;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
