/* ========================================
   Main CSS - Gluten-Free Bakery Truck Template
   ========================================*/

/* Import Bootstrap 5 */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Import FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Color Palette - Gluten-Free Bakery Theme */
:root {
  /* Primary Colors */
  --primary-wheat: #f5deb3;
  --primary-sage: #9caf88;
  --primary-cream: #fef7e0;
  --primary-terracotta: #e07a5f;
  --primary-forest: #81b29a;
  
  /* Light Shades */
  --light-wheat: #f9edc9;
  --light-sage: #b8c7a7;
  --light-cream: #fffbf0;
  --light-terracotta: #e89982;
  --light-forest: #a0c4b1;
  
  /* Dark Shades */
  --dark-wheat: #d4bc8f;
  --dark-sage: #7a9268;
  --dark-cream: #e8dcc0;
  --dark-terracotta: #c85d40;
  --dark-forest: #638a75;
  
  /* Neutral Colors */
  --text-dark: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --soft-shadow: rgba(45, 52, 54, 0.1);
}

/* Base Typography - Conservative Sizes */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Conservative Heading Sizes */
h1 {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--dark-forest);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--dark-forest);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dark-sage);
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark-sage);
  margin-bottom: 0.5rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Conservative navbar-brand size */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-forest);
}

/* Paragraph styling */
p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-terracotta);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-terracotta);
  border-color: var(--primary-terracotta);
  color: var(--white);
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-terracotta);
  border-color: var(--dark-terracotta);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--primary-sage);
  border-color: var(--primary-sage);
  color: var(--white);
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--dark-sage);
  border-color: var(--dark-sage);
  transform: translateY(-1px);
}

/* Header */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--soft-shadow);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px var(--soft-shadow);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-terracotta);
}

/* Navbar Toggler */
.navbar-toggler {
  border: 1px solid var(--primary-terracotta);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(224, 122, 95, 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='%23e07a5f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-terracotta);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 0.25rem;
  z-index: 1100;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  color: var(--white);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--light-cream) 0%, var(--light-wheat) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: var(--primary-wheat);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--primary-terracotta);
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 20px var(--soft-shadow);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background-color: var(--light-cream);
  border-bottom: 1px solid var(--primary-wheat);
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Service Items */
.service-item {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px var(--soft-shadow);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-price {
  color: var(--primary-terracotta);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Team Members */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px var(--soft-shadow);
}

/* Contact Form */
.contact-form {
  background: var(--light-cream);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 4px 20px var(--soft-shadow);
}

.form-control {
  border: 2px solid var(--primary-wheat);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-terracotta);
  box-shadow: 0 0 0 0.2rem rgba(224, 122, 95, 0.25);
}

/* Footer */
.footer {
  background-color: var(--dark-forest);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer h5 {
  color: var(--light-cream);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--light-cream);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-wheat);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--soft-shadow);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item a {
  display: block;
  text-decoration: none;
}

/* FAQ Items */
.faq-item {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--soft-shadow);
}

.faq-question {
  color: var(--dark-forest);
  font-weight: 600;
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utility Classes */
.text-primary-color {
  color: var(--primary-terracotta);
}

.bg-primary-light {
  background-color: var(--light-cream);
}

.bg-secondary-light {
  background-color: var(--light-sage);
}

.shadow-soft {
  box-shadow: 0 4px 20px var(--soft-shadow);
}

.rounded-custom {
  border-radius: 1rem;
}

/* Lazy Loading */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: var(--light-cream);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazy.loaded {
  opacity: 1;
}

.lazy::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-terracotta), var(--primary-sage));
  animation: spin 1s linear infinite;
}

.lazy.loaded::before {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  background: transparent;
}

/* Space for index_space.html */
#space {
  min-height: 80vh;
  background: var(--light-cream);
  display: flex;
  align-items: center;
  justify-content: center;
} 

.hero-section h1 {
    padding-top: 275px;
}


/* 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;
    }
}
