/* ============================================
   Loanhouse Careers Landing Page - Styles
   ============================================ */

/* Design Tokens */
:root {
  --navy-950: #0a1628;
  --navy-900: #0d1f3c;
  --navy-800: #12294f;
  --navy-700: #1c3a63;
  --gold-500: #c9a227;
  --gold-400: #d9b74a;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-10: rgba(255, 255, 255, 0.1);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: 96px 0;
  --section-padding-mobile: 64px 0;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.btn-gold {
  background: #fff;
  color: var(--navy-950);
}

.btn-gold:hover {
  background: #3c97fc;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-50);
}

.btn-ghost:hover {
  background: var(--white-10);
  border-color: var(--white-70);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Eyebrow Tag */
.eyebrow {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3c97fc;
    margin-bottom: 16px;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-700);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1.25rem;
}

.logo-icon {
    width: 22px;
    height: 22px;
    color: #3c97fc;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--white-70);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 8px;
}

.hamburger i {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 24px;
  right: 24px;
  padding: 24px;
  margin-top: 8px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  color: var(--white-70);
  font-size: 1rem;
  display: block;
  padding: 8px 0;
}

.mobile-menu a:hover {
  color: var(--white);
}

.mobile-menu .btn {
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
    max-width: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  mix-blend-mode: luminosity;
}

.hero-content {
  max-width: 920px;
}

#hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-align: center;
}

.subhead {
  font-size: 1.125rem;
  color: var(--white-70);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white-50);
  animation: bounce 2s infinite;
}

.scroll-cue i {
  width: 32px;
  height: 32px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* ============================================
   Stat Strip
   ============================================ */
.stat-strip {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 48px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #3c97fc;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--white-70);
  font-weight: 500;
}

@media (max-width: 700px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
  }
}

/* ============================================
   Why Loanhouse Section
   ============================================ */
#why-loanhouse {
  padding: var(--section-padding);
  background: var(--navy-900);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

#why-loanhouse h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-top: 8px;
}

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

.benefit-card {
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-badge i {
  width: 28px;
  height: 28px;
  color: var(--gold-500);
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Our Growth Section
   ============================================ */
#our-growth {
  padding: var(--section-padding);
  background: var(--navy-800);
}

.growth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.growth-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.growth-content p {
  color: var(--white-70);
  font-size: 1rem;
  line-height: 1.8;
}

.growth-chart {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding: 20px 0;
  border-bottom: 2px solid var(--navy-700);
  margin-bottom: 16px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.bar {
  width: 48px;
  background: linear-gradient(180deg, #3c97fc, #3c97fc);
  border-radius: 6px 6px 0 0;
  min-height: 30px;
  transition: height 1s ease;
}

.bar-label {
  font-size: 0.85rem;
  color: var(--white-70);
  font-weight: 500;
}

.chart-title {
  text-align: center;
  font-size: 0.9rem;
  color: var(--white-50);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .growth-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================================
   Culture Section
   ============================================ */
#culture {
  padding: var(--section-padding);
  background: var(--navy-800);
}

#culture h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

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

.testimonial-card {
  padding: 32px;
}

.testimonial-card2 {
    padding-top: 32px;
    padding-right: 100px;
    padding-left: 32px;
    padding-bottom: 32px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card cite {
    font-size: 0.85rem;
    color: #3c97fc;
    font-style: normal;
    font-weight: 500;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================
   Open Roles CTA Section
   ============================================ */
#open-roles {
  padding: var(--section-padding);
}

.cta-panel {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: 0 0 80px rgba(201, 162, 39, 0.1);
}

.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-panel > .container > p {
  font-size: 1.125rem;
  color: var(--white-70);
  margin-bottom: 32px;
}

.cta-panel .cta-row {
  justify-content: center;
  margin-bottom: 16px;
}

.secondary-link {
  color: var(--white-70);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.secondary-link:hover {
  color: var(--gold-500);
}

@media (max-width: 640px) {
  .cta-panel {
    padding: 48px 24px;
  }
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-700);
  padding: 64px 0 32px;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--white-50);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--white-50);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--navy-700);
  margin-bottom: 16px;
}

.footer-bottom p {
  color: var(--white-50);
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: var(--gold-500);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--gold-400);
  transform: scale(1.1);
}

.social-icons i {
  width: 20px;
  height: 20px;
}

.licensing-disclaimer {
  font-size: 0.75rem;
  color: var(--white-50);
  text-align: center;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
  #why-loanhouse,
  #our-growth,
  #culture,
  #open-roles {
    padding: var(--section-padding-mobile);
  }
  
  .section-header {
    margin-bottom: 40px;
  }
}

/* Animation for bars on scroll */
.bar.animate {
  animation: growBar 1s ease forwards;
}

@keyframes growBar {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}
