/* Modern Styles for Bisco Automation */
:root {
    --brand-dark: #001427;
    --brand-red: #A4161A;
    --brand-red-bright: #E60000;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
    --font-heading: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-bottom: 0;
    /* Updated dynamically if mobile */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--brand-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a {
    color: var(--white);
}

.contact-info a:hover {
    color: var(--brand-red-bright);
}

#current-time {
    margin-left: 5px;
    font-weight: 600;
    color: var(--brand-red-bright);
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.company-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--brand-dark);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: var(--brand-dark);
    text-transform: uppercase;
    font-size: 0.95rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--brand-dark);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Content Sections */
.section-padding {
    padding: 60px 0;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    /* display: inline-block; Removed to ensure centering works effectively */
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--brand-red);
    margin: 10px auto 0;
}

/* About Us */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--brand-dark);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
}

.service-card h3 {
    color: var(--brand-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Additional Content */
.content-body {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Centering content for consistency */
}

/* Footer */
footer {
    background-color: var(--brand-dark);
    color: #cccccc;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-left: 3px solid var(--brand-red);
    padding-left: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--brand-red-bright);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive & Mobile Nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
        /* Space for bottom nav */
    }

    /* Hide clock on mobile */
    #current-time {
        display: none;
    }

    .top-bar .container {
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .logo img {
        height: 40px;
    }

    .company-name {
        font-size: 1rem;
    }

    /* Bottom Navigation Bar for Mobile */
    .menu-toggle {
        display: none !important;
    }

    .main-nav {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        transform: none;
        z-index: 2000;
        border-radius: 0;
        border-top: 1px solid var(--border-color);
    }

    .main-nav.active {
        transform: none;
    }

    .main-nav ul {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav li {
        flex: 1;
        text-align: center;
    }

    .main-nav a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        font-size: 0.8rem;
        padding: 0;
        border: none;
        color: var(--text-light);
    }

    .main-nav a.active {
        color: var(--brand-red);
        background-color: rgba(0, 0, 0, 0.02);
    }

    /* Optional: Icons for mobile nav if added in HTML */
    .mobile-icon {
        display: block !important;
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    .hero img {
        height: 300px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}