/* Vintage Furniture Restoration Template - Main CSS */

/* Color Palette - 5 Primary Colors + Light/Dark Shades */
:root {
  /* Primary Colors */
  --primary-vintage-brown: #9a5511;
  --secondary-warm-beige: #ebbe90;
  --accent-forest-green: #5c792d;
  --neutral-cream: #fffeec;
  --highlight-gold: #f3a40f;
  
  /* Light Shades */
  --light-vintage-brown: #e59344;
  --light-warm-beige: #f2d5aa;
  --light-forest-green: #99e42f;
  --light-cream: #fcf1ca;
  --light-gold: #fffd09;
  
  /* Dark Shades */
  --dark-vintage-brown: #5b401c;
  --dark-warm-beige: #d7b082;
  --dark-forest-green: #44663e;
  --dark-cream: #f6d7a3;
  --dark-gold: #cd9f19;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-vintage-brown), var(--secondary-warm-beige));
  --gradient-accent: linear-gradient(45deg, var(--accent-forest-green), var(--highlight-gold));
  --gradient-hero: linear-gradient(rgba(154, 80, 36, 0.80), rgba(189, 146, 109, 0.60));
  
  /* Typography */
  --font-size-base: 18px;
  --font-size-small: 16px;
  --navbar-brand-size: 1.5rem;
  --h1-size: 2.5rem;
  --h2-size: 2rem;
  --h3-size: 1.5rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--dark-vintage-brown);
  background-color: var(--neutral-cream);
}

/* Accessibility - Respect prefers-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;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-vintage-brown);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

p {
  margin-bottom: 1rem;
  color: var(--dark-vintage-brown);
}

.lead {
  font-size: 1.23rem;
  font-weight: 300;
}

/* Header & Navigation */
.navbar {
  background: var(--gradient-primary) !important;
  box-shadow: 0 6px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: var(--navbar-brand-size) !important;
  font-weight: 700;
  color: var(--light-cream) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
  color: var(--light-cream) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--light-gold) !important;
}

.navbar.scrolled {
  background: rgba(143, 83, 11, 0.95) !important;
  backdrop-filter: blur(16px);
}

.navbar-nav .nav-link.active {
  color: var(--light-gold) !important;
  font-weight: 600;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero), url('../YOC_images/hero-bg.webp') center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-top: 50px !important;
  color: var(--light-cream);
}

.hero-title {
  font-size: var(--h1-size);
  font-weight: 700;
  margin-bottom: 1.60rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.33rem;
  margin-bottom: 1rem;
  color: var(--light-warm-beige);
}

.hero-desc {
  font-size: 1.17rem;
  margin-bottom: 2rem;
  max-width: 80%;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-accent);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 11px rgba(0,0,0,0.2);
  background: var(--gradient-accent);
}

.btn-outline-primary {
  border: 2px solid var(--primary-vintage-brown);
  color: var(--primary-vintage-brown);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-vintage-brown);
  color: var(--light-cream);
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-vintage-brown);
}

.section-subtitle {
  text-align: center;
  color: var(--accent-forest-green);
  font-size: 1.33rem;
  margin-bottom: 1rem;
}

.section-desc {
  text-align: center;
  color: var(--dark-vintage-brown);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* About Section */
.about-bg {
  background: linear-gradient(135deg, var(--light-cream), var(--light-warm-beige));
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 110px;
  box-shadow: 0 7px 17px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--highlight-gold);
  margin-bottom: 1rem;
}

/* Services Section */
.services-bg {
  background: var(--neutral-cream);
}

.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-body {
  padding: 2rem;
}

.service-price {
  font-size: 1.87rem;
  font-weight: 700;
  color: var(--highlight-gold);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-warm-beige);
}

.service-features li:last-child {
  border-bottom: none;
}

/* Team Section */
.team-bg {
  background: linear-gradient(135deg, var(--light-warm-beige), var(--light-cream));
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary-vintage-brown);
  margin-bottom: 0.69rem;
}

.team-role {
  color: var(--accent-forest-green);
  font-style: italic;
}

/* Reviews/Testimonials */
.reviews-bg {
  background: var(--neutral-cream);
}

.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  position: relative;
  height: 100%;
}

.review-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--light-gold);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: serif;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.69rem;
  font-size: 1.24rem;
}

.review-author {
  font-weight: 600;
  color: var(--primary-vintage-brown);
}

/* FAQ Section */
.faq-bg {
  background: linear-gradient(135deg, var(--light-cream), var(--light-warm-beige));
}

.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.faq-question {
  background: var(--secondary-warm-beige);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-vintage-brown);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--light-warm-beige);
}

.faq-answer {
  padding: 1.5rem;
  background: white;
  color: var(--dark-vintage-brown);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Form */
.contact-bg {
  background: var(--gradient-primary);
  color: var(--light-cream);
}

.form-control {
  border: 2px solid var(--light-warm-beige);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--highlight-gold);
  box-shadow: 0 0 0 0.2rem rgba(196, 173, 33, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--light-cream);
  margin-bottom: 0.61rem;
}

/* Footer */
.footer {
  background: var(--dark-warm-beige);
  color: var(--light-cream);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--light-gold);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--light-warm-beige);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--light-gold);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-warm-beige);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1.13rem;
}

/* Price Plans */
.priceplan-card {
  background: white;
  border: 3px solid var(--light-warm-beige);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.priceplan-card:hover {
  transform: translateY(-5px);
  border-color: var(--highlight-gold);
}

.priceplan-card.featured {
  border-color: var(--highlight-gold);
  transform: scale(1.05);
}

.priceplan-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--highlight-gold);
  margin: 1rem 0;
}

/* Blog Section */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
}

.blog-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  color: var(--primary-vintage-brown);
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--dark-vintage-brown);
  margin-bottom: 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.bg-primary { background: var(--primary-vintage-brown) !important; }
.bg-secondary { background: var(--secondary-warm-beige) !important; }
.bg-accent { background: var(--accent-forest-green) !important; }

.text-primary { color: var(--primary-vintage-brown) !important; }
.text-secondary { color: var(--secondary-warm-beige) !important; }
.text-accent { color: var(--accent-forest-green) !important; }

/* Image Placeholders */
img {
  max-width: 100%;
  height: auto;
}

.img-placeholder {
  background: var(--light-warm-beige);
  color: var(--dark-vintage-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Process/Timeline */
.process-item, .timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.process-item::before, .timeline-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.process-container, .timeline-container {
  counter-reset: step-counter;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent) !important;
  border: none;
  color: white;
  font-size: 1.31rem;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Case Studies Section */
.casestudy-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

.casestudy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Career Section */
.career-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Form Error Styles */
.is-invalid {
  border-color: #dd4049 !important;
}

.error-message {
  color: #d7314b;
  font-size: 0.94rem;
  margin-top: 0.30rem;
}

/* Success Alert */
.alert-success {
  color: #125f27;
  background-color: #c0d7c3;
  border-color: #c9d9cb;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--neutral-cream);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-warm-beige);
  border-top: 4px solid var(--primary-vintage-brown);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader p {
  color: var(--primary-vintage-brown);
  font-weight: 500;
  margin: 0;
} 


/* 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;
    }
}
