/* assets/css/style.css */

/* --- General System & Color Setup --- */
:root {
    --primary-color: #005a9c; /* A professional blue */
    --secondary-color: #e3e3e3;
    --background-color: #ffffff;
    --surface-color: #f8f9fa; /* Light grey for cards/sections */
    --text-color: #212529; /* Dark grey for text */

    /* DEVELOPER NOTE: Changed fonts to "Times New Roman" as requested.
      "Times" is a common fallback, followed by the generic 'serif'.
    */
    --heading-font: "Times New Roman", Times, serif;
    --body-font: "Times New Roman", Times, serif;
}

/* --- Base & Reset Styles --- */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    line-height: 1.6;
    
    /* DEVELOPER NOTE: This line keeps all body text italic.
    */
    font-style: italic;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--background-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #004170; /* Darker blue */
}

.btn-secondary {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Services Section --- */
.services-overview, .about-overview {
    padding: 60px 0;
}

.services-overview {
    background-color: var(--surface-color);
}

.services-overview h2, .about-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--background-color);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.service-card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* --- About Overview Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
}

/* --- Footer --- */
.site-footer {
    background-color: #343a40; /* Dark footer */
    color: white;
    padding: 20px 0;
    /* DEVELOPER NOTE: Removed 'text-align: center;' */
}

/* DEVELOPER NOTE: Added Flexbox rules to the footer container */
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 15px; /* Adds space if it wraps */
}

/* DEVELOPER NOTE: New style for the "hidden" employee link */
.employee-link {
    font-size: 0.8rem;
    font-style: normal; /* Keep this link non-italic */
    opacity: 0.5; /* Makes it "hidden" */
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}
.employee-link:hover {
    opacity: 1; /* Makes it visible on hover */
}


/* --- NEWLY ADDED STYLE FOR LEGAL TEXT --- */
.footer-legal {
    font-size: 0.85rem;
    color: #ccc; /* Slightly dimmer than main text */
    margin: 8px 0 0;
    padding: 0;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Height of the header */
        left: 0;
        background-color: var(--background-color);
        border-top: 1px solid var(--secondary-color);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--secondary-color);
    }
    .menu-toggle {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-text {
        text-align: center;
    }
    
    /* DEVELOPER NOTE: Re-centers the footer on mobile */
    .site-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .employee-link {
        /* Adds a little space on top when stacked */
        margin-top: 10px; 
    }
}

/* --- DEVELOPER NOTE: WATERMARK CODE ADDED --- 
    This new rule block adds the faded logo watermark.
    It targets the '.watermark-bg' class we added to the <body> 
    of the relevant HTML pages.
*/
body.watermark-bg::before {
    content: ""; /* Pseudo-elements require a 'content' property */
    position: fixed; /* Fixes the watermark in the viewport */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Fine-tunes the centering */
    
    width: 80vw; /* 80% of the viewport width */
    height: 80vh; /* 80% of the viewport height */
    
    /* The path is '../images/logo.jpg' because this CSS file 
        is in the 'assets/css/' folder and needs to go UP one level 
        and then DOWN into the 'images/' folder.
    */
    background-image: url('../images/logo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain; /* Scales logo to fit, maintaining aspect ratio */
    
    opacity: 0.09; /* Set to 9% opacity for a very faded, subtle effect */
    z-index: -1; /* Puts the watermark behind all other content */
    
    /* Prevents the watermark from capturing mouse events */
    pointer-events: none; 
}