/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

:root {
    --promo-banner-height: 0px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1A3A52 0%, #40B5AD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    color: #1A3A52;
    font-size: 1.125rem;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #40B5AD;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #40B5AD;
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.8rem;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #374151;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav .nav-link {
    padding: 0.5rem 0;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: #40B5AD;
    color: #111111;
}

.btn-primary:hover {
    background: #359a92;
    transform: translateY(-1px);
}

.btn-gradient {
    background: linear-gradient(to right, #40B5AD, #7B68EE);
    color: white;
    border-radius: 50px;
}

.btn-gradient:hover {
    background: linear-gradient(to right, #359a92, #6a5acd);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #1A3A52;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 1rem 5rem;
    background: linear-gradient(135deg, #1A3A52 0%, #2a5a7a 50%, #5cb5c5 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.23;
    mix-blend-mode: screen;
}

.hero-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.9);
    color: #1A3A52;
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sections */
.section {
    padding: 4rem 1rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    color: #1A3A52;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    text-align: center;
    color: #4b5563;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.bg-gray {
    background: #f9fafb;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card.text-center {
    text-align: center;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #40B5AD 0%, #5fc5bd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: #40B5AD;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.card-title {
    font-size: 1.25rem;
    color: #1A3A52;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #4b5563;
    margin-bottom: 1rem;
}

.price {
    color: #40B5AD;
    font-weight: 600;
    margin-bottom: 1rem;
}

.link {
    color: #1A3A52;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link:hover {
    color: #40B5AD;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    text-align: center;
}

.process-icon {
    position: relative;
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #40B5AD 0%, #5fc5bd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(64, 181, 173, 0.3);
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: #1A3A52;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

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

.process-text {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Testimonials */
.stars {
    color: #40B5AD;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-style: italic;
    color: #374151;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #1A3A52;
}

.testimonial-business {
    font-size: 0.875rem;
    color: #4b5563;
}

/* CTA Section */
.cta-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #1A3A52 0%, #2a5a7a 100%);
    color: white;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.text-center {
    text-align: center;
}

/* Footer */
.footer {
    background: #1A3A52;
    color: white;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    }
}

.footer-title {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #40B5AD;
}

.footer-contact {
    list-style: none;
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: #40B5AD;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #40B5AD;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1A3A52;
}

.table td {
    color: #374151;
}

.table tr:hover {
    background: #f9fafb;
}

/* Utility Classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

/* NAV LOGO SIZE CONTROL */
.logo-icon {
  width: 40px;              /* controls logo container size */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;         /* prevents image spilling out */
  flex: 0 0 40px;
}

.logo-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.services-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 640px) {
  .services-checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   ✅ FINAL FIXES ONLY
   (1) Footer logo text color
   (2) Logo image containment
========================= */

/* Footer logo text must be white on dark footer background */
footer .logo-title,
footer .logo-text,
.footer .logo-title,
.footer .logo-text {
  color: #ffffff !important;
}

footer .logo-subtitle,
.footer .logo-subtitle {
  color: rgba(255, 255, 255, 0.75) !important;
}
/* This tells the browser: "When the menu is active, show it!" */
.mobile-nav.active {
    display: flex !important;
}

/* Smart Scout Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.promo-banner-images {
    position: relative;
    width: 450px;
    height: 55px;
    flex-shrink: 0;
}

.promo-banner-images a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner-images a.active {
    opacity: 1;
}

.promo-banner-images img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-banner-badge {
    background: #ff6b35;
    color: #111111;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-banner-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.promo-banner-text strong {
    color: #4fd1c5;
}

.promo-banner-cta {
    background: #4fd1c5;
    color: #1e3a5f;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.promo-banner-cta:hover {
    background: #38b2ac;
    transform: translateY(-1px);
}

.promo-banner-close {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.promo-banner-close:hover {
    color: white;
}

/* Adjust hero section when banner is visible */
body.has-promo-banner .hero {
    padding-top: 10rem;
}

/* Adjust sections without hero (like contact page) when banner is visible */
body.has-promo-banner .section:first-of-type {
    padding-top: 7rem;
}

body.has-promo-banner .hero + .section {
    padding-top: 4rem;
}

.promo-popup {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    overflow: visible;
}

.promo-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.promo-popup-track {
    width: 400px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.promo-popup-offer {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.promo-popup-offer.is-active {
    display: block;
}

.promo-popup-offer[data-offer="selleramp"] a {
    display: block;
    line-height: 0;
    width: 100%;
    height: 100%;
}

.promo-popup-offer[data-offer="selleramp"] img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.promo-popup-flashpricer {
    background: #efeff2;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 1.2rem 1.15rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.promo-popup-flashpricer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.05rem 0 0.7rem;
}

.promo-popup-flashpricer-logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 220px;
    margin: 0 auto;
}

.promo-popup-flashpricer-badge {
    display: inline-block;
    background: #e8e1ff;
    color: #7c4dff;
    border-radius: 999px;
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 0.35rem 0.8rem;
    margin: 0 auto 0.8rem;
}

.promo-popup-flashpricer h3 {
    font-size: 2.45rem;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: #101012;
    margin: 0 0 0.7rem;
}

.promo-popup-flashpricer h3 span {
    color: #7c4dff;
}

.promo-popup-flashpricer p {
    color: #2e3139;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0 0 1rem;
    flex: 1;
}

.promo-popup-flashpricer-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #6f45d3;
    border: 1px solid #6f45d3;
    line-height: 1.2;
}

.promo-popup-flashpricer-actions a:hover {
    background: #5e36bf;
    border-color: #5e36bf;
}

.promo-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    left: auto;
    background: #111827;
    color: #ffffff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 30;
}

.promo-popup-close:hover {
    background: #0f172a;
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 0.5rem 0.75rem;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 999;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .promo-banner-images,
    .promo-banner-images a,
    .promo-banner-images a.active,
    .promo-banner-images img {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }

    .promo-banner-content {
        flex-direction: column;
        gap: 0.4rem;
    }

    .promo-banner-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .promo-banner-cta {
        padding: 0.35rem 0.85rem;
        font-size: 0.75rem;
    }

    .promo-banner-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    .promo-banner-badge {
        padding: 0.2rem 0.55rem;
        font-size: 0.68rem;
    }

    body.has-promo-banner .hero {
        padding-top: calc(8rem + var(--promo-banner-height));
    }

    body.has-promo-banner .section:first-of-type {
        padding-top: calc(4rem + var(--promo-banner-height));
    }

    .promo-popup {
        display: none !important;
        right: 0.65rem;
        bottom: 0.65rem;
        width: clamp(170px, 52vw, 220px);
    }

    .promo-popup img {
        width: 100%;
    }

    .promo-popup-track {
        width: 100%;
    }

    .promo-popup-close {
        top: 0.35rem;
        left: auto;
        right: 0.35rem;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        z-index: 2;
    }
}

@media (max-width: 420px) {
    .promo-popup {
        width: clamp(160px, 50vw, 190px);
        right: 0.5rem;
        bottom: 0.5rem;
    }
}

/* =========================================================
   Manus-inspired visual system overrides
   Keeps existing structure/content/logic, updates look/feel.
========================================================= */

:root {
    --theme-bg: #f4f4f2;
    --theme-surface: #ffffff;
    --theme-ink: #1a1a1a;
    --theme-muted: #42464f;
    --theme-line: #d7d7d3;
    --theme-panel: #e8e8e3;
    --theme-primary: #ff6b35;
    --theme-primary-deep: #d95629;
    --theme-dark: #121212;
    --theme-dark-soft: #1f1f1f;
}

body {
    background: var(--theme-bg);
    color: var(--theme-ink);
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.logo-title,
.section-title,
.cta-title,
.card-title,
.process-title,
.footer-title {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    letter-spacing: -0.01em;
}

.header {
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 4px solid var(--theme-primary);
}

.logo-title {
    color: #f6f6f3;
}

.logo-subtitle {
    color: #ffb49b;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--theme-primary);
}

.mobile-menu-btn span {
    background: #f4f4f2;
}

.mobile-nav {
    background: var(--theme-dark-soft);
    border-top: 2px solid rgba(255, 107, 53, 0.35);
}

.mobile-nav .nav-link {
    padding: 0.75rem 0;
}

.btn {
    border-radius: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--theme-primary);
    color: #111;
}

.btn-primary:hover {
    background: var(--theme-primary-deep);
    color: #111;
    transform: translateY(-2px);
}

.btn-gradient {
    background: linear-gradient(120deg, var(--theme-primary) 0%, #ff946f 100%);
    color: #111;
}

.btn-gradient:hover {
    background: linear-gradient(120deg, var(--theme-primary-deep) 0%, #ff7e52 100%);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: currentColor;
}

.hero {
    min-height: 88vh;
    background: linear-gradient(120deg, rgba(10, 10, 10, 0.96) 0%, rgba(30, 30, 30, 0.9) 60%, rgba(20, 20, 20, 0.96) 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 90px;
    background: var(--theme-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.badge {
    background: rgba(255, 107, 53, 0.12);
    color: #ffd0bf;
    border: 1px solid rgba(255, 107, 53, 0.45);
    border-radius: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: clamp(2.2rem, 5.8vw, 5rem);
    line-height: 0.98;
    text-wrap: balance;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.84);
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 5rem 1rem;
    position: relative;
}

.section-title {
    color: var(--theme-ink);
    font-size: clamp(1.9rem, 4vw, 3.6rem);
    line-height: 1.06;
}

.section-subtitle {
    color: var(--theme-muted);
}

.bg-gray {
    background: var(--theme-panel);
}

.section.bg-gray::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--theme-panel);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.card {
    background: var(--theme-surface);
    border: 2px solid var(--theme-line);
    border-radius: 0;
    box-shadow: none;
}

.card-hover:hover {
    border-color: #b9b9b5;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

.icon-circle,
.process-icon,
.service-icon {
    border-radius: 0;
    background: var(--theme-primary);
    box-shadow: none;
}

.card-title,
.process-title {
    color: #1f1f1f;
}

.card-text,
.process-text,
.testimonial-quote,
.testimonial-business {
    color: var(--theme-muted);
}

.price,
.link,
.stars {
    color: var(--theme-primary);
}

.link:hover {
    color: var(--theme-primary-deep);
}

.step-number {
    background: var(--theme-dark);
    color: #fff;
    border-radius: 0;
}

.cta-section {
    background: linear-gradient(120deg, #141414 0%, #232323 100%);
    border-top: 4px solid var(--theme-primary);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.footer {
    background: #111;
    border-top: 4px solid var(--theme-primary);
}

.footer-links a {
    color: #bebebc;
}

.footer-links a:hover,
.footer-contact a,
.footer-contact a:hover {
    color: #ff9c7b;
}

.footer-bottom {
    border-top-color: #2f2f2f;
    color: #9b9b9b;
}

.form-label {
    color: #1f1f1f;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    border-radius: 0;
    border: 2px solid #cfcfc9;
    background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.table th {
    background: #efefeb;
    color: #1f1f1f;
}

.table tr:hover {
    background: #f1f1ed;
}

.promo-banner {
    background: linear-gradient(120deg, #1a1a1a 0%, #272727 100%);
    border-bottom: 2px solid var(--theme-primary);
}

.promo-banner-badge {
    background: var(--theme-primary);
    color: #111;
    border-radius: 0;
}

.promo-banner-text strong {
    color: #ffb49b;
}

.promo-banner-cta {
    background: var(--theme-primary);
    color: #111;
    border-radius: 0;
}

.promo-banner-cta:hover {
    background: #ff8f68;
}

@media (max-width: 1023px) {
    .header {
        border-bottom-width: 3px;
    }

    .hero {
        min-height: 80vh;
    }

    .section {
        padding: 4rem 1rem;
    }
}

/* =========================================================
   Phase 2 page structure polish (safe: no JS logic changes)
========================================================= */

.page-hero {
    min-height: 460px;
    padding: 9rem 1rem 4.5rem;
}

.page-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-left: 4px solid var(--theme-primary);
    background: rgba(255, 107, 53, 0.12);
    color: #ffbfaa;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero .hero-buttons {
    margin-top: 2rem;
}

.page-hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.page-hero .btn-outline:hover {
    border-color: #fff;
    background: #fff;
    color: #111;
}

.page-services .section,
.page-pricing .section,
.page-contact .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.page-services .section:first-of-type,
.page-pricing .section:first-of-type,
.page-contact .section:first-of-type {
    padding-top: 5rem;
}

.page-services .card,
.page-pricing .card,
.page-contact .card {
    border-width: 2px;
}

.page-services h2[style],
.page-services h3[style],
.page-pricing h2[style],
.page-pricing h3[style],
.page-contact h2[style],
.page-contact h3[style] {
    color: #1f1f1f !important;
}

.page-services p[style*="color: #6b7280"],
.page-services span[style*="color: #6b7280"],
.page-pricing p[style*="color:#6b7280"],
.page-pricing p[style*="color: #6b7280"],
.page-pricing td[style*="color:#6b7280"],
.page-pricing span[style*="color: #6b7280"],
.page-contact p[style*="color:#6b7280"],
.page-contact div[style*="color:#6b7280"],
.page-contact span[style*="color:#6b7280"] {
    color: var(--theme-muted) !important;
}

.page-services p[style*="color: #40B5AD"],
.page-services span[style*="color: #40B5AD"],
.page-pricing p[style*="color:#40B5AD"],
.page-pricing td[style*="color:#40B5AD"],
.page-contact a[style*="color:#40B5AD"] {
    color: var(--theme-primary) !important;
}

.industrial-form-card {
    border-top: 4px solid var(--theme-primary);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
}

.contact-side-card {
    border-left: 4px solid rgba(255, 107, 53, 0.45);
}

.contact-fast-card {
    background: linear-gradient(120deg, #ff6b35 0%, #ff8f68 100%) !important;
    border-color: #ff8f68 !important;
}

.page-contact #emailFallback {
    border-radius: 0 !important;
    border-color: rgba(255, 107, 53, 0.35) !important;
    background: rgba(255, 107, 53, 0.08) !important;
}

@media (max-width: 900px) {
    .page-hero {
        min-height: 380px;
        padding-top: 8.5rem;
    }

    .page-hero .hero-buttons {
        flex-direction: column;
    }
}

/* =========================================================
   Teal to Orange normalization
   Keeps existing markup; remaps legacy teal accents.
========================================================= */

/* Inline teal text/link colors */
[style*="color:#40B5AD"],
[style*="color: #40B5AD"],
[style*="color:#40b5ad"],
[style*="color: #40b5ad"],
[style*="color:#4fd1c5"],
[style*="color: #4fd1c5"] {
    color: var(--theme-primary) !important;
}

/* Inline teal backgrounds */
[style*="background:#40B5AD"],
[style*="background: #40B5AD"],
[style*="background:#40b5ad"],
[style*="background: #40b5ad"],
[style*="background:#4fd1c5"],
[style*="background: #4fd1c5"],
[style*="background: linear-gradient(135deg, #40B5AD 0%, #5fc5bd 100%)"],
[style*="background:linear-gradient(135deg, #40B5AD 0%, #5fc5bd 100%)"],
[style*="background: linear-gradient(135deg, #40b5ad 0%, #5fc5bd 100%)"],
[style*="background:linear-gradient(135deg, #40b5ad 0%, #5fc5bd 100%)"] {
    background: var(--theme-primary) !important;
}

/* Inline teal borders */
[style*="border-color:#40B5AD"],
[style*="border-color: #40B5AD"],
[style*="border-color:#40b5ad"],
[style*="border-color: #40b5ad"],
[style*="border: 2px solid #40B5AD"],
[style*="border:2px solid #40B5AD"],
[style*="border: 2px solid #40b5ad"],
[style*="border:2px solid #40b5ad"] {
    border-color: var(--theme-primary) !important;
}

/* Teal SVG strokes/fills embedded in markup */
svg[stroke="#40B5AD"],
svg[stroke="#40b5ad"],
path[stroke="#40B5AD"],
path[stroke="#40b5ad"],
line[stroke="#40B5AD"],
line[stroke="#40b5ad"],
polyline[stroke="#40B5AD"],
polyline[stroke="#40b5ad"],
circle[stroke="#40B5AD"],
circle[stroke="#40b5ad"],
rect[stroke="#40B5AD"],
rect[stroke="#40b5ad"] {
    stroke: var(--theme-primary) !important;
}

svg[fill="#40B5AD"],
svg[fill="#40b5ad"],
path[fill="#40B5AD"],
path[fill="#40b5ad"],
circle[fill="#40B5AD"],
circle[fill="#40b5ad"],
rect[fill="#40B5AD"],
rect[fill="#40b5ad"] {
    fill: var(--theme-primary) !important;
}

/* Contact page mini-style block fallback */
.contact-row svg {
    color: var(--theme-primary) !important;
}

/* Blog */
.blog-hero {
    min-height: 360px;
    padding-top: 9rem;
    padding-bottom: 4rem;
}

.blog-list {
    max-width: 900px;
    margin: 0 auto;
}

.affiliate-video-section {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

.affiliate-video-container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.affiliate-video-section .container {
    max-width: 1400px;
}

.affiliate-video-wrap {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.affiliate-video-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.affiliate-video-player {
    width: 100%;
    display: flex;
    justify-content: center;
}

.affiliate-video-player iframe {
    display: block;
    width: min(100%, 1160px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #0f172a;
}

.affiliate-video-player video {
    width: min(100%, 1120px);
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #0f172a;
    object-fit: contain;
}

.blog-card {
    border: 1px solid #e5e7eb;
}

.blog-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog-article-page {
    padding-top: 7rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: #1A3A52;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.blog-article {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.blog-header p {
    color: #374151;
    margin-top: 0.75rem;
}

.blog-article h1 {
    font-size: 2rem;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 0.75rem;
}

.blog-article h2 {
    margin-top: 2rem;
    margin-bottom: 0.9rem;
    color: #1A3A52;
    font-size: 1.5rem;
}

.blog-article h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 1.1rem;
}

.blog-article p,
.blog-article li {
    color: #374151;
}

.blog-article ul,
.blog-article ol {
    margin-left: 1.2rem;
}

.blog-article section {
    margin-top: 1.5rem;
}

.blog-feature-image {
    margin: 1.25rem 0 0;
}

.blog-feature-image img {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.blog-toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.blog-toc h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.blog-toc ol {
    margin-left: 1.2rem;
}

.blog-toc a {
    color: #1A3A52;
    text-decoration: none;
}

.blog-toc a:hover {
    text-decoration: underline;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.table-wrap th,
.table-wrap td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.table-wrap th {
    background: #f3f4f6;
    color: #111827;
}

.blog-cta-box {
    background: linear-gradient(135deg, rgba(64, 181, 173, 0.1), rgba(26, 58, 82, 0.1));
    border: 1px solid rgba(64, 181, 173, 0.3);
    border-radius: 10px;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 300px;
        padding-top: 7.5rem;
    }

    .affiliate-video-wrap {
        padding: 1rem;
    }

    .blog-article {
        padding: 1rem;
    }

    .blog-article h1 {
        font-size: 1.65rem;
    }
}
