/*
 * Root page (index.html) — navy + gold, matching Catalog.asp's luxury layer.
 * Gold: #ffe7a3 (light) / #f5c84c (main) / #c9971c (deep).
 */

:root {
    --navy-900: #0a1247;
    --navy-800: #0e195e;
    --navy-700: #13207a;
    --navy-600: #16247f;
    --gold-light: #ffe7a3;
    --gold: #f5c84c;
    --gold-deep: #c9971c;
    --text: #d9def5;
    --text-strong: #f1f3ff;
    --line: rgba(245, 200, 76, .22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background:
        radial-gradient(90% 50% at 50% 0%, rgba(245, 200, 76, .12) 0%, rgba(245, 200, 76, 0) 60%),
        linear-gradient(180deg, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
    background-attachment: fixed;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s, filter .15s, box-shadow .15s, border-color .15s;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn:focus-visible,
.foot-btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.btn-gold {
    color: var(--navy-900);
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #d9a62a 100%);
    box-shadow: 0 8px 20px -8px rgba(245, 200, 76, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.btn-ghost {
    color: var(--gold-light);
    border: 1px solid rgba(245, 200, 76, .7);
    background: rgba(255, 255, 255, .05);
}

.btn-ghost:hover {
    border-color: var(--gold-light);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 17px;
}

/* ---------- Header ---------- */
.site-top {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 18, 71, .82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo img {
    width: 180px;
}

.top-actions {
    display: flex;
    gap: 10px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 28px 0 8px;
}

.hero-banner {
    width: 100%;
    aspect-ratio: 2170 / 725;
    object-fit: cover;
    border: 1px solid rgba(245, 200, 76, .4);
    border-radius: 20px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75);
}

.hero-copy {
    max-width: 820px;
    margin: 36px auto 0;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 16px;
    border: 1px solid rgba(245, 200, 76, .45);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(245, 200, 76, .12), rgba(14, 25, 94, .5));
    font-size: 13px;
    letter-spacing: .5px;
    color: var(--gold-light);
}

h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    text-wrap: balance;
    color: var(--gold);
    background: linear-gradient(180deg, #fff4cf 0%, var(--gold) 58%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    margin: 18px 0 0;
    font-size: 17px;
    color: var(--text-strong);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

/* ---------- Cards ---------- */
.cards {
    padding: 56px 0 8px;
}

.cards h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    color: var(--gold-light);
}

/* ornament: line, diamond, line */
.cards h2::after {
    content: "\25C6";
    display: block;
    max-width: 220px;
    margin: 12px auto 28px;
    font-size: 10px;
    line-height: 12px;
    color: var(--gold);
    background:
        linear-gradient(90deg, rgba(245, 200, 76, 0), rgba(245, 200, 76, .85)) left center / 44% 1px no-repeat,
        linear-gradient(90deg, rgba(245, 200, 76, .85), rgba(245, 200, 76, 0)) right center / 44% 1px no-repeat;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    padding: 24px 22px;
    border: 1px solid rgba(245, 200, 76, .2);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 200, 76, .5);
    box-shadow: 0 18px 34px -20px rgba(245, 200, 76, .45);
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 200, 76, .4);
    border-radius: 12px;
    background: rgba(245, 200, 76, .12);
    font-size: 17px;
    color: var(--gold);
}

.card h3 {
    margin: 14px 0 6px;
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
}

.card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
}

/* ---------- Notice ---------- */
.notice {
    padding: 40px 0 0;
}

.notice p {
    margin: 0;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    background: rgba(8, 14, 60, .45);
    font-size: 14px;
    line-height: 1.8;
}

.notice strong {
    color: var(--gold-light);
}

/* ---------- Footer ---------- */
.site-foot {
    margin-top: 56px;
    padding: 36px 0 28px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(245, 200, 76, 0), rgba(245, 200, 76, .55), rgba(245, 200, 76, 0)) 1;
    background: rgba(6, 10, 40, .45);
}

.foot-title {
    margin: 0 0 16px;
    font-size: 15px;
    text-align: center;
    color: var(--gold-light);
}

.foot-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
}

.foot-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px;
    border: 1px solid rgba(245, 200, 76, .45);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(245, 200, 76, .1), rgba(255, 255, 255, .02));
    text-decoration: none;
    text-align: center;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.foot-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold-light);
    box-shadow: 0 14px 28px -16px rgba(245, 200, 76, .5);
}

.foot-btn-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--gold-light);
}

.foot-btn-sub {
    font-size: 13px;
    line-height: 1.6;
    color: #c9d0ee;
}

.copyright {
    margin: 26px 0 0;
    font-size: 13px;
    text-align: center;
    color: rgba(214, 220, 242, .75);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .wrap {
        padding: 0 16px;
    }

    .logo img {
        width: 132px;
    }

    .top-actions .btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-banner {
        border-radius: 14px;
    }

    .hero-copy {
        margin-top: 26px;
    }

    h1 {
        font-size: 25px;
    }

    .lead {
        font-size: 16px;
    }

    .hero-actions .btn-lg {
        width: 100%;
    }

    .cards {
        padding-top: 44px;
    }

    .cards h2 {
        font-size: 21px;
    }

    .foot-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .top-actions .btn-ghost {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .card,
    .foot-btn {
        transition: none;
    }

    .btn:hover,
    .card:hover,
    .foot-btn:hover {
        transform: none;
    }
}
