/* ==============================================================
   about.css – Stylesheet trang Giới thiệu SUNILIES
   Đặt tại: src/main/resources/static/css/about.css
   Dùng cùng các biến màu / font đã định nghĩa ở index.css & base.html
   ============================================================== */

/* -----------------------------------------------
   0. CSS VARIABLES (đồng bộ với index.css)
----------------------------------------------- */
:root{
    --mainColor:   #c8986a;
    --darkColor:   #3d2e1c;
    --textColor:   #231f20;
    --borderColor: #e8e4de;
    --bgLight:     #faf2e6;
    --muted:       #7a6a57;
    --fontDisplay: 'Playfair Display', serif;
    --fontBody:    'Lato', sans-serif;
    --transition:  .3s ease;
}

/* -----------------------------------------------
   1. BREADCRUMB
----------------------------------------------- */
.ab-bc{
    padding: 14px 0;
    border-bottom: 1px solid var(--borderColor);
    font-size: 12px;
    color: #aaa;
}
.ab-bc a{ color:#aaa; transition: color var(--transition); }
.ab-bc a:hover{ color: var(--mainColor); }
.ab-bc__sep{ margin: 0 8px; color: #ddd; }
.ab-bc__current{ color: var(--darkColor); }

/* -----------------------------------------------
   2. HERO – 2 cột: chữ trái, ảnh phải
----------------------------------------------- */
.ab-hero{
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
    background:
            radial-gradient(circle at 85% 20%, rgba(200,152,106,.10) 0, transparent 45%),
            radial-gradient(circle at 10% 80%, rgba(200,152,106,.06) 0, transparent 40%),
            #fff;
}
.ab-hero__bg-text{
    position: absolute;
    bottom: -30px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--fontDisplay);
    font-style: italic;
    font-size: clamp(120px, 18vw, 260px);
    color: rgba(200,152,106,.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: 8px;
    z-index: 0;
}
.ab-hero__inner{
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.ab-hero__eyebrow{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--mainColor);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ab-hero__eyebrow::before{
    content:"";
    width: 40px; height: 1px;
    background: var(--mainColor);
}
.ab-hero__title{
    font-family: var(--fontDisplay);
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--darkColor);
    margin-bottom: 28px;
}
.ab-hero__title em{
    font-style: italic;
    color: var(--mainColor);
    font-weight: 500;
}
.ab-hero__desc{
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 36px;
}
.ab-hero__meta{
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.ab-hero__meta-item{
    border-left: 2px solid var(--mainColor);
    padding-left: 14px;
}
.ab-hero__meta-num{
    font-family: var(--fontDisplay);
    font-size: 28px;
    color: var(--darkColor);
    font-weight: 500;
    line-height: 1;
}
.ab-hero__meta-label{
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}
.ab-hero__img{
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(61,46,28,.25);
}
.ab-hero__img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}
.ab-hero__img:hover img{ transform: scale(1.06); }
.ab-hero__img-tag{
    position: absolute;
    bottom: 24px; left: 24px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    padding: 12px 18px;
    font-family: var(--fontDisplay);
    font-style: italic;
    font-size: 14px;
    color: var(--darkColor);
    border-left: 3px solid var(--mainColor);
}

/* -----------------------------------------------
   3. MARQUEE – câu trích chạy ngang
----------------------------------------------- */
.ab-marquee{
    background: var(--darkColor);
    color: var(--bgLight);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ab-marquee__track{
    display: inline-flex;
    align-items: center;
    gap: 40px;
    animation: abmarquee 30s linear infinite;
}
.ab-marquee__track span{
    font-family: var(--fontDisplay);
    font-size: 22px;
    font-style: italic;
    letter-spacing: 2px;
    flex-shrink: 0;
}
.ab-marquee__dot{
    color: var(--mainColor);
    font-size: 10px !important;
    font-style: normal !important;
}
.ab-marquee:hover .ab-marquee__track{ animation-play-state: paused; }
@keyframes abmarquee{
    from{ transform: translateX(0); }
    to  { transform: translateX(-50%); }
}

/* -----------------------------------------------
   4. SECTION CHUNG
----------------------------------------------- */
.ab-section{
    padding: 100px 0;
    position: relative;
}
.ab-section--cream{ background: var(--bgLight); }
.ab-section--mission{ padding: 80px 0; }

.ab-section__head{
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}
.ab-section__eyebrow{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--mainColor);
    margin-bottom: 18px;
}
.ab-section__title{
    font-family: var(--fontDisplay);
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 400;
    color: var(--darkColor);
    line-height: 1.25;
    margin-bottom: 20px;
}
.ab-section__title em{
    font-style: italic;
    color: var(--mainColor);
}
.ab-section__divider{
    width: 60px;
    height: 1px;
    background: var(--mainColor);
    margin: 0 auto 20px;
}
.ab-section__desc{
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
}

/* -----------------------------------------------
   5. STORY – ảnh + chữ xen kẽ
----------------------------------------------- */
.ab-story{
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}
.ab-story--reverse{ grid-template-columns: 1.1fr 1fr; }
.ab-story--reverse .ab-story__media{ order: 2; }

.ab-story__media{
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
}
.ab-story__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.ab-story__media:hover img{ transform: scale(1.04); }
.ab-story__media::after{
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(250,242,230,.4);
    pointer-events: none;
}

.ab-story__text{ padding: 20px 0; }
.ab-story__num{
    font-family: var(--fontDisplay);
    font-style: italic;
    font-size: 80px;
    color: rgba(200,152,106,.18);
    line-height: 1;
    margin-bottom: 16px;
}
.ab-story__title{
    font-family: var(--fontDisplay);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
    color: var(--darkColor);
    line-height: 1.3;
    margin-bottom: 24px;
}
.ab-story__title em{ font-style: italic; color: var(--mainColor); }

.ab-story__body{
    font-size: 15px;
    line-height: 1.95;
    color: var(--muted);
    margin-bottom: 16px;
}
.ab-story__body strong{
    color: var(--darkColor);
    font-weight: 600;
}

.ab-story-wrap + .ab-story-wrap{ margin-top: 90px; }

/* -----------------------------------------------
   6. GIÁ TRỊ CỐT LÕI – 4 thẻ
----------------------------------------------- */
.ab-values{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ab-value{
    background: #fff;
    padding: 42px 28px;
    border: 1px solid var(--borderColor);
    text-align: center;
    position: relative;
    transition: all .4s ease;
}
.ab-value::before{
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--mainColor);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
}
.ab-value:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(61,46,28,.18);
}
.ab-value:hover::before{ transform: scaleX(1); }

.ab-value__icon{
    width: 64px; height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--bgLight);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mainColor);
    transition: all .4s ease;
}
.ab-value:hover .ab-value__icon{
    background: var(--mainColor);
    color: #fff;
    transform: rotate(-8deg);
}
.ab-value__title{
    font-family: var(--fontDisplay);
    font-size: 20px;
    color: var(--darkColor);
    margin-bottom: 12px;
}
.ab-value__desc{
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
}

/* -----------------------------------------------
   7. QUY TRÌNH – timeline 4 bước
----------------------------------------------- */
.ab-process{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.ab-process::before{
    content: "";
    position: absolute;
    top: 34px; left: 12%; right: 12%;
    height: 1px;
    background: repeating-linear-gradient(
            to right,
            var(--mainColor) 0 6px,
            transparent 6px 12px
    );
    opacity: .5;
    z-index: 0;
}
.ab-step{
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}
.ab-step__num{
    width: 68px; height: 68px;
    margin: 0 auto 24px;
    background: #fff;
    border: 2px solid var(--mainColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fontDisplay);
    font-size: 24px;
    font-style: italic;
    color: var(--mainColor);
    position: relative;
    transition: all .4s ease;
}
.ab-step:hover .ab-step__num{
    background: var(--mainColor);
    color: #fff;
    transform: scale(1.08);
}
.ab-step__title{
    font-family: var(--fontDisplay);
    font-size: 19px;
    color: var(--darkColor);
    margin-bottom: 10px;
}
.ab-step__desc{
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
}

/* -----------------------------------------------
   8. BANNER NGHỆ NHÂN – fullwidth ảnh + quote
----------------------------------------------- */
.ab-artisan{
    position: relative;
    padding: 140px 0;
    background:
            linear-gradient(rgba(61,46,28,.55), rgba(61,46,28,.55)),
            url('https://images.unsplash.com/photo-1604011237320-8c79406ba0bd?w=1600&q=80') center/cover;
    color: #fff;
    text-align: center;
}
.ab-artisan__quote-mark{
    font-family: var(--fontDisplay);
    font-size: 120px;
    font-style: italic;
    line-height: 1;
    color: var(--mainColor);
    margin-bottom: -30px;
    opacity: .85;
}
.ab-artisan__quote{
    font-family: var(--fontDisplay);
    font-size: clamp(22px, 2.6vw, 34px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    max-width: 820px;
    margin: 0 auto 32px;
    color: #fff;
}
.ab-artisan__author{
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--mainColor);
}
.ab-artisan__author::before{ content: "— "; }

/* -----------------------------------------------
   9. STATS – 4 con số nổi bật
----------------------------------------------- */
.ab-stats{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.ab-stat{
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid var(--borderColor);
}
.ab-stat:last-child{ border-right: none; }
.ab-stat__num{
    font-family: var(--fontDisplay);
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 500;
    color: var(--darkColor);
    line-height: 1;
    margin-bottom: 10px;
}
.ab-stat__num em{
    font-style: italic;
    color: var(--mainColor);
}
.ab-stat__label{
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

/* -----------------------------------------------
   10. SỨ MỆNH – hộp khung góc
----------------------------------------------- */
.ab-mission{
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    position: relative;
}
.ab-mission::before,
.ab-mission::after{
    content: "";
    position: absolute;
    width: 60px; height: 60px;
    border: 1px solid var(--mainColor);
}
.ab-mission::before{
    top: 0; left: 0;
    border-right: none;
    border-bottom: none;
}
.ab-mission::after{
    bottom: 0; right: 0;
    border-left: none;
    border-top: none;
}
.ab-mission__text{
    font-family: var(--fontDisplay);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--darkColor);
    margin-bottom: 24px;
}
.ab-mission__text em{
    font-style: italic;
    color: var(--mainColor);
}
.ab-mission__sub{
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* -----------------------------------------------
   11. CTA cuối trang
----------------------------------------------- */
.ab-cta{
    background: var(--darkColor);
    color: var(--bgLight);
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ab-cta__bg{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--fontDisplay);
    font-style: italic;
    font-size: clamp(120px, 16vw, 220px);
    color: rgba(200,152,106,.08);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}
.ab-cta__inner{
    position: relative;
    z-index: 1;
}
.ab-cta__title{
    font-family: var(--fontDisplay);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 18px;
}
.ab-cta__title em{
    font-style: italic;
    color: var(--mainColor);
}
.ab-cta__desc{
    font-size: 15px;
    line-height: 1.9;
    color: rgba(250,242,230,.7);
    max-width: 520px;
    margin: 0 auto 36px;
}
.ab-cta__btns{
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ab-btn{
    display: inline-block;
    padding: 15px 38px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--fontBody);
    text-decoration: none;
    transition: all .35s ease;
    cursor: pointer;
    border: 1.5px solid var(--mainColor);
}
.ab-btn--primary{
    background: var(--mainColor);
    color: #fff;
}
.ab-btn--primary:hover{
    background: transparent;
    color: var(--mainColor);
}
.ab-btn--ghost{
    background: transparent;
    color: var(--bgLight);
    border-color: rgba(250,242,230,.4);
}
.ab-btn--ghost:hover{
    background: var(--bgLight);
    color: var(--darkColor);
    border-color: var(--bgLight);
}

/* -----------------------------------------------
   12. SCROLL REVEAL (kích hoạt bởi about.js)
----------------------------------------------- */
.reveal{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease,
    transform .8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}
.reveal--delay-1{ transition-delay: .1s; }
.reveal--delay-2{ transition-delay: .2s; }
.reveal--delay-3{ transition-delay: .3s; }
.reveal--delay-4{ transition-delay: .4s; }

/* -----------------------------------------------
   13. RESPONSIVE
----------------------------------------------- */
@media (max-width: 991px){
    .ab-hero{ padding: 60px 0; }
    .ab-hero__inner{ grid-template-columns: 1fr; gap: 50px; }
    .ab-hero__img{ aspect-ratio: 5/4; max-width: 520px; margin: 0 auto; }
    .ab-section{ padding: 70px 0; }

    .ab-story,
    .ab-story--reverse{ grid-template-columns: 1fr; gap: 40px; }
    .ab-story--reverse .ab-story__media{ order: 0; }

    .ab-values{ grid-template-columns: repeat(2, 1fr); }

    .ab-process{ grid-template-columns: repeat(2, 1fr); gap: 50px 0; }
    .ab-process::before{ display: none; }

    .ab-stats{ grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
    .ab-stat{ border-right: none; }
    .ab-stat:nth-child(odd){ border-right: 1px solid var(--borderColor); }

    .ab-artisan{ padding: 90px 20px; }
}

@media (max-width: 560px){
    .ab-values{ grid-template-columns: 1fr; }
    .ab-process{ grid-template-columns: 1fr; }
    .ab-stats{ grid-template-columns: 1fr; gap: 30px; }
    .ab-stat{
        border-right: none !important;
        padding-bottom: 30px;
        border-bottom: 1px solid var(--borderColor);
    }
    .ab-stat:last-child{
        border-bottom: none;
        padding-bottom: 0;
    }
    .ab-hero__meta{ gap: 20px; }
    .ab-mission{ padding: 50px 24px; }
    .ab-cta__btns{ flex-direction: column; align-items: center; }
    .ab-btn{ width: 100%; max-width: 280px; }
}