/* Coffee Ground Recycling Bio-Fertilizer Website - Main Styles */
/* Bootstrap 5 compliant - NO overrides or duplications */

:root {
  /* Color Palette - 5 primary colors with light/dark shades */
  --primary-green: #4CAF50;
  --primary-brown: #8D6E63;
  --primary-beige: #F5F5DC;
  --primary-orange: #FF8C00;
  --primary-sage: #9CAF88;
  
  /* Light shades */
  --light-green: #E8F5E8;
  --light-brown: #F3F0EF;
  --light-beige: #FAFAFA;
  --light-orange: #FFF8E1;
  --light-sage: #F4F6F3;
  
  /* Dark shades */
  --dark-green: #2E7D32;
  --dark-brown: #5D4037;
  --dark-beige: #E8E8E8;
  --dark-orange: #E65100;
  --dark-sage: #6B7B5C;
  
  /* Typography */
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-large: 18px;
  --line-height-base: 1.6;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: #333;
  background-color: #fff;
  overflow-x: hidden; /* Disable horizontal scrolling */
}

/* Ensure all elements don't cause horizontal scrolling */
html {
  overflow-x: hidden;
  max-width: 100%;
}

/* Make sure all elements with Sal.js attributes are visible */
[data-sal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Conservative font sizes */
.navbar-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-green);
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 0.6rem;
}

p {
  font-size: var(--font-size-base);
  margin-bottom: 1rem;
  color: #555;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--light-green) 0%, var(--light-beige) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: var(--primary-sage);
  border-radius: 50%;
  opacity: 0.1;
  transform: scale(8);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 80px;
  height: 80px;
  background: var(--primary-orange);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.08;
  transform: scale(6);
}

/* Sections */
.section-padding {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--primary-sage);
  font-size: var(--font-size-large);
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Service Cards */
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 1rem;
}

/* Features */
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-green);
  font-size: 1.5rem;
}

/* Team Section */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--light-green);
}

/* Process Steps */
.process-step {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.process-number {
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  background: var(--light-beige);
  padding: 2rem;
  border-radius: 8px;
}

.form-control {
  border: 2px solid var(--light-green);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
}

/* Footer */
.footer {
  background-color: var(--dark-brown);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--light-beige);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--light-beige);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 245, 220, 0.2);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
}

/* Gallery */
.gallery-item {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Blog */
.blog-card {
  margin-bottom: 2rem;
}

.blog-excerpt {
  color: #666;
  font-size: var(--font-size-small);
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--light-green);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #666;
  margin: 0;
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.breadcrumb-item img {
  width: 20px;
  height: 20px;
}

/* Utilities */
.text-primary-green { color: var(--primary-green); }
.text-primary-brown { color: var(--primary-brown); }
.bg-light-green { background-color: var(--light-green); }
.bg-light-beige { background-color: var(--light-beige); }

/* Responsive adjustments handled in responsive.css */

.hero-section h1 {
    padding-top: 225px;
}


/* Team Social Links - Neon Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.social-icons-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 0.7;
}

.social-link:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor;
    box-shadow: 0 0 20px currentColor;
}

.facebook-link {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.linkedin-link {
    border-color: #0a66c2;
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
}

.instagram-link {
    border-color: #e4405f;
    color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.x-link {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 22px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
