/* VARIABLES & BASE STYLES */

:root {
    --primary-color: #008000;
    /* A deep, rich green */
    --primary-light: #00a850;
    --accent-color: #32cd32;
    /* Lime green for highlights */
    --text-color: #333333;
    /* Dark gray for text */
    --bg-color: #f0f2f5;
    /* Light gray/off-white background */
    --card-bg: #ffffff;
    /* Pure white for cards */
    --border-color: #e0e0e0;
    /* Subtle light gray border */
    --transition-duration: 0.3s;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-duration);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UTILITY CLASSES */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: -1rem auto 3rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    transition: transform var(--transition-duration) ease-in-out, background-color var(--transition-duration);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--card-bg);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-duration) ease-in-out, box-shadow var(--transition-duration);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* LAYOUT */

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.service-grid,
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background-color: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Navbar container */
.navbar .container {
    display: flex;
    justify-content: space-between; /* logo left, hamburger right */
    align-items: center; /* vertically center both */
    position: relative;
    padding: 0 2rem;
}

/* Brand */
.navbar-brand img {
    height: 100px; /* adjust as needed */
    display: block;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color);
    transition: color var(--transition-duration);
}

.nav-links a.active {
    color: var(--primary-color);
}
/* Hamburger */
.hamburger {
    display: none; /* hide on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Keep logo left, hamburger right */
    .navbar .container {
        flex-direction: row; 
        align-items: center;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%; /* directly below navbar */
        right: 0;
        width: 220px;
        background: #fff;
        border: 1px solid #ddd;
        padding: 1rem;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 150;
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* HERO */

.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url("../images/hero.jpg") center/cover no-repeat;
    padding: 10rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.small-hero {
    padding: 8rem 0;
    min-height: auto;
}

.small-hero h1 {
    font-size: 3rem;
}

.small-hero .subtitle {
    font-size: 1rem;
}

/* ABOUT */

.about-section {
    background-color: var(--card-bg);
}

.about-section .content-text {
    padding-right: 2rem;
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-light);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-section .media-image {
    border: 4px solid var(--primary-color);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.about-section .media-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: background var(--transition-duration) ease-in-out;
}

.about-section .media-image:hover::before {
    background: rgba(255, 255, 255, 0);
}

/* SERVICES */

.services-section {
    background-color: var(--bg-color);
}

.service-card img {
    display: block;
    margin: 0 auto 1rem;
    height: 200px;
    width: 100%;             /* image stretches across card */
    object-fit: cover;       /* keeps proportions cropped nicely */
    border-bottom: 3px solid var(--accent-color);
}


.service-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* SERVICES DETAIL PAGE */
.services-detail-section {
    background-color: var(--card-bg);
}

.service-detail {
    margin-bottom: 4rem;
    padding: 3rem;
    border-radius: 8px;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.service-detail:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-detail.reverse {
    direction: rtl;
    /* Reverses the grid order */
}

.service-detail.reverse .service-text {
    direction: ltr;
    /* Keeps the text direction normal */
}

.service-detail h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.service-image {
    border: 4px solid var(--primary-color);
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Alternating background colors for visual interest */
.service-detail-refueling,
.service-detail-installations {
    background-color: #ffffff;
}

.service-detail-generator,
.service-detail-delivery {
    background-color: var(--bg-color);
}

/* Small hero section specific styles */
.small-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url("../images/hero.jpg") center/cover no-repeat;
    padding: 8rem 0;
    min-height: auto;
}

.small-hero h1 {
    font-size: 3rem;
}

.small-hero .subtitle {
    font-size: 1rem;
}
.faq-section {
  padding: 50px 20px;
  background: #f8f9fa;
}
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}
.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  outline: none;
  text-align: left;
  font-size: 18px;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.faq-question:hover {
  background: #f1f1f1;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #fff;
  padding: 0 15px;
}
.faq-answer p {
  margin: 15px 0;
}
.faq-item.active .faq-answer {
  max-height: 200px; /* enough space for text */
  padding: 15px;
}

/* MISSION & VISION */
.mission-section {
  background-color: var(--bg-color);
  padding: 4rem 0;
}

.mission-card {
  border: none;
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.mission-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

.mission-card h3 {
  font-family: var(--font-heading);
  color: var(--text-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.mission-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
/* WHY CHOOSE US */

.why-section {
    background-color: var(--card-bg);
}

.reason-card {
    padding: 3rem;
    border-left: 5px solid var(--primary-color);
    background-color: var(--bg-color);
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.reason-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.reason-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* TEAM SECTION */
.team-section {
    background-color: var(--bg-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem 2rem;
}

.team-card {
    padding: 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.team-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transition: transform 0.5s ease-in-out;
}

.team-img-wrapper::before,
.team-img-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.team-img-wrapper::after {
    background: var(--accent-color);
    transform: rotate(180deg);
}

.team-card:hover .team-img-wrapper::before {
    opacity: 0.1;
}

.team-card:hover .team-img-wrapper::after {
    opacity: 0.2;
}

.team-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-in-out;
    justify-content: center;
    align-items: center;
}

.team-card:hover .team-img-wrapper {
    transform: translateY(-10px);
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-content {
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: var(--card-bg);
}

.team-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.team-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.team-bio {
    font-size: 0.95rem;
    color: #555;
    margin-top: 1rem;
    line-height: 1.4;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.social-icons a {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* FAQ */

.faq-section {
    background-color: var(--bg-color);
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-duration);
}

.accordion-header:hover {
    background-color: var(--border-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-duration) ease-out, padding var(--transition-duration);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

/* CLIENTS CAROUSEL */

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    /* Keep the gap from the original service-grid */
}

.carousel-track .card {
    flex-shrink: 0;
    width: calc((100% / 3) - (2rem * 2 / 3));
    /* Show 3 cards at a time on desktop */
}

.carousel-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-color);
    transition: color 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.carousel-btn:hover {
    color: var(--accent-color);
}

.carousel-btn.prev-btn {
    left: -40px;
    /* Adjust position as needed */
}

.carousel-btn.next-btn {
    right: -40px;
    /* Adjust position as needed */
}

/* CTA Banner */

.cta-banner {
    padding: 5rem 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: #fff;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-banner .btn {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border-color: var(--card-bg);
}

.cta-banner .btn:hover {
    background-color: transparent;
    color: var(--card-bg);
}

/* FOOTER */

.footer {
    background-color: var(--card-bg);
    padding: 4rem 0 2rem;
    border-top: 2px solid var(--primary-color);
    font-size: 0.9rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    max-height: 100px;
    margin-bottom: 1rem;
}

.footer h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    font-size: 1.3rem;
    color: var(--text-color);
    transition: color var(--transition-duration);
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    color: var(--text-color);
}

/* FORM */

.form-section {
    background-color: var(--bg-color);
}

.order-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.order-form label {
    font-weight: 600;
    color: var(--primary-color);
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 4px;
    transition: border-color var(--transition-duration);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.order-form .btn {
    margin-top: 1rem;
    width: 100%;
}

/* CONTACT INFO */

.contact-info-section {
    background-color: var(--card-bg);
}

.contact-info-section p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
}

.contact-info-section a {
    color: var(--primary-color);
}

.map-container {
    margin-top: 2rem;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
}

/* RESPONSIVENESS */

@media (max-width: 1024px) {
    .grid-two {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-section .content-text {
        padding-right: 0;
    }

    .about-section .media-image {
        order: -1;
    }

    .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    /* CAROUSEL RESPONSIVENESS */
    .carousel-btn.prev-btn {
        left: 0;
    }

    .carousel-btn.next-btn {
        right: 0;
    }

    .carousel-track .card {
        width: calc((100% / 2) - (2rem / 2));
        /* Show 2 cards on tablet */
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 8rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-large {
        padding: 1rem 2rem;
    }

    .team-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* CAROUSEL RESPONSIVENESS */
    .carousel-track .card {
        width: 100%;
        /* Show 1 card on mobile */
    }
}