:root {
  /* Primary color palette for sustainable packaging design */
  --primary-green: #4a7c59;
  --primary-green-light: #6fa375;
  --primary-green-dark: #3a5e46;
  
  --secondary-sage: #9caf88;
  --secondary-sage-light: #b8c8a7;
  --secondary-sage-dark: #7b8a6c;
  
  --accent-earth: #d4b896;
  --accent-earth-light: #e5d0b5;
  --accent-earth-dark: #c19e75;
  
  --neutral-cream: #f7f5f0;
  --neutral-cream-light: #fbfaf7;
  --neutral-cream-dark: #ede9e1;
  
  --text-charcoal: #2d2d2d;
  --text-charcoal-light: #5a5a5a;
  --text-charcoal-dark: #1a1a1a;
  
  /* Conservative font sizes */
  --fs-small: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

/* FontAwesome Icons - CDN Implementation (icons loaded from CDN) */
.fa, .fas, .far, .fal, .fab {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Remove local emoji fallbacks - FontAwesome CDN will handle icons */

/* Bootstrap 5 Core Styles - Local Implementation */
.container {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.col, .col-lg-2, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-12, .col-md-4, .col-md-6, .col-6 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col { flex: 1 0 0%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }

@media (max-width: 991.98px) {
  .col-lg-2, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .col-md-4, .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.img-fluid { max-width: 100%; height: auto; }

/* Navbar Styles */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.navbar.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.navbar-brand {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}

.collapse:not(.show) {
  display: none;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

.ms-auto {
  margin-left: auto;
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-charcoal);
  background-color: var(--neutral-cream-light);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-sage));
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: var(--spacing-sm) 0;
}

.navbar-brand {
  font-size: var(--fs-xl) !important;
  font-weight: 600;
  color: white !important;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 var(--spacing-xs);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-earth-light) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-green-light), var(--secondary-sage-light));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../TOR_images/hero-bg.webp') center/cover no-repeat;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text-charcoal-dark);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: var(--text-charcoal);
  margin-bottom: var(--spacing-md);
}

.hero-desc {
  font-size: var(--fs-lg);
  color: var(--text-charcoal-light);
  margin-bottom: var(--spacing-lg);
}

/* Section Styles */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--primary-green-dark);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: var(--fs-xl);
  color: var(--text-charcoal);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--text-charcoal-light);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--neutral-cream);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
}

.service-name {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: var(--spacing-sm);
}

.service-desc {
  color: var(--text-charcoal-light);
  margin-bottom: var(--spacing-md);
}

.service-features {
  color: var(--text-charcoal);
  margin-bottom: var(--spacing-md);
  font-size: var(--fs-small);
}

.service-price {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent-earth-dark);
}

/* About Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: var(--spacing-md);
}

.feature-name {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: var(--spacing-sm);
}

.feature-desc {
  color: var(--text-charcoal-light);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.team-member {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md);
  border: 4px solid var(--primary-green-light);
}

.team-name {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: var(--spacing-xs);
}

.team-role {
  color: var(--text-charcoal-light);
  font-style: italic;
}

/* Reviews/Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.review-card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--primary-green);
}

.review-text {
  font-style: italic;
  color: var(--text-charcoal);
  margin-bottom: var(--spacing-md);
  font-size: var(--fs-lg);
}

.review-author {
  font-weight: 600;
  color: var(--primary-green-dark);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--neutral-cream-dark);
  border-radius: 8px;
  font-size: var(--fs-base);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  font-weight: normal;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-sage));
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-xl);
  border-radius: 8px;
  font-size: var(--fs-lg);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.faq-question {
  padding: var(--spacing-md);
  font-weight: 600;
  color: var(--primary-green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 var(--spacing-md) var(--spacing-md);
  color: var(--text-charcoal-light);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: #000000;
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

footer h4, footer h5, footer h6 {
  color: white !important;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--accent-earth-light);
  margin-bottom: var(--spacing-md);
  font-size: var(--fs-xl);
}

.footer-section p, .footer-section a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: var(--spacing-xs);
}

.footer-section a:hover {
  color: var(--accent-earth-light);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: var(--spacing-md);
  text-align: center;
}

.site-copyright {
  color: #999;
  font-size: var(--fs-small);
}

/* Breadcrumbs */
.breadcrumb-container {
  padding: var(--spacing-md) 0;
  background: var(--neutral-cream);
}

.breadcrumb-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Space Page */
#space {
  min-height: 60vh;
  background: var(--neutral-cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--text-charcoal-light);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-sage));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: url('../TOR_images/pattern-bg.webp');
  background-size: contain;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-control.error {
  border-color: #dc3545;
}

.form-control.success {
  border-color: #28a745;
}

/* Navbar Toggler Custom */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.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='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
} 


/* 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;
    }
}
