/* ============================================================
   THAILAND PRIVILEGE — SHARED DESIGN SYSTEM
   Single source of truth for all styling. Edit here, changes everywhere.
   ============================================================ */

:root {
  --navy-deepest: #050d1f;
  --navy: #0B1C3D;
  --navy-light: #132347;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim: rgba(201, 168, 76, 0.4);
  --gold-faint: rgba(201, 168, 76, 0.12);
  --cream: #F8F4EC;
  --white: #FFFFFF;
  --text-on-dark: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-dark: #1A1A2E;
  --text-dark-muted: #6b6456;
  --error: #e85d5d;
  --success: #5de8a0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-deepest);
  color: var(--text-on-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--navy); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.grain-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ==================== TYPOGRAPHY ==================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 20px;
  position: relative;
  padding-left: 44px;
}
.eyebrow::before {
  content: ''; position: absolute;
  left: 0; top: 50%;
  width: 32px; height: 1px; background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); font-weight: 300; }
.section-title.on-light { color: var(--text-dark); }
.section-title.on-light em { color: var(--gold); }

.section-lede {
  max-width: 640px;
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.section-lede.on-light { color: var(--text-dark-muted); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head-right { text-align: right; }
.section-head-right .section-lede { margin-left: auto; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head-right { text-align: left; }
  .section-head-right .section-lede { margin-left: 0; }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-luxury);
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(201, 168, 76, 0.5); }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); }
.btn-ghost:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-ghost-dark { background: transparent; color: var(--navy); border: 1px solid var(--gold); }
.btn-ghost-dark:hover { background: var(--gold); color: var(--navy); }
.btn-arrow { font-size: 18px; transition: transform 0.3s var(--ease-luxury); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 22px 0;
  transition: all 0.4s var(--ease-luxury);
  background: linear-gradient(180deg, rgba(5, 13, 31, 0.85), rgba(5, 13, 31, 0));
  backdrop-filter: blur(0);
}
.navbar.scrolled, .navbar.solid {
  background: rgba(5, 13, 31, 0.92);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-faint);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.nav-logo .logo-accent { color: var(--gold); font-style: italic; font-weight: 300; }
.nav-logo::before { content: ''; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); display: inline-block; }
.nav-logo:has(img)::before { display: none; }
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 720px) {
  .nav-logo img { height: 36px; }
}

.nav-menu { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-menu a {
  color: var(--text-on-dark); text-decoration: none;
  font-size: 13px; font-weight: 400; letter-spacing: 0.08em;
  position: relative; padding: 6px 0;
  transition: color 0.3s var(--ease-luxury);
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease-luxury);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.nav-menu a.active::after, .nav-menu a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cta { padding: 12px 24px; font-size: 12px; letter-spacing: 0.18em; }
.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--gold-dim); color: var(--gold);
  width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -20px;
  min-width: 260px; background: var(--navy);
  border: 1px solid var(--gold-faint);
  padding: 12px 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.3s var(--ease-luxury);
  pointer-events: none;
  margin-top: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block; padding: 10px 24px;
  font-size: 13px; color: var(--text-on-dark);
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: rgba(201, 168, 76, 0.08); color: var(--gold); }
.nav-dropdown > a::before {
  content: '▾'; font-size: 9px; margin-left: 6px; color: var(--gold);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 90vw); background: var(--navy-deepest);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-luxury);
  padding: 100px 32px 40px;
  border-left: 1px solid var(--gold-faint);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; }
.mobile-drawer > ul > li { border-bottom: 1px solid var(--gold-faint); }
.mobile-drawer > ul > li > a {
  display: block; padding: 20px 0;
  color: var(--white); text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.02em;
  transition: color 0.3s;
}
.mobile-drawer > ul > li > a:hover { color: var(--gold); }
.mobile-drawer .sub-ul { padding: 0 0 16px 16px; }
.mobile-drawer .sub-ul a {
  display: block; padding: 8px 0;
  color: var(--text-muted); font-size: 14px;
  text-decoration: none;
}
.mobile-drawer .sub-ul a:hover { color: var(--gold); }

.drawer-close {
  position: absolute; top: 28px; right: 28px;
  background: none; border: 1px solid var(--gold-dim);
  color: var(--gold); width: 42px; height: 42px;
  cursor: pointer; font-size: 20px;
}
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 13, 31, 0.7);
  backdrop-filter: blur(8px);
  z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ==================== PAGE HEADER ==================== */
.page-header {
  padding: 180px 0 100px;
  position: relative; text-align: center;
  background: radial-gradient(ellipse at center top, rgba(201, 168, 76, 0.08), transparent 60%);
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 80px; height: 1px; background: var(--gold);
}
.breadcrumb {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 32px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--gold); }

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 24px;
}
.page-title em { font-style: italic; color: var(--gold); font-weight: 300; }

.page-subtitle {
  max-width: 640px; margin: 0 auto;
  font-size: 17px; color: var(--text-muted); line-height: 1.75;
}

/* ==================== REVEAL ==================== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
}
.reveal.is-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; }

/* ==================== FOOTER ==================== */
.footer { background: var(--navy-deepest); padding: 100px 0 40px; border-top: 1px solid var(--gold-faint); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 80px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .nav-logo { font-size: 24px; margin-bottom: 24px; display: inline-flex; }
.footer-tagline { font-size: 15px; color: var(--text-muted); max-width: 340px; line-height: 1.7; margin-bottom: 28px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 42px; height: 42px;
  border: 1px solid var(--gold-faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); text-decoration: none;
  transition: all 0.3s var(--ease-luxury);
}
.footer-social:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gold-faint);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ==================== FLOATING CONTACT ==================== */
.floating-contact {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 12px; z-index: 50;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--ease-luxury);
}
.float-btn:hover { transform: scale(1.1); background: var(--gold-light); }
.float-btn.whatsapp { background: #25D366; color: white; }
.float-btn.line { background: #06C755; color: white; }

/* ==================== CTA SECTION (reusable) ==================== */
.cta-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(180deg, var(--navy-deepest), var(--navy) 40%, var(--navy-deepest));
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%; opacity: 0.2; pointer-events: none;
}
.cta-section::before { top: -200px; left: -100px; }
.cta-section::after { bottom: -200px; right: -100px; }
.cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 400; color: var(--white);
  line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.cta-title em { color: var(--gold); font-style: italic; font-weight: 300; }
.cta-text {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 44px; line-height: 1.75;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 540px) { .cta-btns .btn { width: 100%; } }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 16px 20px;
  background: rgba(19, 35, 71, 0.5);
  border: 1px solid var(--gold-faint);
  color: var(--white);
  font-family: var(--font-body); font-size: 15px;
  outline: none;
  transition: all 0.3s var(--ease-luxury);
  backdrop-filter: blur(20px);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(19, 35, 71, 0.8);
  box-shadow: 0 0 0 1px var(--gold);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 140px; font-family: var(--font-body); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23C9A84C' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) center;
  padding-right: 50px;
}
.form-select option { background: var(--navy); color: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; padding: 8px 0;
}
.form-checkbox input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--gold);
  margin-top: 2px; flex-shrink: 0;
}
.form-checkbox-label {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.form-checkbox-label a { color: var(--gold); text-decoration: underline; }

.form-success {
  padding: 60px 40px;
  background: rgba(93, 232, 160, 0.08);
  border: 1px solid var(--success);
  text-align: center;
  display: none;
}
.form-success.show { display: block; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 36px; color: var(--white);
  margin-bottom: 16px; font-weight: 500;
}
.form-success p { color: var(--text-on-dark); font-size: 16px; }

/* ==================== PROSE (article/legal pages) ==================== */
.prose { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: var(--text-on-dark); }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500; color: var(--gold);
  margin: 56px 0 20px; line-height: 1.2;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  color: var(--white); margin: 32px 0 14px;
}
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 16px 0 24px 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose strong { color: var(--white); font-weight: 600; }

/* ============================================================
   GSSA AUTHORIZED AGENT BADGE
   Shows we are an official authorized agent, not the government
   ============================================================ */
.gssa-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  margin-top: 18px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  max-width: 340px;
}
.gssa-badge:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}
.gssa-badge img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}
.gssa-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gssa-badge-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.3;
}
.gssa-badge-title {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.35;
  font-family: var(--font-body);
}
.gssa-badge-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
@media (max-width: 520px) {
  .gssa-badge {
    max-width: 100%;
    gap: 12px;
    padding: 12px 14px;
  }
  .gssa-badge img { width: 56px; height: 56px; }
  .gssa-badge-title { font-size: 12px; }
  .gssa-badge-sub { font-size: 10px; }
}
