/* ==========================================================================
   SFT Finance — custom module styles
   Loaded after the compiled build stylesheet (see finance_custom_styles()
   in functions.php). The theme's SCSS source is not deployed, so the styles
   for the new homepage modules live here.

   Modules covered:
     1. Hero Alt — Search layout        (.hero_alt.layout-search)
     2. Touts Alt — Cards layout        (.touts_alt.layout-cards)
     3. Quick Links Bar                 (.quick_links_bar)
     4. Icon Links                      (.icon_links)
     5. Contact Callout                 (.contact_callout)
     6. Footer nav                      (.footer .footer-nav)

   Brand palette: navy #003a54 · blue #00529c · teal #00babc ·
                  light blue #c2d5e6 · yellow #ffd400
   Headline font: "americane" (Typekit kit imz8kmn) · Body: Lato
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Utilities
   -------------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   1. Hero Alt — Search layout
   Shares .layout-quick_links styles (yellow bg, texture, copy) and adds a
   search bar in place of the quick links pill.
   -------------------------------------------------------------------------- */
.hero_alt.layout-search .hero_alt-ql_headline {
  font-family: "americane", "brandon-grotesque", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 40px;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .hero_alt.layout-search .hero_alt-ql_headline {
    font-size: 56px;
  }
}
@media (min-width: 1340px) {
  .hero_alt.layout-search .hero_alt-ql_headline {
    font-size: 76px;
  }
}

.hero_alt-search_form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  /* pill on the left, flat on the right — the button sits flush on the edge */
  border-radius: 60px 0 0 60px;
  padding: 0 0 0 24px;
  margin-top: 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .hero_alt-search_form {
    grid-column: 2 / span 10;
    padding: 0 0 0 32px;
    gap: 16px;
  }
}

.hero_alt-search_icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #003a54;
}

.hero_alt-search_input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  font-family: Lato, Helvetica, Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 400;
  line-height: 1.2;
  color: #003a54;
  padding: 25px 0 !important;
  margin: 0;
}
@media (min-width: 768px) {
  .hero_alt-search_input {
    font-size: 20px;
    padding: 24px 0;
  }
}
.hero_alt-search_input::placeholder {
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 20px !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #003a54 !important;
  opacity: 1;
}
.hero_alt-search_input::-webkit-search-decoration,
.hero_alt-search_input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.hero_alt-search_submit {
  flex-shrink: 0;
  align-self: stretch;
  /* extends slightly past the bar, like the mockup */
  /* margin: -7px 0; */
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  background: #003a54;
  color: #fff;
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0 28px;
  transition: background 0.25s ease-in-out;
}
@media (min-width: 768px) {
  .hero_alt-search_submit {
    font-size: 17px;
    padding: 0 56px;
    /* margin: -9px 0; */
  }
}
.hero_alt-search_submit:hover,
.hero_alt-search_submit:focus {
  background: #00529c;
}

/* mobile: close the image→headline gap and compact the search bar */
@media (max-width: 767px) {
  .hero_alt.layout-search .hero_alt-ql_content {
    gap: 20px;
  }
  .hero_alt.layout-search .hero_alt-ql_image {
    margin-bottom: 20px;
  }
  .hero_alt.layout-search .hero_alt-ql_copy {
    padding-top: 0;
    padding-right: 0;
    row-gap: 14px;
  }
  .hero_alt.layout-search .hero_alt-ql_headline {
    font-size: 34px;
  }
  .hero_alt-search_form {
    margin-top: 24px;
    padding: 0 0 0 16px;
    gap: 8px;
    border-radius: 40px 0 0 40px;
  }
  .hero_alt-search_icon {
    width: 18px;
    height: 18px;
  }
  .hero_alt-search_input {
    font-size: 15px !important;
    padding: 17px 0 !important;
  }
  .hero_alt-search_input::placeholder {
    font-size: 15px !important;
  }
  .hero_alt-search_submit {
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 0 16px;
  }
}

/* --------------------------------------------------------------------------
   2. Touts Alt — Cards layout
   Color cards with a dot-pattern left edge, Americane title, Lato copy and
   a circled arrow. Colors set via ACF on the module:
     --card-bg (default #00babc) · --card-text (#fff) · --card-dots (#003a54)
   -------------------------------------------------------------------------- */
.touts_alt.layout-cards .touts_alt-wrap.wrap {
  max-width: 1288px;
}

.touts_alt-cards {
  /* the module wrap is a 6/12-col .block-grid — span all of it */
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}
@media (min-width: 640px) {
  .touts_alt-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .touts_alt-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.touts_alt-card {
  position: relative;
  /* flex here so the dot strip + body lay out with or without a link wrapper */
  display: flex;
  background: var(--card-bg, #00babc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.touts_alt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.touts_alt-card_link {
  display: flex;
  flex: 1 1 auto;
  text-decoration: none;
}

/* dot pattern strip along the left edge */
.touts_alt-card_dots {
  flex-shrink: 0;
  width: 54px;
  background-image: radial-gradient(circle, var(--card-dots, #003a54) 3px, transparent 3.5px),
    radial-gradient(circle, var(--card-dots, #003a54) 3px, transparent 3.5px);
  background-size: 20px 20px;
  background-position: 0px 0px, -10px 10px;
}

.touts_alt-card_body {
  /* title on top, then copy + arrow side by side in one row */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  column-gap: 15px;
  align-items: end;
  flex: 1 1 auto;
  padding: 32px 28px 28px 14px;
}

.touts_alt-card_title {
  grid-column: 1 / -1;
  align-self: start;
}

.touts_alt-card_title {
  font-family: "americane", "brandon-grotesque", sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--card-text, #fff);
  margin: 0;
}
@media (min-width: 1024px) {
  .touts_alt-card_title {
    font-size: 54px;
  }
}

.touts_alt-card_copy {
  grid-column: 1;
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--card-text, #fff);
  margin: 0;
}
@media (min-width: 1024px) {
  .touts_alt-card_copy {
    font-size: 20px;
  }
}
@media (min-width: 1024px) {
  .touts_alt-card_body {
    min-height: 300px;
  }
}

/* long arrow on a white circle, in the same row as the copy */
.touts_alt-card_arrow {
  grid-column: 2;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--card-dots, #003a54);
  margin: 0;
  transition: transform 0.25s ease-in-out;
}
.touts_alt-card:hover .touts_alt-card_arrow {
  transform: translateX(4px);
}
.touts_alt-card_arrow svg {
  width: 22px;
  height: 16px;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Quick Links Bar (standalone band)
   Reuses the hero_alt-ql_* bar styles from the compiled stylesheet; colors
   are configurable via ACF:
     --qlb-section-bg (#003a54) · --qlb-bar-bg (#fff) ·
     --qlb-dot (#003a54) · --qlb-text (#003a54)
   -------------------------------------------------------------------------- */
.quick_links_bar {
  margin: 0;
  padding: 0;
}

.quick_links_bar-inner {
  background: var(--qlb-section-bg, #003a54);
  padding: 44px 24px;
}
@media (min-width: 768px) {
  .quick_links_bar-inner {
    padding: 72px 48px;
  }
}

.quick_links_bar-wrap.wrap {
  max-width: 1288px;
  margin: 0 auto;
  padding: 0;
  display: block;
}

.quick_links_bar .hero_alt-ql_bar {
  background: var(--qlb-bar-bg, #fff);
  margin-top: 0;
}

.quick_links_bar .hero_alt-ql_bar-label {
  color: var(--qlb-text, #003a54);
}

.quick_links_bar .hero_alt-ql_link-dot {
  background: var(--qlb-dot, #003a54);
}

.quick_links_bar .hero_alt-ql_link-title {
  color: var(--qlb-text, #003a54);
}

@media (max-width: 767px) {
  .quick_links_bar .hero_alt-ql_bar {
    flex-wrap: wrap;
  }
  .quick_links_bar .hero_alt-ql_links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   4. Icon Links (e.g. Resources)
   Colors configurable via ACF:
     --il-section-bg (#eff1f3) · --il-card-bg (#fff) · --il-text (#00529c)
   -------------------------------------------------------------------------- */
.icon_links {
  margin: 0;
  padding: 0;
}

.icon_links-inner {
  background: var(--il-section-bg, #eff1f3);
  padding: 56px 24px;
}
@media (min-width: 768px) {
  .icon_links-inner {
    padding: 96px 48px;
  }
}

.icon_links-wrap.wrap {
  max-width: 1288px;
  margin: 0 auto;
  padding: 0;
  display: block;
}

.icon_links-title_wrap {
  text-align: center;
  margin-bottom: 36px;
}

/* stars come from the compiled .touts_alt-title_stars before/after */
.icon_links-title {
  font-size: 24px;
  text-transform: uppercase;
  color: #003a54;
  margin: 0;
  font-weight: bold;
}
@media (min-width: 768px) {
  .icon_links-title {
    font-size: 40px;
  }
}

.icon_links-tagline {
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #003a54;
  margin: 14px 0 0;
}

.icon_links-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 900px) {
  .icon_links-items {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.icon_links-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--il-card-bg, #fff);
  border-radius: 10px;
  padding: 36px 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
a.icon_links-item:hover,
a.icon_links-item:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.icon_links-item_icon {
  margin: 0;
}
.icon_links-item_icon img {
  display: block;
  height: 52px;
  width: auto;
  margin: 0 auto;
}

.icon_links-item_title {
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--il-text, #00529c);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Contact Callout ("Still Have Questions?")
   Colors configurable via ACF:
     --cc-bg (#c2d5e6) · --cc-headline (#003a54) ·
     --cc-text (#003a54) · --cc-link (#00babc)
   -------------------------------------------------------------------------- */
.contact_callout {
  margin: 0;
  padding: 0;
}

.contact_callout-inner {
  background: var(--cc-bg, #c2d5e6);
  padding: 56px 24px;
}
@media (min-width: 768px) {
  .contact_callout-inner {
    padding: 88px 48px;
  }
}

.contact_callout-wrap.wrap {
  max-width: 1288px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .contact_callout-wrap.wrap {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.contact_callout-headline {
  font-family: "americane", "brandon-grotesque", sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--cc-headline, #003a54);
  margin: 0;
}
@media (min-width: 900px) {
  .contact_callout-headline {
    font-size: 52px;
  }
}

.contact_callout-copy {
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--cc-text, #003a54);
  margin: 0 0 18px;
}
@media (min-width: 900px) {
  .contact_callout-copy {
    font-size: 21px;
  }
}
.contact_callout-copy p {
  margin: 0 0 10px;
  color: inherit;
}
.contact_callout-copy p:last-child {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: bold;
  max-width: 650px;
}

.contact_callout-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cc-link, #00babc);
  transition: opacity 0.25s ease-in-out;
}
.contact_callout-link:hover,
.contact_callout-link:focus {
  opacity: 0.75;
  color: var(--cc-link, #00babc);
}
.contact_callout-link_arrow svg {
  width: 24px;
  height: 16px;
  display: block;
}

/* --------------------------------------------------------------------------
   6. Footer nav (menu name: "Footer Nav")
   -------------------------------------------------------------------------- */
.footer {
  padding-bottom: 250px;
}

.footer .footer-nav {
  text-align: right;
}
@media (max-width: 767px) {
  .footer .footer-nav {
    text-align: left;
    margin-top: 24px;
  }
}

.footer .footer-nav .footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer .footer-nav .footer-nav-list li {
  margin: 0 0 0px;
  padding: 0;
}
.footer .footer-nav .footer-nav-list a {
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.25s ease-in-out;
}
.footer .footer-nav .footer-nav-list a:hover,
.footer .footer-nav .footer-nav-list a:focus {
  opacity: 0.7;
  color: #fff;
}
