/*
Theme Name: Do Dac Viet
Theme URI: https://dodacviet.vn
Author: Do Dac Viet
Description: Custom WordPress theme for CTY TNHH Do dac ban do YOTEK.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: dodacviet
*/

:root {
    --navy: #061b31;
    --navy-2: #082540;
    --gold: #f6b91a;
    --gold-dark: #ca8e00;
    --ink: #111827;
    --muted: #667085;
    --line: #e7eaf0;
    --paper: #ffffff;
    --soft: #f5f7fa;
    --radius: 6px;
    --shadow: 0 20px 50px rgba(6, 27, 49, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    background: #041322;
    color: #fff;
    font-size: 13px;
}

.topbar__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.9);
}

.topbar .dashicons {
    color: var(--gold);
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.mainnav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.mainnav__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--navy);
    background: linear-gradient(135deg, var(--gold), #ffe08a);
    border: 3px solid var(--navy);
    font-weight: 900;
    transform: rotate(45deg);
}

.brand__mark::first-line {
    transform: rotate(-45deg);
}

.brand__text {
    display: grid;
    line-height: 1.1;
}

.brand__text strong {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.brand__text small {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.primary-nav,
.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav__list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-nav a {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--gold {
    color: #111827;
    background: var(--gold);
}

.btn--gold:hover {
    background: #ffd04b;
}

.btn--dark {
    color: #fff;
    background: var(--navy);
}

.btn--outline {
    color: var(--navy);
    border-color: var(--line);
    background: #fff;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
}

.hero__media,
.hero__media img,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    background: linear-gradient(90deg, rgba(4,19,34,.94) 0%, rgba(4,19,34,.78) 38%, rgba(4,19,34,.2) 72%);
}

.hero__content {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: 70px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1 span {
    display: block;
    color: var(--gold);
}

.hero p {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.9);
    font-size: 18px;
}

.hero__proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: min(720px, 100%);
    margin: 32px 0;
}

.hero__proof span {
    border-left: 3px solid var(--gold);
    padding-left: 14px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.hero__proof b {
    display: block;
    color: #fff;
    font-size: 15px;
}

.section {
    padding: 72px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading--center {
    display: block;
    text-align: center;
}

.section-heading h2,
.service-tabs h2,
.page-hero h1,
.single-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    text-transform: uppercase;
}

.section-heading h2::after,
.section-heading--center h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 12px;
    background: var(--gold);
}

.section-heading--center h2::after {
    margin-inline: auto;
}

.section-heading a,
.text-link {
    color: var(--gold-dark);
    font-weight: 800;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.service-card {
    min-height: 230px;
    padding: 26px 14px;
    text-align: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-card .dashicons {
    width: 44px;
    height: 44px;
    color: var(--gold);
    font-size: 44px;
}

.service-card h3 {
    margin: 18px 0 10px;
    font-size: 14px;
    line-height: 1.25;
    text-transform: uppercase;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.why {
    padding: 60px 0;
    color: #fff;
    background: var(--navy);
}

.section-heading--dark h2 {
    color: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    margin-top: 32px;
}

.why-grid > div {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
}

.why-grid .dashicons {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    color: var(--gold);
    font-size: 48px;
}

.why-grid h3 {
    margin: 0 0 6px;
    font-size: 15px;
    text-transform: uppercase;
}

.why-grid p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.featured-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 44px;
}

.service-tabs {
    display: grid;
    gap: 10px;
    align-content: start;
}

.service-tabs h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.service-tab {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    text-align: left;
    font-weight: 900;
    cursor: pointer;
}

.service-tab .dashicons {
    color: var(--gold-dark);
}

.service-tab.is-active {
    background: var(--gold);
    border-color: var(--gold);
}

.service-panel__item {
    display: none;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.service-panel__item.is-active {
    display: grid;
}

.service-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    text-transform: uppercase;
}

.service-panel p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.service-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.mini-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.mini-features span {
    font-size: 13px;
    color: var(--muted);
}

.mini-features b {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card > div {
    padding: 20px;
}

.post-date {
    color: var(--muted);
    font-size: 13px;
}

.post-card h3 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.3;
}

.post-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.quote-band {
    color: var(--ink);
    background: var(--gold);
}

.quote-band__inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.quote-band__inner > div {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 18px;
    align-items: center;
}

.quote-band .dashicons {
    grid-row: span 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: #fff;
    border-radius: 50%;
    font-size: 32px;
}

.quote-band p {
    margin: 0;
}

.site-footer {
    color: rgba(255,255,255,.78);
    background: #041322;
}

.footer-main {
    padding: 54px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .8fr 1.4fr;
    gap: 56px;
}

.brand--footer {
    color: #fff;
    margin-bottom: 18px;
}

.footer-grid h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
}

.footer-links li + li {
    margin-top: 8px;
}

.socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.socials a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius);
}

.copyright {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.55);
    font-size: 13px;
}

.page-hero,
.single-hero {
    padding: 70px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.page-hero h1,
.single-hero h1 {
    color: #fff;
    max-width: 900px;
}

.content-layout,
.entry-content {
    max-width: 820px;
}

.content-layout h2,
.entry-content h2 {
    margin-top: 34px;
    line-height: 1.2;
}

.content-layout p,
.entry-content p,
.entry-content li {
    color: #344054;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.76);
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--gold);
    font-weight: 800;
}

.single-cover {
    margin-top: -36px;
}

.single-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    padding: 64px 0;
}

.sticky-box {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.sticky-box h2 {
    margin: 0;
}

.pagination {
    margin-top: 36px;
}

@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-layout,
    .service-panel__item,
    .single-layout {
        grid-template-columns: 1fr;
    }

    .service-panel img {
        max-height: 360px;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .topbar__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 0;
    }

    .mainnav__inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 18px 20px 22px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: grid;
        gap: 18px;
    }

    .primary-nav__list {
        display: grid;
        gap: 14px;
    }

    .nav-cta {
        width: 100%;
    }

    .brand__text strong {
        font-size: 17px;
    }

    .brand__mark {
        width: 42px;
        height: 42px;
    }

    .hero,
    .hero__content {
        min-height: 620px;
    }

    .hero__overlay {
        background: linear-gradient(90deg, rgba(4,19,34,.95), rgba(4,19,34,.78));
    }

    .hero__proof,
    .mini-features,
    .post-grid,
    .footer-grid,
    .service-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading,
    .quote-band__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-card {
        min-height: auto;
    }

    .service-tabs {
        overflow-x: auto;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 1fr);
    }

    .service-tabs h2 {
        grid-column: 1 / -1;
    }

    .single-layout {
        padding: 44px 0;
    }
}
