/* Color Palette */
:root {
    --orange: #FF8C42;
    --orange-dark: #E67E3C;
    --grey: #6B7280;
    --grey-light: #F3F4F6;
    --white: #FFFFFF;
    --blue: #3B82F6;
    --blue-dark: #1E40AF;
    --green: #10B981;
    --green-dark: #059669;
    --text-dark: #1F2937;
    --border-color: #E5E7EB;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */

/* Hero Section */
.hero {
    position: relative;
    min-height: 380px; /* slightly compact */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

/* Center Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
}

/* Heading */
.hero-heading {
    font-size: 2.4rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

/* Highlighted text */
.hero-heading span {
    color: var(--orange);
    font-weight: 700;
}

/* Optional: subtle text shadow for readability */
.hero-heading {
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


/* Solutions Section */
.solutions-section {
    /* more breathing space */
    background: #ffffff;
        padding: 4.5rem 0 3rem 0;
}

/* Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem; /* more spacing between items */
    margin-top: 2.5rem;
}

/* Each Item */
.solution-item {
    padding: 1.2rem 1rem;
    border-left: 3px solid transparent;
    border-bottom: 2px solid #eee;
    border-radius: 6px;
    transition: all 0.25s ease;
}

/* Add subtle color variation */
.solution-item:nth-child(1) { border-left-color: var(--orange); }
.solution-item:nth-child(2) { border-left-color: var(--blue); }
.solution-item:nth-child(3) { border-left-color: var(--green); }
.solution-item:nth-child(4) { border-left-color: var(--orange); }
.solution-item:nth-child(5) { border-left-color: var(--blue); }
.solution-item:nth-child(6) { border-left-color: var(--green); }

/* Hover effect */
.solution-item:hover {
    background: #ffffff;
    border-bottom-color: transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Title */
.solution-item h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem; /* more gap from text */
    line-height: 1.4;
}

/* Description */
.solution-item p {
    font-size: 0.85rem;
    color: var(--grey);
    line-height: 1.6;
}


/* Process Section (aligned with design system) */
.process-section {
    padding: 4.5rem 0; /* SAME as solutions */
    background: #f9fafb; /* match light theme */
}

/* Process Section (aligned spacing only) */
.process-section {
    padding: 4.5rem 0; /* MATCH other sections */
    background: #f0f7ff; /* keep your original bg */
}

/* Title */
.process-section .center {
    text-align: center;
    margin-bottom: 2.5rem; /* consistent spacing */
    font-size: 2.2rem;
    color: #000;
}

/* Grid (same as before, just naming changed) */
.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem; /* MATCH solutions section */
    max-width: 1200px;
    margin: 0 auto;
}

/* KEEP SAME BOX DESIGN */
.process-step {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #2c7aba;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* SAME typography */
.process-step span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c7aba;
    margin-bottom: 15px;
    opacity: 0.3;
}

.process-step h4 {
    color: #2c7aba;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process-step {
        padding: 20px 15px;
    }

    .process-step h4 {
        font-size: 1.1rem;
    }

    .process-step p {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .process-step {
        padding: 15px 10px;
    }

    .process-step span {
        font-size: 1.5rem;
    }

    .process-step h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .process-step p {
        font-size: 0.8rem;
    }

    .process-section .center {
        font-size: 1.8rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-card h2 {
        font-size: 1.8rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .pests-grid,
    .testimonials-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .solution-item {
        padding: 1rem 0.8rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }


@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card h2 {
        font-size: 1.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat h4 {
        font-size: 1.4rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-number {
        font-size: 2rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .solution-item {
        padding: 0.8rem 0.6rem;
    }

    .solution-item h3 {
        font-size: 0.95rem;
    }

    .solution-item p {
        font-size: 0.8rem;
    }

    /* .cta-section h2 {
        font-size: 1.6rem;
    } */
}

/* Center align section titles and subtitles */
.section-title {
    text-align: center;
}

.section-subtitle {
    text-align: center;
}
}


/* --- Why Choose IPM Section --- */
#why-choose { 
    padding: 70px 0; 
    background-color: #f7f9fc; /* soft light bg */
}

/* GRID */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

/* CARD */
.why-choose-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 18px;   /* taller cards */
    text-align: center;

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.25s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.why-choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* ICON */
.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;

    font-size: 1.3rem;
    color: white;
}

/* COLORS (bring back blue theme) */
.why-icon.blue { background-color: #2f80ed; }
.why-icon.green { background-color: #27ae60; }
.why-icon.yellow { background-color: #f2c94c; }
.why-icon.green-dark { background-color: #219653; }

/* TEXT */
.why-choose-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1e2a39;
}

.why-choose-card p {
    font-size: 0.82rem;
    color: #5f6c7b;
    line-height: 1.45;
}

/* ================= MOBILE (SAME LAYOUT BUT CLEANER) ================= */
@media (max-width: 768px) {

  #why-choose {
    padding: 50px 0;
  }

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;  /* more breathing room */
  }

  .why-choose-card {
    padding: 18px 12px !important; /* taller */
    border-radius: 14px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .why-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .why-choose-card h3 {
    font-size: 0.95rem !important;
  }

  .why-choose-card p {
    font-size: 0.78rem !important;
    line-height: 1.4;
  }

  /* CENTER LAST CARD */
  .why-choose-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 300px;
  }
}

@media (max-width: 768px) {

  /* KEEP carousel logic intact */
  .services-slide {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  /* arrows position */
  .services-carousel-wrapper {
    position: relative;
  }

  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-arrow-left {
    left: -10px;
  }

  .carousel-arrow-right {
    right: -10px;
  }

}

@media (max-width: 768px) {

  .services-slide .service-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 280px;
  }

}

@media (max-width: 768px) {

  .hero {
    min-height: 220px;   /* 🔥 much shorter */
  }

  .hero-bg-image {
    object-fit: cover;
    object-position: center 20%;  /* 🔥 more crop (focus top area) */
    transform: scale(1.15);       /* slight zoom for better crop */
  }

}


.section-title,
.section-subtitle {
    text-align: center;
}


@media (max-width: 768px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process-step {
        padding: 20px 15px;
    }

    .process-step h4 {
        font-size: 1.1rem;
    }

    .process-step p {
        font-size: 0.9rem;
    }

    /* Center last process-step if odd number */
    .process-flow .process-step:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 320px;
    }
}






@media (max-width: 768px) {

  /* FLOW (IMPORTANT) */
  .flow {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 12px;
  }

  .flow-step {
    min-height: auto !important;
    padding: 12px 8px;
  }

  .flow-step h4 {
    font-size: 0.9rem !important;
  }

  .flow-step p {
    font-size: 0.75rem !important;
  }

  /* Center last flow-step if odd number */
  .flow .flow-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 320px;
  }}

  .process-section .section-title.center{
    color: #2C5E9E !important;
    font-weight: 700 !important;
}

.solutions-section .section-title{
    color: #2C5E9E !important;
    font-weight: 700 !important;
}