/* --- 1. GLOBAL RESET AND VARIABLES --- */
:root {
    --color-dark: #000000;
    --color-bg-dark: #076806;
    --color-text-light: #ffffff;
    --color-primary-green: #99cc00; /* Used for Calibration box */
    --color-secondary-teal: #00bcd4; /* Used for Testing box */
    --font-primary: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 2. HEADER/NAVIGATION --- */
.main-header {
    background-color: var(--color-dark);
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--color-text-light);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--color-primary-green);
}

/* --- 3. TYPOGRAPHY AND HEADINGS --- */
h2, h3, h4 {
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #ccc;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    color: var(--color-primary-green);
}

.subtitle-text {
    text-align: center;
    color: #aaa;
    margin-bottom: 40px;
}

/* --- 4. BUTTONS AND LINKS --- */
.btn-link, .btn-main, .btn-contact {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.btn-main {
    background-color: var(--color-secondary-teal);
    color: var(--color-dark);
    border: 2px solid var(--color-secondary-teal);
    margin-top: 20px;
}

.btn-main:hover {
    background-color: transparent;
    color: var(--color-secondary-teal);
}

.btn-contact {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-primary-green);
    padding: 15px 30px;
}

.btn-contact:hover {
    background-color: var(--color-primary-green);
    color: var(--color-dark);
}

/* --- 5. HERO SECTION (CALIBRATION & TESTING) --- */
.hero-section {
    padding: 100px 0;
    background-color: var(--color-bg-dark); /* Slightly lighter dark background */
    border-bottom: 3px solid var(--color-primary-green);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cta-block {
    text-align: center;
    padding: 40px 20px;
    border-radius: 5px;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.primary-color {
    background-color: var(--color-primary-green);
    color: var(--color-dark);
}

.secondary-color {
    background-color: var(--color-secondary-teal);
    color: var(--color-dark);
}

.primary-color h2, .secondary-color h2, .primary-color p, .secondary-color p {
    color: var(--color-dark);
}

.primary-color .btn-link, .secondary-color .btn-link {
    color: var(--color-dark);
    font-size: 0.9rem;
    margin-top: 15px;
    border-bottom: 2px solid var(--color-dark);
}

.icon-box {
    margin-bottom: 20px;
}


/* --- 7. WE LEAD SECTION --- */
.lead-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* Image wider than text */
    gap: 50px;
    align-items: center;
}

.lead-image {
    position: relative;
}

.lead-image img {
    width: 90%;
    height: auto;
    display: block;
}

.image-text-overlay {
    background-color: var(--color-secondary-teal);
    color: var(--color-dark);
    padding: 15px 20px;
    position: absolute;
    bottom: 20px;
    left: -50px; /* Overhang effect from video */
}

.lead-image p {
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.lead-content article {
    margin-bottom: 25px;
}

.lead-content h4 {
    color: var(--color-primary-green);
    font-size: 1.1rem;
}

/* --- 8. STATS SECTION --- */
.stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-dark);
    padding: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-primary-green);
    line-height: 1;
}

.plus-sign {
    font-size: 2rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: #ccc;
    margin-top: 5px;
}
/* --- STATS SECTION STYLES --- */
#stats-section {
    background-color: #000; /* Assuming a full black background for this section */
    padding: 60px 0;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    /* Primary Green accent color from the video */
    color: #99cc00; 
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number .count-number {
    /* Ensures the animated span inherits the styles */
    display: inline-block;
}

.plus-sign {
    font-size: 2rem;
    vertical-align: top;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: #ccc;
    margin-top: 5px;
}

/* --- 9. PARTNERS SECTION --- */
.partners-container {
    text-align: center;
    padding: 40px 0 60px 0;
}

.partners-container h3 {
    margin-bottom: 30px;
    color: #ccc;
    font-size: 1.2rem;
}

.partners-logo-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.partners-logo-row img {
    height: 80px; /* Standardize logo size */
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
}

.partners-logo-row img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- 10. FOOTER --- */
.main-footer {
    background-color: var(--color-dark);
    padding: 50px 0 10px 0;
    text-align: center;
}

.footer-cta {
    border-top: 1px solid #333;
    padding-top: 50px;
    margin-bottom: 40px;
}

.footer-cta p {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.copyright {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #888;
}

/* --- HERO SECTION STYLES --- */
.full-screen-hero {
    /* Sets the hero section to take up the full viewport height */
    height: 50vh; 
    min-height: 550px; /* Safety fallback for content visibility */
    display: flex;
    background-color: #0000009a;
}

.hero-container {
    display: flex;
    width: 99%;
}

/* --- LEFT COLUMN: TEXT & CTAS --- */
.hero-left {
    /* Takes about 50% of the width */
    flex: 1; 
    padding: 40px 60px;
    display: flex;
    align-items: center; /* Vertically centers the content */
    
    /* Dark background with a slight teal/dark green gradient from the image */
    background: linear-gradient(135deg, #143d02 0%, #000 100%);
    color: #fff;
}

.hero-content {
    max-width: 550px;
}

.hero-left h1 {
    font-size: 2.2rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hero-left .tagline {
    font-size: 1.1rem;
    color: var(--color-primary-green); /* The green accent color */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-left .description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 40px;
}

/* --- RIGHT COLUMN: IMAGE --- */
.hero-right {
    flex: 1; /* Takes the other 50% of the width */
    background-image: url('Microscope-Calibration.webp'); /* REPLACE with your actual image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Optional: Apply a dark overlay to integrate with the left side */
    position: relative;
}
.hero-left {
    /* ... existing styles ... */
    position: relative; /* <--- ADD THIS */
}
/* --- CTA BOXES --- */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    /* --- NEW POSITIONING TO OVERLAP THE IMAGE (Crucial for the image look) --- */
    position: absolute; 
    top: 100%; /* Centers vertically between hero-left and hero-right */
    left: 90%; /* Centers horizontally */
    transform: translate(-50%, -40%); /* Adjusts for the element's own width and height */
    z-index: 10; /* Ensures boxes appear above the image */
    /* Optional: Limit the grid width so the boxes don't stretch too far */
    width: auto; 
}

.cta-block {
    text-align: center;
    padding: 50px;
    border-radius: 0px;
    color: #000;
    transition: opacity 0.3s;
    min-height: 180px;
}

.cta-block:hover {
    opacity: 0.9;
}

.cta-block h3 {
    font-size: 1rem;
}

.cta-block p {
    font-size: 0.8rem;
}

.icon-box {
    margin-bottom: 5px;
}


/* Color Variables (Must be defined globally or here) */
:root {
    --color-primary-green: #99cc00; 
    --color-secondary-teal: #008899; /* Adjusted for better contrast on the teal box */
}

.primary-color {
    background-color: var(--color-primary-green);
}

.secondary-color {
    background-color: var(--color-secondary-teal);
}

.cta-block h3 {
    font-size: 1.1rem;
    margin: 5px 0;
    color: #000;
}

.cta-block p {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #f10909;
}



/* Pseudo-element for the image overlay */
.service-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient overlay: starts clear at the top, darkens towards the bottom */
    background: linear-gradient(to bottom, rgba(227, 107, 107, 0.1) 0%, rgba(37, 152, 27, 0.263) 100%);
    z-index: 1; /* Place below text but above image */
}

/* Ensure text is above the overlay */
.service-tile .tile-name {
    color: #ffffff; /* White text for visibility */
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(57, 89, 205, 0.5); /* Helps text stand out */
    z-index: 2; /* Place text on top */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Optional: Hover Effect */
.service-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}


/* --- CSS for the Logo Image (Add this to your style.css) --- */

.site-logo {
    /* Adjust these values to fit your design */
    height: 40px; 
    width: auto;
    display: block; /* Important for alignment */
}

/* If you want to remove the text "QUALITECH SERVICES" and just use the image: */
.logo a {
    /* If you used the text as a fallback, ensure it's hidden if needed, 
       but keeping the alt text in the HTML is better for accessibility. */
    text-decoration: none; 
}