/*
Theme Name: Hasher Systems
Theme URI: https://hashersystems.com
Author: Hasher Systems
Description: Custom WordPress theme for Hasher Systems — a faithful rebuild of the Hasher Systems corporate site (network infrastructure, cybersecurity, cloud, monitoring, camera security, software development). Bootstrap 5 based, with a hero carousel, services carousel, animated client-logo marquee, and a contact form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hasher-systems
*/

/* ============ Base ============ */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

.menu-img { max-height: 60px; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

a { color: #0077cc; }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.logo { max-width: 160px; margin-bottom: 20px; }

.service-block, .client-block {
    padding: 20px;
    margin: 10px 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: center;
}

/* ============ Navbar ============ */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.navbar-custom {
    background-color: #fdfdfd;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    min-height: 35px;
}

.navbar-custom .navbar-brand img { height: 45px; width: auto; }

.navbar-nav .nav-item { margin-left: 15px; }

.navbar-custom .nav-link {
    font-weight: bold;
    color: #000000 !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus,
.navbar-custom .nav-item.active .nav-link,
.navbar-custom .current-menu-item > .nav-link {
    background-color: darkorange;
    color: #000000 !important;
    border-radius: 0;
}

/* ============ Dropdown ============ */
.navbar-nav .dropdown-menu {
    border-radius: 0;
    margin-top: 0;
    padding: 10px 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease forwards;
    background-color: #fdfdfd;
    max-width: 90vw;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    position: absolute;
}

.dropdown-menu {
    max-width: 90vw;
    width: max-content;
    min-width: 250px;
    white-space: normal;
    overflow-x: auto;
}

.navbar-nav .dropdown-menu-end { left: auto !important; right: 0 !important; }

/* show dropdown on hover (desktop) */
@media (min-width: 576px) {
    .navbar-nav .dropdown:hover > .dropdown-menu { display: block; }
}

.dropdown-menu .dropdown-item {
    font-weight: bold;
    color: #000000;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover { background-color: darkorange; color: #000000; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ Hero carousel ============ */
.hero { background: none; padding: 0; margin: 0; }
.hero-slide { height: 95vh; width: 100%; }

/* Background images are injected dynamically in functions.php so the
   theme works no matter where WordPress is installed. Base rule below. */
.mainslide, .Infraslide1, .Securityslide2,
.Cloudslide3, .Monitorslide4, .Cameraslide5 {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 95vh;
}

/* ============ Service cards ============ */
.service-card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: black;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #0066ab;
}

#serviceCarousel .carousel-control-prev,
#serviceCarousel .carousel-control-next {
    width: 40px;
    top: 0;
    bottom: 0;
    opacity: 0.8;
    background-color: #0066ab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

#serviceCarousel .carousel-control-prev:hover,
#serviceCarousel .carousel-control-next:hover { opacity: 1; }

#serviceCarousel .carousel-control-prev-icon,
#serviceCarousel .carousel-control-next-icon {
    filter: invert(1);
    width: 1.5rem;
    height: 1.5rem;
}

/* ============ Client logo marquee ============ */
.logo-slider { display: flex; overflow: hidden; position: relative; height: 80px; }
.logo-track { flex-shrink: 0; display: flex; animation: scroll-logos 30s linear infinite; }

.client-logo {
    height: 60px;
    margin-right: 40px;
    object-fit: contain;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; }

@keyframes scroll-logos {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ============ Misc ============ */
#about-us, .topSpace { padding-top: 90px; scroll-margin-top: 90px; }
.choose { max-width: 700px; }
.contact { background-color: #fdfdfd; }
.contactTitle { color: #000000; font-weight: bold; }

/* Push body content below the fixed navbar on inner pages */
body:not(.home) .site-main { padding-top: 70px; }

.footer {
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

@media (max-width: 576px) {
    .dropdown-menu { max-width: 100vw; left: 0 !important; right: 0 !important; }
    .client-logo { height: 40px; margin-right: 20px; }
}

@media (min-width: 768px) { html { font-size: 16px; } }
