/* ==========================================================
   Bảng màu lấy từ ảnh hero: xanh rừng, vàng dã quỳ, nền xám sương
   ========================================================== */

:root {
    --forest: #1c3a2a;
    --forest-deep: #12261b;
    --sunflower: #f2b705;
    --sunflower-dark: #b48504;
    --mist: #eef2ee;
    --sage: #dbe5dc;
    --ink: #1a261f;
    --ink-soft: #4a5a50;
    --white: #ffffff;

    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 10px;
    --wrap: 1080px;
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--mist);
}

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

h1,
h2,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--sunflower);
    outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 10;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 20px 24px;
}

.nav__brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav__list {
    display: flex;
    gap: 28px;
}

.nav__list a {
    position: relative;
    padding: 4px 0;
    font-weight: 500;
    font-size: 0.975rem;
    color: var(--white);
    text-decoration: none;
}

.nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--sunflower);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
    background: var(--sunflower);
    color: var(--forest-deep);
}

.btn--primary:hover {
    background: var(--sunflower-dark);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
}

.btn--ghost:hover {
    background: var(--white);
    color: var(--forest-deep);
}

.btn--dark {
    background: var(--forest);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--forest-deep);
}

/* ---------- Hero ---------- */
.hero {
    display: flex;
    align-items: center;
    min-height: min(88vh, 720px);
    max-height: 800px;
    background-image: url("Image/IMG-hero.jpg");
    padding: 120px 24px 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

/* lớp phủ xanh rừng ở bên trái để chữ luôn dễ đọc, bên phải vẫn thấy rõ ảnh */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(18, 38, 27, 0.88) 0%,
            rgba(18, 38, 27, 0.55) 45%,
            rgba(18, 38, 27, 0.05) 100%);
}

.hero__content {
    position: relative;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
}

.hero__hello {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sunflower);
}

.hero__name {
    margin: 6px 0 16px;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero__text {
    max-width: 30ch;
    margin-bottom: 32px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- About ---------- */
.about {
    padding: 96px 24px;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 72px;
    align-items: center;
    max-width: var(--wrap);
    margin: 0 auto;
}

.about__text h2,
.contact h2 {
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--forest);
}

.about__text p {
    max-width: 58ch;
    margin-bottom: 28px;
    color: var(--ink-soft);
}

.about__photo {
    position: relative;
    isolation: isolate;
}

/* khối vàng lệch phía sau ảnh */
.about__photo::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    z-index: -1;
    border-radius: 36%;
    background: var(--sunflower);
}

.about__photo img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 36%;
    background: var(--sage);
}

/* ---------- Contact ---------- */
.contact {
    padding: 72px 24px;
    background: var(--sage);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: var(--wrap);
    margin: 0 auto;
}

.contact p {
    color: var(--ink-soft);
}

.contact__list {
    display: grid;
    gap: 14px;
}

.contact__list li {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border-left: 4px solid var(--sunflower);
    border-radius: var(--radius);
    background: var(--white);
}

.contact__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.contact__list a {
    font-weight: 600;
    color: var(--forest);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact__list a:hover {
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 22px 24px;
    background: var(--forest-deep);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .nav {
        padding: 16px 20px;
    }

    .nav__list {
        gap: 18px;
    }

    .hero {
        min-height: 80vh;
        padding: 110px 20px 64px;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(18, 38, 27, 0.8), rgba(18, 38, 27, 0.5));
    }

    .about {
        padding: 64px 20px;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__photo {
        order: -1;
        justify-self: center;
    }

    .contact {
        padding: 56px 20px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
