/* ============================================
   THÁM TỬ 247 — Redesign
   Phong cách: Ấm, tự nhiên, con người
   Font: Quicksand (heading) + Inter (body)
   Tông: Warm slate + amber accent
   Mobile-first
   ============================================ */

/* --- Tokens --- */
:root {
    --font-head: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
    --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;

    --c-bg: #FAFAF7;
    --c-bg-alt: #F3F1EC;
    --c-surface: #FFFFFF;
    --c-text: #2D2A26;
    --c-text-soft: #6B6560;
    --c-text-light: #9C9590;
    --c-border: #E8E4DE;
    --c-accent: #C17B2E;
    --c-accent-hover: #A8691F;
    --c-accent-light: rgba(193, 123, 46, 0.1);
    --c-accent-soft: #F5EDE2;
    --c-dark: #1E1C19;
    --c-dark-soft: #2D2A26;
    --c-star: #E5A623;
    --c-verified: #3A8A6E;
    --c-success: #3A8A6E;

    --radius: 12px;
    --radius-lg: 18px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea, button {
    font-family: var(--font-body);
    font-size: 15px;
    border: none;
    outline: none;
    -webkit-appearance: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Nav --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 12px 0;
    transition: all 0.3s var(--ease);
}
.navbar.scrolled {
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    transition: color 0.3s var(--ease);
    line-height: 1.25;
}
.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s var(--ease);
}
.logo:hover .logo-img {
    transform: rotate(15deg) scale(1.05);
}
.logo span { 
    color: var(--c-star); 
    transition: color 0.3s var(--ease);
    display: inline-block;
}
.navbar.scrolled .logo {
    color: var(--c-dark);
}
.navbar.scrolled .logo span {
    color: var(--c-accent);
}
.logo-ft { color: #fff; }
.logo-ft span { color: var(--c-star); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s var(--ease);
}
.nav-link:hover { color: #FFFFFF; }
.navbar.scrolled .nav-link {
    color: var(--c-text-soft);
}
.navbar.scrolled .nav-link:hover {
    color: var(--c-accent);
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--c-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s;
    cursor: pointer;
}
.nav-phone:hover { background: var(--c-accent-hover); }
.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hide-mobile { display: none; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30,28,25, 0.3) 0%,
        rgba(30,28,25, 0.5) 40%,
        rgba(30,28,25, 0.88) 75%,
        rgba(30,28,25, 0.96) 100%
    );
}
.hero-body {
    position: relative;
    z-index: 1;
    padding-top: 120px;
}
.hero-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-star);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(28px, 7vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero h1 em {
    font-style: normal;
    color: var(--c-star);
}
.hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
    max-width: 480px;
}
.hero-numbers {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}
.num-item {
    display: flex;
    flex-direction: column;
}
.num-item strong {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.num-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Buttons --- */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--c-accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    border: none;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.btn-main:hover {
    background: var(--c-accent-hover);
    transform: translateY(-1px);
}
.btn-main:active {
    transform: translateY(0);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
}
.btn-full { width: 100%; }

/* --- Dropdown --- */
.info-dropdown {
    position: relative;
    display: inline-block;
}
.info-dropdown .dropdown-toggle {
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}
.info-dropdown.active .chevron-icon {
    transform: rotate(180deg);
}
.info-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    min-width: 180px;
    background: rgba(30, 28, 25, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.info-dropdown .dropdown-item {
    display: block;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}
.info-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* --- Sections --- */
.section {
    padding: 60px 0;
}
.section-alt {
    background: var(--c-bg-alt);
}
.sec-title {
    font-family: var(--font-head);
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.sec-sub {
    font-size: 14px;
    color: var(--c-text-soft);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Services (list) --- */
.svc-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.svc-item {
    display: block;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: box-shadow 0.3s var(--ease), border-color 0.3s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.svc-item:hover {
    box-shadow: var(--shadow-md);
}
.svc-hot {
    border-color: var(--c-accent);
    border-width: 1.5px;
    background: linear-gradient(to bottom, var(--c-accent-soft) 0%, var(--c-surface) 50%);
}
.svc-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}
.svc-num {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--c-accent);
    background: var(--c-accent-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}
.svc-item h3 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--c-dark);
    line-height: 1.3;
}
.svc-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--c-accent);
    background: var(--c-accent-light);
    padding: 2px 8px;
    border-radius: 8px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.svc-item > p {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.65;
}
.svc-checks {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.svc-checks li {
    font-size: 13px;
    color: var(--c-text);
    padding-left: 2px;
}
.svc-checks li::first-letter {
    color: var(--c-success);
}

/* --- Steps --- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 28px;
}
.steps::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--c-border);
    border-radius: 1px;
}
.step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    position: relative;
}
.step-dot {
    position: absolute;
    left: -28px;
    top: 22px;
    width: 16px;
    height: 16px;
    background: var(--c-accent);
    border: 3px solid var(--c-bg-alt);
    border-radius: 50%;
    z-index: 1;
}
.step-body h4 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 4px;
}
.step-body p {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.6;
}

/* --- Reviews --- */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 24px 0 28px;
}
.big-rating {
    text-align: center;
    flex-shrink: 0;
    min-width: 90px;
}
.big-num {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 700;
    color: var(--c-dark);
    line-height: 1;
    display: block;
}
.big-stars {
    color: var(--c-star);
    font-size: 16px;
    letter-spacing: 1px;
    margin: 4px 0;
}
.big-count {
    font-size: 11px;
    color: var(--c-text-light);
}
.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--c-text-light);
}
.bar-row span:first-child { width: 26px; text-align: right; flex-shrink: 0; }
.bar-row span:last-child { width: 30px; text-align: right; flex-shrink: 0; }
.bar {
    flex: 1;
    height: 6px;
    background: var(--c-bg-alt);
    border-radius: 3px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--c-star);
    border-radius: 3px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rv {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: box-shadow 0.3s var(--ease);
}
.rv:hover { box-shadow: var(--shadow-sm); }
.rv-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.rv-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--c-dark);
    flex-shrink: 0;
}
.rv-top strong {
    font-size: 14px;
    display: block;
    color: var(--c-dark);
}
.rv-meta {
    font-size: 11px;
    color: var(--c-verified);
    display: block;
    margin-top: 1px;
}
.rv-stars {
    color: var(--c-star);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.rv p {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.65;
}

/* --- Contact --- */
.contact-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-ways {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cw {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: all 0.2s var(--ease);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.cw:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
}
.cw:active { transform: scale(0.98); }
.cw-icon {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-accent);
    color: #fff;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}
.cw strong {
    font-size: 14px;
    color: var(--c-dark);
    display: block;
}
.cw span {
    font-size: 13px;
    color: var(--c-text-soft);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-bg);
    color: var(--c-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-light);
}
.form input::placeholder,
.form textarea::placeholder {
    color: var(--c-text-light);
}
.form textarea {
    resize: vertical;
    min-height: 80px;
}
.form-note {
    font-size: 12px;
    color: var(--c-text-light);
    text-align: center;
    margin-top: 4px;
}

/* --- Footer --- */
.footer {
    background: var(--c-dark);
    padding: 40px 0 24px;
}
.ft-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.ft-top p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-top: 8px;
}
.ft-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.ft-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}
.ft-links a:hover { color: var(--c-star); }
.ft-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.ft-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

/* --- Policy Pages --- */
.page-content {
    padding-top: 100px;
}
.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--c-accent);
    font-weight: 500;
    margin-bottom: 24px;
    transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }
.page-title {
    font-family: var(--font-head);
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 4px;
}
.page-date {
    font-size: 13px;
    color: var(--c-text-light);
    margin-bottom: 32px;
}
.policy-body h2 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-dark);
    margin: 28px 0 10px;
}
.policy-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin: 20px 0 8px;
}
.policy-body p {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.75;
    margin-bottom: 12px;
}
.policy-body ul {
    margin: 8px 0 16px 20px;
    list-style: disc;
}
.policy-body ul li {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.7;
    margin-bottom: 6px;
}
.policy-body a {
    color: var(--c-accent);
    font-weight: 500;
}
.policy-body a:hover {
    text-decoration: underline;
}
/* --- Nhóm liên hệ nổi (FAB Group) --- */
.fab-group {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}
.fab {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px; /* Dạng vuông bo góc nhẹ theo yêu cầu */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.fab-phone {
    background: var(--c-accent);
    box-shadow: 0 4px 16px rgba(193, 123, 46, 0.3);
}
.fab-zalo {
    background: #0068FF;
    box-shadow: 0 4px 16px rgba(0, 104, 255, 0.3);
}
.fab-telegram {
    background: #229ED9;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.3);
}
.fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.fab:active { transform: scale(0.96); }
.fab-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    border: 2px solid transparent;
    animation: fabPulse 2.5s ease infinite;
    pointer-events: none;
}
.fab-phone .fab-pulse { border-color: var(--c-accent); }
.fab-zalo .fab-pulse { border-color: #0068FF; }
.fab-telegram .fab-pulse { border-color: #229ED9; }

/* --- Animations --- */
@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll reveal - nhẹ nhàng */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- DESKTOP (từ 768px trở lên) --- */
@media (min-width: 768px) {
    .container { max-width: 720px; }
    .hide-mobile { display: inline; }
    .logo { font-size: 22px; }

    .hero { min-height: 100vh; align-items: center; padding-bottom: 0; }
    .hero-body { padding-top: 0; }
    .hero h1 { font-size: 48px; }
    .hero-numbers { gap: 40px; }
    .num-item strong { font-size: 28px; }

    .section { padding: 80px 0; }
    .sec-title { font-size: 32px; }

    .svc-list { gap: 14px; }
    .svc-item { padding: 24px 28px; }

    .rating-summary { padding: 28px 32px; gap: 32px; }
    .big-num { font-size: 52px; }

    .reviews-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .contact-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }

    .ft-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .ft-bottom { text-align: center; }
}

@media (min-width: 1024px) {
    .container { max-width: 800px; }
    .hero h1 { font-size: 54px; }
    .reviews-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* --- Safe area cho iPhone có notch --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .fab-group { bottom: calc(20px + env(safe-area-inset-bottom)); }
    .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .navbar { padding-top: calc(12px + env(safe-area-inset-top)); }
}
