/* ============================================================
   PRICING PAGE STYLES
   ============================================================ */

/* Hero Section */
.pricing-hero {
  background: linear-gradient(
    135deg,
    var(--clr-accent-light) 0%,
    var(--clr-white) 100%
  );
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 2rem;
}

.pricing-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.pricing-hero h1 span {
  color: var(--clr-accent);
}

.pricing-hero p {
  font-size: 1.2rem;
  color: var(--clr-muted);
}

/* ================================================== */
/* Section Titles */
/* ==================================================*/
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--clr-accent);
}

.section-subtitle {
  text-align: center;
  color: var(--clr-muted);
  margin-bottom: 3rem;
}

/* ================================================== */
/* Packages Grid */
/* ================================================== */
.packages-section {
  padding: 4rem 2rem;
  background: rgb(252, 230, 249);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.package-card {
  background: var(--clr-white);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--clr-border);
  transition: all 0.3s ease;
  position: relative;
}

.package-card.featured {
  border: 2px solid var(--clr-accent);
  transform: scale(1.02);
  box-shadow: 0 20px 35px -12px rgba(192, 38, 211, 0.2);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: white;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
}

.package-icon {
  font-size: 3rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.package-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.package-price {
  margin: 1rem 0;
}

.package-price .currency {
  font-size: 2rem;
  vertical-align: top;
  margin-bottom: 1rem;
}

.package-price span:first-of-type {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-accent);
}

.package-price .period {
  font-size: 0.85rem;
  color: var(--clr-muted);
}

.package-desc {
  color: var(--clr-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.package-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-text);
}

.package-features li i {
  color: var(--clr-accent);
  width: 20px;
}

.package-card .btn {
  width: 100%;
}

/* ============================================================ */
/* Free Hosting Modal */
/* ============================================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--clr-white);
  max-width: 550px;
  width: 90%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--clr-accent) 0%,
    var(--clr-accent-dim) 100%
  );
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.modal-header i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h3 {
  color: var(--clr-text);
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.modal-body ul li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-muted);
}

.modal-body ul li i {
  color: var(--clr-accent);
  width: 20px;
}

.modal-note {
  background: var(--clr-accent-light);
  padding: 0.75rem;
  border-radius: 12px;
  margin: 1rem 0;
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--clr-text);
}

.modal-note i {
  color: var(--clr-accent);
  margin-top: 2px;
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid var(--clr-border);
}

.modal-footer .btn {
  padding: 8px 20px;
}

.btn-outline{
  display: inline-block;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid var(--clr-accent);
  color: var(--clr-accent);
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--clr-muted);
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--clr-accent);
}

/* Info Badge Button */
.info-badge {
  background: none;
  border: none;
  color: var(--clr-accent);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 6px;
  transition: color 0.3s;
}

.info-badge:hover {
  color: var(--clr-accent-dim);
}

/* Mobile */
@media (max-width: 768px) {
  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================ */
/* FLOATING FREE HOSTING BUTTON */
/* ============================================================ */
.floating-hosting-btn {
  position: fixed;
  bottom: 100px;
  left: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059668b9 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(9, 132, 26, 0.4);
  transition: all 0.3s ease;
  font-weight: 600;
}

.floating-hosting-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(38, 211, 78, 0.485);
}

.floating-hosting-btn i {
  font-size: 1.2rem;
  animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Tooltip preview on hover */
.floating-hosting-btn .tooltip-preview {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #10b9818e 0%, #0596687a 100%);
  color: var(--clr-white);
  font-size: 0.75rem;
  font-weight: normal;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-hosting-btn:hover .tooltip-preview {
  opacity: 1;
  visibility: visible;
  left: 110%;
}

/* ============================================================ */
/* EXIT-INTENT POPUP */
/* ============================================================ */
.exit-intent-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  justify-content: center;
  align-items: center;
}

.exit-intent-content {
  background: var(--clr-white);
  max-width: 450px;
  width: 90%;
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.exit-intent-content i {
  font-size: 3rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.exit-intent-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.exit-intent-content p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
}

.exit-intent-content .btn,
.exit-intent-content .btn-outline {
  margin: 0.5rem;
}

.exit-close {
  position: absolute;
  top: 15px;
  left: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--clr-muted);
}

.exit-close:hover {
  color: var(--clr-accent);
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ============================================================ */
/* Exit-Intent Popup - Free Hosting Badge */
/* ============================================================ */
.free-hosting-badge {
    display: block;
  width: fit-content;   /* Keeps the badge small so it doesn't stretch across the card */
  margin-top: 5px;     /* Spaces it down from the list */
  margin-bottom: 25px;  /* Spaces it up from the button */
  margin-right: auto;   /* Pushes all empty space to the right, forcing the badge left */

  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 20px;
   white-space: nowrap;  
}

/* Highlighted Policy Section */
.modal-section.policy-highlight {
  background: #fff8e7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.modal-section.policy-highlight h3 {
  margin-top: 0;
  color: #92400e;
}

.modal-section.policy-highlight ul {
  margin-bottom: 0;
}

.modal-section.policy-highlight li {
  font-size: 0.85rem;
}

.policy-note {
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-top: 0.75rem;
}

/* ============================================================ */
/* MOBILE ADJUSTMENTS */
/* ============================================================ */
@media (max-width: 768px) {
  .floating-hosting-btn span:not(.tooltip-preview) {
    display: none;
  }

  .floating-hosting-btn {
    padding: 12px;
    border-radius: 50px;
    bottom: 20px;
    left: 15px;
  }

  .floating-hosting-btn i {
    margin: 0;
    font-size: 1.3rem;
  }

  .exit-intent-content {
    padding: 1.5rem;
    width: 85%;
  }

  .exit-intent-content h3 {
    font-size: 1.2rem;
  }

}

/* ============================================================ */
/* Add-Ons Grid */
/* ============================================================ */
.addons-section {
  padding: 4rem 2rem;
  background: var(--clr-white);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.addon-card {
  background: var(--clr-bg);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--clr-border);
}

.addon-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 38, 211, 0.3);
}

.addon-card i {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.addon-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.addon-card p {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
}

.addon-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-accent);
}

/* Industry Solutions */
.industry-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--clr-bg) 0%, var(--clr-white) 100%);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.industry-card {
  background: var(--clr-white);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--clr-border);
}

.industry-card i {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.industry-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.industry-card ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.industry-card li {
  color: var(--clr-muted);
  margin-bottom: 0.25rem;
}

.industry-price {
  font-weight: 700;
  color: var(--clr-accent);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
}

/* Hosting Section */
.hosting-section {
  padding: 4rem 2rem;
  background: var(--clr-bg);
}

.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hosting-card {
  background: var(--clr-white);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--clr-border);
}

.hosting-card.featured {
  border: 2px solid var(--clr-accent);
}

.hosting-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.hosting-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.hosting-price span {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--clr-muted);
}

.hosting-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.hosting-card li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-muted);
}

.hosting-card li i {
  color: var(--clr-accent);
}

.btn-small{
  display: inline-block;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--clr-accent);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-small:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--clr-accent-dim);
}


/* ============================================================ */
/* Custom Section */
.custom-section {
  padding: 4rem 2rem;
  background: var(--clr-white);
}

.custom-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--clr-accent-light) 0%,
    var(--clr-white) 100%
  );
  border-radius: 32px;
  padding: 2.5rem;
  border: 1px solid var(--clr-border);
}

.custom-card i {
  font-size: 3rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.custom-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.custom-card h2 span {
  color: var(--clr-accent);
}

.custom-card p {
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
}

.custom-note {
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Pricing FAQ */
.pricing-faq {
  padding: 4rem 2rem;
  background: var(--clr-bg);
}

.pricing-faq .faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
  .pricing-hero {
    padding: 2rem 1rem;
  }

  .pricing-hero h1 {
    font-size: 2rem;
  }

  .pricing-faq {
    padding: 2rem 1rem;
  }

  .packages-section,
  .addons-section,
  .industry-section,
  .hosting-section {
    padding: 2rem 1rem;
  }

  .packages-grid,
  .addons-grid,
  .industry-grid,
  .hosting-grid {
    gap: 1rem;
  }

  .package-card.featured {
    transform: scale(1);
  }

  .custom-card {
    padding: 1.5rem;
  }

  .custom-card h2 {
    font-size: 1.4rem;
  }

  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ============================================================ */
/* FAQ Section - Static (No Accordion) */
/* ============================================================ */
.pricing-faq {
  padding: 4rem 2rem;
  background: var(--clr-bg);
}

.pricing-faq .faq-grid-static {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item-static {
  background: var(--clr-white);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--clr-border);
  transition: all 0.3s ease;
}

.faq-item-static:hover {
  transform: translateX(5px);
  border-color: rgba(191, 38, 211, 0.564);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item-static h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item-static h3::before {
  content: "❓";
  font-size: 1rem;
  color: var(--clr-accent);
}

.faq-item-static p {
  color: var(--clr-muted);
  line-height: 1.7;
  margin: 0;
  padding-left: 1.5rem;
}

.faq-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}

.faq-footer p {
  color: var(--clr-muted);
}

.faq-footer a {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--clr-accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 20px;
  transform: translateY(2px);
  animation-direction: alternate;
  animation: pulse 0.5s infinite;
  animation-timing-function: ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.faq-footer a:hover {
  transform: scale(110%);
  animation: none;
  transition: all 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .pricing-faq {
    padding: 2rem 1rem;
  }

  .faq-item-static {
    padding: 1.25rem;
  }

  .faq-item-static h3 {
    font-size: 1rem;
  }

  .faq-item-static p {
    padding-left: 0;
    font-size: 0.9rem;
  }

  .faq-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .faq-footer p {
    font-size: 0.8rem;
    display: block;
    text-align: center;
    text-align: center;
  }

  .faq-footer a {
    background: var(--clr-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    transform: translateY(2px);
    animation-direction: alternate;
    animation: pulse 0.5s infinite;
    animation-timing-function: ease-in-out;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.05);
    }

    100% {
      transform: scale(1);
    }
  }
}

/* ============================================================ */
/* pricing tooltip */
/* ============================================================ */
/* Tooltip Icon Styles */
.feature-footnote {
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--clr-border);
}

/* Optional: For long tooltip text on mobile */
@media (max-width: 768px) {
  .hosting-note {
    white-space: normal;
    width: 200px;
    text-align: center;
    bottom: 160%;
  }
}

/* ============================================================ */
/* Fix for navbar white links - ensures contrast */
/* ============================================================ */
/* This overrides the default navbar styles to ensure links are visible on the About page's light background */
.pricing-nav a {
  color: rgba(3, 2, 3, 0.745);
}

/* Active link styling for About page */
.pricing-nav a:active {
  color: var(--clr-accent);
}

/* Ensure the logo text is visible on the About page */
.navbar .logo-text {
  display: inline;
  color: rgba(3, 2, 3, 0.745);
}

/* Hide #services links only on About page */
.nav-services {
  display: none;
}
