/*
Theme Name: NewLeaf
Description: Custom theme for NewLeaf debt and credit help
Version: 1.0
Author: Your Name
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

/* Navigation */
.navbar {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 50px;
  width: auto;
}

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

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-link:hover {
  color: #4a90e2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 500px;
  background: linear-gradient(135deg, #4a90e2 0%, #357ABD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 70px;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #4a90e2;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.full-width {
  width: 100%;
}

/* Services Section */
.services-section {
  padding: 4rem 1rem;
  text-align: center;
  background: #f8f9fa;
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.services-section p {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #666;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-box {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-box h3 {
  color: #4a90e2;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-box p {
  color: #666;
  line-height: 1.6;
}

/* Portal Section */
.portal-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  text-align: center;
}

.portal-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.portal-card h2 {
  color: #4a90e2;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.portal-card p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #666;
}

/* CTA & Contact Sections */
.cta-section,
.contact-section {
  padding: 3rem 1rem;
  text-align: center;
}

.cta-section {
  background: #fff;
}

.contact-section {
  background: #f8f9fa;
}

.cta-section h2,
.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.cta-section p,
.contact-section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

.cta-section .btn-primary {
  background-color: #4a90e2;
  color: #fff;
  margin-top: 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #333;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  color: #4a90e2;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.auth-header p {
  color: #666;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #4a90e2;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: #666;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #155724;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #721c24;
}

.alert-info {
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid #4a90e2;
  color: #1c4c73;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Navigation */
  .nav-toggle {
    display: flex;
  }
  
  #nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
  }
  
  #nav-menu.active {
    display: flex;
  }

  /* Hero */
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }

  /* Services - Mobile Carousel */
  .services-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
  }
  
  .service-box {
    flex: 0 0 85%;
    scroll-snap-align: center;
    margin: 0 0.5rem;
  }
  
  /* Hide scrollbar */
  .services-container::-webkit-scrollbar {
    display: none;
  }
  
  .services-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Modal */
  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 1.5rem;
  }

  /* Sections */
  .services-section,
  .portal-section,
  .cta-section,
  .contact-section {
    padding: 3rem 1rem;
  }
  
  .portal-card {
    padding: 2rem 1.5rem;
  }
}