/* Global Reset */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
}

/* 1. Fixed Logo Container - Keeping the position you liked */
#logo {
    position: fixed;
    top: 0;      
    left: 30px;
    z-index: 1001; 
    height: 80px;   /* Keeping the height at 80 for positioning */
    display: flex;
    align-items: center;
	pointer-events: none;
}

/* 2. The actual Logo Image - Reducing the graphic size inside the container */
#logo img {
    height: 100px;    /* This shrinks the image by 25% relative to the 80px box */
    padding-top: 20px;
	width: auto;
    display: block;
	pointer-events:auto;
	/*filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));*/
	transition: 0.3s ease;
}
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* 2. Sticky Navbar */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 3px solid #800020;
    padding-right: 50px;
}

.nav-links a {
    color: #800020;
    text-decoration: none;
    font-size: 17px;
    padding: 0 15px;
}

.nav-links a:hover {
    color: black;

}

/* 3. Hamburger Logic */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 8px;
}

.hamburger span {
    width: 35px;
    height: 3px;
    background-color: #800020;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive: Hamburger appears no matter how small the screen gets */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 0;
        background-color: white;
        width: 33%;
		min-width: 200px;
        border-bottom: 3px solid #800020;
		border-left: 1px solid #eee;
		align-items: flex-end; /* Aligns the link items to the right */
        padding-right: 10px;
		box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        text-align: right;
		width: 75%;
		font-size: 15px;
        border-bottom: 1px solid #eee;
    }

    /* Animate Hamburger to X */
    #menu-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    #menu-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; }
    #menu-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* 4. Sectors & Panels */
.mycompany {
    height: 750px;
    display: flex;
    align-items: center;
	justify-content: flex-end;
    font-size: 18px;
	color: #fff;
    position: relative;
    background-image: url('img/gemini002webbg.png'); /* Replace with your actual path */
    background-size: cover;          /* Scales the image to fill the container */
    background-position: top left;     /* Keeps the image centered */
    background-repeat: no-repeat;    /* Prevents the image from tiling */
}

.mycompany article{
	text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
}

@media (max-width: 1024px){
	.mycompany::before{
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
}
}
.text-right{
	justify-content: flex-end !important;
	align-items: flex-end !important;
	text-align: right;
}

.sector {
    scroll-margin-top: 100px;
    display: flex;
	flex-wrap: wrap;
    min-height: auto;
    padding: 50px 50px;
    border-top: 1px solid #800020;
    position: relative; /* Necessary for Employee Link */
	overflow: hidden;
}

.sector-sidebar {
    flex: 0 0 250px;
    border-right: 2px solid #800020;
    margin-right: 40px;
	height: fit-content;
	padding-top: 15px;
	
}

.sector-sidebar h2 {
    color: #800020;
    margin: 0;
}

.sector-content {
    flex: 1;
	min-width: 300px;
	display: flex;
	flex-direction: column;
}

/* The Intro Paragraph (Top Row) */
.sector-content > p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* 5. Employee Link - Bottom Right of Sector */
.employee-link {
    position: absolute;
    bottom: 20px;
    right: 40px;
    color: #800020;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* 6. Footer */
footer {
    background-color: #333;
    color: white;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    border-bottom: 2px solid #800020;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* The Grid for the 8 sub-sectors */
.services-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 25px;
	align-items: start;
}

.service-item {
    background-color: #fdfdfd;
    padding: 20px;
    border-left: 5px solid #800020;
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.service-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.service-item h3 {
    margin: 0 0 10px 0;
    font-size: 17px;
    color: #800020;
}

/* Responsive: Collapse to 1 column on mobile */
@media (max-width: 1024px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Contact Sector Layout */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: #800020;
    margin-top: 0;
}

.contact-info p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-info a {
    color: #800020;
    text-decoration: underline;
}

.contact-map {
    flex: 1.5;
    min-width: 300px;
    
    /* This makes the container square */
    aspect-ratio: 1 / 1; 
    
    /* This ensures no border is interfering with the fit */
    border: none; 
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 600px;
    height: 600px; /* Forces the iframe to fill the square container */
    border: none;
}

@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
    }
	.contact-map iframe{
		width: 100%;
		height: 100%;
	}
}

.details-link {
    font-size: 12px;
    color: #800020; /* Matching your primary color */
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.details-link:hover {
    color: #333;
}

/* If you are using a library like Tippy.js or Bootstrap Tooltips, 
   the "title" attribute in the HTML above will automatically 
   pop up when the user hovers over the link. */
   
   /* Hide the details by default */
#plant-details-popup {
    display: none;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #800020; /* Your brand color */
    margin-top: 10px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

/* Show the details when hovering over the service-item box */
.service-item:hover #plant-details-popup {
    display: block;
}

/* Style for the "More Details" text */
.details-trigger {
    font-size: 11px;
    color: #800020;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container for the 2x2 grid */
.product-gallery-static {
    display: grid;
	grid-template-columns: repeat(2, 1fr); /* Default 2x2 grid */
    gap: 15px; /* Adjust spacing between images as needed */
    margin-top: 15px;
}

/* Force images to be square */
.product-gallery-static img {
    /*display: block;*/
	width: 100%;             /* Fills the grid cell width */
	height: 100%;
    aspect-ratio: 1 / 1;     /* Forces the square shape (1:1 ratio) */
    object-fit: cover;       /* Ensures the image fills the square without distortion */
    border-radius: 4px;
    /*transition: transform 0.3s ease;*/
}

/* Switch to 1x4 grid on screens smaller than 1020px */
@media (max-width: 1024px) {
    .product-gallery-static {
        grid-template-columns: 1fr; /* Switch to 1 column */
    }
}
.product-gallery-static img:hover {
	overflow: hidden;
	/*transform: scale(1);*/
    border-color: #800020;
   	justify-content: center;
	align-content: center;
	z-index: 9999;
}

.project-gallery-static{
	overflow: block;
    display: grid;
	padding-left: 50px;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Adjust spacing between images as needed */
    margin-top: 15px;
}

/* Force images to be square */
.project-gallery-static img {
    width: 80%;             /* Fills the grid cell width */
	height: auto;
    aspect-ratio: 1 / 1;     /* Forces the square shape (1:1 ratio) */
    object-fit: cover;       /* Ensures the image fills the square without distortion */
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* Switch to 1x4 grid on screens smaller than 1020px */
@media (max-width: 1024px) {
    .project-gallery-static {
        grid-template-columns: 1fr; /* Switch to 1 column */
    }
}

/* Subtle zoom effect on hover */
.project-gallery-static img:hover {
    top: 50%;
    left: 50%;
    /*transform: scale(2);*/ /* This centers it perfectly */
    /*border: 5px solid #800020; Added a border to make it look like a popup */
    z-index: 1;             /* High value to ensure it sits on top */
    max-width: 90vw; /* Keeps it within the screen width */
    max-height: 90vh; /* Keeps it within the screen height */
	z-index: 9999;
}

/* Adjustments for the Project Item box */
.project-item {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-top: 5px solid #800020;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}


.project-item {
    border-top: 4px solid #800020;
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.details-content {
    margin-top: 15px;
    /* You can add a subtle fade-in animation here if desired */
}

.details-trigger {
    display: inline-block;
    margin-top: 10px;
    color: #800020;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.details-trigger:hover {
color: #333;
}

.media-category {
    display: none; /* Hide all by default */
}
.media-category.active {
    display: block; /* Show only when active */
}

/* Removes underline from sidebar media switcher buttons */
.media-switcher .details-trigger {
    text-decoration: none !important;
    display: block;
    padding: 10px 0;
    transition: 0.3s;
}

/* Adds a hover effect to show they are clickable */
.media-switcher .details-trigger:hover {
    color: #333;
    padding-left: 5px;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* This hides the images that aren't currently visible */
    border-radius: 4px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-wrapper img {
    min-width: 100%; /* Each image takes up the full width of the container */
    aspect-ratio: 16 / 9; /* Adjust for your preferred photo ratio */
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128, 0, 32, 0.7); /* Your #800020 color */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.prev { left: 0; }
.next { right: 0; }

/* Ensure the slider container displays correctly */
.slider-wrapper #gallery-container {
    display: flex !important; /* Force flex for slider */
    grid-template-columns: none !important; /* Disable grid */
    width: 100%;
}

.slider-wrapper #gallery-container img {
    flex: 0 0 100%; /* Each image takes 100% of the slider width */
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevents cropping */
}