/* =====================================================
   GreenFenceThai
   Species Template CSS
   Part 5A
===================================================== */

:root{

    --primary:#2E7D32;
    --primary-dark:#1B5E20;
    --primary-light:#EAF7EB;

    --secondary:#66BB6A;

    --text:#243124;
    --text-light:#667085;

    --white:#ffffff;

    --border:#E5E7EB;

    --bg:#F8FAF8;

    --radius:20px;

    --shadow-sm:
        0 4px 12px rgba(0,0,0,.05);

    --shadow:
        0 12px 40px rgba(0,0,0,.08);

    --shadow-lg:
        0 20px 60px rgba(0,0,0,.12);

    --transition:.30s ease;

    --container:1200px;

}



/* ==========================================
Reset
========================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:
        "LINE Seed Sans TH",
        "Noto Sans Thai",
        sans-serif;

    color:var(--text);

    background:var(--bg);

    line-height:1.75;

    font-size:16px;

}



/* ==========================================
Container
========================================== */

.container{

    width:min(
        calc(100% - 40px),
        var(--container)
    );

    margin:auto;

}



/* ==========================================
Image
========================================== */

img{

    display:block;

    width:100%;

    height:auto;

}



/* ==========================================
Link
========================================== */

a{

    text-decoration:none;

    color:inherit;

}



/* ==========================================
Section
========================================== */

section{

    padding:90px 0;

}



/* ==========================================
Heading
========================================== */

h1{

    font-size:clamp(2.2rem,5vw,3.6rem);

    line-height:1.15;

    margin-bottom:24px;

    font-weight:800;

}

h2{

    font-size:clamp(1.8rem,3vw,2.7rem);

    margin-bottom:20px;

    line-height:1.3;

    font-weight:800;

}

h3{

    font-size:1.25rem;

    margin-bottom:14px;

    font-weight:700;

}

p{

    color:var(--text-light);

}



/* ==========================================
Section Title
========================================== */

.section-title{

    text-align:center;

    max-width:760px;

    margin:0 auto 60px;

}

.section-title span{

    display:inline-flex;

    align-items:center;

    gap:8px;

    background:var(--primary-light);

    color:var(--primary);

    padding:8px 18px;

    border-radius:999px;

    font-weight:700;

    margin-bottom:20px;

}

.section-title p{

    margin-top:15px;

}



/* ==========================================
Button
========================================== */

.btn-primary,

.btn-outline{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:15px 34px;

    border-radius:999px;

    font-weight:700;

    transition:var(--transition);

}

.btn-primary{

    /* background:var(--primary);

    color:#fff; */

    box-shadow:var(--shadow-sm);

}

.btn-primary:hover{

    background:var(--primary-dark);

    transform:translateY(-3px);

}

.btn-outline{

    border:2px solid var(--primary);

    color:var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}



/* ==========================================
Hero
========================================== */

.species-hero{

    position:relative;

    overflow:hidden;

    background:

    linear-gradient(
        135deg,
        #F4FFF3 0%,
        #E5F6E7 100%
    );

    padding-top:70px;

    padding-bottom:120px;

}

.species-hero::before{

    content:"";

    position:absolute;

    right:-180px;

    top:-120px;

    width:520px;

    height:520px;

    border-radius:50%;

    background:

    rgba(76,175,80,.08);

}

.species-hero::after{

    content:"";

    position:absolute;

    left:-120px;

    bottom:-220px;

    width:480px;

    height:480px;

    border-radius:50%;

    background:

    rgba(102,187,106,.08);

}

.species-hero-grid{

    display:grid;

    grid-template-columns:

        1.05fr
        .95fr;

    gap:60px;

    align-items:center;

    position:relative;

    z-index:2;

}



/* ==========================================
Hero Content
========================================== */

.species-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    border-radius:999px;

    background:#fff;

    color:var(--primary);

    font-weight:700;

    box-shadow:var(--shadow-sm);

    margin-bottom:22px;

}

.species-hero-content p{

    font-size:1.08rem;

    margin-bottom:32px;

}

.hero-action{

    display:flex;

    gap:16px;

    flex-wrap:wrap;

}



/* ==========================================
Hero Image
========================================== */

.species-hero-image{

    position:relative;

}

.species-hero-image img{

    border-radius:32px;

    box-shadow:var(--shadow-lg);

}



/* ==========================================
Breadcrumb
========================================== */

.breadcrumb{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    align-items:center;

    font-size:.95rem;

    margin-bottom:40px;

    color:#6B7280;

}

.breadcrumb a{

    transition:.2s;

}

.breadcrumb a:hover{

    color:var(--primary);

}



/* ==========================================
Quick Answer
========================================== */

.answer-box{

    background:#fff;

    border-radius:24px;

    padding:40px;

    box-shadow:var(--shadow);

    max-width:900px;

    margin:auto;

}

.answer-box p+p{

    margin-top:18px;

}



/* ==========================================
Intro
========================================== */

.species-intro .content{

    max-width:900px;

    margin:auto;

}

.species-intro p{

    margin-bottom:20px;

    font-size:1.05rem;

}

/* =====================================================
   GreenFenceThai
   Species Template CSS
   Part 5B
=====================================================*/


/* ==========================================
Feature
========================================== */

.feature-grid{

/*     display:grid;
    grid-template-columns:repeat(4,1fr); 
    gap:28px;
 */


    justify-content:center;

    /*
        มี 2 รายการ → จัด 2 คอลัมน์
        มี 3 รายการ → จัด 3 คอลัมน์
        มี 4 รายการ → จัด 4 คอลัมน์
        มือถือ → เหลือ 1 คอลัมน์อัตโนมัติ
    */
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
}

.feature-card{

    background:#fff;

    border-radius:24px;

    padding:36px 28px;

    text-align:center;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

    border:1px solid transparent;

}

.feature-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

    border-color:#D7ECD8;

}

.feature-card .icon{

    width:72px;

    height:72px;

    margin:auto;

    margin-bottom:22px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--primary-light);

    font-size:2rem;

}

.feature-card p{

    font-size:.95rem;

}



/* ==========================================
Size Grid
========================================== */

.size-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:28px;

}

.size-card{

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

}

.size-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.size-card img{
    aspect-ratio:1/1;
    object-fit:cover;
    object-position: top center;

}

.size-card .body{

    padding:26px;

}

.size-card h3{

    margin-bottom:14px;

}

.size-card p{

    font-size:.95rem;

    margin-bottom:22px;

}

.size-card a{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--primary);

    font-weight:700;

}

.size-card a:hover{

    color:var(--primary-dark);

}



/* ==========================================
Comparison Table
========================================== */

.table-wrapper{

    overflow-x:auto;

}

.compare-table{

    width:100%;

    border-collapse:collapse;

    min-width:760px;

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

}

.compare-table thead{

    background:var(--primary);

    color:#fff;

}

.compare-table th{

    padding:18px;

    text-align:center;

    font-size:1rem;

}

.compare-table td{

    padding:18px;

    border-bottom:1px solid var(--border);

    text-align:center;

}

.compare-table tbody tr:hover{

    background:#F8FCF8;

}



/* ==========================================
Estimate
========================================== */

.estimate-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

    margin-top:45px;

}

.estimate-grid article{

    background:#fff;

    padding:30px;

    border-radius:20px;

    text-align:center;

    box-shadow:var(--shadow-sm);

    transition:.3s;

}

.estimate-grid article:hover{

    transform:translateY(-6px);

}

.estimate-grid strong{

    display:block;

    color:var(--primary);

    font-size:1.4rem;

    margin:15px 0;

}



/* ==========================================
Price Guide
========================================== */

.guide-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:28px;

}

.guide-grid article{

    background:#fff;

    border-radius:22px;

    padding:32px;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

    border-left:6px solid var(--primary);

}

.guide-grid article:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow);

}

.guide-grid h3{

    color:var(--primary);

}



/* ==========================================
Buy Guide
========================================== */

.buy-guide{

    display:flex;

    flex-direction:column;

    gap:26px;

}

.buy-guide article{

    background:#fff;

    border-radius:22px;

    padding:32px;

    display:flex;

    gap:28px;

    align-items:flex-start;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

}

.buy-guide article:hover{

    transform:translateY(-5px);

}

.buy-guide .number{

    width:70px;

    height:70px;

    flex-shrink:0;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:1.4rem;

    font-weight:800;

}



/* ==========================================
Detail Card
========================================== */

.detail-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}

.detail-card{

    background:#fff;

    border-radius:24px;

    padding:34px;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

}

.detail-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow);

}

.detail-card h3{

    color:var(--primary);

}



/* ==========================================
Section Intro
========================================== */

.section-intro{

    max-width:900px;

    margin:auto;

    text-align:center;

    font-size:1.05rem;

}



/* ==========================================
Common White Section
========================================== */

.species-feature,

.species-size,

.species-comparison,

.species-calculate,

.species-price-guide,

.species-buy-guide,

.species-size-detail{

    background:#fff;

}



/* ==========================================
Card Animation
========================================== */

.feature-card,

.size-card,

.detail-card,

.guide-grid article,

.estimate-grid article,

.buy-guide article{

    will-change:transform;

}

.feature-card:hover,

.size-card:hover,

.detail-card:hover,

.guide-grid article:hover,

.estimate-grid article:hover,

.buy-guide article:hover{

    transition:all .3s ease;

}



/* ==========================================
Spacing
========================================== */

.species-feature{

    padding-top:100px;

}

.species-size{

    padding-top:100px;

}

.species-comparison{

    padding-top:100px;

}

.species-calculate{

    padding-top:100px;

}

.species-price-guide{

    padding-top:100px;

}

.species-buy-guide{

    padding-top:100px;

}

.species-size-detail{

    padding-top:100px;

}


/* =====================================================
   GreenFenceThai
   Species Template CSS
   Part 5C
=====================================================*/


/* ==========================================
Benefit Grid
========================================== */

.benefit-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:28px;

}

.benefit-grid article{

    background:#fff;

    padding:34px;

    border-radius:24px;

    box-shadow:var(--shadow-sm);

    border-top:5px solid var(--primary);

    transition:var(--transition);

}

.benefit-grid article:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.benefit-grid h3{

    color:var(--primary);

    margin-bottom:14px;

}



/* ==========================================
Planting Step
========================================== */

.step-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:26px;

}

.step-grid article{

    background:#fff;

    border-radius:24px;

    padding:32px 26px;

    text-align:center;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

}

.step-grid article:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.step-number{

    width:72px;

    height:72px;

    border-radius:50%;

    margin:auto;

    margin-bottom:20px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--primary);

    color:#fff;

    font-size:1.5rem;

    font-weight:800;

}



/* ==========================================
Care
========================================== */

.care-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

.care-grid article{

    background:#fff;

    border-radius:22px;

    padding:32px;

    text-align:center;

    box-shadow:var(--shadow-sm);

    transition:.3s;

}

.care-grid article:hover{

    transform:translateY(-8px);

}

.care-grid h3{

    color:var(--primary);

}



/* ==========================================
Related
========================================== */

.related-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

.related-card{

    display:block;

    background:#fff;

    padding:34px;

    border-radius:24px;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

    border:1px solid transparent;

}

.related-card:hover{

    transform:translateY(-8px);

    border-color:#D7ECD8;

    box-shadow:var(--shadow);

}

.related-card h3{

    color:var(--primary);

    margin-bottom:12px;

}



/* ==========================================
FAQ
========================================== */

.faq-list{

    max-width:900px;

    margin:auto;

}

.faq-list details{

    background:#fff;

    margin-bottom:18px;

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:.3s;

}

.faq-list details:hover{

    box-shadow:var(--shadow);

}

.faq-list summary{

    cursor:pointer;

    list-style:none;

    padding:24px 30px;

    font-size:1.05rem;

    font-weight:700;

    position:relative;

}

.faq-list summary::-webkit-details-marker{

    display:none;

}

.faq-list summary::after{

    content:"+";

    position:absolute;

    right:28px;

    top:50%;

    transform:translateY(-50%);

    color:var(--primary);

    font-size:1.6rem;

    font-weight:700;

}

.faq-list details[open] summary::after{

    content:"−";

}

.faq-list details p{

    padding:30px 30px 28px;

}




/* ==========================================
CTA
========================================== */

.contact-box,

.cta-box{

    background:

    linear-gradient(
        135deg,
        #2E7D32,
        #3FA34D
    );

    color:#fff;

    border-radius:36px;

    padding:70px;

    text-align:center;

    box-shadow:var(--shadow-lg);

}

.contact-box span,

.cta-box span{

    display:inline-block;

    background:rgba(255,255,255,.18);

    padding:10px 22px;

    border-radius:999px;

    margin-bottom:20px;

    font-weight:700;

}

.contact-box h2,

.cta-box h2{

    color:#fff;

}

.contact-box p,

.cta-box p{

    color:rgba(255,255,255,.92);

    max-width:760px;

    margin:auto;

    margin-bottom:36px;

}

.contact-action,

.cta-action{

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:wrap;

}



/* ==========================================
CTA Button Override
========================================== */

.contact-box .btn-primary,
.cta-box .btn-primary{

    /* background:#fff;

    color:var(--primary); */

}

.contact-box .btn-primary:hover,

.cta-box .btn-primary:hover{

   /*  background:#F6FFF5; */

}

.contact-box .btn-outline,

.cta-box .btn-outline{

   /*  border-color:#fff;

    color:#fff; */

}

.contact-box .btn-outline:hover,

.cta-box .btn-outline:hover{

    background:#fff;

    color:var(--primary);

}



/* ==========================================
Glass Effect
========================================== */

.glass{

    backdrop-filter:blur(18px);

    background:rgba(255,255,255,.72);

    border:1px solid rgba(255,255,255,.55);

}



/* ==========================================
Animation
========================================== */

.feature-card,

.size-card,

.detail-card,

.related-card,

.benefit-grid article,

.care-grid article,

.step-grid article,

.faq-list details,

.contact-box,

.cta-box{

    transition:

        transform .30s ease,

        box-shadow .30s ease;

}



/* ==========================================
White Section
========================================== */

.species-benefits,

.species-planting,

.species-care,

.species-related,

.species-faq,

.species-contact,

.species-final-cta{

    background:#F8FAF8;

}


/* =====================================================
   GreenFenceThai
   Species Template CSS
   Part 5D
=====================================================*/


/* ==========================================
Tablet
========================================== */

@media (max-width:1100px){

    .species-hero-grid{

        grid-template-columns:1fr;

        /* gap:50px; */

    }

    .species-hero-image{

        max-width:700px;

        margin:auto;

    }

    .feature-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .size-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .detail-grid{

        grid-template-columns:1fr;

    }

    .estimate-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .guide-grid{

        grid-template-columns:1fr;

    }

    .benefit-grid{

        grid-template-columns:1fr;

    }

    .step-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .care-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .related-grid{

        grid-template-columns:repeat(2,1fr);

    }

}



/* ==========================================
Mobile
========================================== */

@media (max-width:768px){

    section{

        padding:70px 0;

    }

    .container{

        width:min(
            calc(100% - 24px),
            100%
        );

    }

    h1{

        font-size:2rem;

        line-height:1.25;

    }

    h2{

        font-size:1.7rem;

    }

    .section-title{

        margin-bottom:40px;

    }

    .section-title span{

        font-size:.85rem;

    }

    .species-hero{

        padding-top:40px;

        padding-bottom:70px;

    }

    .species-hero::before,

    .species-hero::after{

        display:none;

    }

    .species-badge{

        font-size:.85rem;

    }

    .hero-action{

        flex-direction:column;

    }

    .hero-action a{

        width:100%;

    }

    .btn-primary,

    .btn-outline{

        width:100%;

    }

    .answer-box{

        padding:28px;

    }

    .feature-grid,

    .size-grid,

    .estimate-grid,

    .step-grid,

    .care-grid,

    .related-grid{

        grid-template-columns:1fr;

    }

    .buy-guide article{

        flex-direction:column;

        text-align:center;

    }

    .buy-guide .number{

        margin:auto;

    }

    .contact-box,

    .cta-box{

        padding:40px 24px;

        border-radius:24px;

    }

    .contact-action,

    .cta-action{

        flex-direction:column;

    }

    .contact-action a,

    .cta-action a{

        width:100%;

    }

    .breadcrumb{

        font-size:.85rem;

        gap:6px;

    }

}



/* ==========================================
Small Mobile
========================================== */

@media (max-width:480px){

    h1{

        font-size:1.8rem;

    }

    h2{

        font-size:1.5rem;

    }

    h3{

        font-size:1.05rem;

    }

    p{

        font-size:.95rem;

    }

    .feature-card,

    .detail-card,

    .size-card .body,

    .guide-grid article,

    .estimate-grid article,

    .care-grid article,

    .related-card{

        padding:22px;

    }

    .faq-list summary{

        padding:20px;

        padding-right:48px;

        font-size:1rem;

    }

    .faq-list details p{

        padding:0 20px 22px;

    }

}



/* ==========================================
Table Mobile
========================================== */

@media (max-width:768px){

    .compare-table{

        min-width:620px;

    }

}



/* ==========================================
Hover
========================================== */

@media (hover:hover){

    a,

    button{

        transition:all .25s ease;

    }

}



/* ==========================================
Selection
========================================== */

::selection{

    background:var(--primary);

    color:#fff;

}



/* ==========================================
Focus
========================================== */

a:focus,

button:focus,

summary:focus{

    outline:3px solid rgba(46,125,50,.25);

    outline-offset:4px;

}



/* ==========================================
Lazy Image
========================================== */

img{

    background:#F3F5F4;

}



/* ==========================================
Utility
========================================== */

.text-center{

    text-align:center;

}

.mt-20{

    margin-top:20px;

}

.mt-40{

    margin-top:40px;

}

.mb-20{

    margin-bottom:20px;

}

.mb-40{

    margin-bottom:40px;

}

.hidden{

    display:none;

}



/* ==========================================
Fade
========================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

.fade-up{

    animation:fadeUp .6s ease both;

}



/* ==========================================
Print
========================================== */

@media print{

    .btn-primary,

    .btn-outline,

    .contact-box,

    .cta-box{

        display:none;

    }

}



/* ==========================================
Reduce Motion
========================================== */

@media (prefers-reduced-motion:reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}


/********************/
/*======================================
Footer
======================================*/

.species-footer{

    background:#204C36;

    color:#fff;

    margin-top:100px;

}

.species-footer .container{

    padding:80px 0 30px;

}

.footer-grid{

    display:grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1.2fr;

    gap:50px;

}

.footer-logo{

    width:70px;

    margin-bottom:18px;

}

.footer-col h3{

    margin-bottom:16px;

    color:#fff;

}

.footer-col h4{

    margin-bottom:18px;

    color:#fff;

}

.footer-col p{

    color:rgba(255,255,255,.78);

    line-height:1.9;

}

.footer-col ul{

    list-style:none;

    padding:0;

    margin:0;

}

.footer-col li{

    margin-bottom:14px;

}

.footer-col a{

    color:rgba(255,255,255,.82);

    transition:.25s;

}

.footer-col a:hover{

    color:#fff;

    padding-left:6px;

}

.footer-bottom{

    margin-top:60px;

    padding-top:25px;

    border-top:1px solid rgba(255,255,255,.15);

    text-align:center;

}

.footer-bottom p{

    color:rgba(255,255,255,.6);

}

@media(max-width:991px){

    .footer-grid{

        grid-template-columns:1fr;

        gap:40px;

    }

}
/**/
.footer-col>div>.btn-line{

    background: #416151;

   /*  color:#21493b; */

   /*  border:2px solid #fff; */

    box-shadow:
        0 12px 30px rgba(0,0,0,.18);

}

.footer-col>div>.btn-line:hover{

   /*  background:#F5FFF7; */

    transform:translateY(-3px);

}