/* GreenEscape - Стили сайта */

/* CSS Variables */
:root {
  --accent-color: #24285a;
  --bg-color: #fff;
  --text-color: #3f1938;
  --light-bg: #ffeafc;
  --container-max-width: 1140px;
  --section-padding: 80px 0;
  --section-padding-mobile: 40px 0;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PT Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  /* font-family: "Merriweather", serif; */
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Container */
.container-custom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.navbar-custom {
  background-color: var(--accent-color) !important;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
  opacity: 0.8;
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main content offset for fixed header */
body {
  padding-top: 76px;
}

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

.section-light {
  background-color: var(--light-bg);
}

.section-accent {
  background-color: var(--accent-color);
  color: white;
}

/* Hero Section */

/* Cards */
.card-custom {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

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

.card-accent {
  background-color: var(--accent-color);
  color: white;
}

.card-light {
  background-color: var(--light-bg);
}

/* Images */
.img-custom {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Buttons */
.btn-custom {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #5a4a73;
  border-color: #5a4a73;
  color: white;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--accent-color);
  color: white;
  padding: 40px 0 20px;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--accent-color);
  color: white;
  padding: 20px;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .btn {
  margin: 0 5px;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(67, 54, 85, 0.25);
}

/* Page Headers */
.page-header {
  padding: 160px 0 140px;
  text-align: center;
  background-color: #eff0ff;
}

.page-title {
  font-size: 2.5rem;
  color: var(--accent-color);
}

/* Icons */
.icon-custom {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Mobile Styles */
@media (max-width: 991px) {
  .section {
    padding: var(--section-padding-mobile);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .container-custom {
    padding: 0 10px;
  }
}

/* Utility Classes */
.text-accent {
  color: var(--accent-color);
}

.bg-light-custom {
  background-color: var(--light-bg);
}

.mb-section {
  margin-bottom: 4rem;
}

.mt-section {
  margin-top: 4rem;
}


/* new styles  */

/* Загальні стилі та кольорова гама */
:root {
  --accent-color: #24285a;
  --bg-color: #fff;
  --text-color: #3f1938;
  --light-bg: #ffeafc;
  
  /* Розширена палітра */
  --soft-pink: #f8e8f5;
  --warm-pink: #f1d4e8;
  --gentle-rose: #e8c4db;
  --muted-purple: #d4b3cc;
  --light-accent: #7a4b6b;
  --soft-shadow: rgba(95, 36, 82, 0.1);
  --gentle-shadow: rgba(95, 36, 82, 0.05);
}

/* Повторювані utility класи */
.soft-rounded { border-radius: 16px; }
.medium-rounded { border-radius: 20px; }
.gentle-shadow { box-shadow: 0 4px 20px var(--gentle-shadow); }
.soft-shadow { box-shadow: 0 6px 25px var(--soft-shadow); }
.smooth-transition { transition: all 0.3s ease; }

/* Стилі для головного блоку */
.hero-section {
  background: linear-gradient(135deg, 
    var(--light-bg) 0%, 
    var(--soft-pink) 25%, 
    var(--warm-pink) 50%, 
    var(--gentle-rose) 75%, 
    var(--muted-purple) 100%);
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(248, 232, 245, 0.4), 
    rgba(241, 212, 232, 0.2));
  border-radius: 50%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--light-accent);
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
}

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

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--soft-shadow);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: translateY(-5px);
}

/* Респонсивність */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-section {
    min-height: 70vh;
  }
}

/* Нові повторювані класи */
.section-padding { padding: 80px 0; }
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 35px var(--soft-shadow); 
}
.btn-soft { 
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  border: none;
  color: white;
  padding: 12px 32px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.btn-soft:hover {
  background: linear-gradient(135deg, var(--light-accent), var(--accent-color));
  transform: translateY(-2px);
  color: white;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-color);
  line-height: 1.3;
}
.section-text {
  font-size: 1.1rem;
  color: var(--light-accent);
  line-height: 1.7;
}
.advantage-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--soft-pink), var(--warm-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card {
  background: linear-gradient(135deg, var(--bg-color), var(--light-bg));
  border: 1px solid var(--gentle-rose);
}
/* Нові повторювані класи */
.gradient-bg-soft { 
  background: linear-gradient(135deg, var(--light-bg), var(--soft-pink), var(--warm-pink)); 
}
.gradient-bg-reverse { 
  background: linear-gradient(315deg, var(--gentle-rose), var(--muted-purple), var(--light-bg)); 
}
.floating-animation {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.social-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icon:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 30px var(--soft-shadow);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 300px;
}
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 60%, rgba(90, 36, 82, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.review-card {
  background: linear-gradient(135deg, var(--bg-color), var(--light-bg));
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--soft-pink);
  font-family: serif;
  line-height: 1;
}

.news-card {
  background: linear-gradient(135deg, var(--bg-color), var(--soft-pink));
  border: 1px solid var(--gentle-rose);
  overflow: hidden;
  position: relative;
}
.news-date {
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.pattern-bg {
  position: relative;
}
.pattern-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--gentle-rose) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--soft-pink) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 0;
}
.pattern-bg > * {
  position: relative;
  z-index: 1;
}
/* Нові унікальні стилі */
.timeline-section {
  position: relative;
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--soft-pink);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;
  width: 2px;
  height: calc(100% + 20px);
  background: linear-gradient(180deg, var(--accent-color), var(--gentle-rose));
}
.timeline-item:last-child::after { display: none; }

.team-card {
  background: linear-gradient(135deg, var(--bg-color), var(--light-bg));
  border: 2px solid var(--soft-pink);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, var(--soft-pink), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}
.team-card:hover::before {
  opacity: 0.3;
  right: -20%;
}

.partner-highlight {
  background: linear-gradient(135deg, var(--warm-pink), var(--gentle-rose));
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.partner-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  background-size: 30px 30px;
}

.catalog-grid { gap: 30px; }
.resort-card {
  background: var(--bg-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--soft-pink);
}
.resort-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px var(--soft-shadow);
}
.resort-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tips-section {
  background: linear-gradient(135deg, var(--light-bg), var(--soft-pink));
  position: relative;
}
.tips-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0% { background-position: -200% -200%; }
  100% { background-position: 200% 200%; }
}

.icon-accent {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.resort-stats {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
}

/* Унікальні стилі для новинного блоку */
.news-hero-section {
  background: radial-gradient(ellipse at top, var(--light-bg), var(--warm-pink));
  position: relative;
  overflow: hidden;
}
.news-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, var(--soft-pink), var(--gentle-rose));
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse-slow 8s ease-in-out infinite;
}
.news-hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--gentle-rose), var(--muted-purple));
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-slow 10s ease-in-out infinite reverse;
}
@keyframes pulse-slow {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.floating-image {
  position: relative;
  z-index: 2;
  animation: gentle-float 6s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(4px) rotate(-1deg); }
}

.news-item {
  background: linear-gradient(135deg, var(--bg-color), var(--light-bg));
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}
.news-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--light-accent), var(--accent-color));
  transition: height 0.3s ease;
}
.news-item:hover::before {
  height: 100%;
}
.news-item:hover {
  transform: translateX(8px);
  box-shadow: -5px 5px 20px var(--gentle-shadow);
}

.news-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--light-accent);
  font-size: 0.9rem;
}

.hexagon-pattern {
  background: linear-gradient(135deg, var(--muted-purple), var(--gentle-rose));
  position: relative;
  overflow: hidden;
}
.hexagon-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(30deg, transparent 30%, rgba(255,255,255,0.1) 32%, rgba(255,255,255,0.1) 34%, transparent 36%),
    linear-gradient(-30deg, transparent 30%, rgba(255,255,255,0.1) 32%, rgba(255,255,255,0.1) 34%, transparent 36%);
  background-size: 60px 60px;
  animation: hexagon-move 20s linear infinite;
}
@keyframes hexagon-move {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, -60px -60px; }
}

.guide-tip {
  background: var(--bg-color);
  border: 2px solid var(--soft-pink);
  border-radius: 25px;
  padding: 25px;
  position: relative;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}
.guide-tip::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 30px;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg-color), 0 0 0 8px var(--soft-pink);
}
.guide-tip:hover {
  transform: scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px var(--soft-shadow);
}

.zigzag-divider {
  height: 20px;
  background: linear-gradient(45deg, transparent 40%, var(--soft-pink) 40%, var(--soft-pink) 60%, transparent 60%),
              linear-gradient(-45deg, transparent 40%, var(--warm-pink) 40%, var(--warm-pink) 60%, transparent 60%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 0;
}