/* Net30Hosting brand styles - v2 */

:root {
  --net30-orange: #F7941D;
  --net30-orange-dark: #e0850f;
  --net30-dark: #1a1a1a;
  --net30-gray: #4a4a4a;
  --net30-light: #f8f9fa;
  --net30-border: #e0e0e0;
}

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--net30-dark);
  line-height: 1.6;
}

.entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero section */
.home .entry-content > p:first-of-type {
  text-align: center;
  background: var(--net30-light);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--net30-gray);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.home .entry-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--net30-dark);
  letter-spacing: -0.02em;
}

.home .entry-content h1 span {
  color: var(--net30-orange);
}

.home .entry-content h1 + p {
  text-align: center;
  font-size: 1.25rem;
  color: var(--net30-gray);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Feature list */
.home .entry-content h1 + p + ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 900px;
  flex-wrap: wrap;
}

.home .entry-content h1 + p + ul li {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--net30-dark);
  padding-left: 1.8rem;
  position: relative;
}

.home .entry-content h1 + p + ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--net30-orange);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Section headings */
.entry-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin: 4rem 0 1rem;
  color: var(--net30-dark);
}

.entry-content h2 + p {
  text-align: center;
  color: var(--net30-gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Feature cards (h3 sections) */
.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--net30-dark);
  margin: 2rem 0 0.5rem;
}

.entry-content h3 + p {
  color: var(--net30-gray);
  margin-bottom: 1.5rem;
}

/* Pricing cards */
.entry-content h2:has(+ p) ~ h3 {
  background: #ffffff;
  border: 2px solid var(--net30-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 0;
  font-size: 1.4rem;
  text-align: center;
}

.entry-content h2:has(+ p) ~ h3 + ul {
  background: #ffffff;
  border: 2px solid var(--net30-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 1.5rem 2rem;
  margin: 0 0 2rem;
  list-style: none;
}

.entry-content h2:has(+ p) ~ h3 + ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--net30-light);
  color: var(--net30-gray);
}

.entry-content h2:has(+ p) ~ h3 + ul li:last-child {
  border-bottom: none;
}

/* Popular plan highlight */
.entry-content h3:has(+ ul):nth-of-type(2) {
  border-color: var(--net30-orange);
  background: #fff8f0;
}

/* FAQ */
.entry-content h2:last-of-type ~ h3 {
  background: var(--net30-light);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.entry-content h2:last-of-type ~ h3 + p {
  padding: 0 1.5rem 1rem;
  color: var(--net30-gray);
  background: var(--net30-light);
  border-radius: 0 0 8px 8px;
  margin: 0 0 0.5rem;
}

/* CTA section */
.entry-content h2:last-of-type + p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.entry-content h2:last-of-type + p + p {
  text-align: center;
  margin: 2rem 0 4rem;
}

.entry-content h2:last-of-type + p + p a {
  display: inline-block;
  background: var(--net30-orange);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 0.5rem;
}

.entry-content h2:last-of-type + p + p a:hover {
  background: var(--net30-orange-dark);
  color: #ffffff;
}

/* Buttons */
.wp-block-button__link,
button,
input[type="submit"] {
  background-color: var(--net30-orange);
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--net30-orange-dark);
  color: #ffffff;
}

/* Links */
a {
  color: var(--net30-orange);
}

a:hover {
  color: var(--net30-orange-dark);
}

/* Header */
.wp-block-group.has-global-padding {
  border-bottom: 1px solid var(--net30-border);
}

/* Responsive */
@media (max-width: 768px) {
  .home .entry-content h1 {
    font-size: 2.2rem;
  }
  
  .entry-content h2 {
    font-size: 1.8rem;
  }
  
  .home .entry-content h1 + p + ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

/* Homepage fixes - v3 */
/* Hide the page title on the static homepage - the content has its own hero */
.home .wp-block-post-title {
  display: none;
}

/* Center the main content column properly */
.home .entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ensure hero content is centered */
.home .entry-content > p:first-of-type,
.home .entry-content > h1,
.home .entry-content > h1 + p,
.home .entry-content > ul {
  margin-left: auto;
  margin-right: auto;
}

/* Pricing grid - v4 */
/* Make pricing plans display in a responsive grid */
.home .entry-content h2:nth-of-type(5) ~ h3 {
  break-inside: avoid;
}

@media (min-width: 900px) {
  /* Use CSS grid for pricing cards via columns */
  .home .entry-content {
    /* Pricing cards in 2-column grid on desktop */
  }
  .home .entry-content h2:nth-of-type(5) + h3,
  .home .entry-content h2:nth-of-type(5) + h3 + ul + h3,
  .home .entry-content h2:nth-of-type(5) + h3 + ul + h3 + ul + h3,
  .home .entry-content h2:nth-of-type(5) + h3 + ul + h3 + ul + h3 + ul + h3 {
    border-color: var(--net30-orange);
  }
}

/* Highlight the Most Popular plan */
.home .entry-content h3:has(+ ul):nth-of-type(7) {
  border-color: var(--net30-orange) !important;
  border-width: 3px !important;
  background: #fff8f0 !important;
  position: relative;
}

/* Better pricing card spacing */
.home .entry-content h2:nth-of-type(5) ~ h3 {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.25rem;
}

.home .entry-content h2:nth-of-type(5) ~ h3 + ul {
  margin-bottom: 0;
  padding: 1rem 2rem 1.5rem;
}

.home .entry-content h2:nth-of-type(5) ~ h3 + ul li {
  padding: 0.6rem 0;
  font-size: 1rem;
}

/* Pricing grid layout - v5 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 4rem;
  max-width: 1200px;
}

.pricing-card {
  background: #ffffff;
  border: 2px solid var(--net30-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--net30-dark);
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--net30-light);
  color: var(--net30-gray);
  font-size: 0.95rem;
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

/* Most Popular highlight */
.pricing-card.most-popular {
  border-color: var(--net30-orange);
  border-width: 3px;
  background: #fff8f0;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.15);
  position: relative;
}

.pricing-card.most-popular h3 {
  color: var(--net30-orange);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.most-popular {
    transform: none;
  }
}
