/*──────────────────────────────────────────────────────────────────────────────
  VARIABLES & RESET
──────────────────────────────────────────────────────────────────────────────*/
:root {
  --bg-dark:    #1f1f1f;
  --bg-mid:     #2c2c2c;
  --accent:     #2978b5;
  --text-light: #eee;
  --text-gray:  #888;
  --max-width: 1200px;
  --gutter:    1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/*──────────────────────────────────────────────────────────────────────────────
  CONTAINER
──────────────────────────────────────────────────────────────────────────────*/
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/*──────────────────────────────────────────────────────────────────────────────
  TYPOGRAPHY
──────────────────────────────────────────────────────────────────────────────*/
h1, h2, h3, h4 {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

p, li {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/*──────────────────────────────────────────────────────────────────────────────
  NAVBAR & DROPDOWN
──────────────────────────────────────────────────────────────────────────────*/
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-mid);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  padding: 1rem var(--gutter);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo.large {
  height: 80px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links li {
  position: relative;
  margin-left: 1.5rem;
}

.nav-links a,
.dropbtn,
.btn-cart {
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.5rem;
  transition: color 0.3s, transform 0.2s;
}

.nav-links a:hover,
.dropbtn:hover,
.btn-cart:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.btn-login {
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  transition: background 0.3s;
}

.btn-login:hover {
  background: var(--accent);
  color: var(--text-light);
}

/* Dropdown flush against button to prevent hover gap */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-mid);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  min-width: 160px;
  z-index: 1001;
}
.dropdown-content li {
  list-style: none;
}
.dropdown-content a,
.dropdown-content span {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text-light);
  transition: background 0.2s;
}
.dropdown-content a:hover {
  background: var(--bg-dark);
}
.dropdown:hover .dropdown-content {
  display: block;
}

/*──────────────────────────────────────────────────────────────────────────────
  HERO
──────────────────────────────────────────────────────────────────────────────*/
.hero {
  /* banner.png behind everything, then a dark overlay */
  background:
    linear-gradient(rgba(31,31,31,0.6), rgba(31,31,31,0.6)),
    url('../images/banner.png') center/cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 8rem var(--gutter);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  animation: pulseOverlay 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseOverlay {
  0%, 100% { background: rgba(0,0,0,0.2); }
  50%      { background: rgba(0,0,0,0.3); }
}

.hero-content {
  position: relative; /* above the overlay */
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: #1f5d8a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

/*──────────────────────────────────────────────────────────────────────────────
  FEATURES
──────────────────────────────────────────────────────────────────────────────*/
.features {
  padding: 4rem var(--gutter);
  background: var(--bg-mid);
}
.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-dark);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.feature-item:hover {
  transform: translateY(-6px);
}
.feature-item img {
  width: 64px;
  margin-bottom: 1rem;
}

/*──────────────────────────────────────────────────────────────────────────────
  HOW IT WORKS
──────────────────────────────────────────────────────────────────────────────*/
.how-it-works {
  padding: 4rem var(--gutter);
}
.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.steps {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  background: var(--accent);
  color: var(--text-light);
  width: 2rem; height: 2rem;
  border-radius: 50%;
  text-align: center;
  line-height: 2rem;
  font-weight: bold;
}

/*──────────────────────────────────────────────────────────────────────────────
  PACKAGES
──────────────────────────────────────────────────────────────────────────────*/
.packages {
  padding: 4rem var(--gutter);
  background: var(--bg-dark);
}
.packages h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--bg-mid);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-6px);
}
.card img {
  width: 100px;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.plan-desc {
  color: var(--text-gray);
  margin-bottom: 1rem;
}
.card-features {
  list-style: none;
  margin-bottom: 1rem;
}
.card-features li {
  margin-bottom: 0.5rem;
}
.card-price {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 1rem 0;
}
.btn-choose {
  background: var(--accent);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
}
.btn-choose:hover {
  background: #1f5d8a;
  transform: scale(1.05);
}

/*──────────────────────────────────────────────────────────────────────────────
  CUSTOM PLAN CTA
──────────────────────────────────────────────────────────────────────────────*/
.custom-plan {
  padding: 4rem var(--gutter);
  text-align: center;
  background: var(--bg-mid);
}
.custom-plan h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.custom-plan p {
  margin-bottom: 1.5rem;
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--text-light);
}

/*──────────────────────────────────────────────────────────────────────────────
  OVERLAYS (PLAN & CART)
──────────────────────────────────────────────────────────────────────────────*/
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.overlay.hidden {
  display: none;
}
.overlay-content {
  background: var(--bg-mid);
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}
.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-gray);
  cursor: pointer; transition: color 0.2s;
}
.close-btn:hover {
  color: var(--text-light);
}

/*──────────────────────────────────────────────────────────────────────────────
  PLAN DETAILS
──────────────────────────────────────────────────────────────────────────────*/
#plan-details h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
#plan-details ul.features {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
#plan-details h3 {
  margin: 1rem 0 0.5rem;
}
#plan-details label {
  display: block;
  margin-bottom: 0.5rem;
}
#plan-details input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.1);
}
#plan-details .total-price {
  font-weight: bold;
  margin: 1rem 0;
}
#plan-details #add-to-cart,
#plan-details .btn-purchase {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
}
#plan-details #add-to-cart:hover,
#plan-details .btn-purchase:hover {
  background: #1f5d8a;
  transform: scale(1.05);
}

/*──────────────────────────────────────────────────────────────────────────────
  CART CONTENT
──────────────────────────────────────────────────────────────────────────────*/
#cart-items {
  margin-bottom: 1.5rem;
}
.cart-item {
  background: var(--bg-dark);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
}
.cart-item:hover {
  background: var(--bg-mid);
  transform: scale(1.02);
}
.cart-item .item-details {
  flex: 1;
  margin: 0 1rem;
}
.btn-remove {
  background: none; border: none;
  color: var(--text-gray); font-size: 1.2rem;
  cursor: pointer; transition: color 0.2s;
}
.btn-remove:hover {
  color: var(--text-light);
}
.total-price {
  text-align: center;
  color: var(--accent);
  font-size: 1.25rem; font-weight: bold;
}
#checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.75rem;
  border: none; border-radius: 6px;
  transition: transform 0.2s;
}
#checkout-btn:hover {
  transform: scale(1.05);
}

/*──────────────────────────────────────────────────────────────────────────────
  FAQ ACCORDION — UPDATED TO POP
──────────────────────────────────────────────────────────────────────────────*/
.faq {
  padding: 4rem var(--gutter);
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
}
.faq h2 {
  text-align: center;
  font-size: 2.75rem;
  margin-bottom: 2.5rem;
  color: var(--accent);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Each question panel */
.faq-item {
  background: var(--bg-dark);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: background 0.3s, transform 0.2s;
}
.faq-item:hover {
  transform: translateY(-2px);
  background: rgba(44,44,44,0.9);
}

/* Question header */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}
.faq-question:hover {
  background: rgba(31,31,31,0.5);
}

/* Arrow indicator */
.faq-question::after {
  content: '⌄';
  font-size: 1.1rem;
  transition: transform 0.3s, color 0.3s;
  color: var(--accent);
}
.faq-item.active .faq-question::after {
  transform: rotate(180deg);
  color: #fff;
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  padding: 0 var(--gutter);
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px; /* adjust as needed */
  padding: 1rem var(--gutter) 1.5rem;
}

/* Accent bar at top of each item */
.faq-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.faq-item.active::before,
.faq-item:hover::before {
  transform: scaleX(1);
}

/*──────────────────────────────────────────────────────────────────────────────
  CONTACT FORM
──────────────────────────────────────────────────────────────────────────────*/
.contact {
  padding: 4rem var(--gutter);
  background: var(--bg-dark);
}
.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--bg-dark);
  border-radius: 4px;
  background: var(--bg-dark);
  color: var(--text-light);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/*──────────────────────────────────────────────────────────────────────────────
  FOOTER
──────────────────────────────────────────────────────────────────────────────*/
.footer {
  background: var(--bg-mid);
  padding: 2rem var(--gutter);
  text-align: center;
}
.footer-links {
  margin-bottom: 1rem;
}
.footer-links a {
  margin: 0 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer p {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/*──────────────────────────────────────────────────────────────────────────────
  KEYFRAME ANIMATIONS
──────────────────────────────────────────────────────────────────────────────*/
@keyframes slideDown {
  from { transform: translateY(-120%); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}