/**
 * Quad Waves - Azerbaijan Luxury Package Custom Theme
 * Mirrors the Georgia theme but positions the cards on the left side,
 * leaving the Baku Heydar Aliyev Center scenery on the right.
 */

:root {
  /* Colors & Design Tokens */
  --bg-dark-blue: #0f2942;
  --gold-primary: #caa355;
  --gold-glow: rgba(202, 163, 85, 0.4);
  --gold-border: rgba(202, 163, 85, 0.25);
  --glass-bg: rgba(15, 41, 66, 0.45);
  --glass-bg-hover: rgba(202, 163, 85, 0.08);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-serif-display: "Thmanyah Serif Display", "Tajawal", serif;
  --font-sans: "Outfit", "Tajawal", sans-serif;
  --flex-dir: row; /* Overwritten dynamically by JS language switcher */
}

/* Base Body Styles */
body {
  margin: 0;
  padding: 0;
  color: var(--text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Page Structure & Hero Parallax --- */
.azerbaijan-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #031428;
  color: var(--text-white);
  padding: 8rem 2rem 4rem 2rem;
  box-sizing: border-box;
}

/* Background Parallax Layers */
.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0);
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  z-index: 1;
}

.scenic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(6, 38, 76, 0.45) 0%,
    rgba(6, 38, 76, 0.2) 50%,
    rgba(3, 20, 40, 0.92) 100%
  );
  z-index: 2;
}

/* --- Content Wrapper & Centered Layout --- */
.azerbaijan-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  gap: 2.5rem;
}

/* Title Presentation Box */
.title-container-centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.2s;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(202, 163, 85, 0.18) 0%,
    rgba(15, 41, 66, 0.5) 100%
  );
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 1.25rem 3.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 90%;
  animation: floatTitle 6s ease-in-out infinite;
}

.azerbaijan-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.azerbaijan-subtitle {
  font-family: var(--font-serif-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--gold-primary);
  margin: 0;
  letter-spacing: 1px;
}

/* Mirror layout content grid */
.azerbaijan-content-container {
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  flex-grow: 1;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Empty Scenic Side (Takes up columns to let building background display clearly) */
.azerbaijan-scenic-side {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Cards Side (Info Column) */
.azerbaijan-info-side {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.azerbaijan-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* 3D Glassmorphism Details Cards */
.gold-detail-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--gold-border);
  border-radius: 12px 24px 24px 12px; /* RTL rounded corners (cards stack is on the left) */
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: 
    border-color 0.4s ease, 
    box-shadow 0.4s ease, 
    background-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: default;
}

/* Left-to-Right layout on LTR/English mode (Cards stack is on the right) */
html[dir="ltr"] .gold-detail-card {
  border-radius: 24px 12px 12px 24px;
}

.gold-detail-card:hover {
  border-color: var(--gold-primary);
  background-color: var(--glass-bg-hover);
  box-shadow: 0 12px 40px var(--gold-glow);
}

/* Glow spotlight border on hover */
.gold-detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(202, 163, 85, 0.15),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

.card-icon-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #9a7633 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(202, 163, 85, 0.35);
  transform: translateZ(20px);
}

.card-text-box {
  transform: translateZ(10px);
  flex: 1;
}

.card-title-highlight {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin: 0 0 0.25rem 0;
}

.card-desc {
  font-size: 0.95rem;
  color: #c9d2db;
  margin: 0;
  line-height: 1.5;
}

/* Centered CTA Section at the Bottom */
.azerbaijan-cta-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
  max-width: 90%;
  width: 100%;
}

.cta-guideline-text {
  font-family: var(--font-serif-display);
  font-size: 1.2rem;
  color: #c9d2db;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-cta-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #e65c00 0%, #f12711 100%);
  color: var(--text-white) !important;
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.1rem 3.5rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(230, 92, 0, 0.4);
  transition: var(--transition-smooth);
}

.btn-cta-orange i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Arrow flip based on language direction */
html[dir="ltr"] .btn-cta-orange i {
  transform: rotate(180deg);
}

.btn-cta-orange:hover {
  transform: scale(1.05) translateY(-3px);
}

html[dir="rtl"] .btn-cta-orange:hover i {
  transform: translateX(-5px);
}

html[dir="ltr"] .btn-cta-orange:hover i {
  transform: rotate(180deg) translateX(5px);
}

.btn-cta-orange.pulse {
  animation: ctaPulse 2s infinite;
}

/* Animations */
@keyframes floatTitle {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 10px 30px rgba(230, 92, 0, 0.4);
  }
  50% {
    box-shadow: 0 10px 35px rgba(230, 92, 0, 0.7), 0 0 0 8px rgba(230, 92, 0, 0.15);
  }
  100% {
    box-shadow: 0 10px 30px rgba(230, 92, 0, 0.4);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Dark Blue Footer --- */
.georgia-footer {
  background: rgba(6, 38, 76, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  margin-top: auto;
  z-index: 3;
}

.georgia-footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-license-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-license-badge i {
  font-size: 1.6rem;
  color: #2ecc71;
}

.license-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.footer-contacts {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.footer-contact-link:hover {
  color: #caa355;
}

.footer-contact-link i {
  font-size: 1.25rem;
}

.footer-contact-link.whatsapp-link i {
  color: #2ecc71;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1200px) {
  .azerbaijan-content-container {
    gap: 2rem;
  }
  .azerbaijan-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .azerbaijan-content-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }
  
  html[dir="ltr"] .azerbaijan-content-container {
    grid-template-columns: 0.8fr 1.2fr;
  }
  
  .azerbaijan-scenic-side {
    display: flex;
    grid-column: 2;
  }
  
  html[dir="ltr"] .azerbaijan-scenic-side {
    grid-column: 1;
  }
  
  .azerbaijan-info-side {
    grid-column: 1;
  }
  
  html[dir="ltr"] .azerbaijan-info-side {
    grid-column: 2;
  }
  
  .azerbaijan-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .parallax-bg {
    background-position: 80% center !important;
  }
  
  html[dir="ltr"] .parallax-bg {
    transform: scaleX(-1) translate3d(0, 0, 0) !important;
    background-position: 80% center !important;
  }

  .azerbaijan-hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .azerbaijan-content-container {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1rem;
  }
  
  html[dir="ltr"] .azerbaijan-content-container {
    grid-template-columns: 0.65fr 1.35fr;
  }
  
  .azerbaijan-scenic-side {
    display: flex;
    grid-column: 2;
  }
  
  html[dir="ltr"] .azerbaijan-scenic-side {
    grid-column: 1;
  }
  
  .azerbaijan-info-side {
    grid-column: 1;
  }
  
  html[dir="ltr"] .azerbaijan-info-side {
    grid-column: 2;
  }
  
  .azerbaijan-title {
    font-size: 1.55rem;
  }
  
  .title-container {
    padding: 0.4rem 1.5rem;
  }
  
  .azerbaijan-cards-stack {
    gap: 0.6rem;
  }
  
  .gold-detail-card {
    border-radius: 12px 24px 24px 12px;
    padding: 0.5rem 0.8rem;
    gap: 0.65rem;
  }
  
  html[dir="ltr"] .gold-detail-card {
    border-radius: 24px 12px 12px 24px;
  }
  
  .card-icon-box {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(202, 163, 85, 0.25);
  }
  
  .card-title-highlight {
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
  }
  
  .card-desc {
    font-size: 0.76rem;
    line-height: 1.35;
  }
  
  .btn-cta-orange {
    width: 90%;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
  }
  
  .cta-guideline-text {
    font-size: 0.95rem;
    text-align: center;
    max-width: 90%;
  }
  
  .modal-form-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  
  .booking-modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-form-body {
    padding: 1.5rem;
  }
}
