/* ==========================================================================
   Chase Mobile Bank - Global Marketing Website Stylesheet
   Modern, trustworthy, high-conversion banking design
   ========================================================================== */

:root {
  --primary-navy: #0A2540;
  --chase-blue: #0047AB;
  --chase-blue-dark: #003080;
  --chase-blue-light: #0060F0;
  --accent-cyan: #00D4B8;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #EF4444;

  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-dark: #071324;
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-white: #FFFFFF;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
  --shadow-hover: 0 16px 45px rgba(0, 71, 171, 0.16);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 16px;
}

a {
  color: var(--chase-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--chase-blue-dark);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-octagram {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--chase-blue), var(--chase-blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.25);
}

.logo-octagram svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-navy);
  line-height: 1;
}

.logo-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chase-blue);
  margin-top: 3px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--chase-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--chase-blue);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--chase-blue);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0, 71, 171, 0.25);
}

.btn-primary:hover {
  background: var(--chase-blue-dark);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 71, 171, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--primary-navy);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--chase-blue);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--primary-navy);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-white {
  background: #FFFFFF;
  color: var(--chase-blue);
}

.btn-white:hover {
  background: #F1F5F9;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-navy);
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px 28px;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel .nav-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);
  padding: 80px 0 90px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 71, 171, 0.08);
  color: var(--chase-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 71, 171, 0.15);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--chase-blue), var(--chase-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
}

.trust-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Corporate Visual Container */
.corporate-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.corporate-image-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px -10px rgba(10, 37, 64, 0.18);
  border: 1px solid #E2E8F0;
  background: white;
}

.corporate-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  transition: transform 0.5s ease;
}

.corporate-image-card:hover img {
  transform: scale(1.02);
}

.corporate-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.corporate-floating-badge .badge-icon {
  font-size: 20px;
}

.corporate-floating-badge .badge-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.corporate-floating-badge .badge-text span {
  font-size: 11.5px;
  color: #94A3B8;
}

.corporate-showcase-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(10, 37, 64, 0.1);
  border: 1px solid var(--border-light);
  background: white;
}

.corporate-showcase-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}

.corporate-showcase-card:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   Features & Services Grid
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-subtle {
  background: var(--bg-subtle);
}

.section-dark {
  background: var(--bg-dark);
  color: white;
}

.section-dark h2, .section-dark h3 {
  color: white;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  color: var(--chase-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.feature-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(0, 71, 171, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chase-blue);
  margin-bottom: 22px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
}

/* Stats Ribbon */
.stats-banner {
  background: linear-gradient(135deg, var(--chase-blue), var(--chase-blue-dark));
  padding: 60px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  color: white;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  font-weight: 500;
}

/* ==========================================================================
   Loan Calculator Component (loans.php)
   ========================================================================== */
.calc-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.calc-group {
  margin-bottom: 24px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--primary-navy);
}

.calc-input-range {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  accent-color: var(--chase-blue);
}

.calc-result-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.calc-amount-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.calc-monthly-pay {
  font-size: 44px;
  font-weight: 800;
  color: var(--chase-blue);
  margin: 10px 0 16px;
}

/* ==========================================================================
   FAQ Accordion Component
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   Form Controls (login, register, contact)
   ========================================================================== */
.auth-wrapper {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--primary-navy);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: #FBFDFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--chase-blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
  background: white;
}

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-disclaimer {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  line-height: 1.7;
  color: #64748B;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop, .nav-actions { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero-title { font-size: 38px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}
