/* ===================================== */
/* ROOT VARIABLES & BRAND COLORS        */
/* ===================================== */

:root {
  /* Brand Colors - Updated to match logo */
  --primary: #08C9CC;           /* Bright Turquoise from logo */
  --secondary: #2C5D8B;         /* Navy */
  
  /* NEW: High-Contrast CTA Colors */
  --cta-color: #F97316;         /* Vibrant Orange */
  --cta-hover: #EA580C;         /* Darker Orange for hover */
  
  /* Neutral Colors */
  --text-main: #1a1a1a;
  --text-light: #666666;
  --text-lighter: #999999;
  --background: #ffffff;
  --border: #e0e0e0;
  
  /* Spacing & Typography */
  --spacing-unit: 1rem;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===================================== */
/* GLOBAL STYLES                        */
/* ===================================== */

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

html {
  scroll-padding-top: 130px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--background);
  line-height: 1.6;
}

/* ===================================== */
/* LAYOUT & CONTAINERS                  */
/* ===================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main {
  min-height: calc(100vh - 200px);
}

/* ===================================== */
/* HEADER & NAVIGATION                  */
/* ===================================== */

.header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 9999;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 5.5rem;
}

.logo img {
  height: 100%;
  width: auto;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.dropdown-menu,
.dropdown-arrow {
  display: none !important;
}

/* Mobile Navigation */
@media (max-width: 968px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 6.5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    z-index: 9999999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
  }
}

/* ===================================== */
/* HERO SECTION                         */
/* ===================================== */

.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f3f8 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 500px;
}

.hero-eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-application {
  display: flex;
  justify-content: center;
}

@media (max-width: 968px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }
}

/* ===================================== */
/* CARD & FORM STYLES                   */
/* ===================================== */

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 197, 183, 0.1);
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.step-screen.hidden {
  display: none;
}

/* ===================================== */
/* BUTTONS                              */
/* ===================================== */

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: inherit;
}

/* Primary Button - CTA Orange */
.btn-primary {
  background: var(--cta-color);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
  border: 1px solid var(--cta-color);
}

.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline Button */
.btn-outline {
  background: white;
  color: var(--text-main);
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* CTA Button */
.cta-button {
  padding: 1rem 2rem;
  background: var(--cta-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

/* ===================================== */
/* SECTIONS                             */
/* ===================================== */

.section {
  padding: 4rem 0;
  background: white;
}

.section-alt {
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ===================================== */
/* HOW IT WORKS GRID                    */
/* ===================================== */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-card {
  text-align: center;
  padding: 1.5rem;
}

.how-step {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.how-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.how-card p {
  color: var(--text-light);
  line-height: 1.6;
}

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

/* ===================================== */
/* LOAN OPTIONS GRID                    */
/* ===================================== */

.loan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.loan-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}

.loan-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.loan-card h3 {
  margin: 0.5rem 0;
  color: var(--text-main);
}

.loan-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

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

/* ===================================== */
/* INDUSTRY GRID                        */
/* ===================================== */

.grid-industry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.industry-btn {
  background: white;
  border: 2px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-main);
}

.industry-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(26, 197, 183, 0.1);
}

/* ===================================== */
/* TRUST STRIP                          */
/* ===================================== */

.trust-strip {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem 0;
}

.trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.trust-label {
  font-weight: 600;
  font-size: 1rem;
}

.trust-logos {
  display: flex;
  gap: 1rem;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .trust-inner {
    flex-direction: column;
    text-align: center;
  }

  .trust-logos {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===================================== */
/* CTA SECTION                          */
/* ===================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ===================================== */
/* FOOTER                               */
/* ===================================== */

.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===================================== */
/* ANIMATIONS                           */
/* ===================================== */

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

/* Apply pulse animation to hero CTA button */
.hero-application .btn-primary {
  animation: pulse-glow 2s infinite;
}

/* ===================================== */
/* UTILITY CLASSES                      */
/* ===================================== */

.hidden {
  display: none !important;
}

/* ===================================== */
/* RESPONSIVE ADJUSTMENTS               */
/* ===================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }
}
