/* Custom CSS for Modernized Sertech Website */

/* Color Variables */
:root {
    --color-dark-blue: #003366;
    --color-light-blue: #007bff;
    --color-verdoso: #f2f7f5;
    --color-blanco: #ffffff;
    --color-gray-dark-v4: #6c757d;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    color: #404040;
    background-color: #fff;
    /* Add top padding to account for fixed navbar */
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans', sans-serif;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px; /* Set explicit navbar height for proper spacing */
    background-color: white !important; /* Solid white background */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

/* Navbar Nav - Force horizontal layout */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Ensure navbar links are displayed inline */
.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-direction: row !important;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #333 !important;
    padding: 1rem 0.75rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--color-dark-blue) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add top margin to account for navbar overlap */
    padding-top: 80px;
    margin-top: -80px; /* Pull up to compensate for body padding */
}

.hero-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.btn-demo {
    background-color: white;
    color: var(--color-dark-blue);
    border: none;
    padding: 10px 40px;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-demo:hover {
    background-color: #f0f0f0;
    color: var(--color-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    padding: 70px 0;
}

.container-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 30px;
    color: var(--color-dark-blue);
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 50px;
    text-align: center;
}

/* Cards */
.card-service {
    border: 1px solid #dee2e6;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-header {
    background-color: var(--color-dark-blue);
    color: white;
    padding: 20px;
    text-align: center;
}

.card-body {
    padding: 25px;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-dark-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
    background-color: var(--color-light-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#back-to-top i {
    font-size: 20px;
}

/* Footer - Force horizontal layout */
.site-footer,
.footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 40px 0;
    margin-top: auto;
}

.footer-logo img {
    max-height: 60px;
}

/* Footer Links - Force horizontal layout */
.footer .list-inline,
.site-footer .list-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.footer .list-inline-item,
.site-footer .list-inline-item {
    margin-right: 1.5rem !important;
    margin-left: 0 !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 70px;
    }
    
    body {
        padding-top: 75px;
    }
    
    .hero-section {
        min-height: 400px;
        padding-top: 75px;
        margin-top: -75px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Mobile menu */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 15px;
    }
    
    .navbar-nav {
        flex-direction: column !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin-top: 0;
}

.dropdown-item {
    padding: 10px 20px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-verdoso);
    color: var(--color-dark-blue);
}

/* Form Styles */
.form-control {
    border-radius: 4px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-dark-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

/* Button Styles */
.btn {
    padding: 8px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-dark {
    background-color: var(--color-dark-blue);
    color: white;
    border: none;
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: #002a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
}
