/*
Theme Name: Sales Ruby Theme
Theme URI: https://wpastra.com/
Template: astra
Author: Megaone
Author URI: http://megaone.geeaig.com
Description: Child Theme for Astra
Version: 1.0.0
Text Domain: sales-ruby-theme
*/
/* Theme Name: SalesRuby Child
*/

/* Theme Name: SalesRuby Child
*/

:root {
    /* --- User Provided Elementor Kit Colors --- */
    /* UPDATED: Primary is now darker for better contrast and readability */
    --e-global-color-primary: #1861CD; 
    --e-global-color-secondary: #54595F;
    --e-global-color-text: #54595F;
    --e-global-color-accent: #FF2A2A;
    
    /* Saved the bright blue for accents/hovers */
    --e-global-color-bright-blue: #2A75FF; 
    --e-global-color-white: #FFFFFF;
    --e-global-color-black: #000000;

    /* --- AST Global Mappings --- */
    --ast-global-color-0: var(--e-global-color-primary);
    --ast-global-color-1: var(--e-global-color-secondary);
    --ast-global-color-2: var(--e-global-color-secondary);
    --ast-global-color-3: #4B4F58;
    --ast-global-color-4: #F5F5F5;
    --ast-global-color-5: #FFFFFF;
    --ast-global-color-6: #F2F5F7;
    --ast-global-color-7: #0520db;
    --ast-global-color-8: #000000;
    
    /* --- Typography --- */
    --e-global-typography-primary-font-family: "Roboto";
    --e-global-typography-primary-font-weight: 600;
    --e-global-typography-secondary-font-family: "Roboto Slab";
    --ld-typography-font-family: inter, -apple-system, roboto, ubuntu, sans-serif;
}

/* --- Base Body Overrides --- */
body {
    font-family: var(--ld-typography-font-family);
    background-color: var(--e-global-color-white);
    color: var(--e-global-color-text);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* --- Utility Classes using new Variables --- */
.text-primary { color: var(--e-global-color-primary) !important; }
.text-primary-light { color: #8ed1fc; /* Fallback based on kit */ }
.bg-primary { background-color: var(--e-global-color-primary) !important; }
.bg-secondary { background-color: var(--e-global-color-secondary) !important; }
.text-accent { color: var(--e-global-color-accent) !important; }

/* --- Typography & Layout Utilities --- */
.container-custom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", serif;
    color: var(--e-global-color-black); /* Ensure headers are dark, not blue */
}

/* --- Sophisticated Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-parallax {
    overflow: hidden;
}
.image-parallax img {
    transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.image-parallax:hover img {
    transform: scale(1.05);
}

/* --- Elegant Button (Updated Colors) --- */
.btn-elegant {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    /* FORCE White text to prevent "Blue on Blue" */
    color: #ffffff !important; 
    
    background-color: var(--e-global-color-primary); 
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    border: none;
    text-decoration: none; /* remove underline */
}

/* Hover Effect: Slide in the Bright Blue */
.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--e-global-color-bright-blue); 
    transition: width 0.4s ease;
    z-index: -1;
}
.btn-elegant:hover::before {
    width: 100%;
}

.btn-elegant:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* Secondary Button (Outline) */
.btn-outline {
    border: 2px solid var(--e-global-color-primary); /* Slightly thicker border */
    
    /* FORCE Primary text on transparent background */
    color: var(--e-global-color-primary) !important;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--e-global-color-primary) !important;
    color: #ffffff !important; /* White text on hover is mandatory */
}
.btn-outline::before {
    display: none;
}

/* --- Video Container --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Decorative Line --- */
.deco-line {
    display: inline-block;
    width: 60px;
    height: 3px;
    background-color: var(--e-global-color-primary);
    margin-bottom: 1.5rem;
}

/* --- Blog Carousel Styles (NEW) --- */
.sr-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 1rem 0 3rem 0; /* space for shadow */
}

.sr-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px; /* Hide scrollbar visual on some OS */
    -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
    scrollbar-width: none; /* Firefox */
}
.sr-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.sr-carousel-card {
    flex: 0 0 320px; /* Fixed width for cards */
    max-width: 85vw; /* Responsive on mobile */
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Mobile Manual Sliding support is native via overflow-x above */
@media (max-width: 768px) {
    .sr-carousel-track {
        scroll-snap-type: x mandatory;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .sr-carousel-card {
        scroll-snap-align: center;
    }
}
/* --- Google Review Card Styles --- */
.google-review-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}