/* ==========================================================================
   Reyes & Son Electric LLC - Decisive i18n & Translation Safeguards Stylesheet
   ========================================================================== */

/* 1. Global Box Sizing & Fluid Overflow Protection */
*, *::before, *::after {
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 2. Absolute Brand & Icon Translation Safeguards */
.notranslate, [translate="no"] {
    -webkit-translate: no !important;
    translate: no !important;
}

/* Material Symbols Icon Protection */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    shrink: 0;
    user-select: none;
}

/* 3. Min-Width Zero Fix for All Flex/Grid Containers */
div, section, header, main, footer, article, nav, .i18n-card, .i18n-badge, .icon-text-container {
    min-width: 0 !important;
}

/* 4. Fluid Clamp Typography Scaling */
.hero-headline {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.8rem, 4.5vw, 3.8rem) !important;
    line-height: 1.25 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

.hero-subheadline {
    font-family: 'Hanken Grotesk', sans-serif !important;
    font-size: clamp(0.95rem, 2vw, 1.25rem) !important;
    line-height: 1.6 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

.badge-text {
    font-size: clamp(0.7rem, 1.5vw, 0.875rem) !important;
    line-height: 1.3 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(0.85rem, 1.6vw, 1.1rem) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    hyphens: auto !important;
    text-align: center;
    max-width: 100%;
}

/* 5. Purely Content-Driven Card Layout */
.i18n-card-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.25rem !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 56rem !important;
    margin-top: 1.5rem !important;
}

.i18n-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 220px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: fit-content !important;
    padding: 1.25rem 1rem !important;
    box-sizing: border-box !important;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .i18n-card {
        flex: 1 1 100% !important;
    }
}

/* 6. Button & Badge Dynamic Growth */
.i18n-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    padding: 0.625rem 1.25rem !important;
    min-height: 2.5rem !important;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 0.5rem !important;
    min-width: 0 !important;
}

/* 7. Icon Text Alignment Safeguards */
.icon-text-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
