/* 
   BMS Express - Main Stylesheet
   Based on the design of milacoldlogistics.com.au
*/

/* ===== Base Styles ===== */
:root {
    /* Color scheme based on the reference website */
    --primary-color: #004b61;
    --secondary-color: #8dc63f;
    --accent-color: #454345;
    --light-bg: #f1eee7;
    --footer-bg: #ececec;
    --text-color: #333;
    --light-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    /* padding-top is now handled dynamically by JavaScript */
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    text-align: center;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header ===== */
header {
    padding: 0;
    background-color: #f8f8f8; /* Soft white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    will-change: transform; /* Optimize for animations */
    -webkit-transition: transform 0.3s ease-in-out; /* For Safari */
    height: auto; /* Allow header to size based on content */
    min-height: 0; /* Remove any minimum height */
}

header.hidden {
    transform: translateY(-100%);
    -webkit-transform: translateY(-100%); /* For Safari */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-top: -10px; /* Negative margin to reduce header height */
    margin-bottom: -10px; /* Negative margin to reduce header height */
    background: #f8f8f8; /* Match header background */
    border: none; /* No borders */
    box-shadow: none; /* No shadows */
}



.logo {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    position: relative;
    background: transparent;
    margin-right: 0;
}

.logo img {
    max-height: 120px; /* Reduced to ensure logo appears smaller */
    margin: 0;
    padding: 0; /* Removed vertical padding */
    border: none;
    box-shadow: none;
}

nav {
    display: flex;
    align-items: center;
    border: none;
    position: relative;
    background: transparent;
    margin-left: 0;
    padding-left: 0;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li {
    margin-left: 30px;
}

.main-menu a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-menu a:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ===== Main Banner ===== */
.main-banner {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
}

.banner-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-tagline {
    position: absolute;
    top: 35%;
    right: 15%;
    transform: translateY(-50%);
    color: white; /* Changed to white */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Dark shadow for contrast */
    max-width: 500px;
    text-align: right;
    padding: 0;
}

.banner-tagline p {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.banner-tagline .tagline-main {
    font-size: 3.5rem;
    margin-bottom: 10px;
    white-space: nowrap;
}

.banner-tagline .tagline-secondary {
    font-size: 2.6rem;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .banner-tagline {
        right: 3%;
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .banner-tagline {
        right: 5%;
        left: 5%;
        max-width: 90%;
        text-align: center;
    }
    
    .banner-tagline p {
        font-size: 1.8rem;
    }
    
    .banner-tagline p:first-child {
        font-size: 2.2rem;
    }
}

/* ===== Welcome Section ===== */
.welcome-section {
    padding: 80px 0;
    background-color: #87CEEB; /* Sky blue background - matching About Us section */
    /* Removing pattern image as it was causing issues */
    /* background-image: url('../assets/pattern-background.jpg'); */
    /* background-repeat: repeat; */
    /* background-blend-mode: overlay; */
    text-align: center;
    color: var(--text-color); /* Changed to match About Us section */
}

.logo-center {
    margin-bottom: 30px;
}

.center-logo {
    max-width: 250px;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* ===== Services Section ===== */
.services-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.services-intro {
    max-width: 100%;
    margin: 0 auto 40px;
    text-align: center;
}

.services-section .services-intro p.services-intro-text {
    font-size: 48px !important;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .services-section .services-intro p.services-intro-text {
        font-size: 32px !important;
    }
}

.services-list {
    display: inline-block;
    text-align: left;
    margin: 20px 0;
    font-size: 1.1rem;
}

.services-list li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.services-tagline {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 30px;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon .custom-icon {
    max-width: 90px; /* Increased by 50% from 60px */
    max-height: 90px; /* Increased by 50% from 60px */
    filter: invert(80%) sepia(30%) saturate(1000%) hue-rotate(50deg) brightness(100%);
}

/* Special sizing for refrigerated truck icon */
.service-icon img[src*="fridge-semi.png"] {
    max-width: 180px; /* 200% of the current 90px size */
    max-height: 180px; /* 200% of the current 90px size */
    margin-top: 20px; /* Move the image lower */
}

/* ===== Image Banner ===== */
.image-banner {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5; /* Fallback background color */
}

/* Services Image Section with Heading Overlay */
.services-image-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.services-image-container {
    position: relative;
    width: 100%;
}

.services-image {
    width: 100%;
    display: block;
}

.services-heading-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 10;
    text-align: left;
    padding-left: 0;
}

.services-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 768px) {
    .services-heading {
        font-size: 4rem;
    }
    .services-heading-container {
        width: 40%;
        right: 3%;
        top: 20%; /* Adjusted position - brought down a bit */
    }
}

@media (max-width: 767px) {
    .services-heading {
        font-size: 2.4rem;
    }
    .services-heading-container {
        width: 90%;
        right: 5%;
        left: auto;
        top: 15%; /* Adjusted position - brought down a bit */
    }
}

.services-heading {
    color: white;
    font-weight: 900; /* Increased from 700 to 900 for extra boldness */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0 0 0.5em 0; /* Reset margin */
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    top: 80px; /* Move down the heading only using positioning */
}

@media (min-width: 768px) {
    .services-list-overlay li {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .services-list-overlay li {
        font-size: 1.8rem;
    }
}

.services-heading-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.services-list-overlay {
    list-style-type: none;
    text-align: left;
    margin: 100px 0 0 0;
    padding: 0;
}

.services-list-overlay li {
    color: white;
    font-weight: 700; /* Increased from 500 to 700 for boldness */
    margin-bottom: 0.8em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    position: relative;
    padding-left: 2em; /* Space for wheel */
    text-indent: 0;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.services-list-overlay li:before {
    content: '🛞';
    position: absolute;
    left: 0;
    color: white;
    background-color: black;
    border-radius: 50%;
    width: 1.4em;
    height: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    line-height: 1.4;
}

.spacer {
    height: 20px;
}

.image-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Removed unused styles */

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background-color: #87CEEB; /* Sky blue background */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: left;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.2rem; /* Increased font size from default */
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content h2 {
        text-align: center;
    }
    
    .about-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
    background-color: var(--footer-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-container h2 {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-logo {
    margin-bottom: 30px;
}

.contact-logo img {
    max-width: 200px;
}

.contact-details h5 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

/* ===== Footer ===== */
footer {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--light-text);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .main-banner {
        height: 50vh;
    }
}
