/* ===================================================
   Fast Business Financial - Custom Stylesheet
   Financial Services | Los Angeles, CA
   =================================================== */

/* --- CSS Variables --- */
:root {
  --primary: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --primary-accent: #66BB6A;
  --secondary: #263238;
  --secondary-light: #37474F;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 12px;
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.preloader-text span {
  color: var(--secondary);
}

.preloader-spinner {
  margin-top: 20px;
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Utility Classes --- */
.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title p {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-custom {
  background-color: var(--primary) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary) !important;
}

/* --- Buttons --- */
.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid var(--primary);
  display: inline-block;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white-custom {
  background-color: #fff;
  border: 2px solid #fff;
  color: var(--primary);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
}

.btn-white-custom:hover {
  background-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: 1px;
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 8px 18px !important;
  position: relative;
  font-size: 0.95rem;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 60%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 28px;
  height: 2px;
  background: var(--secondary);
  display: block;
  position: relative;
  transition: var(--transition);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background: var(--secondary);
  left: 0;
  transition: var(--transition);
}

.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { top: 8px; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27,94,32,0.85) 0%, rgba(38,50,56,0.8) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-content .btn-group-hero {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 15px;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
}

.page-header .breadcrumb {
  justify-content: center;
  margin-top: 15px;
}

.page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
  color: var(--primary-accent);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* --- About Section --- */
.about-section .about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-section .about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-section .about-img:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content .lead {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.about-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.about-features li i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* --- Services Section --- */
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card .service-img {
  height: 220px;
  overflow: hidden;
}

.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-card .service-body {
  padding: 25px;
}

.service-card .service-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  margin-top: -45px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.service-card .service-icon i {
  color: #fff;
  font-size: 1.3rem;
}

.service-card h4 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Services List (detailed page) --- */
.service-detail-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-detail-card .service-detail-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-detail-card .service-detail-icon i {
  color: #fff;
  font-size: 1.8rem;
}

.service-detail-card h3 {
  margin-bottom: 15px;
}

.service-detail-card ul {
  list-style: none;
  padding: 0;
}

.service-detail-card ul li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.service-detail-card ul li i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* --- Why Choose Us / Features --- */
.feature-box {
  text-align: center;
  padding: 35px 25px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-box .feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(46,125,50,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  background: var(--primary);
}

.feature-box .feature-icon i {
  color: var(--primary);
  font-size: 1.6rem;
  transition: var(--transition);
}

.feature-box:hover .feature-icon i {
  color: #fff;
}

.feature-box h4 {
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- CTA / Parallax Section --- */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27,94,32,0.9) 0%, rgba(38,50,56,0.85) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 30px;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.testimonial-card .quote-icon {
  color: var(--primary);
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 15px;
}

.testimonial-card .stars {
  color: #FFC107;
  margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.testimonial-card .testimonial-author {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 3px;
}

.testimonial-card .testimonial-role {
  font-size: 0.85rem;
  color: var(--primary);
}

/* --- Counter Section --- */
.counter-section {
  background: var(--secondary);
  padding: 60px 0;
}

.counter-box {
  text-align: center;
  padding: 20px;
}

.counter-box .counter-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-box .counter-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Forms --- */
.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-label {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* --- Opt-In Box (TCPA Compliance) --- */
.opt-in-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: rgba(46,125,50,0.05);
  border: 1px solid rgba(46,125,50,0.15);
  border-radius: var(--radius);
  margin-top: 15px;
  margin-bottom: 20px;
}

.opt-in-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.opt-in-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  cursor: pointer;
}

.opt-in-label a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.opt-in-label a:hover {
  color: var(--primary-dark);
}

/* --- Contact Info --- */
.contact-info-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item .icon-box {
  width: 50px;
  height: 50px;
  background: rgba(46,125,50,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon-box i {
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-info-item h5 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.contact-info-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- Map Section --- */
.map-section {
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(30%);
}

/* --- Footer --- */
.footer {
  background: var(--secondary);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer h5 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-accent);
}

.footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.footer .footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-accent) !important;
  margin-bottom: 15px;
  display: block;
}

.footer .footer-brand span {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  padding: 6px 0;
}

.footer-links li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--primary-accent);
}

.footer-links li a:hover {
  color: var(--primary-accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-accent);
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* --- Legal Pages --- */
.legal-content {
  padding: 60px 0;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.legal-content h3 {
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-content li {
  padding: 5px 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content .last-updated {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Responsive Styles --- */
@media (max-width: 991.98px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .navbar-collapse {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 15px;
    box-shadow: var(--shadow-md);
  }

  .section-padding {
    padding: 60px 0;
  }

  .cta-section {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-padding {
    padding: 50px 0;
  }

  .counter-box .counter-number {
    font-size: 2rem;
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .service-detail-card {
    padding: 25px;
  }

  .footer {
    text-align: center;
  }

  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 575.98px) {
  .hero-content .btn-group-hero {
    flex-direction: column;
  }

  .hero-content .btn-group-hero a {
    text-align: center;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-white-custom {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}
