/* 
   B Credit Solutions LLC - Main Stylesheet
   Created: May 22, 2025
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* Color Variables - Based on design research */
:root {
  --primary-color: #0A2463;    /* Navy Blue */
  --secondary-color: #F8F9FA;  /* Light Gray */
  --accent-color: #FFD700;     /* Gold */
  --text-color: #212529;       /* Dark Gray */
  --white: #ffffff;
  --light-shadow: rgba(0, 0, 0, 0.1);
  --dark-shadow: rgba(0, 0, 0, 0.2);
  --light-blue: #E6F3FF;       /* Light Blue for backgrounds */
  --medium-blue: #3E92CC;      /* Medium Blue for secondary elements */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

h2.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

h2:hover:after {
  width: 120px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px var(--light-shadow);
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: 1;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--light-shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--light-shadow);
}

section {
  padding: 100px 0;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px var(--light-shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px var(--dark-shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  transition: all 0.3s ease;
}

.logo img {
  height: 60px;
  transition: all 0.3s ease;
}

header.scrolled .logo img {
  height: 50px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

nav ul li a.active {
  color: var(--accent-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
#hero {
  padding: 180px 0 120px;
  background-color: var(--light-blue);
  position: relative;
  overflow: hidden;
}

#hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
  z-index: 1;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--text-color);
  max-width: 600px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 15px 30px var(--dark-shadow);
  transition: all 0.5s ease;
}

.hero-image:hover img {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--dark-shadow);
}

/* About Section */
#about {
  padding: 120px 0;
  background-color: var(--white);
}

#about h2 {
  text-align: center;
  margin-bottom: 60px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 20px var(--light-shadow);
  transition: all 0.5s ease;
}

.about-image:before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent-color);
  border-radius: 8px;
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image:hover:before {
  top: -15px;
  left: -15px;
}

.about-image:hover img {
  transform: scale(1.02);
}

/* Services Section */
#services {
  padding: 120px 0;
  background-color: var(--secondary-color);
  position: relative;
}

#services:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.03) 0%, rgba(255, 215, 0, 0.03) 100%);
  z-index: 1;
}

#services .container {
  position: relative;
  z-index: 2;
}

#services h2 {
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--light-shadow);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px var(--dark-shadow);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: all 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
  transition: all 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent-color);
}

.service-card h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.service-card:hover h3:after {
  width: 80px;
}

.service-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Contact Section */
#contact {
  padding: 120px 0;
  background-color: var(--white);
  position: relative;
}

#contact h2 {
  text-align: center;
  margin-bottom: 60px;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(10, 36, 99, 0.1);
}

.form-group.error input,
.form-group.error textarea {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.success-message i {
  margin-right: 8px;
  color: #28a745;
}

.contact-info {
  flex: 1;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--light-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--dark-shadow);
}

.contact-info h3 {
  color: var(--accent-color);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
}

.contact-info p strong {
  min-width: 100px;
  display: inline-block;
  color: var(--accent-color);
}

.contact-info a {
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Footer Section */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-logo {
  flex: 1;
}

.footer-logo img {
  height: 70px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-logo p {
  max-width: 300px;
  opacity: 0.8;
}

.footer-links {
  flex: 1;
  padding: 0 30px;
}

.footer-links h4 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: var(--white);
  transition: all 0.3s ease;
  opacity: 0.8;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  opacity: 1;
  transform: translateX(5px);
}

.footer-contact {
  flex: 1;
}

.footer-contact h4 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-contact p {
  margin-bottom: 15px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-contact p:hover {
  opacity: 1;
}

.footer-contact a {
  color: var(--accent-color);
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Shake animation for form validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .contact-form {
    margin-bottom: 40px;
  }
  
  .footer-content {
    flex-wrap: wrap;
  }
  
  .footer-logo, .footer-links, .footer-contact {
    flex: 100%;
    margin-bottom: 40px;
  }
  
  .footer-links {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  section {
    padding: 80px 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  header .container {
    padding: 15px 20px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px var(--light-shadow);
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
    z-index: 1000;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 0 0 20px 0;
  }
  
  nav ul li a {
    display: block;
    font-size: 18px;
  }
  
  #hero {
    padding: 150px 0 80px;
  }
  
  #hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    order: 2;
    margin-top: 30px;
  }
  
  .about-image {
    order: 1;
  }
  
  .about-image:before {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
  
  .contact-info {
    padding: 30px 20px;
  }
  
  .logo img {
    height: 50px;
  }
  
  header.scrolled .logo img {
    height: 40px;
  }
  
  #hero {
    padding: 130px 0 60px;
  }
  
  section {
    padding: 60px 0;
  }
}

/* Print styles */
@media print {
  header {
    position: relative;
    box-shadow: none;
  }
  
  .mobile-nav-toggle,
  .btn,
  .footer-links {
    display: none;
  }
  
  body, html {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1 {
    font-size: 24pt;
  }
  
  h2 {
    font-size: 20pt;
  }
  
  h3 {
    font-size: 16pt;
  }
  
  #hero, #about, #services, #contact, footer {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  .hero-content, .about-content, .contact-content {
    display: block;
  }
  
  .hero-image, .about-image {
    margin-top: 20pt;
  }
  
  .services-grid {
    display: block;
  }
  
  .service-card {
    margin-bottom: 20pt;
    box-shadow: none;
    border: 1pt solid #ddd;
  }
  
  .contact-info {
    background-color: transparent;
    color: black;
    box-shadow: none;
    border: 1pt solid #ddd;
    padding: 15pt;
  }
  
  .contact-info h3, .contact-info a, .contact-info p strong {
    color: var(--primary-color);
  }
  
  footer {
    background-color: transparent;
    color: black;
    border-top: 1pt solid #ddd;
  }
  
  .footer-logo p, .footer-contact p {
    color: black;
  }
}