/* Maple Track Services - Main Stylesheet */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #727272;
    background-color: #ffffff;
}

a {
    color: #545454;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f1bf5e;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    color: #383838;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 { font-size: 52px; }
h2 { font-size: 48px; }
h3 { font-size: 36px; }
h4 { font-size: 28px; }
h5 { font-size: 22px; }
h6 { font-size: 18px; }

p {
    margin-bottom: 15px;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Top Bar */
.top-bar {
    background-color: #e6e6e6;
    padding: 16px 0 14px;
    font-size: 15px;
    color: #727272;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar-left a,
.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #727272;
}

.top-bar-left i {
    color: #f1bf5e;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right a {
    color: #2e2e2e;
}

.top-bar-right a:hover {
    color: #f1bf5e;
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 50px 0 45px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-width: 241px;
    height: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-info-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-left: 1px solid #e8e8e8;
}

.header-info-block:first-child {
    border-left: none;
}

.header-info-block i {
    font-size: 24px;
    color: #f1bf5e;
}

.header-info-block .info-title {
    font-size: 14px;
    font-weight: 600;
    color: #0e0e0e;
}

.header-info-block .info-caption {
    font-size: 13px;
    color: #929292;
}

.header-button {
    background-color: #f1bf5e;
    color: #590000 !important;
    padding: 12px 25px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    background-color: #e8b62d;
    color: #590000 !important;
}

/* Navigation */
.navigation {
    background-color: #67442e;
    padding: 23px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    padding: 0 23px;
}

.nav-menu li a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 23px;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #ffffff;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #f1bf5e;
}

/* Dropdown Menu */
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.has-dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-menu li.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #67442e;
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-menu li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(241, 191, 94, 0.2);
    color: #f1bf5e;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    color: #ffffff;
    max-width: 600px;
}

.hero-text h1 {
    color: #ffffff;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

/* Section Styles */
.section {
    padding: 70px 0;
}

.section-gray {
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: #747474;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 70px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-style: italic;
}

.about-image {
    flex: 0 0 300px;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Service Features */
.service-features {
    padding: 50px 0;
    border-bottom: 1px solid #e6e6e6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.features-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .features-grid-2 {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    flex: 0 0 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img,
.feature-icon i {
    font-size: 40px;
    color: #f1bf5e;
}

.feature-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 14px;
    color: #747474;
    margin: 0;
}

/* RISQS Section */
.risqs-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e6e6e6;
}

.risqs-content {
    font-style: italic;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Specialties Section */
.specialties-section {
    padding: 70px 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.specialty-card {
    text-align: center;
}

.specialty-image {
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.specialty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specialty-card:hover .specialty-image img {
    transform: scale(1.05);
}

.specialty-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.specialty-card p {
    font-size: 14px;
    color: #747474;
}

/* Services Section */
.services-section {
    padding: 70px 0;
    background-color: #f5f5f5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid-3 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #67442e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: #f1bf5e;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #383838;
}

.service-card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    color: #67442e;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #f1bf5e;
}

.service-card ul {
    margin-bottom: 20px;
}

.service-card ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.service-card ul:not(.equipment-list) li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f1bf5e;
}

/* Equipment List - standard bullets */
.equipment-list {
    padding-left: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.equipment-list li {
    padding: 8px 0;
    padding-left: 0;
    list-style: disc;
    font-size: 14px;
    position: static;
}

.equipment-list li::before {
    content: none !important;
    display: none !important;
}

/* Why Choose Us */
.why-choose-section {
    padding: 70px 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-choose-item {
    text-align: center;
    padding: 20px;
}

.why-choose-item i {
    font-size: 48px;
    color: #f1bf5e;
    margin-bottom: 20px;
}

.why-choose-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.why-choose-item p {
    font-size: 14px;
    color: #747474;
}

/* Testimonials */
.testimonials-section {
    padding: 70px 0;
    background-color: #67442e;
    color: #ffffff;
}

.testimonials-section h2 {
    color: #f1bf5e;
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-item {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    color: #f7f7f7;
}

.testimonial-author {
    color: #f1bf5e;
    font-weight: 600;
}

/* Certification Cards */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    background: #67442e;
    padding: 25px;
    border-radius: 5px;
    position: relative;
    min-height: 160px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.cert-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cert-logo-risqs {
    background-image: url('../images/risqs-logo.png');
}

.cert-logo-chas {
    background-image: url('../images/chas-logo.png');
}

.cert-logo-constructionline {
    background-image: url('../images/constructionline-gold-logo.png');
}

.cert-logo-ssip {
    background-image: url('../images/ssip-logo.png');
}

.cert-logo-iso9001 {
    background-image: url('../images/iso-9001-logo.webp');
}

.cert-logo-iso14001 {
    background-image: url('../images/iso-14001-logo.png');
}

.cert-content {
    padding-right: 100px;
}

.cert-card h3 {
    color: #f1bf5e;
    margin-bottom: 10px;
    font-size: 20px;
}

.cert-card p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-card {
        min-height: 140px;
    }
    
    .cert-logo {
        width: 60px;
        height: 60px;
    }
    
    .cert-content {
        padding-right: 70px;
    }
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background-color: #f1bf5e;
    text-align: center;
}

.cta-section h2 {
    color: #590000;
    margin-bottom: 20px;
}

.cta-section p {
    color: #590000;
    margin-bottom: 30px;
    font-size: 18px;
}

.cta-button {
    display: inline-block;
    background-color: #590000;
    color: #ffffff !important;
    padding: 15px 35px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3d0000;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 15px 15px;
    color: #ffffff;
}

.gallery-caption h4 {
    color: #f1bf5e;
    font-size: 16px;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 13px;
    color: #f7f7f7;
    margin: 0;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #f1bf5e;
}

.lightbox-caption {
    margin-top: 20px;
    color: #ffffff;
}

.lightbox-caption h4 {
    color: #f1bf5e;
    font-size: 20px;
    margin-bottom: 10px;
}

.lightbox-caption p {
    color: #f7f7f7;
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: #67442e;
    padding: 70px 0 50px;
    color: #f7f7f7;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: #f1bf5e;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p,
.footer-column a {
    color: #f7f7f7;
    font-size: 15px;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #f1bf5e;
}

.footer-column ul li {
    padding: 5px 0;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info li i {
    color: #f1bf5e;
    margin-top: 5px;
}

/* Testimonials Page */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonials-list .testimonial-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonials-list .testimonial-item p {
    color: #555555;
}

.testimonials-list .testimonial-content {
    flex: 1;
}

.testimonials-list .testimonial-reviewer {
    flex: 0 0 250px;
    text-align: right;
}

@media (max-width: 768px) {
    .testimonials-list .testimonial-item {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonials-list .testimonial-reviewer {
        flex: 0 0 auto;
        text-align: center;
    }
}

/* Copyright */
.copyright {
    background-color: #66371a;
    padding: 30px 0;
    text-align: center;
    color: #f7f7f7;
    font-size: 14px;
}

/* Contact Page */
.contact-section {
    padding: 70px 0;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    font-family: inherit;
    font-size: 15px;
}

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

.contact-form button {
    background-color: #f1bf5e;
    color: #590000;
    padding: 15px 35px;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e8b62d;
}

.contact-details h3 {
    margin-bottom: 30px;
}

.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-details .contact-item i {
    font-size: 24px;
    color: #f1bf5e;
    margin-top: 3px;
}

.contact-details .contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-details .contact-item p {
    margin: 0;
    color: #727272;
}

/* Page Title */
.page-title {
    background-color: #67442e;
    padding: 93px 0 87px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(103, 68, 46, 0.85);
}

.page-title-content {
    position: relative;
    z-index: 1;
}

.page-title h1 {
    color: #ffffff;
    font-size: 55px;
    margin-bottom: 13px;
    text-transform: none;
}

.page-title p {
    color: #ffffff;
    font-size: 18px;
}

/* Certifications */
.certifications-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.cert-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cert-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .features-grid,
    .specialties-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header {
        display: none;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        padding: 10px 0;
    }
    
    .features-grid,
    .specialties-grid,
    .services-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .page-title h1 {
        font-size: 36px;
    }
}

/* Mobile Logo */
.mobile-logo {
    display: none;
}

.mobile-logo img {
    height: 40px;
    width: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navigation .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #67442e;
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        padding-bottom: 5px;
    }
    
    .nav-menu li a.active::after {
        bottom: 2px;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #dbdbdb;
    color: #313131;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #f1bf5e;
}

.back-to-top.visible {
    display: flex;
}
