/*
Theme Name:   Salient Child Theme (FKB Publishing Solutions)
Theme URI:    https://www.fkbconsulting.com/en
Description:  Custom Editorial Authority styling for FKB Publishing Solutions. Rejects generic SaaS styling in favor of sharp corners, publishing-aware grid rhythm, and local font pairings.
Author:       Antigravity Rebuild Specialist
Author URI:   https://www.fkbconsulting.com/
Template:     salient
Version:      1.0.0
Text Domain:  salient-child
*/

/* ==========================================================================
   PURPOSE: Implements FKB Editorial Authority style overrides (sharp corners, ink text, parchment surfaces)
   PLACEMENT: salient-child/style.css
   DEPENDENCIES: ThemeNectar Salient parent styles
   RISKS: Minor rendering overrides on specific page builder elements
   ROLLBACK: Deactivate child theme or remove specific block overrides
   ========================================================================== */

/* 1. Core Visual Tokens & Backgrounds */
body {
    background-color: #FAF7F1 !important; /* Warm off-white */
    color: #1C1B19 !important; /* Ink Rich */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Strict Sharp Shape Language */
*,
*::before,
*::after,
.nectar-btn,
.nectar-button,
input,
select,
textarea,
button,
.wpcf7-form-control,
.wpcf7-submit,
.vc_row,
.vc_column,
.fancy-box,
.service-card,
.flickity-slider,
.nectar_sticky_content_sections,
.details,
details,
img,
.single-post,
.post-featured-img {
    border-radius: 0px !important; /* Hard, flat edges */
}

/* 3. Typography Hierarchy & Pairings */
h1, h2, h3, h4, h5, h6,
.cormorant-serif {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    color: #1C1B19 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.25 !important;
}

body, p, span, li, a, td, th, label,
.source-sans {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    line-height: 1.6 !important;
}

/* Multilingual Arabic Typography Support */
html[lang="ar"] body,
html[lang="ar"] p,
html[lang="ar"] span,
html[lang="ar"] li,
html[lang="ar"] a,
html[lang="ar"] td,
html[lang="ar"] th,
html[lang="ar"] label {
    font-family: 'Noto Naskh Arabic', 'IBM Plex Sans Arabic', serif !important;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* Label-Caps for overlines, tables, and micro-headers */
.label-caps {
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #A8853B !important; /* Brass highlight */
}

/* 4. Custom Button Styling (Brand Violet & Brass overrides) */
.fkb-primary-btn {
    background-color: #422963 !important; /* Brand Violet */
    color: #FAF7F1 !important; /* Warm off-white */
    border: 1px solid #422963 !important;
    padding: 14px 28px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-block;
    text-align: center;
}

.fkb-primary-btn:hover {
    background-color: #1C1B19 !important; /* Ink Rich hover */
    border-color: #1C1B19 !important;
    color: #FAF7F1 !important;
}

.fkb-secondary-btn {
    background-color: transparent !important;
    color: #1C1B19 !important; /* Ink */
    border: 1px solid #1C1B19 !important;
    padding: 14px 28px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-block;
    text-align: center;
}

.fkb-secondary-btn:hover {
    background-color: #EDE5D6 !important; /* Parchment hover */
    color: #422963 !important; /* Brand Violet text */
    border-color: #422963 !important;
}

/* 5. Form Element Custom Underline Mode */
.fkb-form input[type="text"],
.fkb-form input[type="email"],
.fkb-form input[type="tel"],
.fkb-form input[type="url"],
.fkb-form select,
.fkb-form textarea {
    border: 0 !important;
    border-bottom: 1px solid rgba(28, 27, 25, 0.25) !important;
    background: transparent !important;
    padding: 12px 0 !important;
    color: #1C1B19 !important;
    box-shadow: none !important;
    width: 100% !important;
    transition: border-bottom-color 0.2s ease !important;
}

.fkb-form input:focus,
.fkb-form select:focus,
.fkb-form textarea:focus {
    border-bottom: 1px solid #422963 !important; /* Brand Violet border-bottom focus */
}

/* 6. Accordion & Details Overrides */
details.fkb-accordion {
    background-color: #FAF7F1 !important;
    border: 1px solid rgba(28, 27, 25, 0.15) !important;
    margin-bottom: 12px;
    width: 100%;
}

details.fkb-accordion summary {
    padding: 20px 24px !important;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.fkb-accordion summary::-webkit-details-marker {
    display: none;
}

details.fkb-accordion .accordion-content {
    padding: 0 24px 24px 24px !important;
    color: #444748 !important; /* Muted Ink secondary */
}

/* 7. Real HTML Table Styling */
.fkb-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
}

table.fkb-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
}

table.fkb-table thead tr {
    background-color: #EDE5D6 !important; /* Parchment Header background */
    border-bottom: 2px solid #1C1B19 !important;
}

table.fkb-table th {
    padding: 14px 18px !important;
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #1C1B19 !important;
}

table.fkb-table td {
    padding: 18px !important;
    border-bottom: 1px solid rgba(28, 27, 25, 0.15) !important;
    color: #1C1B19 !important;
    font-size: 14px !important;
}

table.fkb-table tbody tr:hover {
    background-color: rgba(237, 229, 214, 0.3) !important; /* Muted hover */
}

/* 8. Editorial Spacing Dividers */
.brass-line {
    width: 32px;
    height: 2px;
    background-color: #A8853B !important; /* Brass accent line */
    margin-bottom: 16px;
}

.editorial-divider {
    border-bottom: 1px solid rgba(28, 27, 25, 0.12) !important;
    margin: 40px 0;
}

/* 9. Header & Footer Adjustments */
#header-outer {
    border-bottom: 1px solid rgba(28, 27, 25, 0.1) !important;
    background-color: #FAF7F1 !important;
}

#footer-outer {
    background-color: #1C1B19 !important; /* Deep charcoal/ink background */
    color: #FAF7F1 !important; /* Warm off-white text */
}

#footer-outer a {
    color: rgba(250, 247, 241, 0.7) !important;
}

#footer-outer a:hover {
    color: #A8853B !important; /* Brass hover state */
}

#footer-outer .footer-widget-title {
    color: #A8853B !important; /* Brass accents */
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
}

/* ==========================================================================
   PURPOSE: Stitch UI Redesign visual helpers & layout overrides
   PLACEMENT: salient-child/style.css
   DEPENDENCIES: Material icons / symbols
   RISKS: Visual rendering conflicts on specific viewports
   ROLLBACK: Remove these classes
   ========================================================================== */

/* 10. Parchment Frames & Editorial Shadows */
.parchment-frame {
    padding: 6px !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 20px -4px rgba(0,0,0,0.1) !important;
    box-sizing: border-box !important;
}

.soft-stone-border {
    border: 1px solid #E6E2DE !important;
}

.editorial-shadow {
    box-shadow: 0 10px 30px -10px rgba(36, 23, 47, 0.15) !important;
}

/* 11. Problem Grid Cards */
.fkb-problem-card {
    background-color: #FAF7F1 !important;
    padding: 40px !important;
    border: 1px solid #E6E2DE !important;
    box-shadow: 0 10px 30px -10px rgba(36, 23, 47, 0.1) !important;
    transition: border-color 0.3s ease, transform 0.3s ease !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.fkb-problem-card:hover {
    border-color: #A8853B !important; /* Brass accent hover */
    transform: translateY(-2px) !important;
}

/* 12. Coordinated Workflow Steps */
.fkb-steps-container {
    border: 1px solid #E6E2DE !important;
    background-color: #FAF7F1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.fkb-step-card {
    padding: 32px !important;
    transition: background-color 0.3s ease !important;
    box-sizing: border-box !important;
    flex: 1 1 20% !important;
    border-right: 1px solid #E6E2DE !important;
}

.fkb-step-card:last-child {
    border-right: 0 !important;
}

.fkb-step-card:hover {
    background-color: #F7F3EF !important; /* surface-container-low */
}

@media (max-width: 991px) {
    .fkb-steps-container {
        flex-direction: column !important;
    }
    .fkb-step-card {
        flex: 1 1 100% !important;
        border-right: 0 !important;
        border-bottom: 1px solid #E6E2DE !important;
    }
    .fkb-step-card:last-child {
        border-bottom: 0 !important;
    }
}

/* 13. Service Grid Cards */
.fkb-service-card {
    background-color: #F7F3EF !important; /* bg-surface-container-low */
    padding: 48px !important;
    border: 1px solid #E6E2DE !important;
    box-shadow: 0 10px 30px -10px rgba(36, 23, 47, 0.12) !important;
    transition: border-color 0.3s ease, transform 0.3s ease !important;
    height: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.fkb-service-card:hover {
    border-color: #A8853B !important;
}

.fkb-service-icon {
    margin-bottom: 40px !important;
    width: 64px !important;
    height: 64px !important;
    background-color: #FAF7F1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #E6E2DE !important;
}

.fkb-service-icon .material-symbols-outlined {
    color: #A8853B !important;
    font-size: 32px !important;
}

.fkb-service-link {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #24172F !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    margin-top: auto !important;
}

.fkb-service-link .material-symbols-outlined {
    margin-left: 12px !important;
    font-size: 14px !important;
    transition: transform 0.2s ease !important;
}

.fkb-service-card:hover .fkb-service-link {
    color: #A8853B !important;
}

.fkb-service-card:hover .fkb-service-link .material-symbols-outlined {
    transform: translateX(4px) !important;
    color: #A8853B !important;
}

/* 14. Custom Checklists */
.fkb-check-list {
    margin-top: 24px !important;
    list-style: none !important;
    padding-left: 0 !important;
}

.fkb-check-list li {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 16px !important;
    font-size: 16px !important;
    color: #1C1B19 !important;
    line-height: 1.5 !important;
}

.fkb-check-list li .material-symbols-outlined {
    color: #A8853B !important;
    margin-right: 16px !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
    user-select: none !important;
}

/* 15. Accent & Dark Theme Specialty Buttons */
.fkb-accent-btn {
    background-color: #A8853B !important; /* Brass background */
    border: 1px solid #A8853B !important;
    color: #FAF7F1 !important; /* Warm off-white */
    padding: 14px 28px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
}

.fkb-accent-btn:hover {
    background-color: #FAF7F1 !important; /* Hover to off-white */
    border-color: #FAF7F1 !important;
    color: #24172F !important; /* Text deep aubergine */
}

.fkb-light-secondary-btn {
    background-color: transparent !important;
    color: #FAF7F1 !important;
    border: 1px solid rgba(250, 247, 241, 0.3) !important;
    padding: 14px 28px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
}

.fkb-light-secondary-btn:hover {
    background-color: rgba(250, 247, 241, 0.1) !important;
    border-color: #FAF7F1 !important;
    color: #FAF7F1 !important;
}

/* 16. Reach Strip statistics borders */
.fkb-reach-col {
    text-align: center !important;
    border-right: 1px solid rgba(28, 27, 25, 0.15) !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    .fkb-reach-col {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(28, 27, 25, 0.15) !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }
    div[class*="vc_column_inner"]:last-child .fkb-reach-col {
        border-bottom: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}


