/* Packages page specific styles */

.packages-hero {
  padding-bottom: 20px;
}

.packages-hero-container {
  max-width: 760px;
}

/* Push the first section down to clear the fixed header */
.packages {
  margin-top: 80px;
}

/* ==========================================================================
   Conditions Section (Packages Page)
   ========================================================================== */
.conditions {
  position: relative;
  text-align: center;
  padding: 100px 0;
  overflow: hidden;
  z-index: 1;
}

/* Background glows */
.conditions::before,
.conditions::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.conditions::before {
  top: 50%;
  left: -300px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(242, 112, 60, 0.45) 0%, transparent 60%);
  transform: translateY(-50%);
}

.conditions::after {
  top: 50%;
  right: -300px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(91, 115, 216, 0.45) 0%, transparent 60%);
  transform: translateY(-50%);
}

.conditions .eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.conditions .section-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.15;
}

.conditions .section-lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.condition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1040px;
  margin: 0 auto;
}

.condition-card {
  background: rgba(28, 20, 64, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid #5b73d8;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.condition-card:hover {
  transform: translateY(-5px);
  border-color: #8fa2ff;
}

.condition-card h3 {
  color: #728cf0;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.condition-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .condition-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ Section (Packages Page)
   ========================================================================== */
.packages-faq-section {
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

/* Hide the ambient glows from .conditions if it shares that class */
.packages-faq-section::before,
.packages-faq-section::after {
  display: none !important;
}

.packages-faq-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 60px;
}

.packages-faq-section .faq {
  max-width: 860px;
  margin: 0 auto;
}

.packages-faq-section .faq-item {
  border-bottom: 1px solid #3c4b8b;
}

.packages-faq-section .faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
}

.packages-faq-section .faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 20px;
  border: none;
  border-radius: 0;
}

.packages-faq-section .faq-icon::before,
.packages-faq-section .faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  transition: transform 0.3s var(--ease);
}

/* Horizontal line (always there) */
.packages-faq-section .faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* Vertical line (disappears when open) */
.packages-faq-section .faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.packages-faq-section .faq-item.open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.packages-faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.packages-faq-section .faq-item.open .faq-answer {
  max-height: 500px;
}

.packages-faq-section .faq-answer-inner {
  padding-bottom: 30px;
  color: #a4a4b9;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 90%;
  text-align: left;
}

/* ==========================================================================
   Mobile Spacing Fixes
   ========================================================================== */
@media (max-width: 768px) {
  .packages {
    margin-top: 60px;
  }
  .conditions {
    padding: 40px 0 !important;
  }
  .conditions .section-title {
    margin-bottom: 12px;
  }
  .conditions .section-lead {
    margin-bottom: 32px;
  }
  .condition-grid {
    gap: 12px;
  }
  .packages-faq-section {
    padding: 40px 0 0 !important;
  }
}

