/* ===== VARIABLES ===== */
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 20px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
#main-header {
    background-color: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sticky header only on desktop */
@media (min-width: 769px) {
    #main-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 800;
    margin: 5px 0;
}

.logo span {
    color: var(--secondary);
}

.tagline {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 10px;
    margin: 5px 0;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    margin: 5px 0;
}

.contact-item i {
    color: var(--secondary);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/images/hero-bg.avif') center/cover; /* Fixed path */
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 5rem 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    background: var(--accent);
    color: white;
    font-size: 2.5rem;
    padding: 1.5rem;
    text-align: center;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ===== MACHINES GALLERY ===== */
.machines {
    padding: 5rem 0;
    background: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 350px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), 
                url('https://images.unsplash.com/photo-1586769852836-bc069f19e1b6?ixlib=rb-4.1.0&auto=format&fit=crop&w=1170&q=80') center/cover;
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-info a {
    color: inherit; /* Keeps original text color */
    text-decoration: none; /* Removes underline */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.contact-info a:hover {
    color: #E63946; /* Use your brand red on hover */
    text-decoration: underline; /* Optional underline on hover */
}
.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
    display: inline-block;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    /* Style phone link normally */
.contact-info a {
    color: inherit;
    text-decoration: none;
}

/* Add subtle hover effect only to phone */
.contact-info a:hover {
    text-decoration: underline;
    color: #E63946; /* Your brand red */
}

/* Email remains static */
.contact-item .email-obfuscate {
    cursor: default; /* No pointer cursor */
}
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .services, .machines, .contact {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .gallery-item {
        height: 300px;
    }
    /* Style phone link normally */
.contact-info a {
    color: inherit;
    text-decoration: none;
}

/* Add subtle hover effect only to phone */
.contact-info a:hover {
    text-decoration: underline;
    color: #E63946; /* Your brand red */
}

/* Email remains static */
.contact-item .email-obfuscate {
    cursor: default; /* No pointer cursor */
}
}

@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .tagline {
        margin: 10px 0 0 0;
        border-left: none;
        padding-left: 0;
        text-align: center;
        width: 100%;
    }
    
    .contact-item {
        justify-content: center;
    }
    /* Style phone link normally */
.contact-info a {
    color: inherit;
    text-decoration: none;
}

/* Add subtle hover effect only to phone */
.contact-info a:hover {
    text-decoration: underline;
    color: #E63946; /* Your brand red */
}

/* Email remains static */
.contact-item .email-obfuscate {
    cursor: default; /* No pointer cursor */
}
}


/* ===== SERVICE AREA SECTION ===== */
.service-area {
    padding: 4rem 0;
    background: var(--light);
    text-align: center;
}

.service-area h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.cities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: left;
}

.cities-column h3 {
    color: var(--secondary);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    display: inline-block;
}

.cities-column ul {
    list-style: none;
    padding-left: 1rem;
}

.cities-column li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.2rem;
}

.cities-column li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-coverage {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TESTIMONIALS PAGE ===== */
.testimonial-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), 
                url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover;
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.testimonial-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.testimonial-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.testimonials-section {
    padding: 4rem 0;
    background: var(--light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-content {
    position: relative;
}

.testimonial-content i.fa-quote-left {
    color: var(--light-gray);
    font-size: 2.5rem;
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 0;
}

.testimonial-content blockquote {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 0.9rem;
}

.testimonial-author strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    color: var(--gray);
}

.testimonial-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.testimonial-cta h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Update footer link in index.php */
.footer-links ul li a[href="/testimonials.html"] {
    font-weight: 600;
    color: var(--secondary);
}


@keyframes highlight {
    0% { background-color: transparent; }
    20% { background-color: rgba(233, 236, 239, 0.5); }
    100% { background-color: transparent; }
}