/* ==========================================
   TINY-HOME INTERIOR CUSTOMIZATION KITS
   Main CSS - Bootstrap 5 Integration
   ========================================== */

/* CSS Custom Properties - Color Palette */
:root {
  /* Primary Colors - Pastel High-Contrast */
  --primary-sage: #a5ae96;        /* Sage green for nature/eco theme */
  --primary-warm: #d6b5a9;        /* Warm terra cotta */
  --primary-cream: #fffefc;       /* Warm cream base */
  --primary-charcoal: #24332d;    /* Dark charcoal green */
  --primary-copper: #eac094;      /* Copper accent */
  
  /* Light/Dark Shades */
  --sage-light: #bcd8a5;
  --sage-dark: #93a68f;
  --warm-light: #ffdcc7;
  --warm-dark: #ba9082;
  --cream-light: #FEFCF7;
  --cream-dark: #ffffff;
  --charcoal-light: #4c5b53;
  --charcoal-dark: #2e3b33;
  --copper-light: #f8c68d;
  --copper-dark: #c6a35a;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --line-height-base: 1.6;
  
  /* Spacing */
  --section-padding: 4rem 0;
  --element-margin: 1.5rem;
}

/* Styles for Image Loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  min-height: 50px; /* Минимальная высота для резервирования места */
}

img:not([src]) {
  visibility: hidden;
}

img[data-src],
img:not(.loaded) {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* Fix для Safari */
img.loading {
  background: var(--cream-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23a5ae96' stroke-width='5' stroke-dasharray='30 10' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' repeatCount='indefinite' dur='1s' values='0 25 25;360 25 25' keyTimes='0;1'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat;
}

/* Base Typography */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--charcoal-dark);
  background-color: var(--cream-light);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--charcoal-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Conservative font sizes for navbar-brand */
.navbar-brand {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--charcoal-dark);
}

/* Links */
a {
  color: var(--primary-sage);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sage-dark);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-sage);
  border-color: var(--primary-sage);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-copper);
  border-color: var(--primary-copper);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--copper-dark);
  border-color: var(--copper-dark);
}

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

.section-title {
  color: var(--charcoal-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--primary-sage);
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--charcoal-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Header/Navigation */
.navbar {
  background-color: var(--cream-light);
  border-bottom: 1px solid var(--cream-dark);
  padding: 1rem 0;
}

.navbar-nav .nav-link {
  color: var(--charcoal-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-sage);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cream-light) 0%, var(--sage-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
    padding-top: 125px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary-sage);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--charcoal-light);
  margin-bottom: 2rem;
}

/* Decorative Shapes */
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 150%;
  background: var(--primary-warm);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 30%;
  height: 80%;
  background: var(--primary-copper);
  border-radius: 50%;
  opacity: 0.08;
  z-index: 1;
}

/* About Section */
.about-section {
  background-color: var(--cream-light);
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--cream-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(54, 71, 64, 0.10);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-sage);
  margin-bottom: 1rem;
}

/* Services Section */
.services-section {
  background-color: white;
}

.service-card {
  background: var(--cream-light);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%;
  border: 1px solid var(--cream-dark);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-sage);
  margin-top: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.service-features li {
  padding: 0.25rem 0;
  color: var(--charcoal-light);
}

/* Price Plan Section */
.priceplan-section {
  background-color: var(--cream-light);
}

.price-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 2px solid var(--cream-dark);
  transition: all 0.3s ease;
  height: 100%;
}

.price-card:hover {
  border-color: var(--primary-sage);
  transform: translateY(-5px);
}

.price-featured {
  border-color: var(--primary-sage);
  transform: scale(1.05);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-sage);
  margin: 1rem 0;
}

/* Team Section */
.team-section {
  background-color: white;
}

.team-card {
  text-align: center;
  background: var(--cream-light);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary-sage);
}

/* Reviews Section */
.reviews-section {
  background-color: var(--cream-light);
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid var(--primary-sage);
  height: 100%;
}

.review-author {
  font-weight: 600;
  color: var(--charcoal-dark);
  margin-top: 1rem;
}

.review-text {
  font-style: italic;
  color: var(--charcoal-light);
  line-height: 1.8;
}

/* Case Study Section */
.casestudy-section {
  background-color: white;
}

.case-card {
  background: var(--cream-light);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-5px);
}

/* Process Section */
.process-section {
  background-color: var(--cream-light);
}

.process-step {
  text-align: center;
  margin-bottom: 2rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--primary-sage);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Timeline Section */
.timeline-section {
  background-color: white;
}

.timeline-item {
  border-left: 3px solid var(--primary-sage);
  padding-left: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--primary-sage);
  border-radius: 50%;
}

/* Career Section */
.career-section {
  background-color: var(--cream-light);
}

.career-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--cream-dark);
  transition: transform 0.3s ease;
  height: 100%;
}

.career-card:hover {
  transform: translateY(-5px);
}

/* Core Info Section */
.coreinfo-section {
  background-color: white;
}

.info-card {
  background: var(--cream-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
  background-color: var(--cream-light);
}

.form-control {
  border: 2px solid var(--cream-dark);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-sage);
  box-shadow: 0 0 0 0.2rem rgba(162, 185, 130, 0.25);
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--cream-dark);
}

.contact-info i {
  color: var(--primary-sage);
  font-size: 1.5rem;
  margin-right: 1rem;
}

/* Blog Section */
.blog-section {
  background-color: white;
}

.blog-card {
  background: var(--cream-light);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-content {
  padding: 1.5rem;
}

/* FAQ Section */
.faq-section {
  background-color: var(--cream-light);
}

.faq-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--cream-dark);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
  border-color: var(--primary-sage);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-card h6 {
  position: relative;
  padding-right: 30px;
}

.faq-card h6::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  color: var(--primary-sage);
  transition: transform 0.3s ease;
}

.faq-card.active h6::after {
  content: '-';
  transform: rotate(0deg);
}

.faq-question {
  font-weight: 600;
  color: var(--charcoal-dark);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--charcoal-light);
  margin: 0;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-answer.show {
  opacity: 1;
  max-height: 500px;
}

/* Gallery Section */
.gallery-section {
  background-color: white;
  padding: 4rem 0;
}

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

.gallery-item {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: var(--charcoal-dark);
  color: var(--cream-light);
  padding: 3rem 0 2rem;
}

.footer h5 {
  color: var(--primary-sage);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--cream-light);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-sage);
}

/* Breadcrumb */
.breadcrumb {
  background: none;
  padding: 1rem 0;
}

.breadcrumb-item img {
  width: 20px;
  height: 20px;
}

/* Utilities */
.text-primary-sage { color: var(--primary-sage); }
.text-primary-warm { color: var(--primary-warm); }
.text-primary-copper { color: var(--primary-copper); }
.bg-primary-sage { background-color: var(--primary-sage); }
.bg-primary-warm { background-color: var(--primary-warm); }
.bg-cream { background-color: var(--cream-light); }

/* Accessibility - Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} 


/* Team Social Links - Neon Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.social-icons-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 0.7;
}

.social-link:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor;
    box-shadow: 0 0 20px currentColor;
}

.facebook-link {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.linkedin-link {
    border-color: #0a66c2;
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
}

.instagram-link {
    border-color: #e4405f;
    color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.x-link {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 22px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
