/* Shared styles for Panat Ruangsri detail pages */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

:root {
    --black:   #000000;
    --dim:     #120e06;
    --accent:  #C8963E;
    --bright:  #F2C45A;
    --white:   #ffffff;
    --mid:     #999999;
    --muted:   #555555;
    --surface: #0a0800;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Sarabun', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
body::-webkit-scrollbar { display: none; }

/* ── BACK NAV ── */
.back-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 1.6rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--mid);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.back-link::before {
    content: '←';
    transition: transform 0.2s;
    display: inline-block;
}
.back-link:hover { color: var(--white); }
.back-link:hover::before { transform: translateX(-4px); }

.back-nav-name {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.55;
}

/* ── PAGE HERO ── */
.page-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 7rem 4rem 5.5rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 140% 90% at 50% 105%, rgba(200, 140, 50, 0.22) 0%, transparent 52%),
        #000000;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.35) 0%,
        transparent 30%,
        rgba(0,0,0,0.25) 70%,
        rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.page-hero-img {
    position: relative;
    z-index: 2;
    width: clamp(220px, 28vw, 420px);
    height: auto;
    max-height: 78vh;
    object-fit: cover;
    object-position: center top;
    opacity: 1;
    flex-shrink: 0;
    align-self: flex-end;
    filter: sepia(12%) saturate(80%) brightness(0.82);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.4) 8%, black 22%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.4) 8%, black 22%);
}

.page-hero-content {
    position: relative;
    z-index: 3;
    flex: 1;
    min-width: 0;
}

.page-kicker {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bright);
    margin-bottom: 1.6rem;
    display: block;
}

.page-title {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(2.4rem, 4.2vw, 5.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.9;
    margin-bottom: 2.2rem;
}

.page-subtitle {
    font-size: 0.98rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.85;
    max-width: 480px;
}

/* ── SECTIONS ── */
section {
    padding: 7rem 4rem;
}

.section-alt {
    background: var(--surface);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bright);
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.93;
    margin-bottom: 2.5rem;
}

.section-text {
    font-size: 0.95rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.9;
    max-width: 640px;
    margin-bottom: 1.8rem;
}

/* ── TWO-COL ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* ── TIMELINE ── */
.tl {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    border-left: 1px solid rgba(200, 150, 62, 0.18);
    padding-left: 2rem;
}

.tl-item {
    position: relative;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -2.37rem;
    top: 0.38rem;
    width: 8px;
    height: 8px;
    background: var(--bright);
    transform: rotate(45deg);
}

.tl-year {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bright);
    margin-bottom: 0.4rem;
    display: block;
}

.tl-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.tl-desc {
    font-size: 0.86rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.7;
}

/* ── SKILLS GRID ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1px;
    background: rgba(200, 150, 62, 0.08);
    margin-top: 2.5rem;
}

.skill-card {
    background: var(--black);
    padding: 2.2rem;
}

.skill-card-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
    color: var(--white);
}

.skill-card-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-card-items li {
    font-size: 0.83rem;
    color: var(--mid);
    font-weight: 300;
    padding-left: 0.9rem;
    position: relative;
}

.skill-card-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--bright);
    transform: rotate(45deg);
}

/* ── HIGHLIGHT BLOCK ── */
.highlight-block {
    border-left: 2px solid var(--bright);
    padding: 1.5rem 2rem;
    margin: 3rem 0;
}

.highlight-block p {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--white);
}

/* ── SERVICES LIST ── */
.services {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(200, 150, 62, 0.1);
}

.service-num {
    font-family: 'Kanit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--muted);
    min-width: 2rem;
}

.service-name {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
}

.service-desc {
    font-size: 0.8rem;
    color: var(--mid);
    font-weight: 300;
    text-align: right;
    max-width: 220px;
}

/* ── VALUES BLOCK ── */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(200, 150, 62, 0.08);
    margin-top: 2.5rem;
}

.value-item {
    background: var(--black);
    padding: 2.5rem 2.2rem;
}

.value-num {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bright);
    margin-bottom: 0.8rem;
    display: block;
}

.value-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 0.8rem;
}

.value-desc {
    font-size: 0.86rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.75;
}

/* ── FOOTER ── */
footer {
    background: var(--black);
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(200, 150, 62, 0.1);
}

footer p { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; }
footer p strong { color: var(--mid); }

.footer-sub {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ── STAT ROW ── */
.stat-row {
    display: flex;
    gap: 1px;
    background: rgba(200, 150, 62, 0.08);
    margin-top: 3.5rem;
}

.stat-card {
    background: var(--black);
    padding: 2rem 2.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.section-alt .stat-card {
    background: var(--surface);
}

.stat-num {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--bright);
    line-height: 1;
    display: block;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mid);
}

/* ── SKILL BARS ── */
@keyframes bar-grow {
    from { width: 0; }
    to   { width: var(--w); }
}

.bar-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 1rem;
}

.bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.45rem;
}

.bar-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--white);
}

.bar-val {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--bright);
    opacity: 0.7;
}

.bar-track {
    height: 2px;
    background: rgba(200, 150, 62, 0.1);
    position: relative;
    overflow: visible;
}

.bar-fill {
    height: 100%;
    background: var(--bright);
    display: block;
    position: absolute;
    left: 0; top: 0;
    width: var(--w);
    animation: bar-grow 1s ease forwards;
}

.bar-fill::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--bright);
    transform: rotate(45deg);
}

/* ── TAGS / CHIPS ── */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
    border: 1px solid rgba(200, 150, 62, 0.2);
    padding: 0.38rem 0.85rem;
    display: inline-block;
    transition: border-color 0.2s, color 0.2s;
    cursor: default;
}

.tag:hover {
    border-color: var(--bright);
    color: var(--bright);
}

/* ── SERVICE CARDS ── */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: rgba(200, 150, 62, 0.08);
    margin-top: 2.5rem;
}

.service-card {
    background: var(--surface);
    padding: 2.8rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: background 0.2s;
}

.service-card:hover {
    background: rgba(200, 150, 62, 0.05);
}

.service-card-n {
    font-family: 'Kanit', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: rgba(200, 150, 62, 0.15);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.service-card-name {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--white);
    line-height: 1.15;
}

.service-card-desc {
    font-size: 0.83rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.75;
    margin-top: 0.3rem;
}

/* ── INFO CARDS ── */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(200, 150, 62, 0.08);
    margin-top: 2.5rem;
}

.info-card {
    background: var(--black);
    padding: 2.8rem 2.4rem;
}

.info-card-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bright);
    margin-bottom: 1.1rem;
    display: block;
}

.info-card-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    margin-bottom: 0.9rem;
}

.info-card-body {
    font-size: 0.83rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.75;
}

/* ── PROGRESS LABEL (lehrjahre) ── */
.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.progress-label-text {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
}

.progress-label-val {
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bright);
}

.progress-track {
    height: 3px;
    background: rgba(200, 150, 62, 0.1);
    position: relative;
    margin-bottom: 3rem;
}

.progress-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: var(--bright);
    width: var(--w);
    animation: bar-grow 1.2s ease forwards;
}

/* ── PHOTO STRIP ── */
.photo-strip {
    height: 420px;
    position: relative;
    overflow: hidden;
}

.photo-strip img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: sepia(18%) saturate(75%) brightness(0.55);
    transition: transform 0.9s ease;
}

.photo-strip:hover img {
    transform: scale(1.04);
}

.photo-strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.45) 50%,
        transparent 100%);
    display: flex;
    align-items: center;
    padding: 4rem;
}

.photo-strip-quote {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
    max-width: 560px;
    color: var(--white);
}

.photo-strip-quote em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--bright);
}

/* ── RESPONSIVE ── */

/* Tablet (landscape + portrait) */
@media (max-width: 860px) {
    .photo-strip { height: 320px; }
    .photo-strip-overlay { padding: 2.5rem 1.5rem; }

    .page-hero {
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 1.5rem 4rem;
        gap: 0;
    }

    .page-hero-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        opacity: 0.28;
        filter: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .page-title {
        font-size: clamp(3rem, 9vw, 6rem);
    }

    .page-subtitle {
        max-width: 100%;
    }

    section {
        padding: 5rem 1.5rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .values-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .service-cards { grid-template-columns: 1fr 1fr; }

    .stat-row { flex-wrap: wrap; }
    .stat-card { flex: 1 1 calc(50% - 1px); }

    .section-text { max-width: 100%; }

    .highlight-block {
        padding: 1.2rem 1.5rem;
        margin: 2rem 0;
    }
    .highlight-block p {
        font-size: clamp(1.2rem, 4vw, 1.9rem);
    }

    footer { padding: 2.5rem 1.5rem; }
    .back-nav { padding: 1.2rem 1.5rem; }
    .service-desc { display: none; }
}

/* Large phones */
@media (max-width: 620px) {
    .skills-grid { grid-template-columns: 1fr; }
    .service-cards { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }

    .service-card { padding: 2rem 1.8rem; }
    .info-card { padding: 2rem 1.8rem; }
    .skill-card { padding: 1.8rem 1.6rem; }
    .value-item { padding: 2rem 1.8rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .page-hero {
        padding: 0 1.2rem 3.5rem;
        min-height: 88vh;
    }

    .page-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .page-subtitle {
        font-size: 0.88rem;
    }

    section { padding: 3.5rem 1.2rem; }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stat-card { flex: 1 1 100%; }

    .stat-num {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .back-nav-name { display: none; }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tl {
        padding-left: 1.5rem;
    }
    .tl-item::before {
        left: -1.87rem;
    }

    .progress-label { flex-direction: column; align-items: flex-start; gap: 0.3rem; }

    .bar-name { font-size: 0.78rem; }

    .tag { padding: 0.45rem 0.8rem; }

    .photo-strip { height: 240px; }
    .photo-strip-overlay { padding: 2rem 1.2rem; }
    .photo-strip-quote { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}
