/* ===== CORE SETUP ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

/* ===== WHITE LABELING VARIABLES ===== */
:root {
  /* Colors will be dynamically set from bank config */
  /* Fallback colors are now defined in the dynamic styles */
   
  /* Updated UI Colors Based on Brand Colors */
  --ui-background: #ffffff;             /* Fallback clean white background */
  --ui-card-background: #ffffff;        /* Fallback cards remain white for clarity */
  --ui-light-background: #e6ecf2;        /* Fallback light tint derived from the primary */
  --ui-text-primary: #333333;           /* Fallback standard dark text for readability */
  --ui-text-secondary: #555555;         /* Fallback slightly lighter text for secondary content */
  --ui-border-color: #dde5ec;           /* Fallback light border color echoing the light primary tint */
  --footer-background: #222;            /* Fallback dark background for footer */
  --footer-text: #ffffff;               /* Fallback white text for footer */
  
  
  /* Typography */
  --font-primary: 'Fira Sans', Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
  --font-size-small: 0.9rem;
  --font-size-normal: 1rem;
  --font-size-medium: 1.25rem;
  --font-size-large: 1.5rem;
  --font-size-xlarge: 2rem;
  --font-size-xxlarge: 2.5rem;
  
  /* Layout & Spacing */
  --border-radius: 4px;
  --container-max-width: 1200px;
  --content-padding: 2rem;
  --section-spacing: 3rem;
  --element-spacing: 1.5rem;
  --item-spacing: 0.5rem;
  
  /* Effects */
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===== BASE STYLES ===== */
body {
  font-family: var(--font-primary);
  color: var(--ui-text-primary);
  line-height: 1.6;
  background-color: var(--ui-background);
}

/* Common heading styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  color: var(--ui-text-primary);
  margin-bottom: var(--item-spacing);
}

/* Standard link styles */
a {
  color: var(--brand-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.text-link {
  color: var(--brand-secondary);
  text-decoration: none;
}

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

/* Standard button styles */
.cta-button {
  background-color: var(--brand-secondary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: var(--font-size-normal);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--brand-secondary-hover);
  text-decoration: none;
}

/* ===== STANDARD COMPONENTS ===== */

/* Promotional labels - used for "BONUS OFFER" and section headings */
.promo-label {
  font-size: var(--font-size-normal);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--element-spacing);
  color: var(--ui-text-primary);
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* ===== MAIN CONTENT PADDING ===== */
main {
  padding: 0;
}

/* ===== HEADER STYLES ===== */
header {
  background-color: var(--ui-background);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-light);
}

.logo-container {
  padding-left: calc(var(--content-padding) + 1.5rem);
}

.logo {
  height: 26px;
  min-width: 100px;
  object-fit: contain;
}

/* ===== STICKY HEADER ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--ui-background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header.hidden {
  transform: translateY(-100%);
}

.sticky-header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem var(--content-padding);
  position: relative;
  min-height: 60px;
}

.sticky-title {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-medium);
  color: var(--ui-text-primary);
  white-space: nowrap;
}

.sticky-header .nav-tabs {
  display: flex;
  margin: 0;
  margin-left: 2rem;
  gap: 0;
}

.sticky-header .nav-tab {
  font-weight: var(--font-weight-normal);
  padding: 1rem 1.5rem;
  margin-right: 0;
  text-decoration: none;
  color: var(--ui-text-primary);
  border-bottom: 4px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.sticky-header .nav-tab:hover {
  color: var(--brand-secondary);
}

.sticky-header .nav-tab.active {
  color: var(--brand-secondary);
  border-bottom-color: var(--brand-secondary);
  font-weight: var(--font-weight-medium);
}

/* Push the CTA button to the right */
.sticky-header .cta-button {
  margin-left: auto;
  margin-right: 0;
  min-width: 120px;
}

/* ===== HERO SECTION ===== */
.hero-container {
  display: flex;
  background-color: var(--brand-primary);
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.promo-box {
  position: relative;
  z-index: 1;
  background-color: var(--ui-card-background);
  padding: var(--content-padding);
  margin: 2rem 2rem 2rem calc(var(--content-padding) + 3rem);
  max-width: 480px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.bonus-label {
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--element-spacing);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.promo-heading {
  font-size: var(--font-size-xxlarge);
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-normal);
}

.promo-details {
  margin-bottom: 1.25rem;
  font-size: var(--font-size-normal);
  line-height: 1.4;
}

.hero-image {
  flex: 1;
  background-image: url('../images/image.png');
  background-position: left 30% top 30%;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* ===== STEPS SECTION ===== */
.steps-section {
  max-width: var(--container-max-width);
  margin: var(--section-spacing) auto;
  padding: 0 2rem;
  text-align: center;
}

.section-heading {
  font-size: var(--font-size-normal);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.step-card {
  flex: 1;
  text-align: center;
}

.step-icon {
  margin-bottom: 1.5rem;
}

.step-icon i {
  font-size: 3rem;
  color: var(--brand-secondary);
}

.step-heading {
  font-size: var(--font-size-large);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-normal);
}

.step-details {
  color: var(--ui-text-secondary);
  line-height: 1.5;
}

/* ===== BENEFITS SECTION ===== */
.requirements-section {
  background-color: var(--ui-light-background);
  position: relative;
}

.requirements-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.requirements-image {
  flex: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  min-height: 500px;
  position: relative;
}

.full-width-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.requirements-content {
  flex: 1;
  padding: 3rem 2rem;
}

.requirements-heading {
  font-size: var(--font-size-xlarge);
  margin-bottom: 2rem;
  font-weight: var(--font-weight-normal);
}

.benefit-item {
  margin-bottom: 2rem;
}

.benefit-title {
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-normal);
  margin-bottom: 0.5rem;
}

.benefit-details {
  color: var(--ui-text-secondary);
  line-height: 1.6;
}

/* ===== CTA BANNER SECTION ===== */
.cta-banner-section {
  background-color: var(--ui-background);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--ui-border-color);
}

.cta-banner-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-banner-heading {
  font-size: var(--font-size-xlarge);
  line-height: 1.2;
  font-weight: var(--font-weight-normal);
  text-align: center;
  margin-bottom: 2rem;
}

.cta-banner-button {
  min-width: 180px;
}

/* ===== FOOTER STYLES ===== */
footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.footnotes-heading {
  display: flex;
  align-items: center;
  font-size: var(--font-size-medium);
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-normal);
  color: white;
}

.footnotes-heading:after {
  content: "";
  height: 1px;
  margin-left: 1rem;
  flex: 1;
  background-color: rgba(255,255,255,0.3);
}

footer p, 
footer li {
  margin-bottom: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

footer .text-link {
  color: #ffffff !important;
  text-decoration: underline;
}

.contact-info {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: var(--font-weight-medium);
  color: #ffffff;
  font-size: 1.1rem;
}

.contact-info .text-link {
  color: #ffffff !important;
  text-decoration: underline;
}

.contact-info .text-link:hover {
  color: #e0e0e0 !important;
  text-decoration: underline;
}

/* Ensure phone number link is white */
.contact-info a[href^="tel:"] {
  color: #ffffff !important;
  text-decoration: underline;
}

.contact-info a[href^="tel:"]:hover {
  color: #e0e0e0 !important;
  text-decoration: underline;
}

/* Override general text-link color for footer links */
footer .contact-info .text-link {
  color: #ffffff !important;
  text-decoration: underline;
}

footer .contact-info .text-link:hover {
  color: #e0e0e0 !important;
  text-decoration: underline;
}

footer h4 {
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  font-weight: var(--font-weight-normal);
  color: white;
}

footer ol {
  padding-left: 1.5rem;
}

/* ===== NCUA LOGO SECTION ===== */
.ncua-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ncua-logo-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
}

.ncua-logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.ncua-text {
  color: #e0e0e0;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* ===== MOBILE STYLES ===== */

/* Mobile background image */
.mobile-background-image {
  display: none;
}

/* Mobile promo */
.mobile-promo {
  display: none;
}

@media (max-width: 768px) {
  /* Mobile header adjustments */
  .logo-container {
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
  
  /* Show mobile elements, hide desktop elements */
  .desktop-promo {
    display: none;
  }
  
  .mobile-background-image {
    display: block;
    height: 208px;
    width: 100%;
    background-color: var(--brand-primary);
    background-image: url('../images/image.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
  }
  
  .mobile-promo {
    display: block;
    background-color: var(--ui-light-background);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    margin: -21px 1rem 1rem;
    position: relative;
    z-index: 10;
    max-height: 310px;
    overflow: hidden;
  }
  
  .mobile-promo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .mobile-promo p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  /* Layout adjustments for mobile */
  .steps-container, 
  .requirements-container {
    flex-direction: column;
  }
  
  .requirements-image {
    min-height: 250px;
    order: 1;
  }
  
 .requirements-content {
    order: 2;
    padding: 2rem 1rem;
  }
  
  /* Sticky header mobile adjustments */
  .sticky-header {
    min-height: 60px;
  }
  
  .sticky-header .nav-tabs {
    display: none;
  }
  
  .sticky-header-content {
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem var(--content-padding);
    min-height: 60px;
  }
  
  .sticky-title {
    text-align: left;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .sticky-header .cta-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    min-width: 100px;
    margin: 0;
    white-space: nowrap;
  }
  
  /* CTA Banner mobile adjustments */
  .cta-banner-section {
    padding: 3rem 1rem;
  }
  
  .cta-banner-heading {
    font-size: 1.8rem;
  }
  
  .cta-banner-button {
    min-width: 160px;
  }
  
  /* NCUA section mobile adjustments */
  .ncua-logo-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .ncua-logo {
    height: 50px;
  }
  
  .ncua-text {
    font-size: 0.85rem;
    text-align: center;
  }
  
  /* Mobile steps layout adjustment */
  .steps-container {
    flex-direction: column;
    gap: 2rem;
    text-align: left; /* Change from center to left alignment */
  }
  
  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
      "icon title"
      ". desc";
    align-items: start; /* Change from center to start for top alignment */
    column-gap: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .step-icon {
    grid-area: icon;
    margin-bottom: 0;
    margin-right: 1rem;
    align-self: start; /* Explicitly set icon to align at top */
    padding-top: 0.25rem; /* Slight padding to align with text */
  }
  
  .step-heading {
    grid-area: title;
    text-align: left;
    margin-bottom: 0.5rem;
  }
  
  .step-details {
    grid-area: desc;
    text-align: left;
  }
  
  .step-icon i {
    font-size: 2.2rem; /* Reduced from 2.5rem for better proportions */
  }
}

/* Add these styles to prevent the flash on page load */
.initial-hidden {
  transform: translateY(-100%) !important;
  transition: none !important;
  visibility: hidden;
}

/* Ensure smooth transitions after initial load */
.sticky-header:not(.initial-hidden) {
  visibility: visible;
} 