/* ============================================================
   ThaiBridge Website V1 — Shared Stylesheet
   Mobile-first · Responsive · Minimal
   Design: "Solid Ground"
   ============================================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --color-navy: #1B2A4A;
  --color-navy-light: #243456;
  --color-gold: #C8A951;
  --color-gold-light: #D4BA6A;
  --color-gold-dark: #B89940;
  --color-warm-white: #FAF8F5;
  --color-white: #FFFFFF;
  --color-text-primary: #2D3748;
  --color-text-secondary: #718096;
  --color-text-muted: #A0AEC0;
  --color-success: #38A169;
  --color-border: #E2E8F0;
  --max-width: 1200px;
  --section-padding: 80px 16px;
  --section-padding-desktop: 120px 32px;
  --radius: 4px;
  --radius-lg: 8px;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-gold-dark); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-navy); line-height: 1.2; }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
.text-large { font-size: 1.125rem; }
.text-small { font-size: 0.875rem; }
.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.25rem; }
  .text-large { font-size: 1.25rem; }
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
section { padding: var(--section-padding); }
@media (min-width: 768px) { section { padding: var(--section-padding-desktop); } }

/* Section Backgrounds */
.section-light { background: var(--color-white); }
.section-warm { background: var(--color-warm-white); }
.section-dark { background: var(--color-navy); color: var(--color-white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.8); }

/* Section Header */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.125rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 12px;
}

/* --- Navigation --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-navy); }
.nav-logo span { color: var(--color-navy); }
.nav-logo .bridge { color: var(--color-gold); }
.nav-logo:hover { color: var(--color-navy); }
.nav-links { display: none; list-style: none; gap: 32px; }
.nav-links a { color: var(--color-text-secondary); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--color-gold); }
.nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; cursor: pointer; color: var(--color-navy); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-navy); position: relative; transition: 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 20px; height: 2px; background: var(--color-navy); position: absolute; transition: 0.2s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-mobile { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 16px; z-index: 99; }
.nav-mobile.active { display: block; }
.nav-mobile a { display: block; padding: 12px 16px; color: var(--color-text-primary); font-size: 1rem; font-weight: 500; border-radius: var(--radius); }
.nav-mobile a:hover { background: var(--color-warm-white); color: var(--color-gold); }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
  text-decoration: none; border: none; font-family: var(--font-body);
}
.btn-primary { background: var(--color-gold); color: var(--color-navy); }
.btn-primary:hover { background: var(--color-gold-dark); color: var(--color-navy); }
.btn-secondary { background: transparent; color: var(--color-gold); border: 1.5px solid var(--color-gold); }
.btn-secondary:hover { background: var(--color-gold); color: var(--color-navy); }
.btn-white { background: var(--color-white); color: var(--color-navy); }
.btn-white:hover { background: var(--color-warm-white); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Hero --- */
.hero { padding: 120px 16px 80px; text-align: center; background: var(--color-navy); color: var(--color-white); }
.hero .container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { color: var(--color-white); font-size: 1.75rem; max-width: 800px; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; max-width: 600px; margin: 0; }
.hero .btn-group { margin-top: 8px; }
@media (min-width: 768px) {
  .hero { padding: 160px 32px 100px; }
  .hero h1 { font-size: 2.75rem; }
  .hero p { font-size: 1.1875rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 200px 32px 120px; }
  .hero h1 { font-size: 3.25rem; }
}

/* Page Hero (shorter for interior pages) */
.page-hero { padding: 100px 16px 56px; text-align: center; background: var(--color-navy); color: var(--color-white); }
.page-hero h1 { color: var(--color-white); font-size: 1.75rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 12px auto 0; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .page-hero { padding: 140px 32px 72px; }
  .page-hero h1 { font-size: 2.5rem; }
}

/* --- Grid Columns --- */
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* --- Cards --- */
.card { background: var(--color-white); border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--color-border); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--color-warm-white); border-radius: var(--radius); margin-bottom: 16px; color: var(--color-gold); font-size: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9375rem; margin: 0; }
.card-highlight { border-left: 3px solid var(--color-gold); }

/* --- Service Cards (dark bg) --- */
.service-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform 0.2s, background 0.2s; }
.service-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.service-card .card-icon { background: rgba(255,255,255,0.1); color: var(--color-gold); }
.service-card h3 { color: var(--color-white); margin-bottom: 8px; }
.service-card p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; margin: 0; }
.service-card .card-badge { display: inline-block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); margin-bottom: 8px; }

/* --- Pillars (Why ThaiBridge) --- */
.pillar { text-align: center; padding: 16px 0; }
.pillar-icon { width: 56px; height: 56px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--color-warm-white); border-radius: 50%; color: var(--color-gold); font-size: 28px; }
.pillar h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.pillar p { font-size: 0.9375rem; max-width: 240px; margin: 0 auto; }

/* --- Process Steps --- */
.process-steps { display: flex; flex-direction: column; gap: 32px; }
.process-step { display: flex; gap: 20px; align-items: flex-start; }
.process-number { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--color-gold); color: var(--color-navy); border-radius: 50%; font-size: 1.25rem; font-weight: 700; }
.process-content h3 { margin-bottom: 4px; }
.process-content p { margin: 0; font-size: 0.9375rem; }
@media (min-width: 768px) {
  .process-steps { flex-direction: row; }
  .process-step { flex-direction: column; text-align: center; align-items: center; flex: 1; }
}

/* --- Comparison Table --- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
.compare-table th { background: var(--color-navy); color: var(--color-white); font-weight: 600; text-align: left; }
.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.compare-table td { color: var(--color-text-secondary); }
.compare-table .col-bad { color: #E53E3E; }
.compare-table .col-good { color: var(--color-success); }
.compare-table tr:last-child td:first-child { border-radius: 0 0 0 var(--radius); }
.compare-table tr:last-child td:last-child { border-radius: 0 0 var(--radius) 0; }
.compare-table .highlight-row { background: rgba(200,169,81,0.05); }

/* --- Stats Row --- */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--color-gold); font-family: var(--font-heading); }
.stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.7); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }

/* --- CTA Section --- */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { max-width: 520px; margin: 0 auto 24px; font-size: 1.0625rem; }

/* --- Footer --- */
.footer { background: var(--color-navy); color: rgba(255,255,255,0.7); padding: 56px 16px 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { color: var(--color-white); margin-bottom: 16px; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer ul a:hover { color: var(--color-gold); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-top: 8px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.4); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* --- Utilities --- */
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
.mb-3 { margin-bottom: 48px; }
.gap-1 { gap: 16px; }
.gap-2 { gap: 24px; }
.gap-3 { gap: 32px; }

/* Gold accent divider */
.accent-line { width: 48px; height: 3px; background: var(--color-gold); margin: 0 auto 16px; border-radius: 2px; }
.accent-line-left { margin: 0 0 16px 0; }

/* --- Simple Contact Page --- */
.contact-methods { display: flex; flex-direction: column; gap: 24px; max-width: 500px; margin: 0 auto; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.contact-method-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--color-warm-white); border-radius: var(--radius); color: var(--color-gold); font-size: 20px; flex-shrink: 0; }
.contact-method h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-method p { margin: 0; font-size: 0.875rem; }

/* --- Projects Page (placeholder content) --- */
.project-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.project-card-body { padding: 24px; }
.project-card-body h3 { margin-bottom: 8px; }
.project-card-tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); background: rgba(200,169,81,0.1); padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--color-gold); }

/* Verified Creator Network specific */
.vet-step { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.vet-step:last-child { border-bottom: none; }
.vet-step-number { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--color-gold); color: var(--color-navy); border-radius: 50%; font-weight: 700; font-size: 0.9375rem; }
.vet-step-content h3 { margin-bottom: 4px; font-size: 1rem; }
.vet-step-content p { margin: 0; font-size: 0.9375rem; }
