/* ==========================================================================
   Dragon Trail Asia Pacific — Standalone Microsite Stylesheet
   Self-contained. No dependency on any other site or stylesheet.
   Brand palette matches Dragon Trail International's visual identity.
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #1A1A1A;
    --color-brand: #D13736;
    --color-white: #FFFFFF;
    --color-surface-light: #F8F8F8;
    --color-surface-mid: #E8E8E8;
    --color-surface-dark: #2A2A2A;
    --color-text-primary: #1A1A1A;
    --color-text-muted: #999999;
    --color-text-subtle: #6D6E71;
    --container-max: 1200px;
    --gutter: 100px;
    --gutter-tablet: 60px;
    --gutter-mobile: 24px;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--color-white);
    color: var(--color-text-primary);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 20px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav-wrapper {
    width: 100%;
    background: var(--color-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    height: 96px;
    padding: 0 var(--gutter);
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white);
    transition: color 0.25s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-brand);
}

.nav-cta {
    background: var(--color-brand);
    color: var(--color-white) !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: #b62f2e;
    color: var(--color-white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
    position: absolute;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 120px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: var(--color-white);
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-item {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-item.active {
    color: var(--color-brand);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background: var(--color-bg);
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 96px 0 40px;
}

.hero-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    max-width: 800px;
    margin-bottom: 28px;
}

.hero-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--color-brand);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #CFCFCF;
    max-width: 640px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Small page hero (interior pages) */
.page-hero {
    background: var(--color-bg);
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 96px 0 40px;
}

.page-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 20px;
}

.page-hero-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--color-brand);
}

.page-hero-subtitle {
    font-size: 18px;
    color: #CFCFCF;
    line-height: 1.7;
    max-width: 640px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 17px 36px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-brand);
    color: var(--color-white);
    border-color: var(--color-brand);
}

.btn-primary:hover {
    background: #b62f2e;
    border-color: #b62f2e;
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-bg);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-bg);
    border-color: var(--color-bg);
}

.btn-outline-dark:hover {
    background: var(--color-bg);
    color: var(--color-white);
}

.btn-pill-light {
    background: var(--color-white);
    color: var(--color-text-primary);
    border-radius: 40px;
    border-color: var(--color-white);
}

/* ==========================================================================
   Section Patterns
   ========================================================================== */

section {
    width: 100%;
}

.section {
    padding: 100px 0;
}

.section-compact {
    padding: 60px 0;
}

.section-dark {
    background: var(--color-bg);
    color: var(--color-white);
}

.section-light {
    background: var(--color-surface-light);
    color: var(--color-text-primary);
}

.section-white {
    background: var(--color-white);
    color: var(--color-text-primary);
}

.section-brand {
    background: var(--color-brand);
    color: var(--color-white);
}

.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--color-brand);
}

.section-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-subtle);
}

.section-dark .section-body {
    color: #B9B9B9;
}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
    background: var(--color-white);
    border-radius: 4px;
    padding: 40px;
    height: 100%;
}

.section-dark .card {
    background: var(--color-surface-dark);
    border: 1px solid rgba(255,255,255,0.08);
}

.card-icon-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 16px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-subtle);
}

.section-dark .card-body {
    color: #B9B9B9;
}

.pill-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
}

.pill-list li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    line-height: 1.6;
}

.pill-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-brand);
    font-weight: 700;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
    background: var(--color-brand);
    padding: 90px 0;
    text-align: center;
}

.cta-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.cta-banner-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-banner-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--color-bg);
}

.cta-banner-body {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner .btn-primary {
    background: var(--color-bg);
    border-color: var(--color-bg);
}

.cta-banner .btn-primary:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-bg);
}

/* ==========================================================================
   Bio / Contact Card
   ========================================================================== */

.bio-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    background: var(--color-white);
    border-radius: 8px;
    padding: 56px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.bio-photo {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 319 / 407;
}

.bio-name {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bio-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-brand);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bio-company {
    font-size: 15px;
    color: var(--color-text-subtle);
    margin-bottom: 20px;
}

.bio-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-brand);
    padding-bottom: 2px;
}

.bio-body p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--color-text-subtle);
    margin-bottom: 16px;
}

/* ==========================================================================
   Survey Form
   ========================================================================== */

.survey-intro {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.survey-form {
    max-width: 780px;
    margin: 0 auto;
}

.form-question {
    background: var(--color-white);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.form-question-number {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-brand);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-question-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-question-hint {
    font-size: 14px;
    color: var(--color-text-subtle);
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.form-field input {
    font-family: inherit;
    font-size: 15px;
    padding: 13px 16px;
    border: 1px solid var(--color-surface-mid);
    border-radius: 4px;
    background: var(--color-surface-light);
    color: var(--color-text-primary);
}

.form-field input:focus {
    outline: none;
    border-color: var(--color-brand);
    background: var(--color-white);
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.option-item:hover {
    background: var(--color-surface-light);
}

.option-item input {
    margin-top: 3px;
    accent-color: var(--color-brand);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.option-item span {
    font-size: 15.5px;
    line-height: 1.5;
}

.option-item input[type="text"] {
    margin-top: 0;
    width: auto;
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--color-surface-mid);
    border-radius: 4px;
    background: var(--color-surface-light);
}

.form-submit-row {
    text-align: center;
    padding: 20px 0 60px;
}

/* Spam honeypot: kept in the DOM/tab order-excluded but hidden from sighted users */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 13px;
    color: var(--color-text-subtle);
    margin-top: 16px;
}

.form-error {
    display: none;
    background: #FCEBEA;
    color: #A62A29;
    border: 1px solid #F0B9B8;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 24px;
}

.form-error.visible {
    display: block;
}

.thankyou-panel {
    display: none;
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 8px;
    padding: 64px 48px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.thankyou-panel.visible {
    display: block;
}

.thankyou-panel h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
}

.thankyou-panel p {
    font-size: 16px;
    color: var(--color-text-subtle);
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-bg);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-meta {
    font-size: 12px;
    color: #666666;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   Chat widget
   ========================================================================== */

.chat-fab {
    position: fixed;
    right: 60px;
    bottom: 90px;
    height: 56px;
    padding: 0 26px;
    border-radius: 28px;
    background: var(--color-brand);
    border: 2px solid var(--color-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.chat-fab span {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.chat-fab:hover {
    transform: scale(1.06);
}

.chat-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.chat-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66vh;
    background: var(--color-white);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.chat-panel.active {
    transform: translateY(0);
}

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--color-bg);
    color: var(--color-white);
    flex-shrink: 0;
}

.chat-panel-title {
    font-size: 15px;
    font-weight: 700;
}

.chat-panel-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.chat-panel-close:hover {
    color: var(--color-brand);
}

.chat-panel-body {
    flex: 1;
    overflow: hidden;
}

.chat-panel-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   Two-column split section
   ========================================================================== */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split-panel {
    background: var(--color-surface-dark);
    border-radius: 8px;
    padding: 48px;
}

.split-panel-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.split-panel-body {
    font-size: 15.5px;
    line-height: 1.75;
    color: #B9B9B9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --gutter: var(--gutter-tablet);
    }

    .grid-3, .grid-4, .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 48px;
    }

    .bio-card {
        grid-template-columns: 220px 1fr;
        padding: 40px;
        gap: 40px;
    }

    .split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: var(--gutter-mobile);
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 0;
        padding: 116px 0 60px;
    }

    .page-hero {
        min-height: 0;
        padding: 116px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .page-hero-title {
        font-size: 34px;
    }

    .section {
        padding: 70px 0;
    }

    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .bio-card {
        grid-template-columns: 1fr;
        padding: 32px;
        text-align: center;
    }

    .bio-photo {
        max-width: 220px;
        margin: 0 auto;
    }

    .bio-email {
        margin-left: auto;
        margin-right: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-question {
        padding: 28px 24px;
    }

    .cta-banner-title {
        font-size: 28px;
    }

    .chat-fab {
        height: 48px;
        padding: 0 20px;
        right: 20px;
        bottom: 20px;
    }

    .chat-panel {
        height: 80vh;
    }
}
