/* =========================================================
       1. TOKENS
       ========================================================= */
:root {
    --bg-header: #ebe8e3;
    /* nền thanh header */
    --bg-menu: #f6f3ee;
    /* nền menu mobile full-screen + nền switch ngôn ngữ */
    --green: #244336;
    /* xanh đậm: nút active, viền nút Contact */
    --text: #1c1c1c;
    --text-soft: #5b5b57;

    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;

    --header-h: 72px;
    /* mobile */
    --radius: 10px;

    --bg-page: #f9f6f2;
    /* nền các section */
    --bg-card: #fcfaf7;
    /* nền card đánh giá */
    --ink: #141414;
    /* màu tiêu đề */
    --text-muted: #665f58;
    /* đoạn mô tả */
}

@media (min-width: 1024px) {
    :root {
        --header-h: 80px;
    }

    /* desktop */
}

/* =========================================================
       2. RESET NHẸ
       ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--text);
}

/* Khoá scroll trang khi menu mobile đang mở */
body:has(.nav-toggle:checked) {
    overflow: hidden;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Ẩn nội dung chỉ dành cho screen reader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Focus dễ thấy cho bàn phím */
a:focus-visible,
summary:focus-visible,
label:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* =========================================================
       3. HEADER (dùng chung)
       ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* checkbox điều khiển menu mobile (không cần JS) */
.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.header-bar {
    height: var(--header-h);
    background: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .header-bar {
        padding: 0 20px 0 20px;
    }
}

/* ---------- Logo ----------
       Thay khối này bằng: <a class="logo"><img src="logo.svg" alt="Tada Wedding Film"></a> */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    line-height: 1;
}

.logo__mark {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 44px;
    letter-spacing: -0.04em;
}

.logo__word {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 0.95;
    text-align: left;
}

.logo img {
    display: block;
    height: 48px;
    width: auto;
}

/* =========================================================
       4. SWITCH NGÔN NGỮ (dùng chung desktop + mobile)
       ========================================================= */
.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: var(--bg-menu);
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.lang-switch a {
    display: block;
    min-width: 38px;
    padding: 7px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text);
    transition: background-color .2s, color .2s;
}

.lang-switch a[aria-current="true"] {
    background: var(--green);
    color: #fff;
}

.lang-switch a:not([aria-current="true"]):hover {
    background: rgba(0, 0, 0, 0.05);
}

/* =========================================================
       5. NÚT CONTACT (dùng chung)
       ========================================================= */
.btn-contact {
    display: inline-block;
    padding: 14px 16px;
    border: 1px solid var(--green);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    background: transparent;
    transition: background-color .2s, color .2s;
}

.btn-contact:hover {
    background: var(--green);
    color: #fff;
}

/* =========================================================
       6. MENU LINK (kiểu chữ chung)
       ========================================================= */
.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
}

.chevron {
    width: 14px;
    height: 14px;
    flex: none;
    transition: transform .25s ease;
}

/* =========================================================
       7. DESKTOP NAV (>= 1024px)
       ========================================================= */
.nav-desktop {
    display: none;
}

.burger {
    display: inline-flex;
}

/* nút hamburger – chỉ hiện ở mobile */

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .burger,
    .mobile-menu {
        display: none;
    }

    .nav-desktop__list {
        display: flex;
        align-items: center;
        gap: 36px;
    }

    /* Dropdown */
    .has-dropdown {
        position: relative;
    }

    .has-dropdown>.menu-link {
        padding: 28px 0;
        cursor: pointer;
    }

    .dropdown {
        position: absolute;
        top: calc(100% - 12px);
        left: -20px;
        min-width: 230px;
        padding: 10px;
        background: var(--bg-menu);
        border-radius: var(--radius);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .dropdown a {
        display: block;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 12px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text);
        transition: background-color .2s;
    }

    .dropdown a:hover {
        background: rgba(36, 67, 54, 0.08);
    }

    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-dropdown:hover .chevron,
    .has-dropdown:focus-within .chevron {
        transform: rotate(180deg);
    }

    /* gạch chân nhẹ khi hover link thường */
    .nav-desktop__list>li:not(.has-dropdown)>.menu-link {
        position: relative;
        padding: 6px 0;
    }

    .nav-desktop__list>li:not(.has-dropdown)>.menu-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }

    .nav-desktop__list>li:not(.has-dropdown)>.menu-link:hover::after {
        transform: scaleX(1);
    }
}

/* =========================================================
       8. MOBILE / TABLET NAV (< 1024px)
       ========================================================= */
/* Nút hamburger */
.burger {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
}

.burger svg {
    width: 26px;
    height: 26px;
}

/* Overlay full-screen */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-menu);
    overflow-y: auto;
    padding: 80px 24px;

    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}

.nav-toggle:checked~.mobile-menu {
    opacity: 1;
    visibility: visible;
}

/* Nút đóng (X) */
.mobile-menu__close {
    position: absolute;
    top: 14px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu__close svg {
    width: 26px;
    height: 26px;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
}

.mobile-menu .menu-link {
    font-size: 12.5px;
}

/* Submenu dùng <details> */
.mobile-menu details {
    text-align: center;
}

.mobile-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu details[open] .chevron {
    transform: rotate(90deg);
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
}

.mobile-submenu a {
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.mobile-menu .lang-switch {
    margin-top: 30px;
}

.mobile-menu .btn-contact {
    margin-top: 20px;
}

/* Tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* =========================================================
       9. NỀN TRANG, KHUNG NỘI DUNG, TIÊU ĐỀ SECTION (dùng chung)
       ========================================================= */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: var(--header-h);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .section {
        padding: 104px 0;
    }
}

.section-head {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #3a3733;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 8vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--ink);
}

.section-title em {
    display: block;
    font-style: italic;
    text-transform: none;
}

.section-lead {
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- Nút ---------- */
.btn-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .btn-row {
        flex-direction: row;
        justify-content: center;
    }

    .btn-row .btn {
        min-width: 220px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: 1px solid var(--green);
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color .2s, color .2s, border-color .2s;
}

.btn--solid {
    background: var(--green);
    color: #fff;
}

.btn--solid:hover {
    background: #1b3329;
}

.btn--outline {
    background: transparent;
    border-color: #9c988f;
    color: var(--ink);
}

.btn--outline:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ---------- Khung ảnh (placeholder + ảnh thật) ----------
       Thay ảnh thật: <figure class="media"><img src="..." alt="..."></figure> */
.media {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* lớp phủ tối để chữ trắng dễ đọc */
.media--dim::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

/* Màu giữ chỗ – xoá khi đã có ảnh thật */
.ph-a {
    --ph: linear-gradient(135deg, #3b4a35, #a9805f);
}

.ph-b {
    --ph: linear-gradient(180deg, #2a2a2a, #9a9a96);
}

.ph-c {
    --ph: linear-gradient(135deg, #3a1c17, #1c1210);
}

.ph-d {
    --ph: linear-gradient(135deg, #9c3b45, #e4cfc4);
}

.ph-e {
    --ph: linear-gradient(180deg, #6f746b, #2a3128);
}

.ph-f {
    --ph: linear-gradient(180deg, #8a938a, #3f5a3a);
}

.ph-g {
    --ph: linear-gradient(135deg, #4a4d47, #a8a29a);
}

.ph-h {
    --ph: linear-gradient(135deg, #e7b7c4, #f4dfe2);
}

/* =========================================================
       10. HERO
       ========================================================= */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: max(520px, calc(100svh - var(--header-h)));
    padding: 48px 20px;
    text-align: center;
    color: #fff;
}

.hero>.media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__eyebrow {
    margin: 0 0 16px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(44px, 9vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero__title em {
    display: block;
    font-style: italic;
    text-transform: none;
}

.hero__sub {
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .hero__sub {
        font-size: 17px;
    }
}

/* =========================================================
       11. PORTFOLIO – FEATURED WORK
       ========================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}

.gallery .media {
    aspect-ratio: 3 / 2;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        margin-bottom: 48px;
    }
}

/* =========================================================
       12. BANNER "WE DON'T RECAP, WE TELL A STORY"
       ========================================================= */
.statement {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 48px 20px;
    text-align: center;
    color: #fff;
}

.statement>.media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.statement__title {
    margin: 0;
    max-width: 900px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 9vw, 76px);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .statement {
        min-height: 420px;
    }
}

/* =========================================================
       13. SERVICES
       ========================================================= */
.service-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #fff;
}

.service-card>.media {
    position: absolute;
    inset: 0;
    transition: transform .6s ease;
}

.service-card:hover>.media {
    transform: scale(1.04);
}

.service-card__title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 16px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-align: center;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .service-card {
        aspect-ratio: 4 / 5;
    }
}

/* =========================================================
       14. TESTIMONIALS
       ========================================================= */
.review-list {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .review-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.review {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(60, 40, 20, 0.07);
}

.stars {
    display: flex;
    gap: 2px;
    color: #f6b90f;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.review__quote {
    margin: 0;
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.7;
    color: #4a4540;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.review__avatar {
    flex: none;
    width: 38px;
    height: 50px;
    border-radius: 2px;
}

.review__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--ink);
}

.review__type {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================================
       15. CTA
       ========================================================= */
.cta {
    text-align: center;
}

.cta .section-head {
    margin-bottom: 32px;
}

/* =========================================================
       16. FOOTER
       ========================================================= */
.site-footer {
    padding: 48px 0 32px;
    background: #f4f0ea;
    text-align: center;
}

.logo--lg {
    margin: 0 auto 28px;
}

.logo--lg .logo__mark {
    font-size: 68px;
}

.logo--lg .logo__word {
    font-size: 22px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 28px;
}

.footer-nav a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #57534e;
    transition: color .2s;
}

.footer-nav a:hover {
    color: var(--green);
}

.social {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 28px;
}

.social a {
    display: inline-flex;
    color: #8a857f;
    transition: color .2s;
}

.social a:hover {
    color: var(--green);
}

.social svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact {
    display: grid;
    gap: 8px;
    font-style: normal;
    font-size: 15px;
    color: #4a4540;
}

.footer-legal {
    max-width: 720px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    line-height: 1.7;
    color: #8a857f;
}

.footer-legal a:hover {
    color: var(--green);
}

/* Nút lên đầu trang */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color .2s;
}

.to-top:hover {
    background: #1b3329;
}

.to-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}