/* ===================================================================
 * VA-TEK Compatibility Bridge CSS
 * Maps va-tek-* class names to the main.css design system.
 * Loaded AFTER main.css — adds va-tek-* selectors as aliases.
 * =================================================================== */

/* ----- Container ----- */
.va-tek-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}
.va-tek-container--narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Main Content ----- */
.va-tek-main,
.site-main {
    min-height: 60vh;
    padding-top: var(--space-8, 2rem);
    padding-bottom: var(--space-12, 3rem);
}

/* ----- Section Labels (from page templates) ----- */
.va-tek-faq-archive,
.va-tek-blog-archive,
.va-tek-case-study-archive,
.va-tek-single-case-study,
.va-tek-single-post,
.va-tek-downloads {
    /* Inherit from .site-main */
}

/* ----- Page Hero (used in page templates) ----- */
.va-tek-page-hero,
.page-hero {
    background: var(--color-dark-bg, #0F172A);
    color: var(--color-text-inverse, #FFFFFF);
    padding: 4rem 0;
    text-align: center;
}
.va-tek-page-hero__title,
.page-hero__title {
    font-size: var(--text-4xl, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.va-tek-page-hero__subtitle,
.page-hero__subtitle {
    font-size: var(--text-lg, 1.125rem);
    color: var(--color-text-light, #94A3B8);
    max-width: 700px;
    margin: 0 auto;
}

/* ----- Buttons (map va-tek-btn to .btn) ----- */
.va-tek-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body, Inter, system-ui, sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.va-tek-btn-primary,
.btn-primary {
    background: var(--color-primary, #1A56DB);
    color: #fff;
    border-color: var(--color-primary, #1A56DB);
}
.va-tek-btn-primary:hover,
.btn-primary:hover {
    background: var(--color-primary-hover, #1E40AF);
    border-color: var(--color-primary-hover, #1E40AF);
    color: #fff;
}

.va-tek-btn-outline,
.btn-outline {
    background: transparent;
    color: var(--color-primary, #1A56DB);
    border-color: var(--color-primary, #1A56DB);
}
.va-tek-btn-outline:hover,
.btn-outline:hover {
    background: var(--color-primary, #1A56DB);
    color: #fff;
}

.va-tek-btn-gold {
    background: var(--color-accent, #EA580C);
    color: #fff;
    border-color: var(--color-accent, #EA580C);
}
.va-tek-btn-gold:hover {
    background: var(--color-accent-hover, #C2410C);
    color: #fff;
}

.va-tek-btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}
.va-tek-btn-whatsapp:hover {
    background: #128C7E;
    color: #fff;
}

.va-tek-btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.va-tek-btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.va-tek-btn-lg,
.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}
.va-tek-btn-sm,
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}
.va-tek-btn-block,
.btn-block {
    display: flex;
    width: 100%;
}

/* ----- Section wrappers + titles ----- */
/* .section and .section-title are used throughout the page templates
   (page-products-overview, page-product-category, page-contact, single-product,
   archive-*) but were never actually defined in any stylesheet — grep the whole
   theme and you get zero hits. Every one of those sections was silently falling
   back to bare h2 margins, which is a large part of why the product pages read
   as unstructured. Define them once, here. */
.section {
    padding: 4rem 0;
}
.section-title {
    font-size: clamp(1.375rem, 1rem + 1.4vw, 1.875rem);
    font-weight: var(--font-weight-bold, 700);
    line-height: 1.25;
    color: var(--color-text, #1E293B);
    margin: 0 0 1rem;
    text-wrap: balance;
}
.section-title--center,
.text-center .section-title {
    text-align: center;
}

/* ----- Breadcrumbs ----- */
/* Both spellings are in use: the templates emit .va-tek-breadcrumb (singular),
   while this file only ever styled the plural. Add the singular so the
   breadcrumb under a page hero is not left as an unstyled inline list. */
.va-tek-breadcrumb,
.va-tek-breadcrumbs,
.breadcrumbs {
    font-size: 0.875rem;
    color: var(--color-text-light, #94A3B8);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
}
.va-tek-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.va-tek-breadcrumb li + li::before {
    content: '/';
    margin-right: 0.4rem;
    opacity: 0.55;
}
.va-tek-breadcrumb a,
.va-tek-breadcrumbs a,
.breadcrumbs a {
    color: var(--color-text-light, #94A3B8);
    text-decoration: none;
}
.va-tek-breadcrumb a:hover,
.va-tek-breadcrumbs a:hover,
.breadcrumbs a:hover {
    color: var(--color-primary, #1A56DB);
}
.va-tek-breadcrumb [aria-current],
.va-tek-breadcrumbs [aria-current] {
    color: var(--color-text-secondary, #64748B);
}

/* ----- Section Lead Text ----- */
.va-tek-section-lead,
.section-lead {
    font-size: var(--text-lg, 1.125rem);
    color: var(--color-text-secondary, #64748B);
    max-width: 700px;
    text-align: center;
    margin: 0 auto 2rem;
}

/* ----- Grids ----- */
.va-tek-grid-2,
.va-tek-grid-3,
.va-tek-grid-4 {
    display: grid;
    gap: 1.5rem;
}
.va-tek-grid-2 { grid-template-columns: repeat(2, 1fr); }
.va-tek-grid-3 { grid-template-columns: repeat(3, 1fr); }
.va-tek-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .va-tek-grid-3,
    .va-tek-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .va-tek-grid-2,
    .va-tek-grid-3,
    .va-tek-grid-4 { grid-template-columns: 1fr; }
}

/* ----- Featured / Trust Bar ----- */
.va-tek-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1.5rem;
}

/* ----- View All Link ----- */
.va-tek-view-all {
    text-align: center;
    margin-top: 2rem;
}

/* ----- WhatsApp Float ----- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
}

/* ----- 404 Page ----- */
.va-tek-404-page {
    text-align: center;
    padding: 4rem 0;
}
.va-tek-404-page h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primary, #1A56DB);
    margin: 0;
}
.va-tek-404-search-submit {
    margin-top: 1rem;
}

/* ----- Content Area Default ----- */
/* Vertical rhythm only — must NOT reset the horizontal padding that
   .va-tek-container provides, otherwise content touches the viewport
   edge on screens narrower than the container max-width. */
.va-tek-content-area {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .va-tek-page-hero,
    .page-hero {
        padding: 2.5rem 0;
    }
    .va-tek-page-hero__title,
    .page-hero__title {
        font-size: 1.75rem;
    }
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.25rem;
    }
}
