/* Main CSS for Sustainable Building Materials Template */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-green: #348a43;
  --primary-green-light: #54b166;
  --primary-green-dark: #114a17;
  --earth-brown: #8a6662;
  --earth-brown-light: #bfbab9;
  --earth-brown-dark: #533935;
  --nature-blue: #088db3;
  --nature-blue-light: #47d8fb;
  --nature-blue-dark: #0a5bab;
  --warm-orange: #f5a907;
  --warm-orange-light: #fbb653;
  --warm-orange-dark: #f26a03;
  --stone-gray: #668790;
  --stone-gray-light: #8db1bd;
  --stone-gray-dark: #36404a;
  --text-primary: #2a2a2a;
  --text-secondary: #645e5e;
  --text-light: #FFFFFF;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --bg-dark: #1b1e23;
  --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--nature-blue) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--earth-brown) 0%, var(--warm-orange) 100%);
  --gradient-accent: linear-gradient(135deg, var(--primary-green-light) 0%, var(--nature-blue-light) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
h1 { font-size: 2.63rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.63rem; }
h4 { font-size: 1.37rem; }
p { font-size: 1rem; margin-bottom: 1rem; }

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 135, 48, 0.10);
  transition: all 0.3s ease;
}

.navbar-brand { font-size: 1.51rem; font-weight: 700; color: var(--primary-green) !important; }
.navbar-nav .nav-link { font-weight: 500; color: var(--text-primary) !important; margin: 0 0.5rem; transition: color 0.3s ease; }
.navbar-nav .nav-link:hover { color: var(--primary-green) !important; }

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232E7D32' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

.hero-section h1 {
    padding-top: 150px;
}

.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  padding-top: 50px !important; position: relative; z-index: 2; }
.hero-title { color: var(--text-light); font-size: 3rem; font-weight: 700; margin-bottom: 1.74rem; }
.hero-subtitle { color: var(--text-light); font-size: 1.32rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-desc { color: var(--text-light); font-size: 1.21rem; margin-bottom: 2rem; opacity: 0.8; }

.section { padding: 5rem 0; }
.section-title { font-size: 2.62rem; text-align: center; margin-bottom: 1rem; color: var(--primary-green); }
.section-subtitle { font-size: 1.38rem; text-align: center; color: var(--text-secondary); margin-bottom: 1rem; }
.section-desc { font-size: 1.14rem; text-align: center; color: var(--text-secondary); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.custom-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 11px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
}

.custom-card:hover { transform: translateY(-5px); box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15); }
.custom-card img { width: 100%; height: 200px; object-fit: cover; }
.custom-card .card-body { padding: 2rem; }
.custom-card .card-title { color: var(--primary-green); font-weight: 600; margin-bottom: 1rem; }
.custom-card .card-text { color: var(--text-secondary); line-height: 1.6; }

.service-card { text-align: center; padding: 2rem; }
.service-card .service-icon { font-size: 3rem; color: var(--primary-green); margin-bottom: 1.68rem; }
.service-price { font-size: 2rem; font-weight: 700; color: var(--warm-orange); margin: 1rem 0; }

.service-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.service-features li { padding: 0.5rem 0; color: var(--text-secondary); }
.service-features li::before { content: 'âœ“'; color: var(--primary-green); font-weight: bold; margin-right: 0.5rem; }

.team-member { text-align: center; margin-bottom: 2rem; }
.team-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; border: 4px solid var(--primary-green-light); }
.team-name { font-size: 1.31rem; font-weight: 600; color: var(--primary-green); margin-bottom: 0.66rem; }
.team-role { color: var(--text-secondary); font-style: italic; }

.review-card { background: var(--bg-light); border-radius: 15px; padding: 2rem; margin-bottom: 2rem; position: relative; }
.review-card::before { content: '"'; font-size: 4rem; color: var(--primary-green-light); position: absolute; top: -11px; left: 20px; line-height: 1; }
.review-text { font-style: italic; margin-bottom: 1.70rem; padding-left: 2rem; }
.review-author { font-weight: 600; color: var(--primary-green); text-align: right; }

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  margin-right: 3rem;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
  margin-left: 3rem;
  margin-right: 0;
}

.timeline-content {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 45%;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: 100%;
  border: 15px solid transparent;
  border-left-color: var(--bg-white);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: 100%;
  border: 15px solid transparent;
  border-right-color: var(--bg-white);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-green);
  border: 4px solid var(--bg-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.timeline-content h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.faq-item { background: var(--bg-white); border-radius: 10px; margin-bottom: 1rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); overflow: hidden; }
.faq-question { background: var(--primary-green); color: var(--text-light); padding: 1.5rem; cursor: pointer; font-weight: 600; transition: background-color 0.3s ease; }
.faq-question:hover { background: var(--primary-green-dark); }
.faq-answer { padding: 1.5rem; color: var(--text-secondary); display: none; }
.faq-answer.active { display: block; }

.contact-form { background: var(--bg-light); padding: 3rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.form-control { border: 2px solid transparent; border-radius: 10px; padding: 1rem; font-size: 1rem; transition: border-color 0.3s ease; }
.form-control:focus { border-color: var(--primary-green); box-shadow: 0 0 0 0.2rem rgba(64, 138, 68, 0.25); }

.btn-primary { background: var(--gradient-primary); border: none; border-radius: 10px; padding: 1rem 2rem; font-weight: 600; transition: transform 0.3s ease; }
.btn-primary:hover { transform: translateY(-2px); background: var(--gradient-primary); }

.footer { background: var(--primary-green-dark); color: var(--text-light); padding: 3rem 0 1rem; }
.footer h5 { color: var(--text-light); margin-bottom: 1.73rem; }
.footer a { color: var(--primary-green-light); text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: var(--text-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; margin-top: 2rem; text-align: center; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-item { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; }
.gallery-item:hover { transform: scale(1.05); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; display: block; }

.breadcrumb-nav { padding: 1rem 0; background: var(--bg-light); }
.breadcrumb-image { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; }

.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-gradient-accent { background: var(--gradient-accent); }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.active { opacity: 1; transform: translateY(0); }



/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
