/* =============================================
   HOME PAGE CSS - JK Drive Technology
   ============================================= */

/* ---- Hero Section ---- */
.hero-section { position: relative; }

.hero-slide {
    height: 92vh;
    min-height: 580px;
    max-height: 850px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-1 { background-image: url('../images/home/hero1.jpeg'); }
.hero-slide-2 { background-image: url('../images/home/hero2.jpeg'); }

/* Compensate for white navbar – no overlay on hero needed */ 

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,25,47,0.85) 0%, rgba(26,42,74,0.75) 50%, rgba(10,25,47,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    text-align: left;
}

.hero-text-wrap {
    max-width: 700px;
    margin-left: 0;
    text-align: left;
}

.hero-btns {
    justify-content: flex-start;
}

/* ---- Slide 1: text right-aligned ---- */
.hero-slide-1 .hero-content   { text-align: right; }
.hero-slide-1 .hero-text-wrap { margin-left: auto; margin-right: 0; text-align: right; }
.hero-slide-1 .hero-btns      { justify-content: flex-end; }

/* ---- Slide 2: text left-aligned (default, kept explicit for clarity) ---- */
.hero-slide-2 .hero-content   { text-align: left; }
.hero-slide-2 .hero-text-wrap { margin-left: 0; margin-right: auto; text-align: left; }
.hero-slide-2 .hero-btns      { justify-content: flex-start; }

.hero-tag {
    font-family: var(--font-heading);
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 22px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 400;
    color: var(--white);
    text-transform: none;
    line-height: 1.15;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease forwards;
}


.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

#heroCarousel .carousel-indicators [data-bs-slide-to] {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    border: none;
}

#heroCarousel .carousel-indicators .active {
    background: var(--accent);
    width: 50px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    margin: 0 15px;
    transition: var(--transition);
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--accent);
}

/* ============================================================
   PARTNERS & CLIENTS – exact match of screenshot
   (real brand-logo images + dark wave top divider)
   ============================================================ */

.partners-clients-section {
    position: relative;
    background: var(--white);
    padding: 0;
    overflow: hidden;
}

/* ── Top dark wave divider ── */
.pc-wave-top {
    position: relative;
    width: 100%;
    height: 90px;
    line-height: 0;
    pointer-events: none;
    background: var(--white);
}
.pc-wave-top svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pc-inner {
    padding: 50px 48px 70px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Two-column flex layout */
.pc-columns {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* ── Shared heading style ── */
.pc-heading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 26px;
    padding: 0;
    border: none;
    display: block;
}

.pc-heading span { color: var(--accent); }

/* ── Left: ~30% ── */
.pc-left {
    flex: 0 0 320px;
    max-width: 320px;
}

.pc-sub {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    font-style: normal;
    margin: 0 0 18px;
    letter-spacing: 0.3px;
}

.pc-body {
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.85;
    text-align: justify;
    margin: 0;
}

/* ── Right: fills remaining space ── */
.pc-right { flex: 1; min-width: 0; }

/* ── 3-column image logo grid ── */
.pc-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 36px;
    align-items: center;
    margin: 0;
}

.pc-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-height: 80px;
    background: transparent;
    border: none;
}

.pc-logo-cell img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pc-logo-cell:hover img {
    transform: scale(1.04);
}

/* ---- About Intro Image ---- */
.about-img-grid {
    position: relative;
    border-radius: 10px;
    overflow: visible;
}

.about-main-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(19, 44, 145,0.4);
}

.about-badge .badge-number {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.about-badge .badge-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-top: 4px;
    padding: 0 8px;
}

/* ---- Home Services ---- */
.home-service-box {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.home-service-box:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(19, 44, 145,0.15);
}

/* =============================================
   EVER RELIABLE SPLIT SECTION
   – Dark navy panel with 4 features │ industrial photo
   ============================================= */
.ever-reliable-section {
    display: flex;
    width: 100%;
    min-height: 360px;
    background: var(--primary);
    overflow: hidden;
}

.er-left {
    flex: 0 0 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.er-left-inner {
    width: 100%;
    max-width: 560px;
}

.er-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-transform: none;
    text-align: center;
    margin: 0 0 38px;
    letter-spacing: 0.5px;
}

/* 2x2 features grid */
.er-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
}

.er-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.er-feature-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    line-height: 1;
}

.er-feature-text {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.5;
}

.er-right {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: var(--primary);   /* fills any space if image aspect ratio differs */
}

.er-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* show the FULL image without cropping */
    object-position: center;
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .ever-reliable-section { flex-direction: column; }
    .er-left, .er-right { flex: 1 1 100%; }
    .er-right { min-height: 280px; }
    .er-left { padding: 50px 30px; }
}

@media (max-width: 575px) {
    .er-title { font-size: 20px; margin-bottom: 28px; }
    .er-features { grid-template-columns: 1fr; gap: 18px; }
    .er-left { padding: 40px 22px; }
    .er-right { min-height: 220px; }
}

/* ---- Home CTA / Contact Section ---- */
.home-cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.home-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(19, 44, 145,0.08);
}

.home-cta-section .section-label { color: rgba(255,255,255,0.6); }

.cta-contact-info { display: flex; flex-direction: column; gap: 12px; }

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.cta-contact-item i { color: var(--accent); font-size: 18px; width: 20px; }

.home-contact-form-wrap {
    background: var(--white);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.home-contact-form-wrap .form-label { color: var(--dark-text); }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   CLIENTS TESTIMONIAL SECTION
   ============================================= */
.clients-testimonial-section {
    position: relative;
    background: #ededed;
    padding: 70px 0 110px;
    overflow: visible;          /* let the wave-top extend above the section */
}

/* ── Top / Bottom white wave dividers ── */
.ct-wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.ct-wave svg { width: 100%; height: 100%; display: block; }

.ct-wave-top    { top: -59px; }       /* sits just above the section so the previous section shows above the wavy edge */
.ct-wave-bottom { bottom: -59px; }
.ct-wave-bottom svg { transform: scaleX(-1) scaleY(-1); }

.ct-inner { position: relative; z-index: 2; }

/* ── Heading ── */
.ct-heading {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 26px;
}

.ct-heading span {
    color: var(--accent);
    margin-left: 6px;
}

/* ── Description paragraph ── */
.ct-description {
    font-size: 13.5px;
    color: #555;
    line-height: 1.85;
    max-width: 970px;
    margin: 0 auto 18px;
    text-align: center;
}

.ct-description strong {
    color: #2b2b2b;
    font-weight: 700;
}

/* ── Comma-separated client list ── */
.ct-clients-list {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 0 auto 50px;
    max-width: 1000px;
}

/* ------------------------------------------------------------------
   Cards row
   ------------------------------------------------------------------ */
.ct-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

/* Each block = card + author below */
.ct-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── White testimonial card ── */
.ct-card {
    position: relative;
    background: var(--white);
    border-radius: 8px;
    padding: 30px 28px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    width: 100%;
    text-align: left;
    margin-bottom: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ct-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Big royal-blue quotation icon */
.ct-quote-icon {
    color: var(--accent);
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
}

/* Quote body */
.ct-quote-text {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin: 0 0 16px;
}

/* 5-star row (gold/amber) */
.ct-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 1px;
}

.ct-stars i { margin-right: 1px; }

/* ── Author block (avatar + name) under each card ── */
.ct-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 4px;
}

.ct-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 14px;
}

.ct-name {
    font-family: var(--font-body);
    font-size: 14px;
    color: #2b2b2b;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .clients-testimonial-section { padding: 70px 0 90px; }
    .ct-heading { font-size: 26px; }
    .ct-cards { grid-template-columns: 1fr; gap: 36px; max-width: 540px; margin: 0 auto; }
}

@media (max-width: 575px) {
    .clients-testimonial-section { padding: 55px 0 75px; }
    .ct-heading { font-size: 22px; letter-spacing: 1px; }
    .ct-description, .ct-clients-list { font-size: 12.5px; }
    .ct-card { padding: 24px 22px 22px; }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-title { font-size: 50px; }
    .hero-tag   { font-size: 17px; }
    .hero-slide { height: 70vh; }
    .about-badge { bottom: -10px; right: 10px; width: 100px; height: 100px; }
    .about-badge .badge-number { font-size: 24px; }

    /* Partners section */
    .pc-columns { flex-direction: column; gap: 36px; }
    .pc-left { flex: unset; max-width: 100%; }
    .pc-inner { padding: 32px 24px 50px; }
    .pc-logos-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 24px; }
    .pc-wave-top { height: 70px; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 30px; }
    .hero-slide { height: 85vh; min-height: 500px; }
    .home-contact-form-wrap { padding: 20px; }
    .about-main-img { height: 280px; }
    .pc-inner { padding: 24px 18px 40px; }
    .pc-heading { font-size: 22px; text-align: center; }
    .pc-sub, .pc-body { text-align: center; }
    .pc-body { text-align: justify; }
    .pc-logos-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pc-logo-cell { min-height: 70px; padding: 6px; }
    .pc-logo-cell img { max-height: 50px; }
    .pc-wave-top { height: 55px; }
}

@media (max-width: 480px) {
    .pc-logos-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .pc-logo-cell img { max-height: 44px; }
}
