/* =========================================
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{
    color:var(--header-bg);
    margin-bottom:15px;
    text-align:left;
}

.trimming-card p{
    margin:0;
    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{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.main-image{
    grid-area: 1 / 1;
}

.main-image img{
    width:100%;
    height: 100%;
    min-height:900px;
    object-fit:cover;
    border-radius:30px;
    display:block;
   
}



.floating-box{
    grid-area: 1 / 1;
    align-self: start;
    justify-self: end;
    margin-top: 40px;
    margin-right: 0;
    width:500px;

    background:#fff;
    padding:25px;

    border-radius:24px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    z-index: 2;
}

.floating-box h4{
    color:var(--header-bg);
    margin-bottom:12px;
}

.floating-box p{
    line-height:1.7;
    color:#000;
    text-align:left;
}

/* =========================================
RESPONSIVE BREAKPOINTS
========================================= */

/* Large Tablets & Small Desktops (1200px and below) */
@media(max-width: 1200px){
    .tree-trimming-wrapper{
        gap: 50px;
    }
    
    .trimming-card{
        padding: 25px 20px;
    }
    .main-image img{
        min-height: 560px;
    }
    .floating-box{
        width: 300px;
        margin-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: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .main-image img{
        width:100%;
        min-height: 520px;
        border-radius: 25px;
    }
    .floating-box{
        margin-right: 20px;
        margin-top: 30px;
        width:500px;
        padding: 22px;
    }
   
}

/* 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{
        margin-bottom: 12px;
    }
    
    .trimming-card p{
        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{
        min-height: 420px;
        border-radius: 22px;
    }
    .floating-box{
        width: 260px;
        padding: 18px;
        margin-top: 20px;
        margin-right: 15px;
        border-radius: 20px;
    }
    
    .floating-box h4{
        margin-bottom: 8px;
    }
    
    .floating-box p{
        line-height: 1.6;
    }
   
}

/* 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{
        margin-bottom: 10px;
    }
    
    .trimming-card p{
        line-height: 1.6;
    }
    
    .tree-trimming-buttons{
        gap: 12px;
        margin-top: 25px;
    }
    
    .tree-btn-outline{
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .main-image img{
        min-height: 360px;
        border-radius: 18px;
    }
    

    
    .floating-box{
        width: 240px;
        padding: 15px;
        margin-top: 15px;
        margin-right: 10px;
        border-radius: 16px;
    }
    
    .floating-box h4{
        margin-bottom: 6px;
    }
    
    .floating-box p{
        line-height: 1.5;
    }
}

/* Small Mobile Devices (480px and below) */
@media(max-width: 480px){
    .tree-trimming-section{
        padding: 35px 0;
    }
    
    .main-image img{
        height: 320px;
        border-radius: 16px;
    }
    

    
    .floating-box{
        grid-area: auto;
        width: 100%;
        margin-right: 0;
        margin-top: 15px;
        padding: 20px 22px;
    }
    
    .trimming-card {
        padding: 20px 22px;
    }

}

/* Very Small Mobile Devices (400px and below) */
@media(max-width: 400px){
    .tree-trimming-section{
        padding: 30px 0;
    }
    
    .main-image img{
        min-height: 280px;
        border-radius: 14px;
    }
    .trimming-card{
        padding: 20px 22px;
    }
    .tree-btn-outline{
        padding: 10px 16px;
        font-size: 14px;
    }
     .floating-box{
        padding:20px 22px;
    }
    .floating-box h4{
    }
    
    .floating-box p{
    }
}

/* 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{
        min-height: 380px;
    }
    

    
    .floating-box{
        width: 240px;
        margin-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;
    }
}

/* =========================================
   TYPOGRAPHY STANDARDIZATION (USER REQUESTED)
   ========================================= */
/* Desktop */
.tree-trimming-section h2, .section-title h2 { font-size: 40px !important; }
.tree-trimming-section h3, .service-box h3, .section-title h3, .floating-box h4 { font-size: 22px !important; }
.tree-trimming-section p, .service-box p, .section-title p, .floating-box p { font-size: 18px !important; line-height: 1.6 !important; }
.tree-trimming-section li { font-size: 18px !important; line-height: 1.6 !important; }

/* Tablet and Mobile (<= 1024px) */
@media (max-width: 1024px) {
    .tree-trimming-section h2, .section-title h2 { font-size: 35px !important; }
    .tree-trimming-section h3, .service-box h3, .section-title h3, .floating-box h4 { font-size: 22px !important; }
    .tree-trimming-section p, .service-box p, .section-title p, .floating-box p { font-size: 18px !important; line-height: 1.6 !important; }
    .tree-trimming-section li { font-size: 18px !important; line-height: 1.6 !important; }
}