/* Overrides for Tool Interactive */

/* 
   Make the footer background cover the entire section width.
   Original issue: background-size was not set to cover, leaving gaps on wide screens.
*/
/* 
   Make the footer background cover the entire section width.
   Original issue: background-size was not set to cover, leaving gaps on wide screens.
*/
/* 
   Make the footer background cover the entire section width.
   Original issue: background-size was not set to cover, leaving gaps on wide screens.
*/
.footer {
    /* Set height to 50vh as requested */
    height: 50vh !important;
    max-height: none !important;

    /* Center content vertically */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    position: relative !important;
    /* Enable absolute positioning for children */

    /* Move center UP by adding bottom padding */
    padding-bottom: 80px !important;
    background: none !important;
    overflow: hidden !important;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-image: none;
    /* Removed photo */
    z-index: 0;
}

/* Ensure #parceiros stays at the bottom */
.footer #parceiros {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    z-index: 1 !important;
}

.footer #parceiros img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer #parceiros img:hover {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
    opacity: 1;
}

/* Reduce content padding to accommodate smaller height */
.footer .area-contact {
    padding: 0 !important;
    /* Remove padding as we are using flex center */
    text-shadow: none !important;
    width: 90%;
    position: relative !important;
    z-index: 1 !important;
    /* Ensure container width is respected */
    /* Ensure container width is respected */
}

/* Vertically align columns within the contact area */
.footer .area-contact .row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    /* Remove default row margin */
}

/* 
   Hero Section Overrides
   - Replace video background with dark gray
   - Logo styling
*/
.video-bg {
    background-color: #1a1a1a !important;
    /* Darker gray */
    opacity: 1 !important;
    /* Ensure visibility since video had some opacity settings */
}

/* Ensure the background container itself is visible if it relied on video/img sizing */
#slide .video-bg {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Logo styling updates */
#featured .logo-tool {
    /* Ensure the new image logo behaves responsively */
    max-width: 180px !important;
    height: auto;
    display: block;
    /* Ensure it sits on its own line if not already */
    margin: 0px auto 80px auto !important;
    /* Centered with bottom spacing */
    padding: 0 !important;
    /* Override inline padding if necessary */
}


/* =========================================
   DARK MODE CONVERSION
   ========================================= */

/* Global Backgrounds & Text */
body,
html {
    background: #121212 !important;
    /* Material Dark Background */
    color: #ECEFF1 !important;
}

/* Override existing gradients */
body.bg-site-degrade,
.bg-site-degrade {
    background: #121212 !important;
    filter: none !important;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #FFFFFF !important;
}

p,
span,
li,
blockquote,
.flow-text {
    color: #B0BEC5 !important;
}

/* Title Effect Inversion 
   - Starts Darker (Grey) -> Turns White
*/
.effect-title {
    color: #242627 !important;
    /* Blue Grey 600 - Visible on dark, but darker than white */
    white-space: nowrap !important;
}

.effect-title:before {
    color: #f6f6f6 !important;
    /* Turns White */
}

a {
    color: #48565c !important;
    /* Light Blue for better contrast on dark */
    transition: color 0.3s ease;
}

a:hover {
    color: #4FC3F7 !important;
}

/* Specific Utility Overrides */
.black-text {
    color: #FFFFFF !important;
    /* Invert explicit black text */
}

.white-text {
    color: #FFFFFF !important;
    /* Keep white text white */
}

/* Navigation */
nav {
    background-color: transparent !important;
    /* Preserve transparency */
}

/* Add spacing between menu items */
.menu-navigator {
    margin-bottom: 20px !important;
    /* Increase space between items */
}

/* 
   Menu Text Effect Color Sync
   - Base color (background text): #9e9e9e (Mid Grey) - Requested update
   - Hover/Fill color (foreground): #ECEFF1 (White)
*/
nav #menu ul li a {
    color: #9e9e9e !important;
    /* Mid Grey */
}

nav #menu ul li a:before {
    color: #ECEFF1 !important;
    /* White fill color */
}

/* Hide 'Get in Touch' link in menu */
nav .link-contact {
    display: none !important;
}

/* Hamburger Menu (Patty) */
/* The patty uses ::before and ::after pseudo-elements */
#toggle .patty {
    background-color: #ECEFF1 !important;
}

#toggle .patty:before,
#toggle .patty:after {
    background-color: #ECEFF1 !important;
}

/* Nav Info Text */
div.navigation .info-nav {
    color: #90A4AE !important;
}

/* Section Specifics */

/* Intro / About */
section#about p {
    color: #B0BEC5 !important;
}

section#about .about-text {
    margin-top: 0px;
}

/* Culture Section */
section#culture {
    background-color: #1a1a1a !important;
    height: 50vh !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

section#culture .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Inverting the hover effect cards */
#culture ul li .area {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#culture ul li:hover .area {
    border-color: #FF8A65 !important;
    /* Brand accent */
}

#culture ul li .area a {
    background: #1E1E1E !important;
    /* Dark Surface */
}

/* Darken logos in photo gallery */
.photo-gallery ul li img {
    filter: brightness(0.8) grayscale(20%);
    transition: all 0.3s ease;
}

.photo-gallery ul li:hover img {
    filter: brightness(0.4) grayscale(100%);
    opacity: 0.8;
}

/* Testimonial Section */
#testimonial strong {
    color: #90A4AE !important;
}

#testimonial h4 {
    color: #ECEFF1 !important;
}

/* Footer & Contact */
/* Maintain brand color for "Get in Touch" if accessible, or lighten it */
.link-contact p,
.link-contact {
    color: #FF8A65 !important;
    /* Lightened from #d75931 for dark mode */
}

/* Forms (if any exist on page, e.g. contact might usually have one, though not seen in index.html) */
input,
textarea,
select {
    color: #FFF !important;
    border-bottom: 1px solid #757575 !important;
}

input:focus,
textarea:focus {
    border-bottom: 1px solid #FF8A65 !important;
    box-shadow: 0 1px 0 0 #FF8A65 !important;
}

label {
    color: #9e9e9e !important;
}

label.active {
    color: #FF8A65 !important;
}

/* Scroll Indicators */
.button-scroll .icon-scroll i {
    color: #F6F6F6 !important;
}

.button-scroll .icon-scroll:before {
    color: #F6F6F6 !important;
}

/* Job Cards Hover State */
/* Job Cards Hover State */
/* .job-item .job-area rules removed as they were empty */

/* Mobile specific overrides */
/* Mobile specific overrides */
/* .mobile-hidden rules removed as they were empty */

/* =========================================
   MATERIALIZE COMPONENT OVERRIDES
   ========================================= */

/* Cards */
.card,
.card-panel {
    background-color: #1E1E1E !important;
    /* Surface color */
    color: #ECEFF1 !important;
}

.card .card-title {
    color: #FFFFFF !important;
}

.card .card-content p {
    color: #B0BEC5 !important;
}

.card .card-action {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.card .card-action a {
    color: #FFAB91 !important;
}

/* Modals */
.modal {
    background-color: #1E1E1E !important;
    color: #ECEFF1 !important;
}

.modal .modal-footer {
    background-color: #1E1E1E !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Dropdowns */
.dropdown-content {
    background-color: #1E1E1E !important;
}

.dropdown-content li>a,
.dropdown-content li>span {
    color: #48565c !important;
}

.dropdown-content li:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Collections */
.collection {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.collection .collection-item {
    background-color: #1E1E1E !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ECEFF1 !important;
}

.collection .collection-item.avatar i.circle {
    color: #FFF !important;
}

/* Navigation Dots (Custom) */
/* Inactive dots are #D6D6D6 which is fine on dark */
/* Active dots were #323a44 which is too dark for dark mode */
.dots .dot.active span {
    background: #b9b9b9 !important;
    /* Brand accent for active state */
}

/* Divider */
.divider {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Carousel Progress Bars */
.bar-percentage,
.bar-infinite {
    background: rgba(255, 255, 255, 0.2) !important;
}

.bar-percentage .percentage,
.bar-infinite .infinite {
    background: #b9b9b9 !important;
    /* Brand accent */
}

/* Video Play Button */
.video-solution .button-play {
    background: rgba(255, 255, 255, 0.2) !important;
}

.video-solution .button-play i {
    color: #FFFFFF !important;
}

/* =========================================
   SERVICES LIST (Vertical Interactive)
   ========================================= */
#services-timeline {
    min-height: auto;
    padding-bottom: 160px;
    background-color: #121212;
}

.margin-top-50 {
    margin-top: 50px !important;
}

.services-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-row {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
    transition: background-color 0.3s ease;
    cursor: default;
}

.service-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.service-number {
    font-size: 0.9rem;
    color: #555;
    margin-right: 20px;
    padding-top: 5px;
    /* Align with title */
    font-family: monospace;
    /* Tech feel */
}

.service-data {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

.service-title {
    font-size: 1.5rem;
    margin: 0;
    color: #B0BEC5;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.service-row:hover .service-title {
    color: #FFFFFF;
}

.service-line {
    height: 1px;
    background-color: #333;
    flex-grow: 1;
    margin-left: 20px;
    position: relative;
    /* Context for pseudo-element */
}

/* Base line stays thin. The 'Active' line grows on top. */
.service-line:after {
    content: '';
    position: absolute;
    top: -1px;
    /* Center: (3px - 1px)/2 = 1px up. Top of 3px is -1px. */
    left: 0;
    width: 0%;
    /* Start empty */
    height: 3px;
    background-color: #cccccc;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Brand accent for active state */
}

.service-row:hover .service-line:after {
    width: 100%;
    /* Grow from left to right */
}

.service-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    color: #90A4AE;
    font-size: 1rem;
    margin: 0;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.5s ease, margin 0.3s ease;
    width: 80%;
}

.service-row:hover .service-desc {
    max-height: 200px;
    /* Reveal content */
    opacity: 1;
    margin-top: 10px;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease 0.1s, margin 0.3s ease;
}

/* Add vertical tick mark visual similar to image? */
.service-header:before {
    content: '';
    position: absolute;
    left: -20px;
    /* Under the number */
    top: 5px;
    bottom: -25px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    display: none;
    /* Keep it clean for now, or enable if desired */
}

/* =========================================
   GET IN TOUCH BUTTON
   ========================================= */
.btn-white-stroke {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #FFFFFF !important;
    /* Force override */
    border-radius: 50px !important;
    color: #FFFFFF !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    background: transparent !important;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 2;
    /* Ensure clickable */
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
}

.btn-white-stroke:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-white-stroke:hover {
    color: #121212 !important;
    /* Contrast text on hover */
}

.btn-white-stroke:hover:before {
    width: 100%;
}

/* =========================================
   CONTACT PANE (Slide from Right)
   ========================================= */
#contact-pane {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    /* Or match menu width */
    height: 100vh;
    /* Full height */
    overflow-y: auto;
    /* Scrollable if needed */
    background-color: #121212;
    /* Dark background */
    z-index: 10000;
    /* Above everything */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

#contact-pane.active {
    transform: translateX(0);
}

#contact-pane .close-btn {
    align-self: flex-end;
    /* Right align */
    cursor: pointer;
    padding: 10px;
    margin-bottom: 40px;
}

#contact-pane .close-btn i {
    font-size: 2rem;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

#contact-pane .close-btn:hover i {
    color: #FF8A65;
}

/* Header Grid */
.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Top align */
    margin-bottom: 50px;
}

.contact-header h3 {
    margin: 0;
    /* Info-nav style: uppercase, info-nav color, etc. */
    text-transform: uppercase;
    color: #90A4AE;
    /* info-nav color */
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 400;
    /* Regular weight */
}

/* Form Styles */
#contact-pane form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Increased Vertical Space */
}

#contact-pane .input-field {
    margin-top: 0;
}

/* Static Labels (No Animation) */
#contact-pane label {
    transition: none !important;
    transform: translateY(-140%);
    /* Force 'active' position if generic */
    font-size: 0.8rem;
    color: #9e9e9e;
    left: 0 !important;
    /* Align left */
}

/* Force all labels to look active/static */
#contact-pane label:not(.label-icon) {
    transform: translateY(-25px) scale(0.8) !important;
    /* Move higher away from input */
    transform-origin: 0 0;
}

#contact-pane input,
#contact-pane textarea,
#contact-pane select {
    color: #FFF;
    border-bottom: 1px solid #555;
    font-size: 1rem;
    padding-bottom: 0 !important;
    /* Text closer to line */
    margin-bottom: 5px !important;
}

#contact-pane input:focus,
#contact-pane textarea:focus,
#contact-pane select:focus {
    border-bottom: 2px solid #FFFFFF;
    box-shadow: none;
}

#contact-pane label {
    color: #9e9e9e;
    font-size: 0.9rem;
}

#contact-pane label.active {
    color: #FFFFFF;
}

/* Phone Field Structure */
.phone-row {
    display: flex;
    gap: 15px;
}

.bg-pane {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: all 0.3s ease;
}

.bg-pane.active {
    opacity: 1;
    visibility: visible;
}

/* Submit Button Disabled State */
button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
    color: #555 !important;
}

button[type="submit"]:disabled:hover:before {
    width: 0;
}

/* =========================================
   LANGUAGE SELECTOR
   ========================================= */
.lang-selector {
    position: fixed;
    top: 35px;
    right: 100px;
    /* Left of hamburger menu */
    height: 40px;
    width: 40px;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    /* Circular */
    color: #FFFFFF;
    z-index: 9991;
    /* Below Contact Pane (10000), above content */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
    font-size: 0.75rem;
    font-weight: bold;
    background: transparent;
    user-select: none;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.lang-selector.open {
    width: 120px;
    border-radius: 20px;
    /* Pill shape */
    background: #121212;
    /* Dark bg to cover content behind */
}

/* Individual Options */
.lang-opt {
    padding: 0 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-opt:hover,
.lang-opt.active {
    opacity: 1;
    text-decoration: none;
    color: #FFFFFF;
}

/* Contact Pane Adjustments */
/* Align Phone Row */
.phone-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    /* Align input baselines */
}

/* Remove default margin to align better */
.phone-row .input-field {
    margin-top: 0 !important;
    margin-bottom: 1rem;
    /* Standard spacing */
}

/* Override Input Active/Focus Colors to White */
#contact-pane input:focus,
#contact-pane textarea:focus,
#contact-pane select:focus {
    border-bottom: 1px solid #FFFFFF !important;
    box-shadow: 0 1px 0 0 #FFFFFF !important;
}

#contact-pane label.active {
    color: #FFFFFF !important;
}

/* Validation Colors */
#contact-pane input.ng-invalid.ng-touched,
#contact-pane textarea.ng-invalid.ng-touched {
    border-bottom: 1px solid #D32F2F !important;
    box-shadow: 0 1px 0 0 #D32F2F !important;
}

#contact-pane input.ng-valid.ng-touched,
#contact-pane textarea.ng-valid.ng-touched {
    /* Keep white for valid or green? User said 'active state from orange to white', imply white theme. */
    padding-bottom: 8px !important;
    box-shadow: 0 1px 0 0 #666666 !important;
}

.validation-error {
    color: #D32F2F;
    font-size: 0.8rem;
    position: absolute;
    bottom: -15px;
    left: 0;
}

/* Custom Country Dropdown */
.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #222;
    border: 1px solid #444;
    z-index: 100;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.country-search {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid #444 !important;
    background: #1a1a1a !important;
    padding: 10px !important;
    color: #fff !important;
    box-sizing: border-box !important;
    outline: none !important;
    margin: 0 !important;
    height: 40px !important;
}

.option-list-scroll {
    overflow-y: auto;
    max-height: 260px;
}

.option {
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
    font-size: 0.9rem;
    line-height: 1.2;
}

.option:hover {
    background: #444;
}

/* Scrollbar styling */
.option-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.option-list-scroll::-webkit-scrollbar-track {
    background: #222;
}

.option-list-scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}