/* =========================
   J&L FINANCIAL SERVICES
   STYLE.CSS - PART 1
   FOUNDATION + NAV + HERO
========================= */

/* ========== ROOT VARIABLES ========== */
:root {
  --primary: #1b5e20;
  --secondary: #2e7d32;
  --accent: #81c784;
  --gold: #f9a825;

  --text: #1f2937;
  --light-text: #6b7280;

  --bg: #fafafa;
  --white: #ffffff;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.06);

  --radius: 5px;
  --radius-sm: 10px;

  --transition: all 0.3s ease;
}

/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 700;
}

p {
  color: var(--light-text);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* ========== NAVBAR ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h2 {
  color: var(--primary);
  font-size: 22px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--primary);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--primary);
}

.hero-content h3 {
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 17px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* ========== STATS SECTION ========== */
.stats {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
}

.stat-card {
  background: var(--white);
  padding: 25px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.stat-card i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-card h2 {
  font-size: 28px;
  color: var(--secondary);
}

.stat-card p {
  font-size: 14px;
}

/* =========================
   SECTION SYSTEM
========================= */

.section {
  padding: 90px 20px;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title span {
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: 36px;
  margin-top: 10px;
  color: var(--primary);
}

.section-title p {
  margin-top: 10px;
  color: var(--light-text);
}

/* =========================
   ABOUT SECTION
========================= */

.about-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-content h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-content p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* =========================
   VISION SECTION
========================= */

.vision-card {
  max-width: 900px;
  margin: auto;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.vision-card i {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--gold);
}

.vision-card p {
  color: white;
  font-size: 18px;
  line-height: 1.8;
}

/* decorative glow */
.vision-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* =========================
   MISSION SECTION
========================= */

.mission-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.mission-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-align: center;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.mission-card i {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 15px;
}

.mission-card h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

/* =========================
   CORE VALUES
========================= */

.values-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--white);
  padding: 25px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  background: var(--primary);
  color: white;
  cursor: pointer;
}

.value-card i {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.value-card:hover i {
  color: white;
  cursor: pointer;
}

.value-card h3 {
  font-size: 16px;
}

/* =========================
   LOAN PRODUCTS
========================= */

.loan-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.loan-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.loan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.loan-card i {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 15px;
}

.loan-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

/* subtle top accent line */
.loan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* =========================
   TARGET CLIENTS
========================= */

.client-grid {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.client-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.client-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.client-card i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.client-card:hover i {
  color: white;
}

/* =========================
   LOAN REQUIREMENTS
========================= */

.requirements-box {
  max-width: 900px;
  margin: auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.requirements-box ul {
  list-style: none;
}

.requirements-box li {
  padding: 12px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border-bottom: 1px solid #eee;
}

.requirements-box i {
  color: var(--secondary);
}

/* =========================
   WHY CHOOSE US
========================= */

.why-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.why-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.why-card i {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 15px;
}

.why-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

/* =========================
   CALL TO ACTION (CTA)
========================= */

.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: auto;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: white;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 16px;
}

.cta .btn-primary {
  background: var(--gold);
  color: #000;
  font-weight: 700;
}

.cta .btn-primary:hover {
  background: #ffb300;
}

/* =========================
   FAQ SECTION
========================= */

.faq-container {
  max-width: 900px;
  margin: auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: var(--primary);
  color: white;
  border: none;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--secondary);
}

.faq-answer {
  background: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 20px;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.contact-card i {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
   FOOTER
========================= */

footer {
  background: var(--primary);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: auto;
}

.footer-content h2 {
  color: white;
  margin-bottom: 10px;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.social-links {
  margin: 20px 0;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  color: white;
  font-size: 18px;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

footer hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .loan-grid {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SMALL DEVICES
========================= */

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .hero-content h1 {
    font-size: 28px;
  }
}

/* =========================
   MICRO ANIMATIONS
========================= */

.section {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth hover polish */
.loan-card,
.why-card,
.client-card,
.stat-card,
.mission-card,
.value-card {
  will-change: transform;
}

/* =========================
   WHATSAPP FLOAT BUTTON
========================= */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}
