/* 🔧 Reset & Box Model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 🔧 Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}
/* 🔠 Typography & Font Weight Polish */
h1, h2, h3 {
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Brand Text */
.brand-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #dbd5d5;
  letter-spacing: 0.5px;
  margin: 0;
}

/* 🔍 Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #b31b1b;
  outline-offset: 2px;
}

/* 📐 Section Layout Harmony */
section {
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid #eee;
  padding: 60px 40px;
}

/* 🔴 Wells-Style Header */
.top-header {
  background-color: #b31b1b;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.logo-container img {
  height: 24px;
}

/* 🔗 Horizontal Navigation */
.nav-links ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links ul.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  background-color: #b31b1b;
  padding: 1rem;
  position: absolute;
  top: 60px;
  right: 2rem;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.signon-button {
  background-color: white;         /* ✅ visible pill background */
  color: #b31b1b !important;       /* ✅ branded red text */
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a.signon-button:hover {
  background-color: #f8f8f8;       /* ✅ subtle hover effect */
  color: #b31b1b !important;
}


.search-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('https://www17.wellsfargomedia.com/assets/images/icons/search-white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-left: 0.5rem;
  margin-right: 1rem;
}

/* 🔘 Sign On Button */
.signon-button {
  background-color: white;
  color: #b31b1b;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.signon-button:hover {
  background-color: #f8f8f8;
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 0.85rem;
}

.hamburger-menu .bar {
  width: 20px;
  height: 2px;
  background-color: white;
}

.menu-label {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Mortgage Section */
.mortgage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 64px 32px;
  background-color: #fff;
  gap: 48px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}
.mortgage-card {
  position: relative;
  background-image: url("app/assets/assets/images/mortgage-banner.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
  color: #fff;
}
.mortgage-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* Optional: darken for contrast */
  padding: 24px;
  border-radius: 8px;
  max-width: 480px;
}

.mortgage-overlay h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.mortgage-overlay p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.mortgage-content {
  max-width: 480px;
}

.mortgage-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b31b1b;
  margin-bottom: 12px;
}

.mortgage-content p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 24px;
}
.mortgage-image img {
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #ffffff, #f2f2f2);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}

.hero-content {
  background-color: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  width: 100%;
}


.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #b31b1b;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: #444;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-image img {
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  margin-right: auto;
  padding-right: 24px;
  box-shadow: 0 0 0 1px #ddd;
}
.hero-content h1 {
  font-size: 2rem;
  color: #b31b1b;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 24px;
  flex: 1;
  min-width: 300px;
}
.hero-text {
  max-width: 480px;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
}
.hero-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b31b1b;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 24px;
}
.hero-stripe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 64px 32px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  gap: 48px;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero-card {
  flex: 1;
  max-width: 600px;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b31b1b;
  margin-bottom: 16px;
}

.hero-card p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 24px;
}

.hero-right img {
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #ddd;
}
.hero-phone img {
  max-height: 320px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #ddd;
}

.cta-button {
  display: inline-block;
  background-color: #b31b1b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
/* login Wrapper */
.login-promo-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding: 64px 32px;
  background-color: #f9f9f9;
  border-radius: 12px;
  flex-wrap: wrap;
}

.login-panel {
  flex: 1;
  max-width: 300px;
}

.login-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #333;
}

.login-form label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-options {
  margin: 12px 0;
}

.signon-button,
.enroll-button {
  display: inline-block;
  margin-right: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background-color: #b31b1b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.login-links {
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.login-links li {
  margin-bottom: 8px;
}

.login-links a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.9rem;
}
/* Promo Card */
.promo-card {
  flex: 1;
  max-width: 400px;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.promo-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b31b1b;
  margin-bottom: 16px;
}

.promo-card p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 24px;
}
.phone-preview img {
  max-height: 320px;
  margin-top: 32px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #ddd;
}

/* 🧵 Buttons */
a,
button,
.nav-links a,
.signon-button,
.cta-button {
  transition: all 0.3s ease;
}

.signin-button,
.create-account-button,
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.cta-button {
  background-color: #b31b1b;
  color: white;
}

.cta-button:hover {
  background-color: #8e1414;
  transform: scale(1.05);
}

/* 🔐 Sign-in Container */
.signin-container {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  color: white;
}

.signin-container h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.signin-container input[type="email"],
.signin-container input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #2a2a2a;
  color: white;
  transition: background-color 0.3s ease;
}

.signin-container input:focus {
  background-color: #333;
  outline: 2px solid #7c3aed;
}

.signin-container .continue-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #7c3aed;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.signin-container .continue-button:hover {
  background-color: #5b21b6;
  transform: scale(1.03);
}

.signin-container .create-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.signin-container .create-link:hover {
  color: #fff;
}

/* ⚫ Footer */
footer {
  text-align: center;
  padding: 24px;
  background-color: #eee;
  font-size: 0.95rem;
  color: #555;
}

footer a {
  color: #555;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #b31b1b;
  text-decoration: underline;
}

/* 🧱 Landing Page Sections */
.products,
.rates,
.mobile-app,
.brand {
  max-width: 1200px;
  margin: auto;
  padding: 60px 40px;
  border-bottom: 1px solid #eee;
}

/* 🟠 Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: #f9f9f9;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
  font-size: 1.4rem;
  color: #b31b1b;
  margin-bottom: 8px;
  font-weight: 700;
}

.product-card p {
  font-size: 1rem;
  color: #555;
}

.product-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 🔘 Category Icons */
.checking-icon {
  background-image: url('app/assets/assets/icons/icon-checking.png');
}

.credit-icon {
  background-image: url('app/assets/assets/icons/icon-credit.png');
}

.loans-icon {
  background-image: url('app/assets/assets/icons/icon-loans.png');
}

.investing-icon {
  background-image: url('app/assets/assets/icons/icon-investing.png');
}

/* 🟡 Rates Section */
.rates {
  padding: 64px 32px;
  background-color: #fff;
  text-align: center;
}

.rates h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #b31b1b;
}

.rates li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #444;
}

/* 🟢 Mobile App Promo */
.mobile-app {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  flex-wrap: wrap;
}

.mobile-content {
  max-width: 500px;
}

.mobile-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #b31b1b;
}

.mobile-content p {
  font-size: 1rem;
  margin-bottom: 24px;
  color: #444;
}

.mobile-image img {
  max-height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 🔵 Brand Section */
.brand h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #b31b1b;
}

.brand p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
}

/* 📱 Responsive Tweaks */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-content {
    padding: 32px;
  }

  .hero h1 {
    font-size: 2rem;
  }
  .hero-stripe {
    flex-direction: column;
    text-align: center;
  }

  .hero-right img {
  margin-top: 32px;
  height: 240px; /* Adjust this value as needed */
  width: auto;
  object-fit: contain;
  max-height: 100%;
}
  .hero-card {
    text-align: center;
    padding: 32px;
  }
  .hero-phone img {
    margin-top: 32px;
    max-height: 240px;
  }
  .cta-button {
    width: 100%;
    max-width: 300px;
    margin: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .mobile-app {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .mobile-content {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .mobile-image img {
    max-width: 100%;
    height: auto;
  }

  .hamburger-menu {
    display: flex;
  }
  .login-promo-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .login-panel,
  .promo-card {
    max-width: 100%;
  }

  .nav-links ul {
  flex-direction: column;
  background-color: #b31b1b;
  padding: 1rem;
  position: absolute;
  top: 60px;
  right: 2rem;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links ul.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

}
