/* ===== About Us (aboutus.blade.php) =====
   โทนเดียวกับหน้า home: พื้นครีม (#faf6ee) สลับแถบสีเข้มน้ำตาล + ทอง (#FFC600)
   class ขึ้นต้น ab- กันชนกับ component อื่น */

.ab-page {
    --ab-gold: #FFC600;
    --ab-gold-deep: #c99a00;
    --ab-cream: #faf6ee;
    --ab-ink: #1a1206;
    --ab-muted: #5f5242;
    --ab-line: rgba(120, 90, 40, .16);
    --ab-dark: #1c130b;

    font-family: 'Prompt', sans-serif;
    color: var(--ab-ink);
}

/* ---------- ส่วนที่ใช้ร่วมกัน ---------- */
.ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1;
    color: var(--ab-gold-deep);
    text-transform: uppercase;
}

.ab-eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: currentColor;
}

.ab-eyebrow--center {
    justify-content: center;
}

.ab-eyebrow--center::after {
    content: '';
    width: 36px;
    height: 1px;
    background: currentColor;
}

.ab-heading {
    margin: 0 0 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1;
    color: var(--ab-ink);
}

.ab-body p {
    margin: 0 0 1.1em;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.8;
    color: var(--ab-muted);
}

.ab-body p:last-child {
    margin-bottom: 0;
}

.ab-body strong {
    font-weight: 600;
    color: var(--ab-ink);
}

/* reveal ตอนเลื่อนมาถึง (JS ใส่ .ab-reveal-ready ก่อน — ไม่มี JS ก็เห็นปกติ) */
.ab-reveal-ready .ab-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.ab-reveal-ready .ab-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ab-reveal-ready .ab-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* font/style.css ตั้ง html, body { overflow-x: hidden } -> body กลายเป็น scroll container
   ทำให้ position: sticky ของ hero ไม่ทำงาน (stage เลื่อนหายเหลือพื้นดำ)
   หน้านี้เปลี่ยนเป็น clip: ยังกันเลื่อนแนวนอนได้เหมือนเดิม แต่ไม่ทำลาย sticky */
@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* browser เก่าที่ไม่รู้จัก clip: ไม่ทำ sticky ให้ hero สูงเท่าจอปกติ (JS ยัง crossfade ตามการเลื่อน) */
@supports not (overflow: clip) {
    .ab-hero {
        height: auto !important;
    }

    .ab-hero-stage {
        position: relative;
    }
}

/* ---------- HERO ----------
   section สูงกว่าจอ + stage ข้างในเป็น sticky -> ระหว่างที่ stage ค้างอยู่
   JS จะตั้ง --ab-fade (0..1) ให้ภาพแรกจางเป็นภาพที่สอง แล้วค่อยเลื่อนต่อไป section ถัดไป */
.ab-hero {
    --ab-fade: 0;
    --ab-stage-h: max(560px, 100svh);

    position: relative;
    height: calc(var(--ab-stage-h) + 70svh);
    background: var(--ab-dark);
    color: #fff;
    overflow: clip; /* ห้ามใช้ hidden — จะทำให้ sticky ไม่ทำงาน */
}

.ab-hero-stage {
    position: sticky;
    top: 0;
    display: flex;
    align-items: flex-end;
    height: var(--ab-stage-h);
    overflow: hidden;
}

.ab-hero-media {
    position: absolute;
    inset: 0;
    animation: ab-hero-zoom 18s ease-out both;
}

.ab-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.ab-hero-bg--1 {
    opacity: calc(1 - var(--ab-fade));
}

.ab-hero-bg--2 {
    opacity: var(--ab-fade);
}

@keyframes ab-hero-zoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ab-hero-media {
        animation: none;
    }
}

.ab-hero-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(18, 12, 8, .92) 0%, rgba(18, 12, 8, .55) 38%, rgba(18, 12, 8, .1) 70%, rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}

.ab-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(48px, 8vh, 96px);
}

.ab-hero .ab-eyebrow {
    color: var(--ab-gold);
}

.ab-hero-title {
    margin: 0;
    font-family: 'Brunson', serif;
    font-size: clamp(3.2rem, 9vw, 7rem);
    font-weight: 400;
    line-height: .95;
    color: var(--ab-gold);
}

.ab-hero-text {
    max-width: 560px;
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}

.ab-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transform: translateX(-50%);
    animation: ab-bounce 2.2s ease-in-out infinite;
}

.ab-hero-scroll:hover {
    color: var(--ab-gold);
    border-color: var(--ab-gold);
}

@keyframes ab-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* ---------- STORY ---------- */
.ab-story {
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(255, 198, 0, .10), transparent 70%),
        var(--ab-cream);
    padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 96px);
}

.ab-story-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.ab-story-media {
    position: relative;
}

.ab-story-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(60, 40, 10, .18);
}

/* กรอบทองเยื้องด้านหลังรูป */
.ab-story-media::before {
    content: '';
    position: absolute;
    inset: 22px -22px -22px 22px;
    z-index: -1;
    border: 1px solid rgba(201, 154, 0, .55);
    border-radius: 22px;
}

.ab-story-media {
    isolation: isolate;
}

.ab-story-badge {
    position: absolute;
    left: -26px;
    bottom: 32px;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--ab-dark);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.ab-story-media .ab-story-badge img {
    width: 66%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
}

/* stats */
.ab-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: clamp(48px, 6vw, 80px) 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(60, 40, 10, .07);
}

.ab-stat {
    padding: clamp(20px, 2.5vw, 32px) 20px;
    text-align: center;
}

.ab-stat + .ab-stat {
    border-left: 1px solid var(--ab-line);
}

.ab-stat-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 4.5vw, 60px);
    line-height: 1;
    letter-spacing: 1px;
    color: var(--ab-gold-deep);
}

.ab-stat-label {
    display: block;
    margin-top: 6px;
    font-size: .92rem;
    line-height: 1.45;
    color: var(--ab-muted);
}

/* ---------- ROOTS (แถบสีเข้ม + quote) ---------- */
.ab-roots {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(55% 70% at 20% 50%, rgba(255, 198, 0, .16), transparent 70%),
        linear-gradient(180deg, #120c08 0%, #3a2817 50%, #120c08 100%);
    padding: clamp(64px, 8vw, 112px) 0;
    color: #fff;
}

.ab-roots-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.ab-roots-logo {
    text-align: center;
}

/* โลโก้เป็นสีทองเข้ม -> วางบนวงกลมครีม ไม่ให้กลืนกับพื้นน้ำตาล */
.ab-roots-medallion {
    display: grid;
    place-items: center;
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #fffaf0 0%, #f5ead2 70%, #ecdcb8 100%);
    box-shadow:
        0 0 0 2px rgba(255, 198, 0, .75),
        0 0 0 12px rgba(255, 198, 0, .10),
        0 30px 60px rgba(0, 0, 0, .5);
}

.ab-roots-medallion img {
    width: 74%;
    height: auto;
}

.ab-roots-year {
    display: block;
    margin-top: 24px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 7vw, 96px);
    line-height: 1;
    letter-spacing: 3px;
    color: rgba(255, 198, 0, .9);
}

.ab-roots .ab-eyebrow {
    color: var(--ab-gold);
}

.ab-roots-quote {
    position: relative;
    margin: 0 0 24px;
    padding-left: 24px;
    border-left: 3px solid var(--ab-gold);
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.ab-roots .ab-body p {
    color: rgba(255, 255, 255, .78);
}

/* ---------- STREET FOOD ---------- */
.ab-street {
    background: #fff;
    padding: clamp(64px, 8vw, 120px) 0;
}

.ab-street-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.ab-collage {
    position: relative;
    padding: 0 12% 18% 0;
}

.ab-collage img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.ab-collage-main {
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 50px rgba(60, 40, 10, .16);
}

.ab-collage .ab-collage-sub {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    aspect-ratio: 1 / 1;
    border: 6px solid #fff;
    box-shadow: 0 20px 50px rgba(60, 40, 10, .22);
}

/* ---------- TIMELINE ---------- */
.ab-journey {
    background:
        radial-gradient(70% 40% at 50% 0%, rgba(255, 198, 0, .10), transparent 70%),
        var(--ab-cream);
    padding: clamp(64px, 8vw, 120px) 0;
}

.ab-journey-head {
    margin-bottom: clamp(40px, 5vw, 72px);
    text-align: center;
}

.ab-timeline {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* เส้นกลาง */
.ab-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, rgba(201, 154, 0, .55) 6%, rgba(201, 154, 0, .55) 94%, transparent);
}

.ab-tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 72px 1fr;
    grid-template-areas: "media dot body";
    align-items: center;
}

.ab-tl-item:nth-child(even) {
    grid-template-areas: "body dot media";
}

.ab-tl-item + .ab-tl-item {
    margin-top: clamp(40px, 6vw, 80px);
}

.ab-tl-media {
    grid-area: media;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(60, 40, 10, .14);
}

.ab-tl-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s ease;
}

.ab-tl-dot {
    grid-area: dot;
    justify-self: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ab-gold);
    box-shadow: 0 0 0 6px var(--ab-cream), 0 0 0 7px rgba(201, 154, 0, .45);
}

.ab-tl-body {
    grid-area: body;
}

.ab-tl-item:nth-child(even) .ab-tl-body {
    text-align: right;
}

.ab-tl-year {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 6vw, 84px);
    line-height: .9;
    letter-spacing: 2px;
    color: var(--ab-gold-deep);
}

.ab-tl-title {
    margin: 8px 0 10px;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    font-weight: 600;
    color: var(--ab-ink);
}

.ab-tl-desc {
    margin: 0;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.75;
    color: var(--ab-muted);
}

.ab-tl-item:nth-child(even) .ab-tl-desc {
    margin-left: auto;
}

@media (hover: hover) {
    .ab-tl-item:hover .ab-tl-media img {
        transform: scale(1.04);
    }
}

/* ---------- VIDEO ---------- */
.ab-video {
    background: linear-gradient(180deg, #120c08 0%, #2a1d10 100%);
    padding: clamp(64px, 8vw, 112px) 0;
    color: #fff;
    text-align: center;
}

.ab-video .ab-eyebrow {
    color: var(--ab-gold);
}

.ab-video-heading {
    max-width: 760px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

.ab-video-wrap {
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 198, 0, .25);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.ab-video-wrap video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/* ---------- CTA ---------- */
.ab-cta {
    background:
        radial-gradient(60% 80% at 50% 100%, rgba(255, 198, 0, .16), transparent 70%),
        var(--ab-cream);
    padding: clamp(64px, 8vw, 112px) 0;
    text-align: center;
}

.ab-cta-statement {
    max-width: 820px;
    margin: 0 auto 18px;
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ab-ink);
}

.ab-cta-text {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.8;
    color: var(--ab-muted);
}

.ab-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;
    margin-top: 32px;
}

.ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border: 1.5px solid var(--ab-ink);
    border-radius: 999px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 21px;
    letter-spacing: 1.5px;
    line-height: 1;
    color: var(--ab-ink);
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.ab-btn--solid {
    background: var(--ab-gold);
    border-color: var(--ab-gold);
}

.ab-btn:hover {
    background: var(--ab-ink);
    border-color: var(--ab-ink);
    color: var(--ab-gold);
    transform: translateY(-2px);
}

.ab-btn:focus-visible,
.ab-hero-scroll:focus-visible {
    outline: 3px solid var(--ab-gold);
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ab-story-grid,
    .ab-roots-grid,
    .ab-street-grid {
        grid-template-columns: 1fr;
    }

    .ab-story-media {
        max-width: 520px;
        margin: 0 auto;
        width: calc(100% - 22px);
    }

    .ab-story-media img {
        aspect-ratio: 4 / 3;
    }

    .ab-story-badge {
        left: auto;
        right: -8px;
        bottom: -28px;
        width: 92px;
        height: 92px;
    }

    .ab-roots-medallion {
        width: min(60%, 220px);
    }

    .ab-collage {
        max-width: 560px;
        margin: 0 auto;
    }

    .ab-street-text {
        order: -1;
    }
}

@media (max-width: 767px) {
    .ab-hero {
        --ab-stage-h: max(460px, 72svh);
        height: calc(var(--ab-stage-h) + 50svh);
    }

    .ab-hero-content {
        padding-bottom: 80px;
    }

    .ab-stats {
        grid-template-columns: 1fr;
    }

    .ab-stat + .ab-stat {
        border-left: 0;
        border-top: 1px solid var(--ab-line);
    }

    .ab-stat {
        display: grid;
        grid-template-columns: 96px 1fr;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        text-align: left;
    }

    .ab-stat-label {
        margin-top: 0;
    }

    .ab-roots-quote {
        padding-left: 16px;
    }

    /* timeline: เส้นด้านซ้าย การ์ดเรียงลงมา */
    .ab-timeline::before {
        left: 9px;
        transform: none;
    }

    .ab-tl-item,
    .ab-tl-item:nth-child(even) {
        grid-template-columns: 20px 1fr;
        grid-template-areas:
            "dot media"
            ". body";
        column-gap: 18px;
        row-gap: 18px;
        align-items: start;
    }

    .ab-tl-dot {
        margin-top: 16px;
    }

    .ab-tl-item:nth-child(even) .ab-tl-body {
        text-align: left;
    }

    .ab-tl-item:nth-child(even) .ab-tl-desc {
        margin-left: 0;
    }

    .ab-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (min-width: 768px) {
    .ab-tl-body {
        padding: 0 4px;
    }

    .ab-tl-desc {
        max-width: 420px;
    }
}
