/**
 * Theme Name: Eduma Saluto Child Theme Layouts
 * Description: Global stylesheet for repeating layout styles and Elementor Flexbox Containers.
 * Width Specification: Outer containers 1920px (100vw), Inner Content Containers 1290px max-width.
 */

:root {
    /* Color Palette */
    --saluto-gold-primary: #efbd58;
    --saluto-gold-secondary: #f2c150;
    --saluto-gold-border: rgba(242, 193, 80, 0.2);
    --saluto-bg-dark: #111111;
    --saluto-bg-dark-section: #181818;
    --saluto-bg-card-dark: #1e1e1e;
    --saluto-bg-light: #fcfaf2;
    --saluto-text-light: #fcfaf2;
    --saluto-text-dark: #333333;
    --saluto-text-sand: #D6CFBA;
    --saluto-text-muted: #a0a0a0;
    
    /* Layout Constants */
    --saluto-container-width: 1290px;
    --saluto-font-title: "Montserrat", "Source Sans Pro", sans-serif;
    --saluto-font-body: "Source Sans Pro", sans-serif;
    
    /* Transitions */
    --saluto-transition-fast: all 0.25s ease-in-out;
    --saluto-transition-normal: all 0.35s ease-in-out;
}

/* ==========================================================================
   Layout Containers (Flexbox-based)
   ========================================================================== */

/* Outer full-width container (Section wrapper) */
.saluto-section-wrapper {
    width: 100%;
    margin: 0;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.saluto-section-wrapper.bg-dark {
    background-color: var(--saluto-bg-dark);
    color: var(--saluto-text-light);
}

.saluto-section-wrapper.bg-dark-section {
    background-color: var(--saluto-bg-dark-section);
    color: var(--saluto-text-light);
}

.saluto-section-wrapper.bg-light {
    background-color: var(--saluto-bg-light);
    color: var(--saluto-text-dark);
}

/* Inner content container - constrained to 1290px */
.saluto-content-container {
    width: 100%;
    max-width: var(--saluto-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   Flexbox Helper Classes
   ========================================================================== */

.saluto-d-flex {
    display: flex !important;
}

.saluto-flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.saluto-flex-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.saluto-row-reverse {
    flex-direction: row-reverse;
}

.saluto-justify-center {
    justify-content: center;
}

.saluto-justify-between {
    justify-content: space-between;
}

.saluto-justify-start {
    justify-content: flex-start;
}

.saluto-align-center {
    align-items: center;
}

.saluto-align-stretch {
    align-items: stretch;
}

.saluto-gap-sm {
    gap: 15px;
}

.saluto-gap-md {
    gap: 30px;
}

.saluto-gap-lg {
    gap: 60px;
}

/* Flexbox Column Widths */
.saluto-col-100 {
    width: 100%;
}

.saluto-col-50 {
    width: calc(50% - 15px);
}

.saluto-col-60 {
    width: calc(60% - 20px);
}

.saluto-col-40 {
    width: calc(40% - 20px);
}

.saluto-col-33 {
    width: calc(33.333% - 20px);
}

/* ==========================================================================
   Modular Templates Styling
   ========================================================================== */

/* 1. Hero Section */
.saluto-hero-container {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.saluto-hero-title {
    font-family: var(--saluto-font-title);
    color: var(--saluto-text-sand);
    font-size: 2.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.saluto-hero-divider {
    width: 60px;
    height: 2px;
    background-color: var(--saluto-gold-primary);
    margin: 15px auto;
}

.saluto-hero-subtitle {
    font-family: var(--saluto-font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: var(--saluto-text-light);
}

/* 2. Alternating Text/Image Column Layouts */
.saluto-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.saluto-text-content h3 {
    font-family: var(--saluto-font-title);
    color: var(--saluto-text-sand);
    font-size: 1.85rem;
    margin-bottom: 20px;
}

.saluto-text-content p {
    font-family: var(--saluto-font-body);
    line-height: 1.7;
    margin-bottom: 20px;
}

.saluto-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--saluto-gold-border);
}

.saluto-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--saluto-transition-normal);
}

.saluto-image-wrapper:hover img {
    transform: scale(1.03);
}

/* 3. Three-Column Card Grid */
.saluto-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.saluto-card {
    background-color: var(--saluto-bg-card-dark);
    border: 1px solid var(--saluto-gold-border);
    border-radius: 4px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--saluto-transition-fast);
    box-sizing: border-box;
    margin-bottom: 30px;
}

.saluto-card:hover {
    transform: translateY(-5px);
    border-color: var(--saluto-gold-secondary);
    box-shadow: 0 8px 25px rgba(242, 193, 80, 0.1);
}

.saluto-card-header h4 {
    font-family: var(--saluto-font-title);
    color: var(--saluto-text-sand);
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.saluto-card-body p {
    font-family: var(--saluto-font-body);
    color: var(--saluto-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.saluto-card-link {
    font-family: var(--saluto-font-title);
    color: var(--saluto-gold-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: var(--saluto-transition-fast);
}

.saluto-card-link::after {
    content: " →";
    margin-left: 5px;
    transition: var(--saluto-transition-fast);
}

.saluto-card-link:hover {
    color: #ffffff;
}

.saluto-card-link:hover::after {
    transform: translateX(4px);
}

/* 4. Left border heading (Site Brand Accent) */
.saluto-title-accent {
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--saluto-gold-primary);
}

/* 5. Custom CTA Buttons */
.saluto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--saluto-font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--saluto-transition-fast);
    text-decoration: none;
}

.saluto-btn-gold {
    background-color: var(--saluto-gold-primary);
    color: #000000;
    border: 1px solid var(--saluto-gold-primary);
}

.saluto-btn-gold:hover {
    background-color: var(--saluto-gold-secondary);
    border-color: var(--saluto-gold-secondary);
    color: #000000;
    box-shadow: 0 4px 15px rgba(242, 193, 80, 0.2);
}

.saluto-btn-outline {
    background-color: transparent;
    color: var(--saluto-gold-primary);
    border: 1px solid var(--saluto-gold-primary);
}

.saluto-btn-outline:hover {
    background-color: var(--saluto-gold-primary);
    color: #000000;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Viewports */
@media screen and (max-width: 1024px) {
    .saluto-section-wrapper {
        padding: 60px 0;
    }
    
    .saluto-col-50,
    .saluto-col-60,
    .saluto-col-40 {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .saluto-col-33 {
        width: calc(50% - 15px);
    }
    
    .saluto-row-reverse {
        flex-direction: flex-direction; /* Reset reverse row on tablets */
    }
    
    .saluto-gap-lg {
        gap: 30px;
    }
}

/* Mobile Viewports */
@media screen and (max-width: 768px) {
    .saluto-section-wrapper {
        padding: 40px 0;
    }
    
    .saluto-flex-row {
        flex-direction: column;
    }
    
    .saluto-col-33 {
        width: 100%;
    }
    
    .saluto-hero-title {
        font-size: 1.75rem;
    }
    
    .saluto-hero-subtitle {
        font-size: 1.05rem;
    }
    
    .saluto-text-content h3 {
        font-size: 1.5rem;
    }
    
    .saluto-card {
        padding: 20px;
    }
}
