/* Component Styles */

/* Hero */
.hero {
  position: relative;
  background: url('/images/DF_Hero_Bkgrnd.webp') no-repeat center center !important;
  background-size: cover !important;
  background-color: var(--bg-dark); /* Fallback color */
  padding: 1.5rem 1rem 6rem;
  text-align: center;
  overflow: hidden;
  margin-top: 10px; /* Minimal space for navbar */
  min-height: 500px; /* Ensure minimum height for background visibility */
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.hero-cta {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
}

/* Removed circuit fill elements */

/* Title */

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--df-orange) !important; /* Orange text for better visibility */
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0.5rem 0 1.25rem;
  color: var(--df-orange) !important; /* Orange text for better visibility */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero responsive improvements */
@media (max-width: 768px) {
  .hero {
    padding: 1rem 1rem 6rem; /* Minimal top padding for mobile */
    margin-top: 5px; /* Minimal space on mobile */
  }
  
  .title {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    bottom: 0.5rem;
  }
  
  .hero-content {
    margin-top: 0;
  }
}

/* Lifecycle Navigation */
.df-nav { 
  display: flex; 
  gap: 1rem; 
  align-items: center; 
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--df-border-light);
  position: relative;
}

.df-nav__logo {
  flex-shrink: 0;
}

.df-nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.df-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.df-nav__toggle-icon,
.df-nav__toggle-icon::before,
.df-nav__toggle-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg-on-white);
  transition: all 0.3s ease;
}

.df-nav__toggle-icon::before {
  transform: translateY(-8px);
}

.df-nav__toggle-icon::after {
  transform: translateY(6px);
}

.df-nav.is-open .df-nav__toggle-icon {
  background: transparent;
}

.df-nav.is-open .df-nav__toggle-icon::before {
  transform: rotate(45deg);
}

.df-nav.is-open .df-nav__toggle-icon::after {
  transform: rotate(-45deg);
}

.df-nav__content {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.df-nav__groups { 
  display: flex; 
  gap: 1rem; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

.df-nav__group { 
  position: relative; 
}

.df-nav__label {
  background: transparent; 
  border: 1px solid transparent; 
  padding: 0.5rem 0.75rem;
  color: var(--fg-on-white); 
  font-weight: 600; 
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.df-nav__label:focus { 
  outline: 2px solid var(--df-orange); 
  outline-offset: 2px; 
}

.df-nav__menu {
  display: none; 
  position: absolute; 
  top: 100%; 
  left: 0; 
  min-width: 14rem;
  background: var(--bg-white); 
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--df-border-light); 
  padding: 0.5rem; 
  z-index: 20;
  border-radius: var(--radius);
}

.df-nav__label[aria-expanded="true"] + .df-nav__menu { 
  display: block; 
}

.df-nav__link {
  display: block; 
  padding: 0.5rem 0.75rem; 
  color: var(--fg-on-white); 
  text-decoration: none;
  border-radius: calc(var(--radius) - 2px);
}

.df-nav__link:hover, 
.df-nav__link:focus { 
  background: var(--bg-cream); 
  outline: none; 
}

.df-nav__link.is-active { 
  font-weight: 700; 
  border-left: 3px solid var(--df-orange); 
  background: #FFF7F0; 
}

.df-nav__utility { 
  margin-left: auto; 
  display: flex; 
  gap: 1rem; 
  list-style: none; 
  margin: 0;
  padding: 0;
}

.df-nav__util { 
  color: var(--fg-on-white); 
  text-decoration: none; 
  padding: 0.5rem 0.75rem;
}

.df-nav__util:hover, 
.df-nav__util:focus { 
  text-decoration: underline; 
}

/* Mobile fallback: stack menus */
@media (max-width: 900px) {
  .df-nav { 
    gap: 0.5rem; 
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .df-nav__toggle {
    display: flex;
  }
  
  .df-nav__content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--df-border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
    display: none;
    z-index: 100;
  }
  
  .df-nav.is-open .df-nav__content {
    display: flex;
  }
  
  .df-nav__groups { 
    flex-direction: column; 
    align-items: stretch; 
    width: 100%;
    order: 1;
  }
  
  .df-nav__group {
    width: 100%;
  }
  
  .df-nav__label {
    width: 100%;
    text-align: left;
    justify-content: space-between;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--df-border-light);
  }
  
  .df-nav__label::after {
    content: '▼';
    font-size: 0.8rem;
  }
  
  .df-nav__label[aria-expanded="true"]::after {
    content: '▲';
  }
  
  .df-nav__menu { 
    position: static; 
    display: none; 
    box-shadow: none; 
    border: none; 
    padding: 0.5rem 0; 
    margin-top: 0;
    background: var(--bg-cream);
    border-radius: var(--radius);
  }
  
  .df-nav__label[aria-expanded="true"] + .df-nav__menu { 
    display: block; 
  }
  
  .df-nav__utility {
    margin: 0;
    justify-content: center;
    order: 2;
    border-top: 1px solid var(--df-border-light);
    padding-top: 1rem;
  }
  
  .df-nav__content .btn.cta {
    order: 3;
    margin-top: 1rem;
  }
}

/* Legacy Navigation (keeping for reference) */
.navbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 15;
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.5rem;
  background: none;
  box-sizing: border-box;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-on-dark);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
  padding: 0.4rem 0.5rem;
  flex-shrink: 1;
}

/* Reduce padding on medium screens to fit more items */
@media (width <= 1200px) and (width > 1000px) {
  .nav-links a {
    padding: 0.4rem 0.2rem;
    font-size: 0.85rem;
    gap: 0.1rem;
  }
  
  .nav-icon {
    height: 16px;
  }
}

.nav-icon {
  height: 20px;
  max-height: 1em;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
  object-fit: contain;
  display: inline-block;
}

.nav-toggle {
  display: none;
}

/* Extra compressed navigation for crowded layouts */
@media (width <= 1200px) and (width > 1100px) {
  .nav-links a {
    padding: 0.4rem;
    font-size: 0.95rem;
  }
  
  .nav-icon {
    height: 18px;
  }
}

/* ForgeScan Components */
.form-container {
  background-color: var(--bg-cream);
  padding: 2rem;
  max-width: 480px;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
}

.form-container__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-container__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D7DEE8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-container__label {
  font-weight: 600;
  color: var(--fg-on-cream);
  margin-bottom: 0.3rem;
  display: block;
}

.form-container__button {
  margin-top: 1.5rem;
  width: 100%;
}

/* Expandable Result Cards */
.result-card {
  background-color: var(--bg-dark);
  border-radius: 10px;
  padding: 0;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  color: var(--fg-on-dark);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--df-border-dark);
}

.result-card:hover {
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
  transform: translateY(-2px);
}

.result-card-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.result-card-header:hover {
  background-color: rgb(255 106 0 / 5%);
}

.result-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  min-width: 30px;
  text-align: center;
}

.result-text-block {
  flex: 1;
}

.result-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--df-orange);
  margin-bottom: 0.5rem;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--df-muted);
  line-height: 1.4;
}

.expand-icon {
  font-size: 0.8rem;
  color: var(--df-muted);
  margin-left: 1rem;
  transition: transform 0.3s ease;
  user-select: none;
}

.result-expanded-content {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--df-border-dark);
  background-color: rgb(255 106 0 / 2%);
  transition: all 0.3s ease;
}

.result-card.expanded {
  box-shadow: 0 12px 32px rgb(0 0 0 / 30%);
}

.detail-section {
  margin-bottom: 1rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--df-orange);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-content {
  font-size: 0.9rem;
  color: var(--df-white);
  line-height: 1.5;
}

/* Status-specific styling */
.result-card.green {
  border-left: 4px solid #10b981;
}

.result-card.amber {
  border-left: 4px solid #f59e0b;
}

.result-card.red {
  border-left: 4px solid #ef4444;
}

.result-card.green .result-heading {
  color: #22c55e;
}

.result-card.amber .result-heading {
  color: #fbbf24;
}

.result-card.red .result-heading {
  color: #f87171;
}

.result-card.green .detail-title {
  color: #22c55e;
}

.result-card.amber .detail-title {
  color: #fbbf24;
}

.result-card.red .detail-title {
  color: #f87171;
}

/* Add a subtle hint that cards are clickable */
.result-card-header::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgb(255 106 0 / 10%);
  border-radius: 50%;
  opacity: 0%;
  transition: opacity 0.2s ease;
}

.result-card-header:hover::after {
  opacity: 100%;
}



/* Add instructions text */
:where(#results-container)::before,
.results::before {
  content: "💡 Click on any result card below to learn more about each finding";
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--df-text-muted-dark);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgb(255 122 0 / 5%);
  border-radius: 8px;
  border: 1px solid rgb(255 122 0 / 20%);
}

/* Mobile responsiveness for result cards */
@media (width <= 480px) {
  .result-card {
    max-width: 100%;
  }
  

  
  .result-expanded-content {
    padding: 0 1rem 1rem;
  }
  
  .result-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    min-width: 25px;
  }
  
  .result-heading {
    font-size: 1rem;
  }
  
  .result-desc {
    font-size: 0.85rem;
  }
  
  .detail-content {
    font-size: 0.85rem;
  }
}

  :where(#loading-screen),
.results__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 300px;
  padding: 2rem;
}

/* Results Grid */
:where(#results-container),
.results {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem 1rem;
}

:where(#results-grid),
.results__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Results container — temporary ID+class alias (no behavior change) */
:where(#results),
.results {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem 1rem;
}

:where(#results)::before,
.results::before {
  content: "💡 Click on any result card below to learn more about each finding";
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--df-text-muted-dark);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgb(255 122 0 / 5%);
  border-radius: 8px;
  border: 1px solid rgb(255 122 0 / 20%);
}

:where(#results) .loading,
.results__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 300px;
  padding: 2rem;
}

:where(#results) .grid,
.results__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Card base — merged */
.card {
  background-color: var(--df-slate);
  border: 1px solid var(--df-border-dark);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  color: var(--df-white);
}

/* Card states */
.card:hover {
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
  transform: translateY(-2px);
  border-color: var(--df-orange);
}

.card:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* Card variants */
.card.green {
  border-left: 4px solid #10b981;
}

.card.red {
  border-left: 4px solid #ef4444;
}

.card.amber {
  border-left: 4px solid #f59e0b;
}

.icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.text-block {
  flex: 1;
}



/* Loading Screen */
:where(#loading-screen) {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgb(249 115 22 / 30%);
  border-radius: 50%;
  border-top-color: var(--df-orange);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Blog list — merged */
.blog-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  max-width: 700px;
  margin: 2rem auto;
}

.blog-list__item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--df-border-dark);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.blog-list__link {
  color: var(--df-orange);
  text-decoration: none;
  font-weight: 600;
}

.blog-list__link:hover {
  text-decoration: underline;
}

.blog-list__meta {
  display: block;
  color: var(--df-text-muted-dark);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (width <= 1000px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--df-navy);
    z-index: 100;
    justify-content: space-between;
  }

  .nav-links {
    flex-direction: column;
    background-color: var(--df-navy);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-sizing: border-box;
    display: none;
  }

  .navbar.is-open .nav-links {
    display: flex;
    max-height: 600px;
    padding: 1rem;
    gap: 1.5rem;
    opacity: 100%;
    visibility: visible;
  }

  .navbar-inner {
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--df-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 20;
    order: 1;
  }

  .nav-links a {
    min-width: 0;
    padding: 0.75rem 0.5rem;
    font-size: 1.1rem;
    justify-content: flex-start;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .nav-icon {
    height: 18px;
    margin-right: 10px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  :where(#form-container) {
    margin: 1rem auto;
    padding: 1.5rem;
    max-width: 400px;
    width: calc(100% - 2rem);
    box-sizing: border-box;
  }
  
  /* Fix mobile centering for all containers */
  .packages-wrapper,
  .suggested-posts,
  :where(#results-container) {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  

  
  /* Extra small mobile devices */
  @media (width <= 480px) {
    :where(#form-container) {
      max-width: 350px;
      padding: 1.25rem;
    }
  }
  

  

}

/* Cards and Grid */
.packages-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1rem 0.5rem;
}

/* Suggested blog posts layout */
.suggested-posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* Card typography elements */
.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--df-orange);
  text-align: center;
}

.card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  margin: 0;
  color: var(--df-white);
}

.card small {
  color: var(--df-text-muted-dark);
  margin-top: auto;
  font-size: 0.875rem;
}

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

.card li {
  margin-bottom: 0.15rem;
  line-height: 1.35;
}

.card a {
  align-self: flex-start;
  margin-top: auto;
  color: var(--df-orange);
}

/* Specific centering for the "Get the full picture" section cards */

/* Card variants */
.card--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card--centered h3 {
  text-align: center;
  width: 100%;
}

.card--centered .card__list {
  text-align: center;
  margin: 0 auto;
  max-width: 90%;
  width: 100%;
  list-style: none;
  padding: 0;
}

.card--centered .card__list-item {
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0;
}

.card--centered .card__list-item::before {
  content: "✓";
  color: var(--df-orange);
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.card--centered .card__footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-footer {
  margin-top: auto;
  text-align: center;
  padding-top: 1rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}



.audience {
  font-size: 0.85rem;
  color: var(--df-text-muted-dark);
  margin-top: 1rem;
}

/* Package Container */
.package-container {
  background-color: var(--df-navy);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 12px rgb(0 0 0 / 25%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  flex: 1 1 300px;
  max-width: 320px;
  box-sizing: border-box;
}

.package-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
}

/* Table styles moved to ui.css */





/* Trust Strip */
.trust-strip ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}

.trust-strip li {
  margin-bottom: 0.75rem;
}

/* Background Panel Utility */
.background-panel {
  background-color: var(--df-navy);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

/* Utility Classes */
.email-note {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--df-text-muted-dark);
}

.dns-cta {
  margin: 0.5rem auto;
  text-align: center;
}

/* CTA Section centering */
.cta-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Blog post container */
.blog-post {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--df-white);
}

/* Blog post title */
.blog-post h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--df-orange);
}

/* Blog post metadata */
.post-meta {
  font-size: 0.9rem;
  color: var(--df-text-muted-dark);
  margin-bottom: 2rem;
  font-style: italic;
}

.post-meta-author {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--df-cream);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-style: italic;
}



/* Blog post content */
.post-content p {
  margin-bottom: 1.25rem;
}

/* Blog Search */
.search-box {
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--df-border-dark);
  background-color: var(--df-navy);
  color: var(--df-white);
}

.search-input::placeholder {
  color: var(--df-text-muted-dark);
}

.search-results .card {
  margin-bottom: 2rem;
}

/* Pagination styles */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  width: 100%;
  gap: 1rem;
}

/* Blog CTA */
.blog-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: var(--df-navy);
  border-radius: 10px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--df-white);
  border-top: 2px solid var(--df-border-dark);
  border-bottom: 2px solid var(--df-border-dark);
}

.blog-cta strong {
  color: var(--df-orange);
  font-weight: 700;
  font-size: 1.2rem;
}

.hero-cta a { 
  margin: 0;
  min-width: 200px;
}

.related-article-links a {
  display: block;
  background-color: var(--df-slate);
  padding: 1rem;
  border: 1px solid var(--df-border-dark);
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  color: var(--df-white);
  text-decoration: none;
  font-weight: 600;
}

.pagination-wrapper a,
.pagination-wrapper span {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  color: var(--df-white);
  background-color: var(--df-navy);
  text-decoration: none;
}

.blog-cta a {
  color: var(--df-white);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}

.blog-cta a:hover {
  color: var(--df-orange);
  text-decoration: underline;
}

.pagination-wrapper a:hover {
  background-color: var(--df-orange);
  color: var(--df-navy);
}

.related-article-links a:hover {
  background-color: var(--df-navy);
  border-color: var(--df-orange);
  color: var(--df-orange);
  text-decoration: underline;
}

.pagination-wrapper .active {
  background-color: var(--df-orange);
  color: var(--df-navy);
  cursor: default;
}

/* Related Articles */
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

.related-grid .card {
  flex: 1 1 280px;
  max-width: 320px;
}

.related-article-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--df-border-dark);
  border-radius: 10px;
  background-color: var(--df-navy);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.related-article-links h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--df-orange);
  text-align: center;
}



/* Post Tags */
.post-tags {
  margin: 1rem 0 2rem;
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tags .tag {
  background-color: var(--df-navy);
  color: var(--df-white);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: lowercase;
  transition: background 0.2s ease;
}

.post-tags .tag:hover {
  background-color: var(--df-orange);
}

/* ForgeFix Packages */
.forgefix-packages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ForgeFix card component */
.forgefix-card {
  background-color: var(--df-slate);
  border: 1px solid var(--df-border-dark);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgb(0 0 0 / 15%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  flex: 1 1 300px;
  max-width: 320px;
  box-sizing: border-box;
  text-align: center;
}

.forgefix-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgb(0 0 0 / 25%);
}

.forgefix-card__title {
  color: var(--df-orange);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

.forgefix-card__item {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.forgefix-card__item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--df-orange);
  font-weight: bold;
}

.forgefix-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--df-orange);
  margin: 1.5rem 0 0;
}

/* ================= HOMEPAGE IMPROVEMENTS ================= */

/* Hero — circuit background */
.hero--circuit {
  background-image: url('/images/circuit_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: 4rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px; /* Space for fixed navbar */
}



.hero--circuit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(19 41 61 / 80%) 0%, rgb(31 53 74 / 90%) 100%);
  z-index: 1;
}



.hero--circuit h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Hero logo */
.hero-logo {
  max-width: 140px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: brightness(1.1) contrast(1.1);
}

/* Hero spacing */
.hero-subhead { 
  margin: 0 auto 2rem; 
  max-width: 600px; 
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-cta { 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
}



/* Service Map flow */
.df-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}

.df-step {
  background: var(--df-slate);
  border: 1px solid var(--df-border-dark);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.df-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgb(0 0 0 / 15%);
}

.df-step h3 {
  margin: 0.75rem 0 0.5rem;
  color: var(--df-orange);
  font-size: 1.1rem;
  font-weight: 600;
}

.df-step p {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--df-white);
  line-height: 1.4;
}

.df-step-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--df-orange);
  color: var(--df-orange);
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.df-step .cta-link {
  color: var(--df-orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.df-step .cta-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Mobile responsive for service map */
@media (width <= 1024px) {
  .df-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (width <= 768px) {
  .df-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero--circuit h1 {
    font-size: 2rem;
  }
  
  .hero-subhead {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta a {
    width: 100%;
    max-width: 300px;
  }
}

@media (width <= 480px) {
  .df-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero--circuit {
    padding: 3rem 1rem 2rem;
  }
  
  .hero--circuit h1 {
    font-size: 1.75rem;
  }
}

/* Table styles moved to ui.css */

/* Tick / cross icons */
.icon-tick::before { 
  content: "✓"; 
  color: var(--df-orange); 
  margin-right: 0.5rem; 
  font-weight: bold; 
  font-size: 1.1rem;
}

.icon-cross::before { 
  content: "✗"; 
  color: var(--df-text-muted-dark); 
  margin-right: 0.5rem; 
  font-weight: bold; 
  font-size: 1.1rem;
}

.icon-tick.muted::before { 
  color: var(--df-text-muted-dark); 
}

/* Bottom CTA banner */
.cta-banner {
  background: linear-gradient(180deg, rgb(255 106 0 / 12%), rgb(255 106 0 / 6%));
  border-top: 1px solid var(--df-border-dark);
  padding: 3rem 1rem;
  text-align: center;
}

.cta-banner h3 {
  margin-bottom: 1.5rem;
  color: var(--df-text);
  font-size: 1.5rem;
}

/* Fineprint styling */
.fineprint {
  font-size: 0.85rem;
  color: var(--df-white);
  margin-top: 1rem;
  text-align: center;
}

/* Center utility classes */
.center {
  text-align: center;
}

.tight-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero--circuit .tight-box {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* Section spacing improvements */
.section-tight {
  padding: 3rem 0;
}

.section-tight h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--df-text);
  font-size: 1.75rem;
}

.section-tight > .tight-box > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--df-white);
  line-height: 1.5;
}

/* Grid improvements */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  justify-content: center;
}

@media (width <= 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
  }
}

/* === Footer (Legacy - Replaced by df-footer) =============================================== */
/* Old footer styles removed - using new df-footer styles in brand.css */

/* Visually hidden utility (only if you don't already ship one) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* === ForgeScan Hero === */
.hero--forgescan {
  background: url('/images/Forgescan_Hero.webp') no-repeat center center !important;
  background-size: cover !important;
}

/* === ForgeFix Hero === */
.hero--forgefix {
  background: url('/images/Forgefix_Hero.webp') no-repeat center center !important;
  background-size: cover !important;
}

/* === ForgeScan Results === */
.results-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.score-display {
  text-align: center;
  margin-bottom: 2rem;
}

.score-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.score-circle.good {
  background: linear-gradient(135deg, #10b981, #059669);
}

.score-circle.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.score-circle.poor {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.score-number {
  font-size: 2.5rem;
  line-height: 1;
}

.score-label {
  font-size: 1rem;
  opacity: 0.8;
}

.results-grid {
  display: grid;
  gap: 1rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.check-item.green {
  border-left: 4px solid #10b981;
}

.check-item.amber {
  border-left: 4px solid #f59e0b;
}

.check-item.red {
  border-left: 4px solid #ef4444;
}

.check-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.check-content h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.check-content p {
  margin: 0 0 0.5rem 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.recommendation {
  font-size: 0.9rem;
  color: var(--color-accent) !important;
  font-weight: 500;
  margin-top: 0.5rem !important;
}

.fix-cta-container {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--color-bg-mid);
  border-radius: 8px;
  text-align: center;
}

.fix-cta-container h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.fixit-form {
  margin: 1.5rem 0;
}

.loading-screen {
  text-align: center;
  padding: 3rem 1rem;
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}