/* =========================================
TREE TRIMMING & PRUNING SECTION
========================================= */

.tree-trimming-section{
    padding:80px 0;
}

.tree-trimming-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}


/* SERVICE CARDS */

.trimming-services{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:40px;
}

.trimming-card{
    background:#f7f7f7;
    padding:20px 25px;
    border-radius:24px;
    transition:0.3s ease;
    position:relative;
    overflow:hidden;
}

.trimming-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:4px;

    background:var(--header-bg);
}

.trimming-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.trimming-card h3{
    font-size:16px;
    color:var(--header-bg);
    margin-bottom:15px;
    text-align:center;
}

.trimming-card p{
    margin:0;
    font-size:15px;
    line-height:1.7;
    text-align:left;
}

/* BUTTONS */

.tree-trimming-buttons{
    display:flex;
    gap:20px;
    margin-top:40px;
    flex-wrap:wrap;
}

.tree-btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:16px 34px;
    border-radius:50px;

    border:2px solid var(--header-bg);

    text-decoration:none;
    color:var(--header-bg);
    font-weight:700;

    transition:0.3s ease;
}

.tree-btn-outline:hover{
    background:var(--header-bg);
    color:#fff;
}

/* IMAGES */

.tree-trimming-images{
    position:relative;
   
}

.main-image img{
    width:100%;
    height:900px;
    object-fit:cover;
    border-radius:30px;
    display:block;
   
}

.small-image{
    position:absolute;
    bottom:-30px;
    left:0;

    width:260px;
}

.small-image img{
    width:100%;
    height:500px;
    object-fit:cover;
    border-radius:24px;

    border:8px solid #fff;

    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

.floating-box{
    position:absolute;
    top:40px;
    right:0;

    width:260px;

    background:#fff;
    padding:25px;

    border-radius:24px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.floating-box h4{
    font-size:22px;
    color:var(--header-bg);
    margin-bottom:12px;
}

.floating-box p{
    font-size:15px;
    line-height:1.7;
    color:#000;
    text-align: center;
}

/* =========================================
RESPONSIVE BREAKPOINTS
========================================= */

/* Large Tablets & Small Desktops (1200px and below) */
@media(max-width: 1200px){
    .tree-trimming-wrapper{
        gap: 50px;
    }
    
    .trimming-card{
        padding: 25px 20px;
    }
    
    .trimming-card h3{
        font-size: 20px;
    }
    
    .trimming-card p{
        font-size: 18px;
    }
    
    .main-image img{
        height: 560px;
    }
    
    .small-image{
        width: 220px;
        left: 0;
    }
    
    .small-image img{
        height: 220px;
    }
    
    .floating-box{
        width: 240px;
        right: 0;
    }
}

/* Tablets & Medium Screens (992px and below) */
@media(max-width: 992px){
    .tree-trimming-section{
        padding: 60px 0;
    }
    
    .tree-trimming-wrapper{
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .tree-trimming-content{
        order: 2;
    }
    
    .tree-trimming-images{
        order: 1;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .main-image img{
        height: 520px;
        border-radius: 25px;
    }
    
    .small-image{
        left: 20px;
        bottom: -20px;
        width: 240px;
    }
    
    .small-image img{
        height: 240px;
        border-radius: 20px;
    }
    
    .floating-box{
        right: 20px;
        top: 30px;
        width: 250px;
        padding: 22px;
    }
    
    .floating-box h4{
        font-size: 20px;
    }
    
    .tree-trimming-content h2{
        font-size: 32px;
    }
}

/* Small Tablets & Large Phones (768px and below) */
@media(max-width: 768px){
    .tree-trimming-section{
        padding: 50px 0;
    }
    
    .tree-trimming-wrapper{
        gap: 35px;
    }
    
    .trimming-services{
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 30px;
    }
    
    .trimming-card{
        padding: 22px 20px;
        border-radius: 20px;
    }
    
    .trimming-card:hover{
        transform: translateY(-4px);
    }
    
    .trimming-card h3{
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .trimming-card p{
        font-size: 16px;
        line-height: 1.6;
    }
    
    .tree-trimming-buttons{
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .tree-btn-outline{
        width: 100%;
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .main-image img{
        height: 420px;
        border-radius: 22px;
    }
    
    .small-image{
        width: 180px;
        left: 15px;
        bottom: -15px;
    }
    
    .small-image img{
        height: 180px;
        border-radius: 18px;
        border-width: 6px;
    }
    
    .floating-box{
        width: 220px;
        padding: 18px;
        top: 20px;
        right: 15px;
        border-radius: 20px;
    }
    
    .floating-box h4{
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .floating-box p{
        font-size: 16px;
        line-height: 1.6;
    }
    
    .tree-trimming-content h2{
        font-size: 28px;
    }
    
    .tree-trimming-content p{
        font-size: 16px;
    }
}

/* Mobile Devices (576px and below) */
@media(max-width: 576px){
    .tree-trimming-section{
        padding: 40px 0;
    }
    
    .tree-trimming-wrapper{
        gap: 30px;
    }
    
    .trimming-services{
        gap: 15px;
        margin-top: 25px;
    }
    
    .trimming-card{
        padding: 18px 15px;
        border-radius: 18px;
    }
    
    .trimming-card h3{
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .trimming-card p{
        font-size: 15px;
        line-height: 1.6;
    }
    
    .tree-trimming-buttons{
        gap: 12px;
        margin-top: 25px;
    }
    
    .tree-btn-outline{
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .main-image img{
        height: 360px;
        border-radius: 18px;
    }
    
    .small-image{
        width: 150px;
        left: 10px;
        bottom: -10px;
    }
    
    .small-image img{
        height: 150px;
        border-radius: 15px;
        border-width: 5px;
    }
    
    .floating-box{
        width: 200px;
        padding: 15px;
        top: 15px;
        right: 10px;
        border-radius: 16px;
    }
    
    .floating-box h4{
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .floating-box p{
        font-size: 15px;
        line-height: 1.5;
    }
    
    .tree-trimming-content h2{
        font-size: 26px;
    }
    
    .tree-trimming-content p{
        font-size: 15px;
    }
}

/* Small Mobile Devices (480px and below) */
@media(max-width: 480px){
    .tree-trimming-section{
        padding: 35px 0;
    }
    
    .main-image img{
        height: 320px;
        border-radius: 16px;
    }
    
    .small-image{
        position: relative;
        width: 100%;
        margin-top: 15px;
        bottom: 0;
        left: 0;
    }
    
    .small-image img{
        width: 100%;
        height: 220px;
        border-radius: 16px;
        border-width: 4px;
    }
    
    .floating-box{
        position: relative;
        width: 100%;
        right: 0;
        top: 15px;
        margin-top: 15px;
        padding: 15px;
    }
    
    .tree-trimming-content h2{
        font-size: 24px;
    }
    
    .tree-trimming-content p{
        font-size: 13px;
    }
    
    .trimming-card h3{
        font-size: 17px;
    }
    
    .trimming-card p{
        font-size: 13px;
    }
}

/* Very Small Mobile Devices (400px and below) */
@media(max-width: 400px){
    .tree-trimming-section{
        padding: 30px 0;
    }
    
    .main-image img{
        height: 280px;
        border-radius: 14px;
    }
    
    .small-image img{
        height: 180px;
    }
    
    .trimming-card{
        padding: 15px 12px;
    }
    
    .trimming-card h3{
        font-size: 16px;
    }
    
    .trimming-card p{
        font-size: 10px;
    }
    
    .tree-trimming-content h2{
        font-size: 22px;
    }
    
    .tree-trimming-content p{
        font-size: 11px;
    }
    
    .tree-btn-outline{
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .floating-box h4{
        font-size: 15px;
    }
    
    .floating-box p{
        font-size: 10px;
    }
}

/* Landscape Mode for Mobile */
@media(max-width: 768px) and (orientation: landscape){
    .tree-trimming-section{
        padding: 40px 0;
    }
    
    .tree-trimming-wrapper{
        gap: 30px;
    }
    
    .trimming-services{
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trimming-card{
        padding: 15px;
    }
    
    .main-image img{
        height: 380px;
    }
    
    .small-image{
        width: 160px;
        bottom: -10px;
    }
    
    .small-image img{
        height: 160px;
    }
    
    .floating-box{
        width: 200px;
        top: 10px;
    }
    
    .tree-trimming-buttons{
        flex-direction: row;
    }
    
    .tree-btn-outline{
        width: auto;
        padding: 12px 20px;
    }
}

/* Print Styles (Optional) */
@media print {
    .tree-trimming-section{
        padding: 20px 0;
    }
    
    .tree-trimming-wrapper{
        display: block;
    }
    
    .trimming-card{
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        background: #fff;
    }
    
    .trimming-card::before{
        background: #ddd;
    }
    
    .trimming-card:hover{
        transform: none;
    }
    
    .tree-btn-outline{
        border: 1px solid #ddd;
        color: #000;
    }
    
    .tree-btn-outline:hover{
        background: none;
        color: #000;
        transform: none;
    }
    
    .main-image img{
        box-shadow: none;
        border: 1px solid #ddd;
        height: auto;
    }
    
    .small-image img{
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .floating-box{
        box-shadow: none;
        border: 1px solid #ddd;
        position: relative;
        margin-top: 15px;
    }
}
/* AUTOMATED MOBILE OVERRIDES FOR GRIDS */
@media (max-width: 767px) {
    .tree-trimming-wrapper {
        grid-template-columns: 1fr !important;
    }
    .trimming-services {
        grid-template-columns: 1fr !important;
    }
}

/* AUTOMATED MOBILE OVERRIDES FOR GRIDS V2 */
@media (max-width: 767px) {
    .tree-trimming-wrapper {
        grid-template-columns: 1fr !important;
    }
    .trimming-services {
        grid-template-columns: 1fr !important;
    }
}

}
