/*
Theme Name: Astra Camping
Description: Premium camping and glamping WordPress theme for Astra Camping
Version: 2.1.5
Author: Astra Camping Team
*/

/* CSS Variables - Brand Colors and Typography */
:root {
  /* Фирменные цвета (из логотипа) */
  --brand-primary: #1B4332;        /* Темно-зеленый из логотипа */
  --brand-secondary: #2D5016;      /* Хвойный зеленый */
  --brand-accent: #2E8B57;         /* Темно-зеленый акцент - WCAG AA совместимый */
  --brand-earth: #8B7355;          /* Землистый коричневый */
  
  /* Дополнительные цвета */
  --neutral-white: #FFFFFF;
  --neutral-light: #F8F9FA;
  --neutral-warm: #F4F1E8;        /* Теплый бежевый */
  --text-primary: #1B4332;        /* Основной текст */
  --text-secondary: #4A5568;      /* Вторичный текст - улучшенная контрастность */
  
  /* Системные цвета */
  --success: #52B788;
  --warning: #FFC107;
  --error: #DC3545;
  --info: #17A2B8;
  
  /* Типографика */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Dancing Script', cursive;
  
  /* Размеры текста */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Отступы и размеры */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Тени */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

/* Reset и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--neutral-white);
}

/* Контейнеры */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { 
    max-width: 720px;
    padding: 0 var(--spacing-xl);
  }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--brand-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-secondary);
}

/* Ссылки */
a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brand-primary);
}

/* Изображения */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Сетка */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Адаптивность */
@media (max-width: 767px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .grid {
    gap: var(--spacing-md);
  }
}

/* Новые CSS классы для замены inline стилей */

/* Layout Sections */
.hero-section {
  min-height: 45vh;
  padding: 50px 0;
  position: relative;
}

/* Hero background image */
.hero-section > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-section.news-hero {
  background: linear-gradient(135deg, #1B4332 0%, #24563d 100%) !important;
}

.about-section {
  padding: 100px 0;
  background: var(--neutral-warm);
}

.accommodations-preview {
  padding: 70px 0;
}

.booking-section {
  padding: 60px 0;
  background: white;
}

.news-section {
  padding: 60px 0;
  background: #f8f9fa;
}

/* Navigation */
.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Components */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg, 
    rgba(27, 67, 50, 0.05) 0%,    /* Очень легкий зеленый */
    rgba(0, 0, 0, 0.35) 100%      /* Естественное затемнение */
  );
  z-index: -1;
}

.hero-text-frame {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Default hero title - for pages with light backgrounds */
.hero-title {
  color: #1B4332;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
}

/* News hero title - white text on green background */
.news-hero .hero-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: #2D5016;
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  text-align: center;
}

.feature-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto 15px auto;
  color: white;
}

/* Профессиональные бейджи для features */
.feature-badge.eco {
  background: linear-gradient(135deg, #52B788, #2E8B57);
}

.feature-badge.premium {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1B4332;
}

.feature-badge.beach {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
}

/* About Image Carousel */
.about-image {
  position: relative;
}

.carousel-image {
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: white;
  opacity: 0.7;
  cursor: pointer;
}

/* Grid Layouts */
.grid-align-center {
  align-items: center;
}

/* Location Section */
.location-section {
  padding: 60px 0;
  background: var(--neutral-light);
}

.location-features {
  margin: 30px 0;
}

.location-feature {
  margin-bottom: 25px;
}

.location-feature-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Стили для разных location бейджей */
.location-feature-badge.beaches {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.location-feature-badge.nature {
  background: linear-gradient(135deg, #52B788, #2E8B57);
}

.location-feature-badge.culture {
  background: linear-gradient(135deg, #8B7355, #6B5B47);
}

.location-feature-title {
  margin: 0;
  color: var(--brand-primary);
}

.location-feature-desc {
  margin: 5px 0 0 0;
  color: var(--text-secondary);
}

.map-container {
  position: relative;
}

.camping-map {
  height: 400px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-info {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.map-info-title {
  margin: 0 0 15px 0;
  color: var(--brand-primary);
}

.contact-grid {
  display: grid;
  gap: 10px;
}

.contact-link {
  color: var(--brand-accent);
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
}

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

.grid-gap-large {
  gap: 60px;
  align-items: start;
}

/* Hidden carousel images */
.carousel-image.hidden {
  display: none;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
    min-height: 60vh;
  }

  .hero-section > img {
    height: 100%;
    object-fit: cover;
  }

  .about-section {
    padding: 60px 0;
  }
  
  .accommodations-preview,
  .booking-section,
  .news-section,
  .location-section,
  .gallery-section {
    padding: 40px 0;
  }
  
  .hero-text-frame {
    padding: 30px 20px;
    margin: 0 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .carousel-image {
    height: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .grid-gap-large {
    gap: 30px;
  }
  
  .camping-map {
    height: 300px;
  }
}

/* Gallery Placeholder Styles */
.gallery-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--neutral-warm) 0%, var(--neutral-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.placeholder-label {
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  margin: 0;
}

/* Text Logo Fallback */
.navbar-logo-text {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-logo-text:hover {
  color: var(--brand-accent);
}

.footer-logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--neutral-white);
  margin-bottom: var(--spacing-md);
}
