/* Main CSS for Ethical Sourcing Verification Audits Template */

:root {
  /* Primary Color Palette - Pastel High-Contrast */
  --primary-green: #4a9b8e;
  --primary-green-light: #6bb5a8;
  --primary-green-dark: #2d7a6b;
  
  --secondary-blue: #5a8baf;
  --secondary-blue-light: #7aa3c7;
  --secondary-blue-dark: #3d6b8c;
  
  --accent-orange: #d4a574;
  --accent-orange-light: #e2bd92;
  --accent-orange-dark: #b8864f;
  
  --neutral-gray: #8e9aaf;
  --neutral-gray-light: #a8b2c7;
  --neutral-gray-dark: #6b7a8c;
  
  --warm-beige: #c4b5a0;
  --warm-beige-light: #d4c7b5;
  --warm-beige-dark: #a69880;
}

/* Conservative Typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Loading state */
body.loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.loading .loader {
  opacity: 1;
  visibility: visible;
}

/* Navbar Scroll Effect */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 600;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-green-dark);
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-blue-dark);
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-green-light), var(--secondary-blue-light));
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: var(--warm-beige-light);
  border-radius: 50%;
  opacity: 0.1;
  transform: rotate(15deg);
}

/* Section Styling */
.section-padding {
  padding: 4rem 0;
}

.section-title {
  color: var(--primary-green-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--secondary-blue);
  margin-bottom: 1.5rem;
}

.section-description {
  color: var(--neutral-gray-dark);
  margin-bottom: 3rem;
}

/* Services Cards */
.service-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .card-body {
  padding: 2rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
}

/* Features Grid */
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Price Plan Cards */
.price-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border: 3px solid var(--accent-orange);
  transform: scale(1.05);
}

/* Team Members */
.team-member {
  text-align: center;
  margin-bottom: 3rem;
}

/* Team member responsive layout */
@media (max-width: 991.98px) {
  #team .col-lg-4:nth-child(4),
  #team .col-lg-4:nth-child(5) {
    margin-top: 2rem;
  }
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 4px solid var(--warm-beige);
}

/* Reviews/Testimonials */
.review-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-green);
}

/* Case Studies */
.case-study-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

/* 5-column layout for process steps on large screens */
@media (min-width: 992px) {
  #process .col-lg {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--secondary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-orange);
  border-radius: 50%;
}

/* Career Cards */
.career-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  border-top: 4px solid var(--secondary-blue);
}

/* Core Info Grid */
.core-info-item {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

.form-control {
  border-radius: 8px;
  border: 2px solid var(--neutral-gray-light);
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(74, 155, 142, 0.25);
}

.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
}

/* FAQ Cards */
.faq-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-orange);
}

.faq-question {
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--neutral-gray-dark);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--primary-green-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--warm-beige-light);
}

.footer a {
  color: var(--warm-beige-light);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

/* Blog Grid */
.blog-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb-container {
  padding: 1rem 0;
  background: var(--warm-beige-light);
}

.breadcrumb-image {
  width: 30px;
  height: 20px;
  object-fit: contain;
}

/* Animations - Reduced Motion Support */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.aos-animate {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    animation-delay: 0.01ms;
    transition-delay: 0.01ms;
  }
}

/* Additional Page Styles */
.additional-section {
  padding: 3rem 0;
}

.additional-section:nth-child(even) {
  background: var(--warm-beige-light);
}

.element-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Space Page */
#space {
  min-height: 80vh;
  background: linear-gradient(45deg, var(--primary-green-light), var(--secondary-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#space::before {
  content: 'Ethical Sourcing Space';
  font-size: 3rem;
  color: white;
  font-weight: 300;
  opacity: 0.7;
} 

.hero-section h1 {
    padding-top: 175px;
}


/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Animations for image loading */
.lozad {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lozad.loaded, 
.lozad.fade-in {
  opacity: 1;
}

/* Placeholder styling */
.lozad:not([src]):not([data-loaded]) {
  min-height: 60px;
  background-color: #f8f8f8;
  position: relative;
}

/* Fallback for error images */
img.error {
  background-color: #f8f8f8;
  border: 1px solid #eee;
  min-height: 60px;
}

/* Responsive image adjustments */
@media (max-width: 768px) {
  .team-photo {
    width: 150px;
    height: 150px;
  }
}
