/* Tea Blending Template - Main Stylesheet */

/* CSS VARIABLES - Tea Theme Color Palette */
:root {
  /* Primary Colors */
  --tea-green: #7bb568;
  --tea-brown: #72410a;
  --tea-cream: #d8deb2;
  --tea-gold: #e7d025;
  --tea-sage: #8f9b87;
  
  /* Light Shades */
  --tea-green-light: #92c787;
  --tea-brown-light: #8b6219;
  --tea-cream-light: #FEFEF8;
  --tea-gold-light: #ffd140;
  --tea-sage-light: #c8e0af;
  
  /* Dark Shades */
  --tea-green-dark: #5c934b;
  --tea-brown-dark: #542210;
  --tea-cream-dark: #cfcdb7;
  --tea-gold-dark: #cc9110;
  --tea-sage-dark: #88a670;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--tea-green), var(--tea-sage));
  --gradient-secondary: linear-gradient(135deg, var(--tea-brown), var(--tea-gold));
  --gradient-accent: linear-gradient(135deg, var(--tea-cream), var(--tea-gold-light));
  --gradient-hero: linear-gradient(135deg, var(--tea-green-dark), var(--tea-brown-dark));
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  
  /* Conservative Font Sizes */
  --font-size-base: 1rem;
  --font-size-lg: 1.1rem;
  --font-size-sm: 0.9rem;
  --font-size-xs: 0.8rem;
  
  /* Spacing */
  --section-padding: 4rem 0;
  --element-spacing: 2rem;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--tea-brown-dark);
  background-color: var(--tea-cream-light);
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* HEADER & NAVIGATION */
.navbar {
  background: var(--gradient-primary);
  backdrop-filter: blur(13px);
  box-shadow: 0 3px 22px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.21rem !important;
  font-weight: 700;
  color: var(--tea-cream-light) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--tea-cream-light) !important;
  font-size: var(--font-size-base);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--tea-gold-light) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  color: var(--tea-cream-light);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* HERO SECTION */
.hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-content h1 {
  padding-top: 50px !important;
  font-size: 2.63rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content {
  padding-top: 50px !important;
  position: relative;
  z-index: 2;
  color: var(--tea-cream-light);
}

.hero-content p {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 22px;
  box-shadow: 0 22px 40px rgba(0,0,0,0.3);
}

/* Decorative Elements */
.hero-section .decorative-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.hero-section .blob-1 {
  top: 10%;
  right: 10%;
  animation: float 2s ease-in-out infinite;
}

.hero-section .blob-2 {
  bottom: 10%;
  left: 10%;
  animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-23px); }
}

/* SECTIONS */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tea-brown-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--tea-sage-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.section-desc {
  font-size: var(--font-size-base);
  color: var(--tea-brown);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CARDS & COMPONENTS */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 11px 30px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  background: var(--tea-cream-light);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-13px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header {
  background: var(--gradient-primary);
  color: var(--tea-cream-light);
  border: none;
  padding: 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--tea-brown-dark);
  font-size: 1.24rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--tea-brown);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--tea-cream-light);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

.service-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.32rem;
  color: var(--tea-brown-dark);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: var(--font-size-base);
  color: var(--tea-brown);
  margin-bottom: 1.69rem;
}

.service-price {
  font-size: 1.62rem;
  font-weight: 700;
  color: var(--tea-gold-dark);
  background: var(--gradient-accent);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  display: inline-block;
}

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

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 4px solid var(--tea-green);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-member h4 {
  font-size: 1.16rem;
  color: var(--tea-brown-dark);
  margin-bottom: 0.70rem;
}

.team-member p {
  font-size: var(--font-size-sm);
  color: var(--tea-sage-dark);
}

/* TESTIMONIALS SLIDER */
.testimonials-slider {
  background: var(--gradient-primary);
  padding: 4rem 0;
  color: var(--tea-cream-light);
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 1rem;
  text-align: center;
}

.testimonial-text {
  font-size: var(--font-size-lg);
  font-style: italic;
  margin-bottom: 1.60rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  font-size: var(--font-size-base);
}

/* FAQ SECTION */
.faq-item {
  background: var(--tea-cream-light);
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.faq-question {
  background: var(--gradient-secondary);
  color: var(--tea-cream-light);
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: var(--tea-gold-dark);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--tea-brown);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* CONTACT FORM */
.contact-form {
  background: var(--tea-cream-light);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-control {
  border: 2px solid var(--tea-sage-light);
  border-radius: 10px;
  padding: 1rem;
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--tea-green);
  box-shadow: 0 0 0 0.2rem rgba(122, 170, 110, 0.25);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* FOOTER */
.footer {
  background: var(--gradient-hero);
  color: var(--tea-cream-light);
  padding: 3rem 0 1rem;
}

.footer a {
  color: var(--tea-cream-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--tea-gold-light);
}

.footer-title {
  font-size: 1.27rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-content {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

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

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

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

/* UTILITIES */
.text-primary {
  color: var(--tea-green) !important;
}

.text-secondary {
  color: var(--tea-brown) !important;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.bg-secondary {
  background: var(--gradient-secondary) !important;
}

/* PRODUCTION OPTIMIZATIONS */
img {
  max-width: 100%;
  height: auto;
}

/* BROWSER COMPATIBILITY */
.btn, .card, .form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* LOADING STATES */
.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

/* ERROR STATES */
.error {
  border-color: #de3b49 !important;
  box-shadow: 0 0 0 0.2rem rgba(205, 43, 43, 0.25) !important;
}

/* SUCCESS STATES */
.success {
  border-color: #18a43d !important;
  box-shadow: 0 0 0 0.2rem rgba(58, 176, 90, 0.25) !important;
}

/* ANIMATION CLASSES */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.15s ease;
  will-change: opacity, transform;
  transform: translateZ(0);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.15s ease;
  will-change: opacity, transform;
  transform: translateZ(0);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.15s ease;
  will-change: opacity, transform;
  transform: translateZ(0);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* PERFORMANCE IMPROVEMENTS */
.card, .service-card, .gallery-item, .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
  will-change: transform;
}

.navbar {
  will-change: background, backdrop-filter;
}

/* GPU ACCELERATION */
.fade-in, .slide-in-left, .slide-in-right, .card:hover, .service-card:hover, .gallery-item:hover {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* MODERN CSS FEATURES WITH FALLBACKS */
.card, .service-card, .contact-form, .faq-item {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(10px)) {
  .card, .service-card, .contact-form, .faq-item {
    background: rgba(223, 223, 211, 0.95);
  }
}



/* 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.2s 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.3s;
}

.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;
    }
}
