/* ===================================================
   KHAI TÂM AN — Premium Wellness Website
   Design: Earthy, calming, spiritual healing aesthetic
   =================================================== */

/* Screen-reader only (SEO/AI-parseable, visually hidden) */
.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;
}
/* ----- CSS Custom Properties ----- */
:root {
    /* Primary palette — warm golden beige (nâu be ánh vàng) */
    --color-bg: #C2B48A;
    --color-bg-alt: #B5A77D;
    --color-bg-card: rgba(220, 212, 188, 0.5);
    --color-bg-glass: rgba(194, 180, 138, 0.65);

    /* Dark brown accent spectrum */
    --color-primary: #4A2E16;
    --color-primary-light: #5C3A1E;
    --color-primary-dark: #3A2412;
    --color-primary-glow: rgba(74, 46, 22, 0.10);

    /* Nâu đất accent (cho CTA, decorative highlights) */
    --color-accent: #8B4513;
    --color-accent-light: #A65E1A;
    --color-accent-glow: rgba(139, 69, 19, 0.10);

    /* Text — tối trên nền sáng */
    --color-text: #3D2B1F;
    --color-text-secondary: #4A3728;
    --color-text-muted: #5C4433;

    /* Borders */
    --color-border: rgba(61, 43, 31, 0.15);
    --color-border-hover: rgba(61, 43, 31, 0.28);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 10vw, 140px);
    --container-width: 1200px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ----- Reset & Globals ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-primary-dark);
    color: #F5EFE6;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* ----- Particles Background ----- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(194, 180, 138, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 16px rgba(61, 43, 31, 0.10);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-text);
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--color-accent);
    filter: drop-shadow(0 0 8px var(--color-accent-glow));
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(166, 94, 26, 0.15));
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(166, 94, 26, 0.25));
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--color-primary-glow);
}

.nav-link.nav-cta {
    background: var(--color-primary-dark);
    color: #F5EFE6;
    font-weight: 500;
    margin-left: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
}

.nav-link.nav-cta:hover {
    background: var(--color-primary);
    color: #F5EFE6;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(166, 94, 26, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139, 113, 97, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(166, 94, 26, 0.03) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-logo-img {
    width: 160px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(166, 94, 26, 0.15));
    animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 28px;
}

.hero-line {
    display: block;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    letter-spacing: -0.02em;
}

.hero-line.accent {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 500;
    position: relative;
}

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #F5EFE6;
    box-shadow: 0 4px 24px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(166, 94, 26, 0.18);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
    background: var(--color-primary-glow);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 0.8; height: 50px; }
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

/* Hero Visual - Orbs & Mandalas */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    max-width: 100%;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(166, 94, 26, 0.06) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 113, 97, 0.05) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(166, 94, 26, 0.04) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: orbFloat 18s ease-in-out infinite 3s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.mandala-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    border-color: rgba(166, 94, 26, 0.08);
    animation: ringRotate 60s linear infinite;
}

.ring-2 {
    width: min(350px, 50vw);
    height: min(350px, 50vw);
    border-color: rgba(139, 113, 97, 0.06);
    animation: ringRotate 45s linear infinite reverse;
}

.ring-3 {
    width: min(200px, 30vw);
    height: min(200px, 30vw);
    border-color: rgba(166, 94, 26, 0.06);
    animation: ringRotate 30s linear infinite;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ----- Section Common Styles ----- */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--color-primary);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

/* ----- Intro Section ----- */
.intro {
    padding: var(--section-padding) 0;
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.intro-paragraph {
    font-size: 1.08rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
}

.intro-highlight {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-primary-light);
    padding: 24px;
    border-left: 2px solid var(--color-primary-dark);
    margin-top: 32px;
    line-height: 1.7;
    background: var(--color-primary-glow);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.intro-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zen-circle {
    width: min(300px, 40vw);
    height: min(300px, 40vw);
    color: var(--color-primary);
    animation: zenBreath 8s ease-in-out infinite;
}

.zen-svg {
    width: 100%;
    height: 100%;
}

@keyframes zenBreath {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ----- Core Values Section ----- */
.values {
    padding: var(--section-padding) 0;
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, var(--color-primary-glow), transparent);
    pointer-events: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.value-card {
    position: relative;
    padding: 48px 36px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.value-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    width: 80px;
    height: 80px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-number {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.value-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.value-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ----- Services Section ----- */
.services {
    padding: var(--section-padding) 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* Center the last card when it's alone on its row (odd total) */
.services-grid .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 14px);
    justify-self: center;
}

.service-card {
    position: relative;
    padding: 44px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

.service-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--color-primary-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.service-card:hover .service-glow {
    opacity: 1;
}

.service-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.service-icon-wrap {
    margin-bottom: 24px;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.service-tagline {
    font-size: 0.88rem;
    color: var(--color-primary-light);
    font-style: italic;
    margin-bottom: 16px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-for {
    list-style: none;
    margin-bottom: 24px;
}

.service-for li {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    padding: 4px 0 4px 20px;
    position: relative;
}

.service-for li::before {
    content: '◦';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary-light);
    transition: all 0.3s;
}

.service-link:hover {
    color: var(--color-primary);
    gap: 10px;
}

/* Package Card */
.package-card {
    position: relative;
    padding: 56px;
    background: linear-gradient(135deg, var(--color-bg-card), rgba(139, 113, 97, 0.05));
    border: 1px solid rgba(139, 113, 97, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.package-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 113, 97, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.package-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.package-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.package-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* ----- About Section ----- */
.about {
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s;
}

.pillar:hover {
    border-color: var(--color-border-hover);
    background: var(--color-primary-glow);
}

.pillar-icon {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.mission-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.mission-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.mission-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.core-values-list {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.core-values-list h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.cv-item {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-item strong {
    color: var(--color-text);
    font-weight: 500;
}

/* ----- Team Section ----- */
.team {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.team-card {
    padding: 48px 36px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
}

.team-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.team-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-bg);
    font-weight: 500;
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.5; }
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.team-role {
    display: block;
    font-size: 0.82rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.team-specialty {
    display: block;
    font-size: 0.88rem;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-border-hover);
    background: var(--color-primary-glow);
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
}

.team-profile-link:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Canh lại hàng cuối khi section đội ngũ có đúng 5 thành viên */
.team-grid .team-card:nth-child(4):nth-last-child(2) {
    grid-column: 1 / 2;
    justify-self: end;
}

.team-grid .team-card:nth-child(5):last-child {
    grid-column: 3 / 4;
    justify-self: start;
}

/* ----- Journey Section ----- */
.journey {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
    position: relative;
}

.journey-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-primary-dark), transparent);
}

.journey-step {
    display: flex;
    gap: 36px;
    padding: 32px 0;
    position: relative;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 56px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary-glow);
    position: relative;
}

.step-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    opacity: 0.3;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ----- Brand Message Section ----- */
.brand-message {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.brand-message::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 113, 97, 0.03) 0%, transparent 70%);
}

.message-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.message-decorative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.deco-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
}

.deco-line:last-child {
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.deco-symbol {
    font-size: 1.5rem;
    color: var(--color-accent);
    filter: drop-shadow(0 0 12px var(--color-accent-glow));
}

.message-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.message-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
}

.message-highlight {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
}

.message-highlight em {
    color: var(--color-primary-light);
    font-weight: 500;
}

/* ----- FAQ Section ----- */
.faq {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--color-primary-light);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.4s var(--ease-out-expo);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    padding-right: 44px;
}

/* ----- Contact Section ----- */
.contact {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.contact-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--color-border-hover);
    background: var(--color-primary-glow);
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Contact Form */
.contact-form-wrap {
    padding: 48px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(245, 240, 225, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A65E1A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--color-bg);
    color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ----- Footer ----- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(205, 180, 138, 0.15);
    background: #3D2B1F;
    color: #F5EFE6;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(166, 94, 26, 0.12));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    filter: drop-shadow(0 0 16px rgba(166, 94, 26, 0.2));
    transform: scale(1.03);
}

.footer-tagline {
    font-size: 0.95rem;
    color: #CDB48A;
    line-height: 1.7;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #F5EFE6;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: #CDB48A;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #F5EFE6;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(205, 180, 138, 0.12);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: #8B7161;
}

/* ----- Scroll Animations ----- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ----- Responsive ----- */

/* Tablet landscape & small desktop (769px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: clamp(64px, 8vw, 96px);
    }


    .section-header {
        margin-bottom: 56px;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .values-grid .value-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: min(100%, 420px);
        justify-self: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .team-grid .team-card:nth-child(4):nth-last-child(2),
    .team-grid .team-card:nth-child(5):last-child {
        grid-column: auto;
        justify-self: stretch;
    }

    .team-grid .team-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: min(100%, 360px);
        justify-self: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .package-content {
        flex-direction: column;
        text-align: center;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-visual {
        order: -1;
    }

    .zen-circle {
        width: 200px;
        height: 200px;
    }

    .service-card {
        padding: 36px 32px;
    }

    .package-card {
        padding: 44px 36px;
    }

    .package-glow {
        right: -12%;
        width: 380px;
        height: 380px;
    }
}

/* Tablet portrait (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(48px, 11vw, 72px);
    }


    html.menu-open,
    body.menu-open {
        overflow: hidden;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(84vw, 360px);
        max-width: 360px;
        height: 100vh;
        background: rgba(194, 180, 138, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 92px 28px 32px;
        gap: 4px;
        transform: translateX(108%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.5s var(--ease-out-expo), opacity 0.3s ease, visibility 0.3s ease;
        border-left: 1px solid var(--color-border);
        box-shadow: -18px 0 48px rgba(61, 43, 31, 0.12);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 16px;
        width: 100%;
    }

    .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 104px 0 52px;
    }

    .hero-logo-img {
        width: 136px;
    }

    .hero-badge {
        margin-bottom: 24px;
    }

    .hero-desc {
        margin-bottom: 32px;
    }

    .hero-orb {
        filter: blur(60px);
    }

    .orb-1 {
        width: 260px;
        height: 260px;
        top: 5%;
        right: -10%;
    }

    .orb-2 {
        width: 220px;
        height: 220px;
        bottom: 14%;
        left: -14%;
    }

    .orb-3 {
        width: 180px;
        height: 180px;
        left: 50%;
        top: 48%;
    }

    .hero-line {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .values-grid {
        gap: 18px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Override centered last card for smaller screens */
    .services-grid .service-card:last-child:nth-child(odd) {
        max-width: calc(50% - 10px);
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-grid .team-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }

    .about-pillars {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .service-card {
        padding: 32px 28px;
    }

    .value-card,
    .team-card {
        padding: 36px 28px;
    }

    .package-card {
        padding: 36px 28px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile (max-width: 580px) */
@media (max-width: 580px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .values-grid .value-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Reset centered card on single column */
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        justify-self: auto;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

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

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 44px;
    }



    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-badge {
        padding: 7px 16px;
        font-size: 0.78rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .value-card {
        padding: 32px 24px;
    }

    .team-card {
        padding: 36px 24px;
    }

    .team-profile-link {
        width: 100%;
    }

    .journey-step {
        gap: 20px;
    }

    .service-card {
        padding: 28px 22px;
    }

    .nav-menu {
        width: 100%;
        max-width: none;
        padding: 88px 24px 28px;
        border-left: none;
    }
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}
