/* ============================================================
   XDT Platform — Shared Stylesheet
   Design Language: Trexa-inspired
   Colors: #febc00 (gold) · #000000 (black) · #101010 (primary)
   Fonts: Kanit · Instrument Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --gold:     #febc00;
  --yellow:   #f3ff0a;
  --black:    #000000;
  --primary:  #101010;
  --white:    #ffffff;
  --gray:     #888888;
  --gray2:    #444444;
  --light-bg: #f4f4f2;
  --font-k:   'Kanit', sans-serif;
  --font-i:   'Instrument Sans', sans-serif;
  --radius:   4px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-k);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Containers ── */
.xdt-container { max-width: 1440px; margin: 0 auto; padding: 0 60px; }
@media (max-width:1200px) { .xdt-container { padding: 0 40px; } }
@media (max-width:768px)  { .xdt-container { padding: 0 24px; } }

/* ── Page Loader ── */
.xdt-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.xdt-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  font-family: var(--font-k);
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
}
.loader-text span { color: var(--gold); }

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9998;
  height: 2px; width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* ── Header ── */
.xdt-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 28px 0;
  transition: background var(--transition), padding var(--transition), border-bottom var(--transition);
}
.xdt-header.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.xdt-logo {
  font-family: var(--font-k);
  font-size: 60px; font-weight: 800;
  letter-spacing: -2px;
  color: var(--white);
}
.xdt-logo span { color: var(--gold); }

.desktop-nav { display: flex; align-items: center; gap: 40px; }
.desktop-nav a {
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}
.desktop-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--transition);
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--white); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-k);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.header-cta:hover { background: var(--yellow); transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--black);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-k);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

@media (max-width: 960px) {
  .desktop-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}

/* ── Image Placeholder ── */
.ph {
  position: relative; overflow: hidden;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
}
.ph-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px;
  text-align: center;
  background: rgba(0,0,0,0.5);
  border: 1px dashed rgba(254,188,0,0.3);
}
.ph-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.ph-title {
  font-family: var(--font-k);
  font-size: 15px; font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.ph-prompt {
  font-size: 12px; line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
}

/* ── Full-screen Image Break ── */
.img-break {
  width: 100%;
  height: 70vh; min-height: 480px;
  position: relative; overflow: hidden;
}
.img-break .ph { width: 100%; height: 100%; }
.img-break-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  display: flex; align-items: center;
}
.img-break-text {
  font-family: var(--font-k);
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.img-break-text em { color: var(--gold); font-style: normal; }

/* ── Section Common ── */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--font-k);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.section-title em { color: var(--gold); font-style: normal; }
.section-sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-top: 20px;
  max-width: 600px;
}

/* Light background sections */
.section-light {
  background: var(--light-bg);
  color: var(--black);
}
.section-light .section-title { color: var(--black); }
.section-light .section-sub { color: rgba(0,0,0,0.55); }
.section-light .section-label { color: #b08900; }
.section-light .section-label::before { background: #b08900; }

/* ── Marquee ── */
.marquee-wrap {
  background: var(--gold);
  overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px;
  font-family: var(--font-k);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}
.marquee-item::after {
  content: '·'; font-size: 18px; color: rgba(0,0,0,0.4);
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-k);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--yellow); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 32px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-k);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-outline-dark {
  color: var(--black);
  border-color: rgba(0,0,0,0.3);
}
.btn-outline-dark:hover { border-color: var(--black); background: rgba(0,0,0,0.06); color: var(--black); }

/* ── Cards ── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; }
@media (max-width:960px) { .card-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:640px) { .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; } }

/* ── Footer ── */
.xdt-footer { background: #080808; padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand-name {
  font-family: var(--font-k); font-size: 28px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 16px;
}
.footer-brand-name span { color: var(--gold); }
.footer-desc { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 15px; color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }
@media (max-width:960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width:600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Page Hero (sub-pages) ── */
.page-hero {
  padding: 180px 0 100px;
  position: relative; overflow: hidden;
}
.page-hero-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.page-hero-title {
  font-family: var(--font-k);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px;
}
.page-hero-title em { color: var(--gold); font-style: normal; }
.page-hero-sub {
  margin-top: 24px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 70% 50%, rgba(254,188,0,0.06) 0%, transparent 60%);
}

/* ── Contact Form ── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width:640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--font-k);
  font-size: 15px; color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(254,188,0,0.04);
}
.form-select option { background: #1a1a1a; }
.form-textarea { min-height: 140px; resize: vertical; }
.form-submit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 40px; background: var(--gold);
  color: var(--black); font-family: var(--font-k);
  font-size: 15px; font-weight: 700;
  border: none; border-radius: 2px; cursor: pointer;
  transition: all var(--transition);
}
.form-submit:hover { background: var(--yellow); transform: translateY(-2px); }

/* ── Large button variant ── */
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 48px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-k);
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary-lg:hover { background: var(--yellow); transform: translateY(-2px); color: var(--black); }

/* ── Image Break shared content ── */
.img-break-content { position:relative; z-index:3; padding:0 24px; }
.img-break-label {
  font-size: 12px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(254,188,0,0.8);
  margin-bottom: 20px; display: block;
}
.img-break-title {
  font-family: var(--font-k);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -2px; color: var(--white);
  margin-bottom: 24px;
}
.img-break-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
}

/* ── Footer new structure ── */
.footer-brand {}
.footer-tagline {
  font-size: 14px; line-height: 1.8;
  color: rgba(255,255,255,0.4);
  margin-top: 12px; max-width: 280px;
}
.footer-links-wrap { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 15px; color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

/* ── CTA Banner (shared across all pages) ── */
.cta-banner { background: var(--gold); padding: 80px 0; }
.cta-title {
  font-family: var(--font-k);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -1.5px; color: var(--black);
  margin-bottom: 16px;
}
.cta-sub { font-size: 18px; color: rgba(0,0,0,0.6); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-black {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; background: var(--black); color: var(--white);
  font-family: var(--font-k); font-size: 16px; font-weight: 700;
  border-radius: 2px; transition: all var(--transition);
}
.btn-black:hover { background: #1a1a1a; transform: translateY(-2px); color: var(--white); }
.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px; background: transparent; color: var(--black);
  font-family: var(--font-k); font-size: 16px; font-weight: 600;
  border-radius: 2px; border: 1.5px solid rgba(0,0,0,0.3);
  transition: all var(--transition);
}
.btn-gold-outline:hover { border-color: var(--black); background: rgba(0,0,0,0.06); }

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
