/**
 * Retrofit OS — brand theme (Bootstrap 5)
 */
.theme-ecosurv {
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --primary: #0c244c;
    --secondary: #87d142;
    --secondary-hover: #76b83a;
    --accent-teal: #69da96;
    --accent-blue: #3f81f7;
    --bs-primary: #0c244c;
    --bs-primary-rgb: 12, 36, 76;
    --bs-success: #87d142;
    --bs-success-rgb: 135, 209, 66;
    --radius-sm: 0.5rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.25rem;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --surface-card: #ffffff;
    --border-subtle: rgba(15, 23, 42, 0.1);
    --accent: var(--secondary);
    --accent-hover: var(--secondary-hover);
    --accent-muted: rgba(135, 209, 66, 0.14);
    --text: #0c244c;
    --text-secondary: #64748b;
    --shadow-soft: 0 14px 35px -16px rgba(0, 0, 0, 0.18);
    --shadow-green: 0 8px 22px rgba(135, 209, 66, 0.35);
    --section-y: clamp(2.5rem, 8vw, 3rem);
    font-family: var(--font-sans);
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.theme-ecosurv main {
    flex: 1;
}

/* Brand utilities */
.theme-ecosurv .gradient-brand {
    background: linear-gradient(135deg, var(--secondary), var(--accent-teal));
}

.theme-ecosurv .text-gradient-brand {
    background: linear-gradient(135deg, var(--secondary), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-ecosurv .text-primary-brand {
    color: var(--primary) !important;
}

.theme-ecosurv .text-secondary-brand {
    color: var(--secondary) !important;
}

/* Navigation */
.theme-ecosurv .navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0 !important;
}

.theme-ecosurv .navbar .navbar-toggler {
    border-color: rgba(12, 36, 76, 0.15);
}

.theme-ecosurv .navbar .navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2812, 36, 76, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.theme-ecosurv .brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent-teal));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(135, 209, 66, 0.32);
}

.theme-ecosurv .navbar-brand-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(240px, 58vw);
    object-fit: contain;
}

.theme-ecosurv .navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem !important;
}

.theme-ecosurv .navbar .nav-link:hover,
.theme-ecosurv .navbar .nav-link:focus {
    color: var(--primary) !important;
    background: transparent;
}

.theme-ecosurv .navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(12, 36, 76, 0.06);
}

.theme-ecosurv .nav-login {
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
}

.theme-ecosurv .nav-login:hover {
    color: var(--primary) !important;
    opacity: 0.85;
}

/* Buttons */
.theme-ecosurv .btn-accent {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--secondary);
    --bs-btn-border-color: var(--secondary);
    --bs-btn-hover-bg: var(--secondary-hover);
    --bs-btn-hover-border-color: var(--secondary-hover);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: var(--secondary-hover);
    --bs-btn-active-border-color: var(--secondary-hover);
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-green);
}

.theme-ecosurv .btn-accent:hover {
    transform: translateY(-1px);
}

.theme-ecosurv .btn-primary-brand {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: #0a1f3f;
    --bs-btn-hover-border-color: #0a1f3f;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #081933;
    --bs-btn-active-border-color: #081933;
    font-weight: 600;
    border: none;
}

.theme-ecosurv .btn-primary-brand:hover {
    opacity: 0.92;
}

.theme-ecosurv .btn-outline-light {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: var(--primary);
    --bs-btn-hover-bg: var(--surface);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-color: var(--primary);
    --bs-btn-active-bg: var(--surface-2);
    --bs-btn-active-border-color: var(--primary);
    font-weight: 700;
    border-width: 2px;
}

.theme-ecosurv .contact-quick-enquiries {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
}

.theme-ecosurv .contact-quick-enquiry-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-ecosurv .contact-quick-enquiry {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-ecosurv .contact-quick-enquiry::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
    opacity: 0.45;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.theme-ecosurv .contact-quick-enquiry::after {
    content: "→";
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.theme-ecosurv .contact-quick-enquiry:hover {
    border-color: rgba(135, 209, 66, 0.45);
    background: var(--accent-muted);
    transform: translateX(2px);
}

.theme-ecosurv .contact-quick-enquiry:hover::before {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(135, 209, 66, 0.18);
}

.theme-ecosurv .contact-quick-enquiry:hover::after {
    color: var(--secondary-hover);
    transform: translateX(2px);
}

.theme-ecosurv .contact-quick-enquiry:focus-visible {
    outline: none;
    border-color: rgba(135, 209, 66, 0.55);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.theme-ecosurv .contact-quick-enquiry.active {
    border-color: rgba(135, 209, 66, 0.55);
    background: var(--accent-muted);
    box-shadow: 0 0 0 3px rgba(135, 209, 66, 0.12);
    transform: none;
}

.theme-ecosurv .contact-quick-enquiry.active::before {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(135, 209, 66, 0.22);
}

.theme-ecosurv .contact-quick-enquiry.active::after {
    content: "✓";
    color: var(--secondary-hover);
    font-weight: 700;
    transform: none;
}

/* Hero */
.theme-ecosurv .hero {
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
}

.theme-ecosurv .hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(105, 218, 150, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

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

.theme-ecosurv .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.theme-ecosurv .hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
}

.theme-ecosurv .hero-badge > span[aria-hidden="true"]:first-child:not(.hero-badge-dot) {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
    font-size: 0;
    overflow: hidden;
    display: inline-block;
}

.theme-ecosurv .display-hero {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--primary);
}

.theme-ecosurv .lead-lg {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 38rem;
    line-height: 1.7;
}

.theme-ecosurv .hero-check {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.theme-ecosurv .hero-check-icon {
    color: var(--secondary);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.theme-ecosurv .hero-platform-image {
    display: block;
    width: 100%;
    height: auto;
    background: #f8fafc;
}

/* Sections */
.theme-ecosurv .section {
    padding: var(--section-y) 0;
}

.theme-ecosurv .section-band-a {
    background-color: #ffffff;
}

.theme-ecosurv .section-band-b {
    background-color: var(--surface);
}

.theme-ecosurv .section-band-c {
    background-color: var(--surface-2);
}

.theme-ecosurv .section-band-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.theme-ecosurv .section-band-primary .stat-value {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.theme-ecosurv .section-band-primary .stat-label {
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0;
}

.theme-ecosurv .section-band-primary h1,
.theme-ecosurv .section-band-primary h2,
.theme-ecosurv .section-band-primary h3,
.theme-ecosurv .section-band-primary h4,
.theme-ecosurv .section-band-primary h5,
.theme-ecosurv .section-band-primary h6 {
    color: #ffffff;
}

.theme-ecosurv .section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.theme-ecosurv .card-surface {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-ecosurv .card-surface:hover {
    transform: translateY(-3px);
    border-color: rgba(135, 209, 66, 0.35);
}

.theme-ecosurv .icon-round {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    color: var(--secondary-hover);
    font-size: 1.25rem;
}

.theme-ecosurv .text-secondary {
    color: var(--text-secondary) !important;
}

/* Footer */
.theme-ecosurv .footer {
    background: #0f172a;
    color: #ffffff;
}

.theme-ecosurv .footer-brand-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: min(220px, 70vw);
    object-fit: contain;
}

.theme-ecosurv .footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.theme-ecosurv .footer-text {
    color: #94a3b8;
}

.theme-ecosurv .footer-text a {
    color: #94a3b8;
    text-decoration: none;
}

.theme-ecosurv .footer-text a:hover {
    color: var(--secondary);
}

.theme-ecosurv .footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
}

.theme-ecosurv .footer-links a:hover {
    color: var(--secondary);
}

.theme-ecosurv .footer-social {
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.theme-ecosurv .footer-social:hover {
    background: var(--primary);
    color: #ffffff;
}

.theme-ecosurv .footer-divider {
    border-color: #1e293b !important;
}

.theme-ecosurv .footer-bottom {
    color: #64748b;
    font-size: 0.875rem;
}

.theme-ecosurv .footer-bottom a {
    color: #64748b;
    text-decoration: none;
}

.theme-ecosurv .footer-bottom a:hover {
    color: #ffffff;
}

/* Forms */
.theme-ecosurv .form-control,
.theme-ecosurv .form-select {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text);
}

.theme-ecosurv .form-control:focus {
    background: #ffffff;
    border-color: rgba(135, 209, 66, 0.55);
    box-shadow: 0 0 0 3px var(--accent-muted);
    color: var(--text);
}

.theme-ecosurv .modal-content {
    background: #ffffff;
    color: var(--text);
}

.theme-ecosurv .modal-header .btn-close {
    filter: none;
}

.theme-ecosurv .alert-accent {
    background: #f1f5f9;
    color: var(--primary);
    border: 1px solid #e2e8f0;
}

.theme-ecosurv .quote-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    height: 100%;
}

.theme-ecosurv .carousel-control-prev-icon,
.theme-ecosurv .carousel-control-next-icon {
    filter: none;
    opacity: 0.7;
}

.theme-ecosurv .carousel-indicators [data-bs-target] {
    background-color: var(--secondary);
    opacity: 0.35;
}

.theme-ecosurv .carousel-indicators .active {
    opacity: 1;
}

.theme-ecosurv .partner-logo-tile {
    min-height: 110px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.theme-ecosurv .partner-logo-wordmark {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.theme-ecosurv .partner-logo-img {
    max-width: 100%;
    max-height: 3.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.theme-ecosurv .partner-logo-tile:hover .partner-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.theme-ecosurv a.text-accent {
    color: var(--accent-blue) !important;
}

.theme-ecosurv a.text-accent:hover {
    color: var(--primary) !important;
}

.theme-ecosurv .about-award-label {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--primary);
    background: var(--accent-muted);
    border: 1px solid rgba(135, 209, 66, 0.24);
}

.theme-ecosurv .about-value-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    display: block;
}

.theme-ecosurv h1,
.theme-ecosurv h2,
.theme-ecosurv h3,
.theme-ecosurv h4,
.theme-ecosurv h5,
.theme-ecosurv h6 {
    color: var(--primary);
}

/* Insights post type badges */
.theme-ecosurv .insights-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.75rem;
}

.theme-ecosurv .insights-badge-news {
    background: #e8f4ff;
    color: #0b5cab;
    border: 1px solid rgba(11, 92, 171, 0.15);
}

.theme-ecosurv .insights-badge-blog {
    background: #eef7ee;
    color: #1f6b2c;
    border: 1px solid rgba(31, 107, 44, 0.15);
}

.theme-ecosurv .insights-badge-software_update {
    background: #eef4ff;
    color: #3f81f7;
    border: 1px solid rgba(63, 129, 247, 0.2);
}

.theme-ecosurv .insights-card-title {
    color: var(--primary);
}

.theme-ecosurv .insights-card-title:hover {
    color: var(--secondary-hover);
}

/* Insights filter tabs */
.theme-ecosurv .insights-filter {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.theme-ecosurv .insights-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: transparent;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-ecosurv .insights-filter-link:hover {
    background: var(--surface);
    border-color: rgba(12, 36, 76, 0.12);
    color: var(--primary);
}

.theme-ecosurv .insights-filter-link:focus-visible {
    outline: none;
    border-color: rgba(135, 209, 66, 0.55);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.theme-ecosurv .insights-filter-link.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
    box-shadow: var(--shadow-green);
}

.theme-ecosurv .insights-filter-link.active:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.theme-ecosurv .insights-draft-preview-banner {
    background: #fff8e6;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.theme-ecosurv .post-body-content h2,
.theme-ecosurv .post-body-content h3,
.theme-ecosurv .post-body-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.theme-ecosurv .post-body-content p:last-child {
    margin-bottom: 0;
}

.theme-ecosurv .post-body-content img,
.theme-ecosurv .post-body-content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
