﻿/*=====================================================
    ABOUT PAGE
    Chakraphet Law Company
======================================================*/

:root {
    --primary: #0B1F3A;
    --secondary: #132C53;
    --gold: #C9A24A;
    --gold-hover: #B58C32;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text: #444;
    --heading: #0B1F3A;
    --border: #EAEAEA;
    --shadow: 0 10px 35px rgba(0,0,0,.08);
    --transition: .35s ease;
}

/*=====================================================
    GLOBAL
======================================================*/

body {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
}

.section-space {
    padding: 100px 0;
}

.section-title {
    color: var(--heading);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 42px;
}

.section-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.section-description {
    max-width: 700px;
    margin: auto;
}

.title-line {
    width: 90px;
    height: 4px;
    background: var(--gold);
    border-radius: 30px;
    margin-bottom: 35px;
}

img {
    transition: .4s;
}

    img:hover {
        transform: scale(1.02);
    }

/*=====================================================
    BUTTON
======================================================*/

.btn-gold {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

    .btn-gold:hover {
        background: var(--gold-hover);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,.18);
    }

.btn-outline-light {
    border-radius: 50px;
    padding: 14px 34px;
    border-color: #D4AF37;
   
}

/*=====================================================
    HERO
======================================================*/
.index-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    background-image: url('/images/banner/hero-index.webp');
    animation: heroZoom 12s ease-in-out infinite, heroFade1 12s infinite;
}
.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    background-image: url('/images/banner/banner_aboutUs.webp');
}

.service-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('/images/banner/banner_service.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lawyer-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    background-image: url('/images/banner/banner_lawyers.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*~ /images/company/img_lawyerteam.webp*/

.about-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient( 90deg, rgba(11,31,58,.92) 0%, rgba(11,31,58,.70) 40%, rgba(11,31,58,.25) 75%, rgba(11,31,58,.10) 100% );
}

/* เนื้อหา Hero */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient( to bottom, rgba(11,31,58,0), rgba(11,31,58,.65), #0B1F3A );
}

/*.about-hero .container {
    position: relative;
    z-index: 10;
}*/

.hero-subtitle {
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 15px;
    text-transform: uppercase;
}
 
.hero-subtitlehome {
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 15px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-subtitlehome {
        font-size: 13px;
    }
}

.hero-description {
    color: #FFF;
    font-size: 20px;
    line-height: 2;
    max-width: 650px;
}

.gold-line {
    width: 120px;
    height: 4px;
    background: var(--gold);
}

/*=====================================================
    ABOUT COMPANY
======================================================*/

.experience-box {
    position: absolute;
    bottom: 30px;
    right: -20px;
    width: 180px;
    background: #FFF;
    text-align: center;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

    .experience-box h2 {
        font-size: 54px;
        color: var(--gold);
        margin: 0;
        font-weight: 700;
    }

    .experience-box span {
        color: #777;
        font-size: 14px;
        letter-spacing: 1px;
    }

.about-item {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    font-weight: 600;
}

    .about-item i {
        color: var(--gold);
        margin-right: 14px;
        font-size: 20px;
    }



/* =====================================================
   ABOUT PAGE CSS - PART 2
   ===================================================== */


/* ===============================
   Mission Section
================================ */

.about-mission-section {
    padding: 100px 0;
    background: #ffffff;
}



.about-section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}



.about-subtitle {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #b08d57;
    letter-spacing: 2px;
    text-transform: uppercase;
}



.about-section-header h2 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1d1d1d;
}



.about-section-header p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}





/* Mission Card */

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}



.mission-card {
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: .4s ease;
}



    .mission-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(0,0,0,.15);
    }



.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f7f1e8;
    color: #b08d57;
    font-size: 32px;
}



.mission-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}



.mission-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}





/* ===============================
   Why Choose Us
================================ */


.why-section {
    padding: 100px 0;
    background: #f8f8f8;
}



.why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}



.why-image {
    position: relative;
}



    .why-image img {
        width: 100%;
        border-radius: 25px;
        object-fit: cover;
    }



.experience-box {
    position: absolute;
    right: -30px;
    bottom: 40px;
    width: 170px;
    height: 150px;
    background: #b08d57;
    color: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}



    .experience-box strong {
        font-size: 55px;
        line-height: 1;
    }



    .experience-box span {
        font-size: 16px;
    }





.why-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
}



.why-content p {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}





.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}



    .check-list li {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
        font-size: 17px;
    }



    .check-list i {
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #b08d57;
        color: white;
        font-size: 13px;
    }





/* ===============================
   Counter Section
================================ */


.counter-section {
    padding: 80px 0;
    background: #151515;
}



.counter-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}



.counter-item {
    text-align: center;
    color: white;
}



    .counter-item h3 {
        font-size: 55px;
        font-weight: 700;
        margin-bottom: 10px;
    }



    .counter-item p {
        font-size: 18px;
        color: #ddd;
    }





/* ===============================
   Timeline
================================ */


.timeline-section {
    padding: 100px 0;
    background: white;
}



.timeline {
    max-width: 900px;
    margin: auto;
    position: relative;
}



    .timeline::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        width: 3px;
        height: 100%;
        background: #b08d57;
        transform: translateX(-50%);
    }



.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
}



    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
    }



    .timeline-item:nth-child(even) {
        left: 50%;
    }



.timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 40px;
    background: #b08d57;
    color: white;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}



.timeline-content {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 20px;
}



    .timeline-content h3 {
        margin-bottom: 15px;
        font-size: 24px;
    }



    .timeline-content p {
        color: #666;
        line-height: 1.8;
    }





/* ===============================
   CTA Section
================================ */


.about-cta {
    padding: 100px 0;
}



.cta-box {
    background: linear-gradient( 135deg, #b08d57, #8c6b3f );
    padding: 70px 50px;
    text-align: center;
    color: white;
    border-radius: 30px;
}



    .cta-box h2 {
        font-size: 42px;
        margin-bottom: 20px;
    }



    .cta-box p {
        font-size: 18px;
        margin-bottom: 35px;
    }



.btn-white {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #8c6b3f;
    border-radius: 50px;
    font-weight: 700;
    transition: .3s;
}



    .btn-white:hover {
        transform: translateY(-5px);
    }





/* ===============================
   Animation
================================ */


/*.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s ease;
}



.reveal.active {
    opacity: 1;
    transform: none;
}*/





/* ===============================
   Responsive
================================ */


@media(max-width:992px) {


    .mission-grid {
        grid-template-columns: 1fr;
    }



    .why-wrapper {
        grid-template-columns: 1fr;
    }



    .counter-grid {
        grid-template-columns: repeat(2,1fr);
    }



    .experience-box {
        right: 20px;
    }



    .timeline::before {
        left: 20px;
    }



    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 70px;
    }
}



@media(max-width:576px) {


    .about-section-header h2,
    .why-content h2,
    .cta-box h2 {
        font-size: 30px;
    }



    .counter-grid {
        grid-template-columns: 1fr;
    }



    .counter-item h3 {
        font-size: 45px;
    }



    .cta-box {
        padding: 45px 25px;
    }



    .experience-box {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -40px;
        margin-left: auto;
    }
}

/* =====================================================
   ABOUT PAGE CSS - PART 3 FINAL
   ===================================================== */


/* =====================================================
   HERO SECTION
   ===================================================== */


.about-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}



    .about-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0,0,0,.75), rgba(0,0,0,.35) );
    }



.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}



    .about-hero-content span {
        display: inline-block;
        font-size: 16px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #d8b47a;
        margin-bottom: 20px;
    }



    .about-hero-content h1 {
        font-size: 60px;
        line-height: 1.2;
        font-weight: 800;
        margin-bottom: 25px;
    }



    .about-hero-content p {
        font-size: 20px;
        line-height: 1.8;
        max-width: 650px;
        color: #eee;
    }





/* =====================================================
   CONTAINER
   ===================================================== */


.about-container {
    width: min(1200px,90%);
    margin: auto;
}






/* =====================================================
   BUTTON SYSTEM
   ===================================================== */


.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    background: #b08d57;
    color: white;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    transition: .35s ease;
}



    .btn-primary:hover {
        background: #8c6b3f;
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,.2);
    }



.btn-outline {
    display: inline-flex;
    padding: 14px 35px;
    border: 2px solid #b08d57;
    color: #b08d57;
    border-radius: 50px;
    font-weight: 700;
    transition: .3s;
}



    .btn-outline:hover {
        background: #b08d57;
        color: white;
    }







/* =====================================================
   IMAGE EFFECT
   ===================================================== */


.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}



    .image-wrapper img {
        width: 100%;
        transition: .6s ease;
    }



    .image-wrapper:hover img {
        transform: scale(1.08);
    }



.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( transparent, rgba(0,0,0,.65) );
}






/* =====================================================
   VALUE SECTION
   ===================================================== */


.value-section {
    padding: 100px 0;
    background: #fafafa;
}



.value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}



.value-item {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    transition: .35s;
}



    .value-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,.1);
    }



    .value-item h3 {
        font-size: 25px;
        margin-bottom: 15px;
    }



    .value-item p {
        color: #666;
        line-height: 1.8;
    }







/* =====================================================
   CONTACT CTA IMPROVEMENT
   ===================================================== */


.contact-banner {
    margin-top: 80px;
    padding: 60px;
    background: #151515;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: white;
}



    .contact-banner h2 {
        font-size: 36px;
    }



    .contact-banner p {
        color: #ddd;
        font-size: 18px;
    }







/* =====================================================
   SOCIAL ICON
   ===================================================== */


.social-links {
    display: flex;
    gap: 15px;
}



    .social-links a {
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: #b08d57;
        color: white;
        transition: .3s;
    }



        .social-links a:hover {
            transform: translateY(-5px);
        }






/* =====================================================
   DARK MODE SUPPORT
   ===================================================== */


@media(prefers-color-scheme:dark) {


    .about-mission-section,
    .timeline-section {
        background: #111;
    }



    .about-section-header h2,
    .mission-card h3,
    .timeline-content h3 {
        color: #fff;
    }



    .about-section-header p,
    .mission-card p,
    .timeline-content p {
        color: #bbb;
    }



    .mission-card,
    .timeline-content,
    .value-item {
        background: #1b1b1b;
    }



    .why-section {
        background: #161616;
    }
}





/* =====================================================
   ACCESSIBILITY
   ===================================================== */


/*a:focus,*/
button:focus {
    outline: 3px solid #d8b47a;
    outline-offset: 4px;
}



img {
    max-width: 100%;
    height: auto;
}





/* ลด Animation สำหรับผู้ใช้ที่ไม่ต้องการ Motion */


@media(prefers-reduced-motion:reduce) {


    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}







/* =====================================================
   PRINT VERSION
   ===================================================== */


@media print {


    .about-hero::before,
    .btn-primary,
    .btn-outline,
    .social-links,
    .about-cta {
        display: none !important;
    }



    body {
        color: black;
        background: white;
    }



    .mission-card,
    .timeline-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}







/* =====================================================
   FINAL RESPONSIVE FIX
   ===================================================== */


@media(max-width:768px) {


    .about-hero {
        min-height: 520px;
    }



    .about-hero-content h1 {
        font-size: 40px;
    }



    .about-hero-content p {
        font-size: 17px;
    }



    .contact-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }



        .contact-banner h2 {
            font-size: 28px;
        }



    .value-list {
        flex-direction: column;
    }
}



@media(max-width:480px) {


    .about-hero-content h1 {
        font-size: 32px;
    }



    .about-container {
        width: 92%;
    }



    .btn-primary,
    .btn-outline {
        width: 100%;
    }
}
