/**
 * LeadsMerchant — shared layout/image fix for /blog, /security, /careers, /website-design, /wdthankyou
 * Drop-in: upload next to styles.css (site root) and link after styles.css.
 * Based on live HTTP styles.css (2026-09-30) + saved HTML class names.
 *
 * Goal: stop Pexels images (~2000–2500px intrinsic) from blowing layout
 * width to ~2250–2650px. Success = layout width ≈ viewport, no horizontal
 * scroll on mobile.
 */

/* -------------------------------------------------------------------------
   1. Global image + page containment
   ------------------------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.nav-container,
.header-content {
  max-width: 100%;
  box-sizing: border-box;
}

/* Keep homepage/blog content centered — do NOT override .container to 100% */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Minimal blog layout so cards aren't a raw vertical stack */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}
.newsletter-signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  max-width: 560px;
}
.newsletter-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.newsletter-button {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.featured-card,
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.featured-content,
.post-content {
  padding: 1rem 1.25rem 1.25rem;
}


/* -------------------------------------------------------------------------
   2. Blog image classes (.featured-image, .post-image, .cta-image, heroes)
   ------------------------------------------------------------------------- */
.featured-image-wrapper,
.post-image-wrapper,
.hero-image-container,
.cta-image-container,
.culture-image-container,
.feature-icon,
.feature-image,
.protection-image,
.hero-image,
.benefits-image,
.testimonial-image,
.step-icon,
.support-image {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.featured-image,
.post-image,
.cta-image,
.culture-image,
.feature-img,
.protection-img,
.hero-img,
img.hero-image,
.benefits-img,
.testimonial-img,
.step-img,
.support-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Card-style crops (match homepage .service-img pattern) */
.featured-image-wrapper .featured-image {
  height: 280px;
  object-fit: cover;
}

.post-image-wrapper .post-image {
  height: 200px;
  object-fit: cover;
}

.feature-icon .feature-img {
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.culture-image-container .culture-image,
.cta-image-container .cta-image {
  max-height: 420px;
  object-fit: cover;
}

.protection-image .protection-img {
  max-height: 480px;
  object-fit: cover;
  border-radius: 10px;
}

/* Blog/careers use class "hero-image" on the <img>; homepage uses it on a wrapper.
   Constrain both safely without breaking homepage (wrapper already max-width:800px). */
img.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero-image-container img,
.hero-image > img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Logos: keep height, but cap width so wide wordmarks don't blow mobile */
.logo-link {
  display: inline-flex;
  align-items: center;
  max-width: min(240px, calc(100vw - 72px));
  min-width: 0;
}
img.logo,
img.footer-logo {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* -------------------------------------------------------------------------
   3. Soft nav fixes for blog / careers (do not override homepage .navbar)
   Blog markup: .site-header > .header-content > .main-navigation > .nav-list
   Careers:     .site-header > .main-nav > .nav-container > .nav-menu
   Homepage:    .main-header > .navbar > .nav-menu  (already styled)
   ------------------------------------------------------------------------- */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .header-content,
.site-header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.site-header .nav-list,
.site-header .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-header .nav-item {
  list-style: none;
  margin: 0;
}

.site-header .nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #2563eb;
}

.site-header .logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* Careers text logo (div.logo > span.logo-text) — homepage uses img.logo */
.site-header div.logo {
  height: auto;
  width: auto;
  display: flex;
  align-items: center;
}

.site-header .logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1e293b;
}

.site-header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  color: #333;
}

@media (max-width: 768px) {
  .site-header .nav-list,
  .site-header .nav-menu {
    display: none;
  }

  .site-header .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* If JS later toggles .active on the menu, show it stacked */
  .site-header .nav-list.active,
  .site-header .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
    padding: 12px 0;
  }

  .site-header .header-content,
  .site-header .nav-container {
    flex-wrap: wrap;
  }
}

/* -------------------------------------------------------------------------
   4. Security page: .cta-button is undefined in styles.css
   ------------------------------------------------------------------------- */
.cta-button {
  display: inline-block;
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #1d4ed8;
}

.cta-button.nav-cta {
  padding: 8px 20px;
  font-size: 0.95rem;
}

.hero-cta-button {
  display: inline-block;
  background-color: #2563eb;
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
}

.hero-cta-button:hover {
  background-color: #1d4ed8;
}

/* -------------------------------------------------------------------------
   5. Extra containment for common blog/careers section wrappers
   ------------------------------------------------------------------------- */
.blog-main,
.careers-main,
.blog-hero,
.careers-hero,
.features-grid,
.benefits-grid,
.posts-grid,
.featured-posts,
.protection-content {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   6. Careers page layout (scoped — do not affect blog/security/homepage)
   Careers HTML has NO .container wrappers; sections are full-bleed blocks.
   styles.css lacks rules for: .careers-hero, .benefits-grid, .company-culture,
   .positions-*, .testimonials-slider, .careers-cta, .site-footer.
   ------------------------------------------------------------------------- */

/* Shared careers section shell: center + pad like .container 1200px */
.careers-main > section {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 20px;
  box-sizing: border-box;
}

.careers-main .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.careers-main .section-description {
  color: #64748b;
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Hero: text + image side-by-side --- */
.careers-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  /* full-bleed background while content stays in 1200px via padding on section —
     override: allow hero to bleed; inner max handled by grid itself */
  max-width: none !important;
  padding: 72px max(20px, calc((100% - 1200px) / 2)) !important;
  box-sizing: border-box;
}

.careers-hero .hero-content {
  text-align: left;
  margin-bottom: 0;
  max-width: 560px;
}

.careers-hero .hero-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #1e293b;
  margin-bottom: 1rem;
}

.careers-hero .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.careers-hero .hero-image-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  max-height: 420px;
}

.careers-hero .hero-image-container img.hero-image,
.careers-hero img.hero-image {
  width: 100%;
  height: 420px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

/* --- Why join: 4 benefit cards --- */
.why-join-us {
  background-color: #fff;
}

.benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

.benefit-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.benefit-title {
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.benefit-description {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* --- Culture: content + image --- */
.company-culture {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
  background-color: #f8fafc;
  max-width: none !important;
  padding: 72px max(20px, calc((100% - 1200px) / 2)) !important;
}

.culture-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.culture-description {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border-left: 4px solid #2563eb;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.value-title {
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.value-description {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.company-culture .culture-image-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  max-height: 420px;
}

.company-culture .culture-image-container .culture-image {
  width: 100%;
  height: 420px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

/* --- Open positions: filters + loading/empty state --- */
.open-positions {
  background: #fff;
}

.positions-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-button {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-button:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.filter-button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  min-height: 120px;
}

.loading-positions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
}

.loading-positions i {
  font-size: 1.75rem;
  color: #2563eb;
}

.loading-positions p {
  margin: 0;
  font-size: 1rem;
}

/* Position cards (when/if JS injects them) */
.position-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.position-title {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.position-meta {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* --- Hiring process: balanced 5-step grid --- */
.application-process {
  background: #f8fafc;
  max-width: none !important;
  padding: 72px max(20px, calc((100% - 1200px) / 2)) !important;
}

.application-process .process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
}

.application-process .process-step {
  padding: 1.5rem 1rem;
}

/* --- Testimonials: 3-column cards --- */
.employee-testimonials {
  background: #fff;
}

.testimonials-slider {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.employee-testimonials .testimonial-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  width: auto;
  max-width: 100%;
}

.employee-testimonials .testimonial-text {
  font-style: italic;
  color: #475569;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.employee-testimonials .author-name {
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 0.15rem;
}

.employee-testimonials .author-role,
.employee-testimonials .author-tenure {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

/* --- CTA: content + image --- */
.careers-cta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  max-width: none !important;
  padding: 72px max(20px, calc((100% - 1200px) / 2)) !important;
  border-radius: 0;
}

.careers-cta .cta-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.careers-cta .cta-description {
  color: #475569;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.careers-cta .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.careers-cta .cta-button.secondary {
  background-color: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.careers-cta .cta-button.secondary:hover {
  background-color: #2563eb;
  color: #fff;
}

.careers-cta .cta-image-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  max-height: 360px;
}

.careers-cta .cta-image-container .cta-image {
  width: 100%;
  height: 360px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
}

/* --- Careers / blog shared .site-footer (homepage uses .main-footer) --- */
.site-footer {
  background-color: #1e293b;
  color: #fff;
  padding: 60px 20px 30px;
  box-sizing: border-box;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.site-footer .footer-heading,
.site-footer .footer-subheading {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer .footer-description {
  color: #cbd5e1;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.site-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: #93c5fd;
}

.site-footer .contact-info {
  font-style: normal;
  color: #cbd5e1;
}

.site-footer .contact-info p {
  margin-bottom: 0.5rem;
}

.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* --- Careers responsive --- */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-process .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .careers-hero,
  .company-culture,
  .careers-cta {
    grid-template-columns: 1fr !important;
  }

  .careers-hero .hero-content {
    text-align: center;
    max-width: none;
  }

  .careers-hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .careers-hero .hero-image-container img.hero-image,
  .careers-hero img.hero-image,
  .company-culture .culture-image-container .culture-image {
    height: 280px;
    max-height: 280px;
  }

  .careers-cta .cta-image-container .cta-image {
    height: 240px;
    max-height: 240px;
  }

  .careers-cta .cta-buttons {
    justify-content: flex-start;
  }

  .testimonials-slider {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .careers-main > section {
    padding: 48px 16px;
  }

  .careers-hero,
  .company-culture,
  .application-process,
  .careers-cta {
    padding: 48px 16px !important;
  }

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

  .application-process .process-steps {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-content {
    grid-template-columns: 1fr;
  }

  .positions-filter {
    justify-content: flex-start;
  }
}

/* -------------------------------------------------------------------------
   7. Security page — midnight-blue dark theme (scoped)
   Security HTML has NO body class. Unique anchors: .company-name > .ai-text,
   #protection.protection-section, .price-display, .guarantee-text.
   Careers (.careers-main / white) and blog stay untouched.
   Homepage shares .hero-section / .main-header / .pricing-card — must NOT match.
   ------------------------------------------------------------------------- */

body:has(.company-name .ai-text) {
  background-color: #0a1628;
  color: #e2e8f0;
}

body:has(.company-name .ai-text) .main-header {
  background-color: rgba(8, 18, 36, 0.96);
  box-shadow: 0 1px 0 rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

body:has(.company-name .ai-text) .main-header .nav-link {
  color: #cbd5e1;
}

body:has(.company-name .ai-text) .main-header .nav-link:hover {
  color: #38bdf8;
}

body:has(.company-name .ai-text) .main-header .mobile-menu-toggle {
  color: #e2e8f0;
}

/* --- Hero --- */
body:has(.company-name .ai-text) .hero-section {
  background: linear-gradient(160deg, #0a1628 0%, #0f2744 45%, #0a1a32 100%);
  padding: 72px 0 64px;
}

body:has(.company-name .ai-text) .hero-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

body:has(.company-name .ai-text) .hero-content {
  text-align: left;
  margin-bottom: 0;
}

body:has(.company-name .ai-text) .company-name {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

body:has(.company-name .ai-text) .ai-text {
  color: #38bdf8;
  font-weight: 700;
}

body:has(.company-name .ai-text) .hero-title {
  color: #f8fafc;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

body:has(.company-name .ai-text) .hero-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

body:has(.company-name .ai-text) .price-display {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

body:has(.company-name .ai-text) .price-amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #f8fafc;
}

body:has(.company-name .ai-text) .price-period {
  color: #94a3b8;
  font-size: 1.1rem;
}

body:has(.company-name .ai-text) .guarantee-text {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

body:has(.company-name .ai-text) .hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.15);
  max-height: 440px;
}

body:has(.company-name .ai-text) .hero-image .hero-img {
  width: 100%;
  height: 440px;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Bright CTA on dark */
body:has(.company-name .ai-text) .cta-button {
  background-color: #2563eb;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

body:has(.company-name .ai-text) .cta-button:hover {
  background-color: #3b82f6;
}

/* --- Features --- */
body:has(.company-name .ai-text) .features-section {
  background-color: #0a1628;
  padding: 72px 0;
}

body:has(.company-name .ai-text) .features-section .section-title,
body:has(.company-name .ai-text) .protection-section .section-title,
body:has(.company-name .ai-text) .pricing-section .section-title,
body:has(.company-name .ai-text) .contact-section .section-title {
  color: #f8fafc;
  text-align: center;
  margin-bottom: 2.5rem;
}

body:has(.company-name .ai-text) .features-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

body:has(.company-name .ai-text) .feature-card {
  background: linear-gradient(180deg, #132238 0%, #0f1c30 100%);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

body:has(.company-name .ai-text) .feature-icon {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  max-height: 160px;
}

body:has(.company-name .ai-text) .feature-icon .feature-img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

body:has(.company-name .ai-text) .feature-title {
  color: #f1f5f9;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

body:has(.company-name .ai-text) .feature-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Protection --- */
body:has(.company-name .ai-text) .protection-section {
  background: linear-gradient(180deg, #0c1a30 0%, #0a1628 100%);
  padding: 72px 0;
}

body:has(.company-name .ai-text) .protection-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

body:has(.company-name .ai-text) .protection-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body:has(.company-name .ai-text) .protection-image .protection-img {
  width: 100%;
  height: 400px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

body:has(.company-name .ai-text) .protection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body:has(.company-name .ai-text) .protection-item {
  background: rgba(19, 34, 56, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-left: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

body:has(.company-name .ai-text) .protection-item-title {
  color: #f1f5f9;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

body:has(.company-name .ai-text) .protection-item p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.95rem;
}

/* --- Pricing --- */
body:has(.company-name .ai-text) .pricing-section {
  background-color: #0a1628;
  padding: 72px 0;
}

body:has(.company-name .ai-text) .pricing-card {
  background: linear-gradient(160deg, #132238 0%, #0e1a2e 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15);
  text-align: center;
}

body:has(.company-name .ai-text) .pricing-title {
  color: #f8fafc;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

body:has(.company-name .ai-text) .pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
  color: #f8fafc;
}

body:has(.company-name .ai-text) .dollar-sign {
  font-size: 1.5rem;
  color: #38bdf8;
}

body:has(.company-name .ai-text) .price-number {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  color: #f8fafc;
}

body:has(.company-name .ai-text) .price-decimal {
  font-size: 1.25rem;
  color: #94a3b8;
}

body:has(.company-name .ai-text) .price-month {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-left: 0.25rem;
}

body:has(.company-name .ai-text) .pricing-subtitle {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

body:has(.company-name .ai-text) .pricing-features .features-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  text-align: left;
}

body:has(.company-name .ai-text) .pricing-features .feature-item {
  color: #cbd5e1;
  padding: 0.55rem 0 0.55rem 1.75rem;
  position: relative;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body:has(.company-name .ai-text) .pricing-features .feature-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: 700;
}

body:has(.company-name .ai-text) .pricing-note {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* --- Contact --- */
body:has(.company-name .ai-text) .contact-section {
  background: linear-gradient(180deg, #0c1a30 0%, #081220 100%);
  padding: 72px 0;
}

body:has(.company-name .ai-text) .contact-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

body:has(.company-name .ai-text) .contact-title {
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

body:has(.company-name .ai-text) .contact-description {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

body:has(.company-name .ai-text) .contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body:has(.company-name .ai-text) .contact-item {
  background: rgba(19, 34, 56, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

body:has(.company-name .ai-text) .contact-item-title {
  color: #38bdf8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

body:has(.company-name .ai-text) .contact-item p {
  color: #e2e8f0;
  margin: 0;
}

body:has(.company-name .ai-text) .contact-form-container,
body:has(.company-name .ai-text) .contact-form {
  background: #132238;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

body:has(.company-name .ai-text) .contact-form .form-group {
  margin-bottom: 1rem;
}

body:has(.company-name .ai-text) .contact-form label,
body:has(.company-name .ai-text) .contact-form .form-label {
  display: block;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

body:has(.company-name .ai-text) .contact-form input,
body:has(.company-name .ai-text) .contact-form textarea,
body:has(.company-name .ai-text) .contact-form select {
  width: 100%;
  box-sizing: border-box;
  background: #0a1628;
  border: 1px solid #1e3a5f;
  color: #f1f5f9;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

body:has(.company-name .ai-text) .contact-form input:focus,
body:has(.company-name .ai-text) .contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

body:has(.company-name .ai-text) .contact-form input::placeholder,
body:has(.company-name .ai-text) .contact-form textarea::placeholder {
  color: #64748b;
}

/* --- Footer (security uses .main-footer) --- */
body:has(.company-name .ai-text) .main-footer {
  background-color: #060e1a;
  color: #cbd5e1;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

body:has(.company-name .ai-text) .main-footer .footer-company-name,
body:has(.company-name .ai-text) .main-footer .footer-heading,
body:has(.company-name .ai-text) .main-footer h3,
body:has(.company-name .ai-text) .main-footer h4 {
  color: #f8fafc;
}

body:has(.company-name .ai-text) .main-footer .footer-link,
body:has(.company-name .ai-text) .main-footer a {
  color: #94a3b8;
}

body:has(.company-name .ai-text) .main-footer .footer-link:hover,
body:has(.company-name .ai-text) .main-footer a:hover {
  color: #38bdf8;
}

body:has(.company-name .ai-text) .security-note {
  color: #64748b;
  font-size: 0.85rem;
}

/* --- Security responsive --- */
@media (max-width: 1024px) {
  body:has(.company-name .ai-text) .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body:has(.company-name .ai-text) .hero-section .container,
  body:has(.company-name .ai-text) .protection-content,
  body:has(.company-name .ai-text) .contact-content {
    grid-template-columns: 1fr !important;
  }

  body:has(.company-name .ai-text) .hero-content {
    text-align: center;
  }

  body:has(.company-name .ai-text) .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  body:has(.company-name .ai-text) .price-display {
    justify-content: center;
  }

  body:has(.company-name .ai-text) .hero-image .hero-img,
  body:has(.company-name .ai-text) .protection-image .protection-img {
    height: 280px;
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  body:has(.company-name .ai-text) .features-grid {
    grid-template-columns: 1fr;
  }

  body:has(.company-name .ai-text) .hero-section,
  body:has(.company-name .ai-text) .features-section,
  body:has(.company-name .ai-text) .protection-section,
  body:has(.company-name .ai-text) .pricing-section,
  body:has(.company-name .ai-text) .contact-section {
    padding: 48px 0;
  }

  body:has(.company-name .ai-text) .pricing-card {
    padding: 1.75rem 1.25rem;
  }
}


/* -------------------------------------------------------------------------
   8. Website Design page (/website-design) — midnight-blue dark theme
   Unique scope: body:has(.purchase-button)
   Does NOT match security (.company-name .ai-text), careers, blog, or home.
   HTML currently only loads styles.css — also add <link> to pages-fix.css.
   ------------------------------------------------------------------------- */

body:has(.purchase-button) {
  background-color: #0a1628;
  color: #e2e8f0;
}

body:has(.purchase-button) .site-header {
  background: linear-gradient(180deg, #081224 0%, #0a1628 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  padding: 1.25rem 0 1rem;
  text-align: center;
}

body:has(.purchase-button) .site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

body:has(.purchase-button) .header-banner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

body:has(.purchase-button) .header-banner img {
  display: block !important;
  margin: 0 auto !important;
  width: auto !important;
  max-width: min(280px, 70%) !important;
  height: auto !important;
}

body:has(.purchase-button) .tagline {
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

/* --- Hero (2-col like security) --- */
body:has(.purchase-button) .hero-section {
  background: linear-gradient(160deg, #0a1628 0%, #0f2744 45%, #0a1a32 100%);
  padding: 72px 0 64px;
}

body:has(.purchase-button) .hero-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

body:has(.purchase-button) .hero-content {
  text-align: left;
  margin-bottom: 0;
}

body:has(.purchase-button) .hero-title {
  color: #f8fafc;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

body:has(.purchase-button) .hero-description {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

body:has(.purchase-button) .price-display {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 1.35rem;
}

body:has(.purchase-button) .original-price {
  color: #64748b;
  text-decoration: line-through;
  font-size: 1.15rem;
}

body:has(.purchase-button) .current-price {
  color: #38bdf8;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

body:has(.purchase-button) .price-note {
  color: #94a3b8;
  font-size: 0.95rem;
}

body:has(.purchase-button) .purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body:has(.purchase-button) .purchase-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
  color: #fff !important;
}

body:has(.purchase-button) .hero-image {
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
  max-height: 440px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.15);
}

body:has(.purchase-button) .hero-image .hero-img {
  width: 100%;
  height: 440px;
  max-height: 440px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* --- Features (3 cards) --- */
body:has(.purchase-button) .features-section {
  background-color: #0a1628;
  padding: 72px 0;
}

body:has(.purchase-button) .features-section .section-title,
body:has(.purchase-button) .benefits-section .section-title,
body:has(.purchase-button) .testimonial-section .section-title,
body:has(.purchase-button) .final-cta-section .cta-title {
  color: #f8fafc;
  text-align: center;
  margin-bottom: 2.5rem;
}

body:has(.purchase-button) .features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

body:has(.purchase-button) .feature-card {
  background: linear-gradient(180deg, #132238 0%, #0f1c30 100%);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  max-width: 100%;
}

body:has(.purchase-button) .feature-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  max-height: 180px;
  max-width: 100%;
}

body:has(.purchase-button) .feature-image .feature-img {
  width: 100%;
  height: 180px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

body:has(.purchase-button) .feature-title {
  color: #f1f5f9;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

body:has(.purchase-button) .feature-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
}

body:has(.purchase-button) .purchase-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- Benefits (2-col) --- */
body:has(.purchase-button) .benefits-section {
  background: linear-gradient(180deg, #0c1b30 0%, #0a1628 100%);
  padding: 72px 0;
}

body:has(.purchase-button) .benefits-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

body:has(.purchase-button) .benefits-image {
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
  max-height: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.12);
}

body:has(.purchase-button) .benefits-image .benefits-img {
  width: 100%;
  height: 420px;
  max-height: 420px;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

body:has(.purchase-button) .benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

body:has(.purchase-button) .benefit-item {
  background: rgba(19, 34, 56, 0.7);
  border-left: 3px solid #38bdf8;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.15rem;
}

body:has(.purchase-button) .benefit-title {
  color: #f1f5f9;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

body:has(.purchase-button) .benefit-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* --- Testimonials --- */
body:has(.purchase-button) .testimonial-section {
  background-color: #0a1628;
  padding: 72px 0;
}

body:has(.purchase-button) .testimonial-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

body:has(.purchase-button) .testimonial-card {
  background: linear-gradient(180deg, #132238 0%, #0f1c30 100%);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  max-width: 100%;
}

body:has(.purchase-button) .testimonial-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.15rem;
  border: 2px solid rgba(56, 189, 248, 0.35);
}

body:has(.purchase-button) .testimonial-image .testimonial-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

body:has(.purchase-button) .testimonial-text {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  text-align: center;
  margin-bottom: 0.85rem;
}

body:has(.purchase-button) .testimonial-author {
  color: #38bdf8;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
  font-weight: 600;
}

/* --- Final CTA --- */
body:has(.purchase-button) .final-cta-section {
  background: linear-gradient(160deg, #0f2744 0%, #0a1628 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

body:has(.purchase-button) .final-cta-section .container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body:has(.purchase-button) .cta-description {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto 1.5rem;
  max-width: 36rem;
}

body:has(.purchase-button) .price-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

body:has(.purchase-button) .final-price {
  color: #38bdf8;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

body:has(.purchase-button) .price-label {
  color: #94a3b8;
  font-size: 0.95rem;
}

body:has(.purchase-button) .guarantee-note {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 1rem;
}

body:has(.purchase-button) .site-footer {
  background-color: #060e1a;
  color: #94a3b8;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  padding: 2rem 0;
  text-align: center;
}

body:has(.purchase-button) .site-footer .copyright,
body:has(.purchase-button) .site-footer .footer-note {
  color: #64748b;
  margin: 0.35rem 0;
}

/* Website-design responsive */
@media (max-width: 900px) {
  body:has(.purchase-button) .hero-section .container,
  body:has(.purchase-button) .benefits-content {
    grid-template-columns: 1fr !important;
  }

  body:has(.purchase-button) .hero-content {
    text-align: center;
  }

  body:has(.purchase-button) .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  body:has(.purchase-button) .price-display {
    justify-content: center;
  }

  body:has(.purchase-button) .features-grid {
    grid-template-columns: 1fr;
  }

  body:has(.purchase-button) .testimonial-grid {
    grid-template-columns: 1fr;
  }

  body:has(.purchase-button) .hero-image .hero-img,
  body:has(.purchase-button) .benefits-image .benefits-img {
    height: 280px;
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  body:has(.purchase-button) .hero-section,
  body:has(.purchase-button) .features-section,
  body:has(.purchase-button) .benefits-section,
  body:has(.purchase-button) .testimonial-section,
  body:has(.purchase-button) .final-cta-section {
    padding: 48px 0;
  }

  body:has(.purchase-button) .header-banner img {
    max-width: min(200px, 65%) !important;
  }
}

/* -------------------------------------------------------------------------
   9. Web-design thank-you (/wdthankyou) — layout + centering (LIGHT theme)
   Unique scope: body:has(.thank-you-main)
   Does NOT darken careers/blog/security/home. Fixes image blowout + nav.
   ------------------------------------------------------------------------- */

body:has(.thank-you-main) {
  background-color: #f8fafc;
  color: #1e293b;
}

body:has(.thank-you-main) .page-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body:has(.thank-you-main) .page-header .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

body:has(.thank-you-main) .main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 100%;
}

body:has(.thank-you-main) .logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(280px, 55%);
}

body:has(.thank-you-main) .logo-link .logo,
body:has(.thank-you-main) img.logo {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 48px;
}

body:has(.thank-you-main) .nav-list {
  display: flex !important;
  flex-wrap: wrap;
  list-style: none !important;
  margin: 0;
  padding: 0;
  gap: 0.35rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

body:has(.thank-you-main) .nav-item {
  list-style: none !important;
  margin: 0;
}

body:has(.thank-you-main) .nav-list .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
}

body:has(.thank-you-main) .nav-list .nav-link:hover {
  color: #2563eb;
}

body:has(.thank-you-main) .thank-you-main {
  overflow-x: hidden;
  max-width: 100%;
}

body:has(.thank-you-main) .thank-you-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  text-align: center;
}

body:has(.thank-you-main) .thank-you-hero .hero-content {
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

body:has(.thank-you-main) .thank-you-hero .hero-title {
  color: #0f172a;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

body:has(.thank-you-main) .thank-you-hero .hero-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

body:has(.thank-you-main) .hero-image-container {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

body:has(.thank-you-main) .hero-image-container .hero-img {
  width: 100%;
  max-width: 100%;
  height: 360px;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

body:has(.thank-you-main) .next-steps,
body:has(.thank-you-main) .contact-support {
  padding: 56px 0;
}

body:has(.thank-you-main) .next-steps:nth-of-type(even),
body:has(.thank-you-main) .contact-support:nth-of-type(even) {
  background-color: #fff;
}

body:has(.thank-you-main) .section-title {
  text-align: center;
  color: #0f172a;
  margin-bottom: 2rem;
}

/* Center the 123FormBuilder embed */
body:has(.thank-you-main) .next-steps iframe,
body:has(.thank-you-main) .next-steps [id*="form"],
body:has(.thank-you-main) script[data-role="form"] + * {
  max-width: 100%;
}

body:has(.thank-you-main) .next-steps > script[data-role="form"],
body:has(.thank-you-main) .next-steps {
  text-align: center;
}

body:has(.thank-you-main) .next-steps .container {
  text-align: center;
}

body:has(.thank-you-main) .steps-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: left;
  max-width: 100%;
}

body:has(.thank-you-main) .step-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  max-width: 100%;
}

body:has(.thank-you-main) .step-icon {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  max-width: 100%;
  max-height: 180px;
}

body:has(.thank-you-main) .step-icon .step-img {
  width: 100%;
  height: 180px;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

body:has(.thank-you-main) .step-title {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

body:has(.thank-you-main) .step-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

body:has(.thank-you-main) .support-content {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

body:has(.thank-you-main) .support-image {
  border-radius: 14px;
  overflow: hidden;
  max-width: 100%;
  max-height: 320px;
  justify-self: center;
}

body:has(.thank-you-main) .support-image img,
body:has(.thank-you-main) .support-image .support-img {
  width: 100%;
  max-width: 100%;
  height: 280px;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* Logo-only support image (hosting block) should not force a tall crop */
body:has(.thank-you-main) .support-image img:not(.support-img) {
  height: auto;
  max-height: 160px;
  object-fit: contain;
  margin: 0 auto;
}

body:has(.thank-you-main) .support-details {
  color: #334155;
  line-height: 1.6;
}

body:has(.thank-you-main) .support-title {
  color: #0f172a;
  margin-bottom: 0.5rem;
}

body:has(.thank-you-main) .support-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

body:has(.thank-you-main) .support-item {
  margin: 0.4rem 0;
  color: #475569;
}

body:has(.thank-you-main) .support-link {
  color: #2563eb;
  font-weight: 600;
}

body:has(.thank-you-main) #paypal-button-container-P-5LU42383T0153312VNFCXZDI {
  max-width: 320px;
  margin: 1rem 0 0;
}

body:has(.thank-you-main) .page-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

body:has(.thank-you-main) .page-footer .footer-content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

body:has(.thank-you-main) .footer-logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

body:has(.thank-you-main) .footer-tagline,
body:has(.thank-you-main) .footer-address {
  color: #94a3b8;
  font-style: normal;
  line-height: 1.6;
}

body:has(.thank-you-main) .footer-heading {
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

body:has(.thank-you-main) .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body:has(.thank-you-main) .footer-list a,
body:has(.thank-you-main) .footer-link,
body:has(.thank-you-main) .legal-link {
  color: #94a3b8;
  text-decoration: none;
}

body:has(.thank-you-main) .footer-list a:hover,
body:has(.thank-you-main) .footer-link:hover,
body:has(.thank-you-main) .legal-link:hover {
  color: #38bdf8;
}

body:has(.thank-you-main) .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.25rem;
}

body:has(.thank-you-main) .legal-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

body:has(.thank-you-main) .copyright {
  color: #64748b;
  margin: 0;
}

@media (max-width: 900px) {
  body:has(.thank-you-main) .steps-grid {
    grid-template-columns: 1fr;
  }

  body:has(.thank-you-main) .support-content,
  body:has(.thank-you-main) .page-footer .footer-content {
    grid-template-columns: 1fr !important;
  }

  body:has(.thank-you-main) .main-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body:has(.thank-you-main) .nav-list {
    justify-content: center;
  }

  body:has(.thank-you-main) .logo-link {
    max-width: min(240px, 80%);
  }

  body:has(.thank-you-main) .hero-image-container .hero-img {
    height: 220px;
    max-height: 220px;
  }

  body:has(.thank-you-main) .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* -------------------------------------------------------------------------
   Homepage: cat mascot in About + mobile header logo containment
   (homepage may only load styles.css — also paste homepage-mobile-logo.css)
   ------------------------------------------------------------------------- */
.about-image {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}
.about-image > img {
  display: block;
  max-width: min(420px, 100%);
  width: 100%;
  height: auto;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .navbar {
    gap: 12px;
  }
  .logo-link {
    max-width: calc(100vw - 72px);
  }
  img.logo {
    max-height: 36px;
  }
}


/* === SERVICE CARD LINKS (homepage) ===
   Makes homepage .service-card tiles fully clickable without breaking
   existing .service-card layout in styles.css. Safe on all pages.
   ================================================================ */
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  outline: none;
}
.service-card-link:hover,
.service-card-link:focus {
  text-decoration: none;
  color: inherit;
}
.service-card-link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 4px;
  border-radius: 8px;
}
.service-card:has(.service-card-link) {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:has(.service-card-link):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.service-card-link .service-title {
  transition: color 0.2s ease;
}
.service-card:has(.service-card-link):hover .service-title {
  color: #0284c7;
}

/* Soft includes bullets on midnight service pages */
body:has(.purchase-button) .includes-bullets {
  color: #cbd5e1;
  font-size: 1.05rem;
}
body:has(.purchase-button) .includes-bullets li {
  margin-bottom: 0.65rem;
}
body:has(.purchase-button) .includes-section .section-title {
  margin-bottom: 1.5rem;
}
