/* Yashaswi Group homepage redesign */
.homepage-redesign {
    overflow: hidden;
    background: #fff;
}

.homepage-redesign .section-compact {
    padding: 58px 0 42px;
}

.homepage-redesign .section-balanced {
    padding: 66px 0;
}

.section-title h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem) !important;
    line-height: 1.15 !important;
    font-weight: 900;
    color: var(--yg-blue);
    letter-spacing: -0.025em;
    margin-bottom: 7px;
}

.section-title h2 span {
    color: var(--yg-green);
}

.title-line {
    width: 130px;
    height: 4px;
    margin: 0 auto 28px;
    background: linear-gradient(90deg, var(--yg-green), var(--yg-yellow));
    border-radius: 999px;
    position: relative;
}

.title-line span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: var(--yg-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 5px #fff;
}

/* Hero */
.home-hero {
    min-height: 560px;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 91, 37, 0.93) 0%, rgba(0, 91, 37, 0.70) 35%, rgba(8, 55, 42, 0.28) 62%, rgba(0, 0, 0, 0.08) 100%);
}

.home-hero-container {
    position: relative;
    z-index: 2;
}

.home-hero-content {
    max-width: 680px;
    position: relative;
    padding-left: 34px;
}

.hero-accent-line {
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 150px;
    background: linear-gradient(180deg, var(--yg-yellow), var(--yg-orange));
    border-radius: 999px;
}

.home-hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.5rem) !important;
    line-height: 1.04 !important;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.home-hero p {
    font-size: clamp(1.02rem, 1.55vw, 1.22rem);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.94);
    max-width: 560px;
}

.hero-actions .btn {
    padding: 13px 28px;
    font-weight: 800;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.26);
}

.hero-call-btn {
    background: rgba(8, 117, 47, 0.88);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 91, 37, 0.25);
}

.hero-call-btn:hover {
    background: #fff;
    color: var(--yg-green);
}

.hero-enquire-btn {
    background: var(--yg-yellow);
    color: #172033;
    border-color: transparent !important;
    box-shadow: 0 14px 28px rgba(255, 190, 24, 0.25);
}

.hero-enquire-btn:hover {
    background: var(--yg-orange);
    color: #fff;
}

/* Stats */
.home-stats-wrap {
    margin-top: -56px;
    position: relative;
    z-index: 5;
    padding-bottom: 12px;
}

.home-stats-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--yg-shadow);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.home-stat-item {
    padding: 26px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    border-right: 1px solid rgba(15, 23, 42, 0.12);
}

.home-stat-item:last-child {
    border-right: 0;
}

.stat-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
}

.stat-green .stat-icon { background: var(--yg-green); }
.stat-orange .stat-icon { background: var(--yg-orange); }
.stat-blue .stat-icon { background: linear-gradient(135deg, var(--yg-blue-soft), #2596ff); }
.stat-gold .stat-icon { background: var(--yg-gold); }

.home-stat-item h3 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 5px;
}

.stat-green h3 { color: var(--yg-green); }
.stat-orange h3 { color: var(--yg-orange); }
.stat-blue h3 { color: var(--yg-blue-soft); }
.stat-gold h3 { color: var(--yg-gold); }

.home-stat-item p {
    margin: 0;
    color: #344054;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Why cards */
.why-yashaswi {
    background: linear-gradient(180deg, #fff, #fbfcfb);
}

.why-card {
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
}

.why-card-top {
    height: 92px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.why-card-top::after {
    content: '';
    position: absolute;
    right: -1px;
    bottom: -1px;
    border-style: solid;
    border-width: 0 0 30px 75px;
    border-color: transparent transparent #fff transparent;
}

.why-green .why-card-top { background: linear-gradient(135deg, var(--yg-green-dark), var(--yg-green)); }
.why-orange .why-card-top { background: linear-gradient(135deg, #d94d00, var(--yg-orange)); }
.why-blue .why-card-top { background: linear-gradient(135deg, #042a4c, var(--yg-blue)); }

.why-card-body {
    padding: 20px 22px 26px;
    text-align: center;
}

.why-card h3 {
    color: var(--yg-blue);
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.why-card p {
    color: #4b5563;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* About */
.home-about {
    background: #fff;
}

.home-about-copy .eyebrow {
    display: inline-block;
    color: var(--yg-gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-about-copy h2 {
    font-size: clamp(2rem, 3.2vw, 2.7rem) !important;
    font-weight: 900;
    line-height: 1.12 !important;
    color: var(--yg-ink);
    letter-spacing: -0.035em;
    margin-bottom: 14px;
}

.mini-line {
    width: 58px;
    height: 4px;
    background: var(--yg-green);
    border-radius: 999px;
    margin-bottom: 22px;
}

.home-about-copy p {
    color: #4b5563;
    font-size: 1.03rem;
    line-height: 1.75;
    margin-bottom: 26px;
}

.about-btn {
    background: var(--yg-green);
    color: #fff;
    border: 0;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(8, 117, 47, 0.18);
}

.about-btn:hover {
    background: var(--yg-green-dark);
    color: #fff;
}

.about-image-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--yg-shadow);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.about-image-frame img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Projects */
.home-projects {
    background: linear-gradient(180deg, #f6faf8 0%, #fff 100%);
}

.featured-project-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    border-top: 6px solid #fff;
    border-bottom: 6px solid #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.featured-project-panel {
    min-height: 330px;
    position: relative;
    overflow: hidden;
    border-right: 6px solid #fff;
    background: #ddd;
}

.featured-project-panel:last-child {
    border-right: 0;
}

.project-panel-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 330px;
    color: #fff;
    text-decoration: none;
}

.project-panel-link img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.01);
    transition: transform 0.4s ease;
}

.project-panel-link:hover img {
    transform: scale(1.07);
}

.project-panel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    background: linear-gradient(90deg, rgba(7, 55, 100, 0.98), rgba(7, 55, 100, 0.86));
    color: #fff;
    padding: 15px 18px;
}

.caption-arrow {
    width: 30px;
    min-width: 30px;
    height: 42px;
    background: var(--yg-yellow);
    color: var(--yg-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%, 28% 50%);
    font-size: 0.95rem;
}

.project-panel-caption h3 {
    font-size: 1.08rem;
    font-weight: 900;
    margin: 0 0 2px;
    line-height: 1.22;
}

.project-panel-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.2;
}

.project-status-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
    text-transform: uppercase;
}

.status-completed { background: var(--yg-green); }
.status-ongoing { background: var(--yg-orange); }

.view-projects-btn {
    border: 2px solid var(--yg-yellow);
    color: var(--yg-blue);
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 12px;
    background: #fff;
}

.view-projects-btn:hover {
    background: var(--yg-yellow);
    color: var(--yg-blue);
}

.empty-projects {
    background: #fff;
    border-radius: 18px;
    border: 1px dashed rgba(15, 23, 42, 0.2);
}

.empty-projects i {
    font-size: 3rem;
    color: var(--yg-green);
}

/* CTA */
.home-cta {
    padding: 22px 0 30px;
    background: #fff;
}

.home-cta-inner {
    background: linear-gradient(105deg, var(--yg-green-dark), var(--yg-green) 58%, #0e8b37);
    color: #fff;
    border-radius: 0;
    min-height: 118px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 36px rgba(8, 117, 47, 0.22);
}

.home-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12), transparent 22%), radial-gradient(circle at 90% 10%, rgba(255, 190, 24, 0.18), transparent 18%);
}

.cta-yellow-corner {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    background: var(--yg-yellow);
    opacity: 0.95;
}

.cta-left {
    left: -56px;
    transform: skewX(-30deg);
}

.cta-right {
    right: -56px;
    transform: skewX(-30deg);
}

.cta-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.35fr 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 26px 92px;
}

.cta-content h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem) !important;
    line-height: 1.08 !important;
    font-weight: 900;
    letter-spacing: -0.035em;
    margin: 0;
}

.cta-content h2 span {
    color: var(--yg-yellow);
}

.cta-content p {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    max-width: 350px;
}

.cta-btn {
    background: var(--yg-orange);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.cta-btn:hover {
    background: #fff;
    color: var(--yg-orange);
}

@media (max-width: 1199px) {
    .home-stat-item {
        padding: 24px 20px;
        gap: 14px;
    }

    .stat-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        font-size: 1.55rem;
    }

    .cta-content {
        padding: 26px 64px;
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: 500px;
    }

    .home-stats-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stat-item:nth-child(2) {
        border-right: 0;
    }

    .home-stat-item:nth-child(1),
    .home-stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    }

    .about-image-frame img {
        height: 300px;
    }

    .featured-project-strip {
        display: block;
        max-width: 720px;
        border: 0;
        box-shadow: none;
    }

    .featured-project-panel {
        border-right: 0;
        border-bottom: 14px solid #fff;
        border-radius: 16px;
        box-shadow: var(--yg-shadow);
        margin: 0 18px 18px;
    }

    .featured-project-panel:last-child {
        border-bottom: 0;
    }

    .project-panel-link,
    .featured-project-panel {
        min-height: 260px;
    }

    .project-panel-link img {
        height: 260px;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 34px 40px;
        gap: 16px;
    }

    .cta-content p {
        max-width: 560px;
    }
}

@media (max-width: 767px) {
    .homepage-redesign .section-compact,
    .homepage-redesign .section-balanced {
        padding: 48px 0;
    }

    .home-hero {
        min-height: 520px;
        background-position: 60% center;
    }

    .home-hero-overlay {
        background: linear-gradient(90deg, rgba(0, 91, 37, 0.96) 0%, rgba(0, 91, 37, 0.82) 54%, rgba(0, 0, 0, 0.25) 100%);
    }

    .home-hero-content {
        padding-left: 22px;
    }

    .hero-accent-line {
        width: 5px;
        height: 128px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-stats-wrap {
        margin-top: -32px;
    }

    .home-stats-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .home-stat-item,
    .home-stat-item:nth-child(1),
    .home-stat-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.10);
        min-height: auto;
        padding: 20px;
    }

    .home-stat-item:last-child {
        border-bottom: 0;
    }

    .why-card-top {
        height: 84px;
    }

    .home-about-copy {
        text-align: left;
    }

    .about-image-frame img {
        height: 240px;
    }

    .project-panel-caption {
        flex-wrap: wrap;
        gap: 10px;
    }

    .project-status-badge {
        margin-left: 42px;
    }

    .cta-yellow-corner {
        display: none;
    }

    .cta-content {
        padding: 30px 22px;
    }

    .home-cta-inner {
        border-radius: 16px;
    }
}
