/* branding.css - Усиление брендинга и эмоциональной составляющей */

/* Основная палитра бренда */
:root {
  --brand-primary: #C0592A; /* Насыщенный кофейный */
  --brand-secondary: #8B4513; /* Темный кофейный */
  --brand-accent: #FFD700; /* Золотистый акцент */
  --brand-neutral: #F5F1E9; /* Кремовый фон */
  --brand-dark: #2C1E10; /* Темно-коричневый */
  
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #FFFFFF;
}

/* Общие стили брендинга */
.brand-section {
  background-color: var(--brand-neutral);
  border-left: 4px solid var(--brand-primary);
  padding: 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.brand-quote {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: var(--brand-secondary);
  font-size: 20px;
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
}

.brand-quote::before {
  content: '"';
  font-size: 48px;
  position: absolute;
  left: 0;
  top: -12px;
  color: var(--brand-accent);
}

/* Уникальный заголовок страницы */
.page-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--brand-primary);
}

/* Усиление элементов фирменного стиля */
.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-tagline {
  font-style: italic;
  color: var(--brand-accent);
}

/* Брендовые карты и секции */
.brand-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  background-color: #fff;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.brand-card .card-image {
  height: 200px;
  overflow: hidden;
}

.brand-card .card-image img {
  transition: transform 0.8s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card:hover .card-image img {
  transform: scale(1.05);
}

.brand-card .card-body {
  padding: 20px;
}

.brand-card .card-title {
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Секция "История кофе" */
.coffee-story {
  position: relative;
  padding: 40px 0;
  margin: 40px 0;
  background-color: var(--brand-neutral);
}

.coffee-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/images/coffee-beans-pattern.png');
  background-size: 300px;
  opacity: 0.05;
  z-index: 0;
}

.coffee-story .content {
  position: relative;
  z-index: 1;
}

.coffee-story .heading {
  font-family: 'Georgia', serif;
  color: var(--brand-dark);
  margin-bottom: 25px;
  font-size: 28px;
}

.coffee-story .text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Визуальные акценты */
.accent-line {
  height: 3px;
  width: 60px;
  background-color: var(--brand-primary);
  margin: 20px 0;
}

.accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--brand-accent);
  margin: 0 8px;
  border-radius: 50%;
}

/* Процесс производства кофе */
.production-process {
  margin: 50px 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--brand-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 20px;
  margin-top: 5px;
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 10px;
  font-size: 18px;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Уникальные кнопки и эффекты */
.btn-brand {
  background-color: var(--brand-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn-brand:hover {
  background-color: var(--brand-secondary);
  transform: translateY(-2px);
}

.btn-brand:hover::before {
  left: 100%;
}

/* Эмоциональные секции и триггеры */
.emotion-section {
  position: relative;
  padding: 60px 0;
  color: white;
  text-align: center;
  background-color: var(--brand-dark);
  margin: 60px 0;
}

.emotion-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/images/coffee-emotion-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.emotion-section .content {
  position: relative;
  z-index: 1;
}

.emotion-title {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 20px;
}

.emotion-subtitle {
  font-size: 18px;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.emotion-cta {
  display: inline-block;
  background-color: var(--brand-accent);
  color: var(--brand-dark);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.emotion-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для брендовых элементов */
@media (max-width: 768px) {
  .brand-section {
    padding: 16px;
    margin: 24px 0;
  }
  
  .brand-quote {
    font-size: 18px;
    padding-left: 20px;
  }
  
  .brand-quote::before {
    font-size: 36px;
  }
  
  .emotion-section {
    padding: 40px 0;
  }
  
  .emotion-title {
    font-size: 28px;
  }
  
  .emotion-subtitle {
    font-size: 16px;
  }
  
  .process-step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 15px;
  }
}

/* Специальные эффекты для иконок */
.brand-icon {
  color: var(--brand-primary);
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.brand-icon:hover {
  transform: scale(1.2);
  color: var(--brand-accent);
}

/* Секция "Почему мы?" */
.why-us-section {
  padding: 50px 0;
  background-color: #fff;
}

.why-us-item {
  text-align: center;
  padding: 25px 15px;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.why-us-item:hover {
  transform: translateY(-10px);
}

.why-us-icon {
  font-size: 40px;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.why-us-title {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--brand-dark);
}

.why-us-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Анимированный фон */
.animated-bg {
  position: relative;
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(192, 89, 42, 0.03),
    rgba(192, 89, 42, 0.06),
    rgba(255, 215, 0, 0.03),
    rgba(192, 89, 42, 0.06),
    rgba(192, 89, 42, 0.03)
  );
  animation: rotateBg 20s linear infinite;
  z-index: 0;
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animated-bg .content {
  position: relative;
  z-index: 1;
}

/* Фотогалерея процесса производства */
.production-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 30px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

@media (max-width: 992px) {
  .production-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .production-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .production-gallery {
    grid-template-columns: 1fr;
  }
}

/* Уникальные иконки */
.custom-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-coffee-bean {
  background-image: url('/static/images/icons/coffee-bean.svg');
}

.icon-coffee-cup {
  background-image: url('/static/images/icons/coffee-cup.svg');
}

.icon-coffee-plant {
  background-image: url('/static/images/icons/coffee-plant.svg');
}

.icon-coffee-grinder {
  background-image: url('/static/images/icons/coffee-grinder.svg');
}

.icon-coffee-process {
  background-image: url('/static/images/icons/coffee-process.svg');
}

/* Эффект параллакса для баннеров */
.parallax-banner {
  height: 300px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  margin: 50px 0;
}

.parallax-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.parallax-title {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 600;
}

.parallax-text {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .parallax-banner {
    background-attachment: scroll;
    height: 250px;
  }
  
  .parallax-title {
    font-size: 28px;
  }
  
  .parallax-text {
    font-size: 16px;
  }
}

/* Стили для навигационных иконок */
.nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.nav-links a:hover .nav-icon {
  transform: scale(1.2);
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.logo a:hover .logo-icon {
  transform: rotate(-10deg);
}

/* Стили для секции с историей кофе */
.coffee-story-section {
  margin: 40px 0;
  border-radius: 8px;
}

.coffee-story {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 20px;
}

.coffee-story.story-visible {
  opacity: 1;
}

.coffee-story-trigger {
  display: inline-flex;
  align-items: center;
  color: var(--brand-primary);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.coffee-story-trigger:hover {
  background-color: rgba(192, 89, 42, 0.1);
}

.coffee-story-trigger i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.coffee-story-trigger:hover i {
  transform: translateY(3px);
}

/* Стили для галереи процесса производства кофе */
.coffee-process-gallery {
  margin: 40px 0;
  border-radius: 8px;
  padding: 24px;
  background-color: var(--brand-neutral);
  position: relative;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item {
  display: none;
  position: relative;
}

.gallery-item.active {
  display: block;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
}

.gallery-caption h4 {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.gallery-caption p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.gallery-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(192, 89, 42, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-indicator.active {
  background-color: var(--brand-primary);
  transform: scale(1.2);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.gallery-nav:hover {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

/* Стили для цитат о кофе */
.coffee-quotes {
  margin: 40px 0;
  position: relative;
}

.coffee-quotes .brand-quote {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coffee-quotes .brand-quote:first-child {
  opacity: 1;
}

.quote-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.quote-nav {
  background-color: transparent;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.quote-nav:hover {
  background-color: var(--brand-primary);
  color: white;
}

/* Анимации для брендовых элементов */
.brand-section, .brand-card, .brand-quote {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.brand-section.animate-in, .brand-card.animate-in, .brand-quote.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность для брендовых элементов */
@media (max-width: 768px) {
  .coffee-process-gallery {
    padding: 16px;
  }
  
  .gallery-caption {
    padding: 12px;
  }
  
  .gallery-caption h4 {
    font-size: 16px;
  }
  
  .gallery-caption p {
    font-size: 12px;
  }
  
  .brand-quote {
    font-size: 16px;
    padding-left: 18px;
  }
  
  .brand-quote::before {
    font-size: 36px;
  }
}