/* SparkDev Studio — Digital Marketing Agency UI */

:root {
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-height: 76px;
    --agency-dark: #0a2540;
    --agency-surface: #ffffff;
    --agency-muted: #64748b;
    --agency-border: #e2e8f0;
    --agency-soft: #f1f5f9;
    /* Readable text on light vs dark surfaces */
    --text-on-light: #0f172a;
    --text-muted-on-light: #475569;
    --text-on-dark: #ffffff;
    --text-muted-on-dark: rgba(255, 255, 255, 0.82);
    --text-subtle-on-dark: rgba(255, 255, 255, 0.65);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body.agency-site {
    padding-top: 0 !important;
    background: #fff !important;
    color: var(--text-on-light);
    font-family: var(--font-body);
}

/* Bootstrap / utility muted text on light pages */
body.agency-site .text-muted {
    color: var(--text-muted-on-light) !important;
}

body.agency-site label,
body.agency-site .form-label {
    color: var(--text-on-light);
    font-weight: 500;
}

body.agency-site::before {
    display: none !important;
}

body.agency-site h1,
body.agency-site h2,
body.agency-site h3,
body.agency-site h4,
body.agency-site h5,
body.agency-site h6 {
    font-family: var(--font-heading);
}

/* Default headings on light surfaces (overrides redesign.css global heading color) */
body.agency-site .page-hero h1,
body.agency-site .agency-section h2,
body.agency-site .agency-section h3,
body.agency-site .service-section h2,
body.agency-site .service-section h3,
body.agency-site .service-section h4,
body.agency-site .service-category h2,
body.agency-site .section-heading,
body.agency-site .contact-card h3,
body.agency-site .contact-form-wrapper h2,
body.agency-site .company-details h3,
body.agency-site .quote-header h1,
body.agency-site .technologies-used h4 {
    color: var(--text-on-light) !important;
}

body.agency-site p {
    color: var(--text-muted-on-light);
}

h1, h2, h3, h4, h5, h6,
.section-title,
.agency-brand em {
    font-family: var(--font-heading);
}

/* ——— Header ——— */
.agency-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--agency-border);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.agency-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.agency-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    position: relative;
}

.agency-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .agency-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        gap: 2.25rem;
    }
}

.agency-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--agency-dark);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.agency-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.agency-brand em {
    font-style: normal;
    color: var(--primary-mid);
    font-weight: 600;
}

.agency-nav {
    display: none;
    align-items: center;
}

.agency-nav a,
.agency-mobile-nav a {
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.agency-nav a:hover,
.agency-nav a.active,
.agency-mobile-nav a:hover,
.agency-mobile-nav a.active {
    color: var(--primary-mid);
}

.agency-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.agency-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--agency-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.agency-toggle span {
    display: block;
    height: 2px;
    background: var(--agency-dark);
    border-radius: 1px;
    transition: 0.3s;
}

/* Transparent header over dark homepage hero */
body.agency-site:has(.agency-hero) .agency-header {
    background: rgba(10, 37, 64, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.agency-site:has(.agency-hero) .agency-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--agency-border);
}

body.agency-site:has(.agency-hero) .agency-header:not(.is-scrolled) .agency-brand {
    color: #fff;
}

body.agency-site:has(.agency-hero) .agency-header:not(.is-scrolled) .agency-brand em {
    color: var(--accent);
}

body.agency-site:has(.agency-hero) .agency-header:not(.is-scrolled) .agency-nav a {
    color: rgba(255, 255, 255, 0.88);
}

body.agency-site:has(.agency-hero) .agency-header:not(.is-scrolled) .agency-nav a:hover,
body.agency-site:has(.agency-hero) .agency-header:not(.is-scrolled) .agency-nav a.active {
    color: #fff;
}

body.agency-site:has(.agency-hero) .agency-header:not(.is-scrolled) .agency-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

body.agency-site:has(.agency-hero) .agency-header:not(.is-scrolled) .agency-toggle span {
    background: #fff;
}

.agency-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0 1rem;
    border-top: 1px solid var(--agency-border);
    margin-top: -4px;
}

.agency-mobile-nav a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--agency-soft);
}

.agency-mobile-nav .btn-agency-primary {
    margin-top: 0.75rem;
}

/* Buttons */
.btn-agency-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    background: linear-gradient(135deg, var(--primary-mid), var(--accent));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(45, 136, 195, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-agency-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 136, 195, 0.4);
    color: #fff;
}

.btn-agency-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-agency-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-agency-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    background: #fff;
    color: var(--primary-mid);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--agency-border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-agency-outline:hover {
    border-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(45, 136, 195, 0.12);
}

/* ——— Hero ——— */
.agency-hero {
    position: relative;
    padding: calc(var(--header-height) + 3.5rem) 0 5rem;
    margin-top: calc(-1 * var(--header-height));
    overflow: hidden;
    background: var(--agency-dark);
    color: #fff;
}

.agency-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(80, 192, 230, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(45, 136, 195, 0.2) 0%, transparent 50%),
        linear-gradient(160deg, #0a2540 0%, #1e5b94 50%, #0c3b64 100%);
}

.agency-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
    background-size: 48px 48px;
}

.agency-hero .container {
    position: relative;
    z-index: 2;
}

.agency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.agency-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff !important;
    margin-bottom: 1.25rem;
}

.agency-hero h1 .text-highlight {
    background: linear-gradient(90deg, var(--accent), #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agency-hero .lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted-on-dark) !important;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* ——— Dark surfaces: always light text ——— */
.agency-hero,
.agency-cta-band,
.agency-site .service-benefits,
.footer.spark-footer {
    color: var(--text-on-dark);
}

.agency-hero h1,
.agency-hero h2,
.agency-hero h3,
.agency-cta-band h2,
.agency-site .service-benefits h3,
.agency-site .service-benefits h4,
.agency-site .service-benefits p,
.agency-site .service-benefits span,
.agency-site .service-benefits .benefit-item {
    color: var(--text-on-dark) !important;
}

.agency-cta-band p {
    color: var(--text-muted-on-dark) !important;
}

.agency-trust-row span {
    color: var(--text-subtle-on-dark);
}

.footer.spark-footer h4 {
    color: var(--text-on-dark) !important;
}

.footer.spark-footer a {
    color: var(--text-muted-on-dark);
}

.footer.spark-footer .footer-bottom,
.footer.spark-footer .footer-bottom p {
    color: var(--text-subtle-on-dark);
}

.agency-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.agency-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.agency-trust-row strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.agency-trust-row span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agency-hero-visual {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.agency-hero-visual img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(80, 192, 230, 0.3));
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    padding: calc(var(--header-height) + 2.75rem) 0 3rem;
    background: var(--agency-soft);
    border-bottom: 1px solid var(--agency-border);
    overflow: hidden;
}

.page-hero .section-kicker {
    margin-bottom: 0.65rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(80, 192, 230, 0.08));
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--agency-dark) !important;
    margin-bottom: 0.75rem;
}

.page-hero h1 .text-highlight {
    color: var(--primary-mid);
    -webkit-text-fill-color: var(--primary-mid);
}

.page-hero .lead {
    color: var(--text-muted-on-light) !important;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0;
}

/* Sections */
.agency-section {
    padding: 5rem 0;
}

.agency-section.alt {
    background: var(--agency-soft);
}

.section-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-mid);
    margin-bottom: 0.75rem;
}

.agency-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--agency-dark);
    margin-bottom: 1rem;
}

.agency-section .section-desc {
    color: var(--text-muted-on-light);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
}

.agency-section .section-desc.center {
    margin-left: auto;
    margin-right: auto;
}

/* Service cards */
.agency-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.agency-card {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.agency-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(80, 192, 230, 0.45);
    color: inherit;
}

.agency-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(45, 136, 195, 0.12), rgba(80, 192, 230, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-mid);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.agency-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--agency-dark);
    margin-bottom: 0.5rem;
}

.agency-card p {
    font-size: 0.9rem;
    color: var(--text-muted-on-light);
    line-height: 1.65;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.agency-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-mid);
}

.agency-card:hover .agency-card-link {
    color: var(--accent);
}

/* Stats strip */
.agency-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.agency-stat-box {
    text-align: center;
    padding: 1.25rem;
    background: var(--agency-soft);
    border-radius: 12px;
    border: 1px solid var(--agency-border);
}

.agency-stat-box strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-mid);
    line-height: 1;
}

.agency-stat-box span {
    font-size: 0.75rem;
    color: var(--agency-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
    display: block;
}

/* Tech pills */
.agency-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.agency-tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--agency-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agency-tech-pill:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(45, 136, 195, 0.12);
}

.agency-tech-pill i {
    color: var(--primary-mid);
}

/* CTA band */
.agency-cta-band {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, var(--agency-dark) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: #fff;
}

.agency-cta-band h2 {
    color: #fff !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.agency-cta-band p {
    color: var(--text-muted-on-dark) !important;
    max-width: 480px;
    margin: 0 auto 1.75rem;
    line-height: 1.7;
}

/* About image */
.agency-about-img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--agency-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.agency-about-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    min-height: 360px;
}

/* Footer override */
.footer.spark-footer {
    background: var(--agency-dark) !important;
    background-image: none !important;
}

/* Inner page sections — clean agency cards (override glass mesh) */
.agency-site .service-section {
    padding: 4.5rem 0;
    background: #fff;
}

.agency-site .service-section:nth-child(even) {
    background: var(--agency-soft);
    backdrop-filter: none;
}

.agency-site .service-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--agency-dark);
    letter-spacing: -0.02em;
}

.agency-site .service-section .lead {
    color: var(--text-muted-on-light) !important;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.agency-site .feature-card h4 {
    color: var(--text-on-light) !important;
    font-weight: 700;
}

.agency-site .feature-card p {
    color: var(--text-muted-on-light) !important;
}

.agency-site .technologies-used h4 {
    color: var(--text-on-light) !important;
}

.agency-site .tech-item p {
    color: var(--text-on-light);
    font-weight: 500;
}

.agency-site .feature-card,
.agency-site .pricing-card,
.agency-site .tech-item {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.agency-site .feature-card::before,
.agency-site .pricing-card::before,
.agency-site .tech-item::before {
    display: none !important;
}

.agency-site .feature-card:hover,
.agency-site .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: rgba(80, 192, 230, 0.4);
}

.agency-site .service-benefits {
    background: var(--agency-dark);
    border: none;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(10, 37, 64, 0.2);
    color: var(--text-on-dark);
}

.agency-site .service-benefits .benefit-icon {
    color: var(--accent);
}

.agency-site .technologies-used {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    backdrop-filter: none;
}

.agency-site .contact-info {
    margin-top: 0;
    padding: 3rem 0 4rem;
}

.agency-site .contact-form-wrapper h2,
.agency-site .company-details h3 {
    font-weight: 800;
    color: var(--text-on-light) !important;
}

.agency-site .contact-card p,
.agency-site .company-details p {
    color: var(--text-muted-on-light) !important;
}

.agency-site .contact-card h3 {
    color: var(--text-on-light) !important;
}

.agency-site .btn-primary {
    background: linear-gradient(135deg, var(--primary-mid), var(--accent));
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    box-shadow: 0 4px 14px rgba(45, 136, 195, 0.3);
    color: var(--text-on-dark) !important;
}

.agency-site .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    box-shadow: 0 8px 20px rgba(45, 136, 195, 0.35);
}

.agency-site .quote-page-main {
    padding: 3rem 0 5rem;
    background: #fff;
}

.agency-site .quote-header h1 {
    font-weight: 800;
    color: var(--text-on-light) !important;
    letter-spacing: -0.02em;
}

.agency-site .quote-logo {
    color: var(--text-on-light);
}

/* Pricing page */
.agency-site .service-category {
    background: #fff;
}

.agency-site .service-category:nth-child(even) {
    background: var(--agency-soft);
    backdrop-filter: none;
}

.agency-site .pricing-features {
    background: #fff;
}

.agency-site .pricing-features li {
    color: var(--text-on-light) !important;
}

.agency-site .pricing-footer {
    background: var(--agency-soft);
    border-top: 1px solid var(--agency-border);
}

.agency-site .pricing-footer .btn {
    color: var(--text-on-dark) !important;
}

.agency-site .pricing-card .pricing-header h3 {
    color: var(--text-on-dark) !important;
}

.agency-site .btn-segment {
    background: #fff;
    border: 1px solid var(--agency-border);
    color: var(--text-on-light);
    backdrop-filter: none;
    box-shadow: none;
}

.agency-site .btn-segment:hover,
.agency-site .btn-segment.active {
    background: linear-gradient(135deg, var(--primary-mid), var(--accent));
    color: var(--text-on-dark) !important;
    border-color: transparent;
}

/* About page cards */
.agency-site .company-overview-card {
    background: var(--agency-dark);
    border: none;
    box-shadow: 0 16px 40px rgba(10, 37, 64, 0.2);
}

.agency-site .company-overview-card p {
    color: var(--text-muted-on-dark) !important;
}

.agency-site .tech-category,
.agency-site .mission-box,
.agency-site .vision-box,
.agency-site .value-item,
.agency-site .team-member {
    background: #fff;
    border: 1px solid var(--agency-border);
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.agency-site .tech-category-body,
.agency-site .mission-vision-body,
.agency-site .value-body,
.agency-site .team-body {
    background: #fff;
}

.agency-site .tech-category-body p,
.agency-site .mission-vision-body p,
.agency-site .value-body p {
    color: var(--text-muted-on-light) !important;
}

.agency-site .tech-category-header,
.agency-site .mission-vision-header,
.agency-site .value-header,
.agency-site .team-header {
    background: linear-gradient(135deg, var(--primary-mid), var(--accent));
}

.agency-site .tech-category-header h3,
.agency-site .mission-vision-header h3,
.agency-site .value-header h3,
.agency-site .team-header h3 {
    color: var(--text-on-dark) !important;
}

.agency-site .team-body .role {
    color: var(--primary-mid);
}

.agency-site .social-icon {
    background-color: var(--primary-mid);
    color: var(--text-on-dark) !important;
}

.agency-site .specialization-tag {
    color: var(--text-on-light);
    background-color: rgba(45, 136, 195, 0.12);
}

.agency-site .tabs {
    background: #fff;
    border: 1px solid var(--agency-border);
    backdrop-filter: none;
}

.agency-site .tab-button {
    color: var(--primary-mid);
}

.agency-site .tab-button.active {
    color: var(--text-on-dark);
}

/* Forms on agency pages */
.agency-site .form-control {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 10px;
    backdrop-filter: none;
}

.agency-site .contact-form-wrapper,
.agency-site .contact-card,
.agency-site .quote-container {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: none;
}

.agency-site .contact-card::before,
.agency-site .service-card::before {
    display: none !important;
}

@media (max-width: 991px) {
    .agency-hero {
        padding: calc(var(--header-height) + 2.5rem) 0 4rem;
        text-align: center;
    }

    body.agency-site:has(.agency-hero) .agency-header {
        background: rgba(255, 255, 255, 0.96);
        border-bottom-color: var(--agency-border);
    }

    body.agency-site:has(.agency-hero) .agency-header .agency-brand,
    body.agency-site:has(.agency-hero) .agency-header .agency-nav a {
        color: var(--agency-dark);
    }

    body.agency-site:has(.agency-hero) .agency-header .agency-toggle {
        border-color: var(--agency-border);
        background: #fff;
    }

    body.agency-site:has(.agency-hero) .agency-header .agency-toggle span {
        background: var(--agency-dark);
    }

    .agency-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .agency-hero-cta {
        justify-content: center;
    }

    .agency-trust-row {
        justify-content: center;
    }

    .agency-hero-visual {
        margin-top: 2rem;
    }

    .agency-stats {
        grid-template-columns: 1fr;
    }
}

/* 404 page */
body.error-page.agency-site {
    background: var(--agency-dark) !important;
}

body.error-page.agency-site .error-card {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 20px;
    backdrop-filter: none;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

body.error-page.agency-site .error-card::before {
    display: none;
}

body.error-page.agency-site .error-card h1 {
    color: var(--text-on-light) !important;
}

body.error-page.agency-site .error-card p {
    color: var(--text-muted-on-light) !important;
}

body.error-page.agency-site .error-buttons .btn-primary {
    color: var(--text-on-dark) !important;
}

@media (prefers-reduced-motion: reduce) {
    .agency-card:hover,
    .btn-agency-primary:hover {
        transform: none;
    }
}
