/* Custom Overrides for RMendes Tech Solutions */
/* Redesigned Color Palette - Accessibility & Harmony */

:root {
    /* Primary Color: Vivid Red (High Visibility) */
    /* WCAG AA Compliant on White */
    --primary-color: #D90429; 
    
    /* Hover State: Darker Red */
    --primary-hover: #B00020;

    /* Secondary Color: Dark Navy (Professional/Tech) */
    /* Excellent contrast for Headings */
    --secondary-color: #2B2D42;
    
    /* Accent/Backgrounds */
    --bg-light: #EDF2F4;
    --text-body: #444444;
    --text-light: #ffffff;

    /* CTAs */
    --cta-whatsapp: #25d366; /* Official WhatsApp Green */
    --cta-hover: #128c7e;
    
    /* Semantic Colors */
    --danger: #D90429;
    --success: #25d366;
}

/* General Overrides */
body {
    color: var(--text-body);
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}

/* Navbar */
#header .logo a {
    color: var(--text-light);
    text-shadow: none;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
    color: var(--primary-color);
}

.navbar .getstarted {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar .getstarted:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* Hero Section */
#hero {
    /* Using Dark Navy for Hero Background to make Red pop */
    background: #02050a; 
}

#hero h1 {
    text-shadow: none;
    color: #ffffff;
}

#hero h2 {
    color: #e0e0e0;
}

#hero .btn-get-started {
    background: var(--cta-whatsapp);
    border: 2px solid var(--cta-whatsapp);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

#hero .btn-get-started:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
}

#hero .btn-watch-video {
    font-size: 16px;
    display: inline-block; /* Ensure it behaves like a button */
    transition: 0.5s;
    margin-left: 25px;
    color: #fff;
    font-weight: 600;
    border: 2px solid #fff; /* Outline style */
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
}

#hero .btn-watch-video:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

#hero .btn-watch-video i {
    color: #fff;
    font-size: 32px;
    line-height: 0;
    margin-right: 8px;
}

#hero .btn-watch-video:hover i {
    color: #fff;
}

/* Section Titles */
.section-title h2 {
    color: var(--primary-color);
    text-shadow: none;
}

.section-title h2::after {
    background: var(--primary-color);
}

/* Services / Icon Box */
.services .icon-box .icon i {
    color: var(--primary-color);
}

.services .icon-box:hover h4 a {
    color: var(--primary-color);
}

/* Problems Cards */
.card-title.text-danger {
    color: var(--primary-color) !important; 
}

.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Why Us / Accordion */
.why-us .content h3 {
    color: var(--primary-color);
}

.why-us .accordion-list span {
    color: var(--primary-color);
}

.why-us .accordion-list a.collapsed:hover {
    color: var(--primary-color);
}

.why-us .accordion-list .icon-help {
    color: var(--primary-color);
}

/* Contact Form */
.contact .contact-about h3 {
    font-size: 36px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.contact .contact-about p {
    font-size: 14px;
    line-height: 24px;
    font-family: "Jost", sans-serif;
    color: #5e5e5e;
}

.contact .social-links {
    padding-bottom: 20px;
}

.contact .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
    border: 1px solid var(--primary-color);
}

.contact .social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.contact .info {
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: #fff;
}

.contact .info i {
    color: var(--primary-color);
    float: left;
    width: 44px;
    height: 44px;
    background: #fdf1f3; /* Light red background */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.contact .info h4 {
    padding: 0 0 0 60px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact .info p {
    padding: 0 0 0 60px;
    margin-bottom: 0;
    font-size: 14px;
    color: #5e5e5e;
}

.contact .info .email p {
    padding-top: 5px;
}

.contact .info .social-links {
    padding-left: 60px;
}

.contact .info .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #333;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
    margin-right: 10px;
}

.contact .info .social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.contact .info .email:hover i, .contact .info .address:hover i, .contact .info .phone:hover i {
    background: var(--primary-color);
    color: #fff;
}

.contact .php-email-form {
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding: 30px;
    background: #fff;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .php-email-form .form-group {
    padding-bottom: 8px;
}

.contact .php-email-form .validate {
    display: none;
    color: red;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-size: 13px;
}

.contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .error-message br + br {
    margin-top: 25px;
}

.contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
}

.contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    -webkit-animation: animate-loading 1s linear infinite;
    animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input, .contact .php-email-form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    border-radius: 4px;
}

.contact .php-email-form input:focus, .contact .php-email-form textarea:focus {
    border-color: var(--primary-color);
}

.contact .php-email-form input {
    height: 44px;
}

.contact .php-email-form textarea {
    padding: 10px 12px;
}

.contact .php-email-form button[type="submit"] {
    background: var(--primary-color);
    border: 0;
    padding: 10px 24px;
    color: #fff;
    transition: 0.4s;
    border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
    background: var(--primary-hover);
}

@-webkit-keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Footer (Updated to match design) */
#footer {
    background: #E9EDF3; /* Light gray/blue background */
    color: #444444;
}

#footer .footer-top {
    background: #E9EDF3; /* Ensure consistency */
    padding: 60px 0 30px 0;
}

#footer .footer-top .footer-contact h3 {
    color: var(--primary-color); /* Red */
    font-size: 24px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#footer .footer-top .footer-contact h3 span {
    color: var(--primary-color); /* Also red as per image */
}

#footer .footer-top .footer-contact p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    font-family: "Jost", sans-serif;
    color: #5e5e5e;
}

#footer .footer-top h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color); /* Red headings */
    position: relative;
    padding-bottom: 12px;
}

#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-top .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
    padding-top: 0;
}

#footer .footer-top .footer-links ul li i {
    padding-right: 2px;
    color: var(--primary-color); /* Red bullets */
    font-size: 12px; /* Smaller chevron */
    line-height: 1;
}

#footer .footer-top .footer-links ul li a {
    color: #5e5e5e; /* Dark gray links */
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
}

#footer .footer-top .footer-links ul li a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

#footer .footer-top .social-links a {
    font-size: 18px;
    display: inline-block;
    background: var(--primary-color); /* Red background */
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%; /* Circular */
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

#footer .footer-bottom {
    background: #E9EDF3;
    padding-top: 30px;
    padding-bottom: 30px;
    color: #5e5e5e;
    border-top: 1px solid #dcdcdc; /* Subtle divider */
}

#footer .copyright {
    float: left;
}

#footer .credits {
    float: right;
    font-size: 13px;
}

/* Floating WhatsApp */
#div-fixa {
    background: #25d366;
    border: none;
}

#div-fixa span {
    color: white !important;
}

/* Portfolio Filters */
.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li.filter-active {
    background: var(--primary-color);
    color: #fff;
}

/* Back to top */
.back-to-top {
    background: var(--primary-color);
}

.back-to-top:hover {
    background: var(--primary-hover);
}

/* Process Step Timeline */
.process-step {
    padding: 30px 20px;
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    background: #fff;
    height: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-step .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f3f5fa;
    border-radius: 50%;
    transition: 0.3s;
}

.process-step:hover .icon {
    background: var(--primary-color);
}

.process-step:hover .icon i {
    color: #fff !important;
}

.process-step h4 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--secondary-color);
}

/* Accessibility Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
